FHIR Profiling
FHIR profiling allows you to extend and restrict the resources. You can extend the fields of any standard FHIR resource to address your business requirements.
When extending the standard fields for any resource, you create a new profile. You then have the option to extend this newly created profile to create another profile, in a hierarchical manner.
Prerequisites
You must bring the resource profiles using the REST APIs or FHIR packages. For more information, see Custom FHIR Package.
Profiling
To extend and restrict the resources, you can use constraints on existing data types. To use constraints, you can perform one of the following:
-
Cardinality Changes - Cardinality of an element can be restricted using profiles. For more information, see Changing Cardinality
. -
Slicing - Slicing is the only way to restrict on what data type is to be used. For more information, see Slicing
. -
Extension - Extend the functionality of the resource. For more information, see FHIR Extension.
Note
Within a constraint definition, the source field should have either of the two values, exact location where the original resource is defined or text #Type.