Stream: committers
Topic: Bug in Snapshot Generator
Brian Postlethwaite (Dec 04 2018 at 22:48):
I think there is a bug in the snapshot generator (for STU3 at least)
In the AU Patient profile we have included an extension on deceasedDateTime for the accuracy indicator
http://build.fhir.org/ig/hl7au/au-fhir-base/StructureDefinition-au-patient.html
And while generating the snapshot, it produces an element definition like this
<ElementDefinition id="Patient.deceasedDateTime:deceasedDateTime.value"> <path value="Patient.deceasedDateTime.value" /> <representation value="xmlAttr" /> <short value="Primitive value for dateTime" /> <definition value="The actual value" /> <min value="0" /> <max value="1" /> <base> <path value="dateTime.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])(T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\.[0-9]+)?(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?" /> </extension> </type> </ElementDefinition>
Which is not valid FHIR as the type.code property is missing.
Any change you could take a look at this @Grahame Grieve and confirm its an issue?
Brian Postlethwaite (Dec 07 2018 at 06:15):
ping, and this possible snapshot generator issue.
Brian Postlethwaite (Dec 10 2018 at 04:32):
@Grahame Grieve, has this one made it to your list yet for closing out R4 too?
(as it may impact other IGs, or snapshots generated during this cycle)
Grahame Grieve (Dec 10 2018 at 05:08):
it's on my list
Brian Postlethwaite (Dec 10 2018 at 08:15):
Thanks.
Grahame Grieve (Dec 12 2018 at 19:14):
fixed
Brian Postlethwaite (Dec 13 2018 at 04:08):
This now generates the code value below, which has no value, just extensions. I would have expected this to have the value dateTime
in it (I think)
<code> <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type"> <valueString value="string"/> </extension> <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type"> <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date OR xsd:dateTime"/> </extension> <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type"> <valueString value="xsd:gYear OR xsd:gYearMonth OR xsd:date OR xsd:dateTime"/> </extension> </code>
https://build.fhir.org/ig/hl7au/au-fhir-base/StructureDefinition-au-patient.xml.html
So the Binding validator complains that there is no value to check with the terminology - is that wrong?
Grahame Grieve (Dec 13 2018 at 04:29):
that's what I expect it to look like - an exact copy of base
Grahame Grieve (Dec 13 2018 at 04:29):
not sure what you mean about the binding
Brian Postlethwaite (Dec 13 2018 at 04:30):
Cool, thanks. I'll chase it through the .net validator code. Maybe it's gone astray somewhere, and this is a new issue.
Last updated: Apr 12 2022 at 19:14 UTC