Stream: conformance
Topic: Slicing by datatype profile checking
Brett Esler (Jul 13 2020 at 03:55):
When we are attempting to slice by profile on an element (match datatype profiles) we do this:
<element id="Patient.identifier">
<path value="Patient.identifier" />
<slicing>
<discriminator>
<type value="profile" />
<path value="$this" />
</discriminator>
<rules value="open" />
</slicing>
</element>
Where the path is $this as we are trying to match the instance element with one of the datatype slices which each have a profile defined for the type
e.g
<element id="Patient.identifier:ihiNumber">
<path value="Patient.identifier" />
<sliceName value="ihiNumber" />
<max value="1" />
<type>
<code value="Identifier" />
<profile value="http://hl7.org.au/fhir/StructureDefinition/au-ihinumber" />
</type>
<mustSupport value="true" />
</element>
For examples - QA report is showing 'Not supported yet'
Internal error: Problem evaluating slicing expression for element in profile http://hl7.org.au/fhir/StructureDefinition/patient-ident-choice-ihi-med path Patient.identifier[0] (fhirPath = true and $this.conformsTo('http://hl7.org.au/fhir/StructureDefinition/au-ihinumber')): Not supported yet
Is there any plan for this validation capability (assume the Java validator?) ; resolve() works fine for Reference resolution and profile check but not datatype profile check
Grahame Grieve (Jul 13 2020 at 07:35):
I think I fixed this over the weekend, so fixed in the next release
Brett Esler (Jul 13 2020 at 23:16):
Thanks will try with next version
Last updated: Apr 12 2022 at 19:14 UTC