Stream: committers
Topic: Patient snapshot in IG doesn't validate
Brian Postlethwaite (Nov 15 2018 at 00:56):
When I try and validate the following StructureDefinition I get a validation issue on the snapshot
http://build.fhir.org/ig/hl7au/au-fhir-base/StructureDefinition-au-patient.xml.html
<IssueComponent>
<severity value="error" />
<code value="invalid" />
<details>
<coding>
<system value="http://hl7.org/fhir/dotnet-api-operation-outcome" />
<code value="1028" />
</coding>
<text value="Instance count for 'ElementDefinition.type.code' is 0, which is not within the specified cardinality of 1..1" />
</details>
<location value="StructureDefinition.snapshot[0].element[195].type[0]" />
</IssueComponent>
<IssueComponent>
<severity value="error" />
<code value="invalid" />
<details>
<coding>
<system value="http://hl7.org/fhir/dotnet-api-operation-outcome" />
<code value="1028" />
</coding>
<text value="Instance count for 'ElementDefinition.type.code' is 0, which is not within the specified cardinality of 1..1" />
</details>
<location value="StructureDefinition.snapshot[0].element[202].type[0]" />
</IssueComponent>
This is the only one that I've come across, the specific element definition highlighted in the snapshot is this one
<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 (Nov 15 2018 at 01:00):
@Brett Esler , this is my only technical issue with the AU guides.
Brian Postlethwaite (Nov 15 2018 at 01:02):
@Grahame Grieve I think this is an issue with the snapshot generator...
Brett Esler (Nov 15 2018 at 01:04):
it seems to happen on extension of a type choice
Grahame Grieve (Nov 15 2018 at 02:31):
so where can I reproduce this?
Brian Postlethwaite (Nov 15 2018 at 02:59):
In the AU Base IG Patient resource.
Brian Postlethwaite (Nov 15 2018 at 03:00):
It was validated using the .net validator, which seems correct in this case. The type code cardinality is 1..1 in elementdefinition
Brian Postlethwaite (Nov 15 2018 at 03:01):
(Your inner timezone seriously messed up right now Grahame?)
Grahame Grieve (Nov 15 2018 at 03:28):
I'm trying not to adjust to Amsterdam as much as possible
Last updated: Apr 12 2022 at 19:14 UTC