Stream: IG creation
Topic: Snapshot generator
Brian Postlethwaite (Oct 22 2018 at 03:46):
@Grahame Grieve , @Brett Esler can you please check the snapshot generation for the Australian patient,
http://hl7.org.au/fhir/base2018Oct/StructureDefinition-au-patient.html the birthdate element (which only defines extensions, does it need the type there?) generates no type data in the snapshot.
Differential:
<ElementDefinition id="Patient.birthDate"> <path value="Patient.birthDate" /> <short value="Date of birth extended for time and accuracy indicator" /> <requirements value="Age of the individual drives many clinical processes. May include accuracy indicator and specific birth time." /> </ElementDefinition> ( ... plus some extensions)
Then the snapshot generated has this
<ElementDefinition id="Patient.birthDate.value"> <path value="Patient.birthDate.value" /> <representation value="xmlAttr" /> <short value="Primitive value for date" /> <definition value="The actual value" /> <min value="0" /> <max value="1" /> <base> <path value="date.value" /> <min value="0" /> <max value="1" /> </base> <type> <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-regex"> <valueString value="-?[0-9]{4}(-(0[1-9]|1[0-2])(-(0[0-9]|[1-2][0-9]|3[0-1]))?)?" /> </extension> </type> </ElementDefinition>
Brian Postlethwaite (Oct 22 2018 at 04:01):
The snapshot generated StructureDefinitions that the IG builder is outputting are not validated using the validator.
There are quite a few in the au-base IG that do not pass basic validation, violations of eld-14, 'ElementDefinition.type.code' is 0, which is not within the specified cardinality of 1..1
Last updated: Apr 12 2022 at 19:14 UTC