FHIR Chat · Structure of extensions on Encounter · australia

Stream: australia

Topic: Structure of extensions on Encounter


view this post on Zulip Luud Slagter (Feb 23 2022 at 16:14):

Hi! I'm using the AU Base profiles as a base to create more specific profiles, and I noticed that the EncounterDescription and AssociatedHealthcareService extensions do not render nicely. In these extensions the .value[x] element has cardinality 0..1 and is sliced (the slice has cardinality 1..1 and is constrained to a string respectively Reference data type). Is there a reason these constraints (i.e. constraining the data type) are not directly applied to .value[x] itself?

Current implementation EncounterDescription
<differential>
<element id="Extension">
<path value="Extension"/>
<short value="Description, overview or summary of an encounter"/>
<definition value="Description, overview or summary of a clinical event and its reasons."/>
<max value="1"/>
</element>
<element id="Extension.url">
<path value="Extension.url"/>
<fixedUri value="http://hl7.org.au/fhir/StructureDefinition/encounter-description"/>
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]"/>
<slicing>
<discriminator>
<type value="type"/>
<path value="$this"/>
</discriminator>
</slicing>
</element>
<element id="Extension.value[x]:valueString">
<path value="Extension.value[x]"/>
<sliceName value="valueString"/>
<short value="Encounter description"/>
<min value="1"/>
<type>
<code value="string"/>
</type>
</element>
</differential>

Proposed implementation EncounterDescription
<differential>
<element id="Extension">
<path value="Extension"/>
<short value="Description, overview or summary of an encounter"/>
<definition value="Description, overview or summary of a clinical event and its reasons."/>
<max value="1"/>
</element>
<element id="Extension.url">
<path value="Extension.url"/>
<fixedUri value="http://hl7.org.au/fhir/StructureDefinition/encounter-description"/>
</element>
<element id="Extension.value[x]">
<path value="Extension.value[x]"/>
<short value="Encounter description"/>
<type>
<code value="string"/>
</type>
</element>
</differential>

view this post on Zulip Danielle Tavares (Feb 23 2022 at 21:52):

Hi @Luud Slagter , great feedback!. We've noticed the same issue and have refactored the HL7 AU extensions as part of the ballot finalisation we're going through now. You should find that the latest continuous integration build of AU Base 2 does not have these issues, e.g. see http://build.fhir.org/ig/hl7au/au-fhir-base/StructureDefinition-encounter-description.html


Last updated: Apr 12 2022 at 19:14 UTC