One key function of profiles is to modify the cardinality of an element. A profile can restrict an element's cardinality within its base structure.
The foundational FHIR structure defines the following types of cardinality:
With the following constraints:
Example of how to create a profile that makes the `Patient.name` field mandatory:
resourceType: StructureDefinition
url: http://example.org/fhir/StructureDefinition/patient-with-required-name
name: patient-profile
derivation: constraint
type: Patient
status: active
kind: resource
abstract: false
differential:
element:
- id: Patient.name
path: Patient.name
min: 1
max: "*"
Get in touch with us today!