diff --git a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/spreadsheets/StructureDefinitionSpreadsheetGenerator.java b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/spreadsheets/StructureDefinitionSpreadsheetGenerator.java index c0ac1ad7e..dfc40017e 100644 --- a/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/spreadsheets/StructureDefinitionSpreadsheetGenerator.java +++ b/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/renderers/spreadsheets/StructureDefinitionSpreadsheetGenerator.java @@ -99,7 +99,7 @@ public class StructureDefinitionSpreadsheetGenerator extends CanonicalSpreadshee addStructureDefinitionMetadata(renderCanonicalResource(sd, forMultiple), sd); Sheet sheet = forMultiple && hasSheet("Elements") ? getSheet("Elements") : makeSheet("Elements"); - if (sheet.getLastRowNum() == 0) { + if (sheet.getPhysicalNumberOfRows() == 0) { Row headerRow = sheet.createRow(0); int coffset = forMultiple ? 1 : 0; for (int i = 0; i < titles.length; i++) {