hl7au / au-fhir-base

AU Base FHIR Implementation Guide Source
36 stars 26 forks source link

AU Base Patient - genderIdentity binding #815

Closed dbojicic closed 9 months ago

dbojicic commented 9 months ago

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.

dbojicic commented 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:

  1. adding an invariant on Patient resource to control genderIdentity extension terminology, triggering the same behaviour as the extensible binding
    • assessed as a suitable technical correction for the issue
    • aligns with the FHIRWG recommendation to use genderIdentity extension and local terminology
    • is as technical implementation of this recommendation using a different method in place of the original issue
  2. defining a local extension in AU Base IG and enforcing use of the local genderIdentity extension
    • assessed as not suitable as using a local extension would change the original intent as agreed by FHIRWG
    • would be considered as an option to be taken for FHIRWG discussion and agreement in case no other solution is identified
  3. defining a local extension in AU Base IG and enforcing genderIdentity extension to conform to the local one
    • assessed as not feasible technically

The correction was made implementing solution 1. Changes made in AU Base Patient resource: