Stream: IG creation
Topic: decimal + extension = error
Eric Haas (Oct 25 2019 at 00:10):
I ran into an error when trying to add an extension to a primitive of type decimal
here is the extension snippet...
<element id="MeasureReport.group.measureScore"> <path value="MeasureReport.group.measureScore"/> <comment value="For individual reporting, the measure score is calculated for the individual. For a proportion measure, it would be 0.0 or 1.0 (indicating 0% or 100%)."/> <min value="1"/> <max value="1"/> <type> <code value="decimal"/> </type> <mustSupport value="true"/> </element> <element id="MeasureReport.group.measureScore.extension:alttype"> <path value="MeasureReport.group.measureScore.extension"/> <sliceName value="alttype"/> <min value="0"/> <max value="1"/> <type> <code value="Extension"/> <profile value="http://hl7.org/fhir/us/davinci-deqm/StructureDefinition/extension-alternateScoreType"/> </type> <mustSupport value="true"/> </element>
that lead to this error...
Exception in thread "main" java.lang.Error: Unknown xml type 'xsd:decimal' at org.hl7.fhir.r5.model.ElementDefinition$TypeRefComponent.getWorkingCode(ElementDefinition.java:2318) at org.hl7.fhir.r5.validation.ProfileValidator.checkExtensions(ProfileValidator.java:129) at org.hl7.fhir.r5.validation.ProfileValidator.validate(ProfileValidator.java:81) at org.hl7.fhir.igtools.publisher.Publisher.checkConformanceResources(Publisher.java:3164) at org.hl7.fhir.igtools.publisher.Publisher.loadConformance(Publisher.java:3111) at org.hl7.fhir.igtools.publisher.Publisher.createIg(Publisher.java:729) at org.hl7.fhir.igtools.publisher.Publisher.execute(Publisher.java:617) at org.hl7.fhir.igtools.publisher.Publisher.main(Publisher.java:6524)
Grahame Grieve (Oct 25 2019 at 00:13):
fixed next release
Eric Haas (Oct 25 2019 at 00:13):
ty
Last updated: Apr 12 2022 at 19:14 UTC