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

Patient profiles: add constraints on references #44

Closed robeastwood-agency closed 5 years ago

robeastwood-agency commented 5 years ago

Prerequisites

The issue / feature

Change description

This ticket applies to STU3 patient-dh-base-1, patient-ident-1, patient-ihi-1. It is to apply the fixes and design changes identified from recent R4 work. Specifically to ensure that high-quality references are included.

The Reference datatype has 3 optional child elements, reference, identifier and display. However, a valid instance may only include just an extension, which we have decided is insufficient to represent a quality reference.

This affects the 3 elements in patient profiles:

The change is to add an invariant at the level of the parent to the above elements, such that

If present, a contact's organisation shall at least have a reference, an identifier or a display If present, a general practitioner shall at least have a reference, an identifier or a display If present, a managing organisation shall at least have a reference, an identifier or a display

What it actually enables people to do

This enables instances of Patient resources, complying with these profiles, to represent quality references.

Mockups

N/A

How awesome would it be?

It will improve the quality of data contained in these resources.

Workarounds

N/A

Additional context

N/A

robeastwood-agency commented 5 years ago

This work has been addressed via commit https://github.com/AuDigitalHealth/ci-fhir-stu3/commit/a3f794c622558c88d412272ab353412aec9034ae