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 - missing constraints on elements with a Reference #63

Closed dtr-agency closed 4 years ago

dtr-agency commented 4 years ago

Prerequisites

The issue / feature

Change description

The Advance Care Planning Composition is missing constraints on elements with a logical type of Reference.

Without a constraint on Reference there is a wide range of values that are accepted as passing validation, some of which are undesirable. For example,

Add constraints on Composition elements of type Reference where additional constraints are desired for the use case:

This is expected to be:

What it actually enables people to do

Enables consistent implementation and validation of meaningful data that serves the use case. Provides clarification of how to support the expected usage scenarios.

Mockups

Not available.

How awesome would it be?

Highly desirable - the design is incomplete without these constraints. This issue must addressed at some stage prior to release for implementation.

Workarounds

This missing design feature may be addressed in the STU3 profile by documentation of a known issue rather than adding invariants to the Composition. Or possibly a mix of both, addition of some invariants / constraints and a known issue covering off the other invariants not included in the STU3 profile. Example known issue content

Reference Description Issue No.
subject The design of this element is incomplete. In the future it is intended subject shall be constrained to at least have a reference or an identifier with at least a system and a value. See ci-fhir-stu3/issues/63
attester.party The design of this element is incomplete. In the future it is intended party.Reference shall be constrained to at least have a reference or an identifier with at least a system and a value. See ci-fhir-stu3/issues/63

...

Additional context

composition-sml-prac-1 is an example of a Composition with these constraints in place including functioning FHIRPath expression.

SatyaYelisetti commented 4 years ago

Work is in progress to add invariants to cater for the design features of elements subject and attester.party.

SatyaYelisetti commented 4 years ago

The invariants for both the elements have now been added and are out for review.

SatyaYelisetti commented 4 years ago

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