Create Extensions Using FHIR Profiling
Create extensions using FHIR profiling to meet the business requirements.
To create an extension using FHIR profiling, perform the following steps:
-
Define an extension.
For more information, see Define the Extension
. -
Register an extension.
The defined extension is registered using FHIR packages. The defined extension is brought as part of a custom FHIR package. For more information, see Custom FHIR Package.
-
Use an extension in the instance of the resource.
For more information, see Use it in the Instance
.
Example
Let's consider a scenario where you need to store information about the patient being an organ donor or not. The default FHIR profile doesn't have such a field where this data can be stored, but you can extend it to include a new field for this purpose.
-
Define the extension to store the donor status.
-
Add the extension in the Patient profile.
-
Create an instance of the Patient resource and include donor status information. For example, a patient named Peter KM who is a donor.