AuDigitalHealth / ci-fhir-stu3

Working drafts of HL7™ FHIR® Release 3 (STU) artefacts authored and maintained by the Clinical Informatics team at the Australian Digital Health Agency.
Other
11 stars 0 forks source link

Advance Care Planning Composition profile has bugs in 2 invariants using FHIRPath 'conformsTo' #57

Closed robeastwood-agency closed 4 years ago

robeastwood-agency commented 4 years ago

Prerequisites

The bug

In the Advance Care Planning composition profile (composition-acp-1), the invariants on the following 2 extensions have faulty FHIRPath expressions, related to the use of 'conformsTo'. The consequence of which is that acceptable content for these elements always fails to be valid against these invariants.

1) Element: Composition.extension:compositionAuthorRole

What I expected to happen

Acceptable content for this element shall be valid against these invariants. Unacceptable content for this element shall not be valid against these invariants.

The fix

The correct (and simplified) FHIRPath is (respectively):

valueReference.reference.resolve().conformsTo('http://ns.electronichealth.net.au/ci/fhir/3.0/StructureDefinition/practitioner-ident-1')
valueReference.reference.resolve().conformsTo('http://ns.electronichealth.net.au/ci/fhir/3.0/StructureDefinition/relatedperson-ident-1')

Screenshots

N/A

Workarounds

N/A

QA.html excerpt

N/A

Desktop (please complete the following information):

N/A

Additional context

N/A

SatyaYelisetti commented 4 years ago

Work is in progress to check if that invariants have relative FHIRPath.

SatyaYelisetti commented 4 years ago

The invariants have now been changed to have relative paths and are now under review.

SatyaYelisetti commented 4 years ago

Changes to the FHIRpath can now be found in the above commit of the structure definition.