Stream: implementers
Topic: Flag : Constraints
Chidamber Kumar (Mar 07 2020 at 10:43):
Hi.. Can someone explain flag constraints to me wrt Patient.contact? What constraints are attached to it ? Where such constraints, specific to elements, are defined ?
Mareike Przysucha (Mar 07 2020 at 13:32):
Hi.
When you look at https://www.hl7.org/fhir/patient.html, you find a subsection called "8.1.2.2 Constraints". There the constraint made to patient.contact
is explained. A general description of Contraints can be read at https://www.hl7.org/fhir/conformance-rules.html#constraints. For patient.contact
the constraint says "SHALL at least contain a contact's details or a reference to an organization". When you look at the fhirPath, you see that "contact's details" mean a name, a telecom, or an address.
Such constraints are defined in the StructureDefinition. You can define them when you profile a resource, e.g. with Forge.
Last updated: Apr 12 2022 at 19:14 UTC