FHIR Chat · Applying FHIR-31400: Applying eld-1 only on snapshot · committers

Stream: committers

Topic: Applying FHIR-31400: Applying eld-1 only on snapshot


view this post on Zulip Ward Weistra (Feb 11 2022 at 11:30):

Who can help me on the procedure for removing eld-1 from ElementDefinition (which seems to be defined in a spreadsheet) and move it to StructureDefinition (which seems to be defined as XML resource directly). I made a first attempt here: https://github.com/HL7/fhir/pull/1700, which runs into the error:

Unable to load ElementDefinition: unable to find Invariant '1' elementdefinition.xml, sheet "Data Elements", row 13

Is there a way to tell the publisher that that was the whole point :wink: Should I keep the eld-1 name or mark eld-1 as deprecated somewhere?

view this post on Zulip Grahame Grieve (Feb 11 2022 at 11:57):

ElementDefinition is still defined in the spreadsheet, yes. Only the resources moved out from spreadsheets

view this post on Zulip Grahame Grieve (Feb 11 2022 at 11:58):

you need to remove the reference from the definitions spreadsheet to the invariant that you have removed

view this post on Zulip Ward Weistra (Feb 11 2022 at 12:49):

Thanks @Grahame Grieve, I see now that was clearly in the output...
Updated the PR with removing the reference to the removed invariant, but now I run into a NullPointerExection:

This was a Full Build                                                      7.842  15sec  599MB
FHIR build failure @ Fri, Feb 11, 2022 13:44+0100                          2.358  17sec  599MB
Error: null
java.lang.NullPointerException
        at org.hl7.fhir.definitions.parsers.spreadsheets.SpreadSheetCreator.addElements(SpreadSheetCreator.java:225)
        at org.hl7.fhir.definitions.parsers.spreadsheets.SpreadSheetCreator.addResourceSheets(SpreadSheetCreator.java:129)
        at org.hl7.fhir.definitions.parsers.spreadsheets.SpreadSheetCreator.generateSpreadsheet(SpreadSheetCreator.java:74)
        at org.hl7.fhir.definitions.parsers.SourceParser.loadResource(SourceParser.java:1279)
        at org.hl7.fhir.definitions.parsers.SourceParser.parse(SourceParser.java:289)
        at org.hl7.fhir.tools.publisher.Publisher.execute(Publisher.java:674)
        at org.hl7.fhir.tools.publisher.Publisher.main(Publisher.java:487)

Last updated: Apr 12 2022 at 19:14 UTC