Closed dbojicic closed 9 months ago
This issue was fixed via PR https://github.com/hl7au/au-fhir-base/pull/812.
The issue and technical correction were assessed by @brettesler-ext and @dbojicic.
As externally defined extensions cannot have terminology applied directly to the extension by the IG referencing the extension, alternative solutions and considerations around each are listed below:
The correction was made implementing solution 1. Changes made in AU Base Patient resource:
<element id="Patient.extension:genderIdentity.valueCodeableConcept">
<path value="Patient.extension.valueCodeableConcept" />
<type>
<code value="CodeableConcept" />
</type>
<binding>
<strength value="extensible" />
<valueSet value="https://healthterminologies.gov.au/fhir/ValueSet/gender-identity-response-1" />
</binding>
</element>
<constraint>
<key value="inv-pat-1" />
<severity value="warning" />
<human value="Gender identity shall be a member of the Gender Identity Response value set if any of the codes within that value set can apply" />
<expression value="extension('http://hl7.org/fhir/StructureDefinition/patient-genderIdentity').empty() or extension('http://hl7.org/fhir/StructureDefinition/patient-genderIdentity').valueCodeableConcept.memberOf('https://healthterminologies.gov.au/fhir/ValueSet/gender-identity-response-1')"/>
<source value="http://hl7.org.au/fhir/StructureDefinition/au-patient" />
</constraint>
Minor related notes:
There is a technical problem with the way the binding is done, it should be on the extension, not the extension value.
Originally reported by @grahamegrieve in AU Base Patient - genderIdentity binding.