FHIR Extension

The FHIR extension allows you to extend the functionality of the resources to meet the business needs.

The FHIR extension consists of two parts: URL and a value element. The extension is uniquely identified using the value of the URL field. The extension holds data directly in the value[x] field where x denotes a FHIR data type or it can have nested extension fields.

The extension defined first acts similar to FHIR data types. Extensions can be reused in one or more profiles of resources as required.

  • The extensions can be at a resource level, the root structure of the resource.

  • The data types for the value of the extensions (x in value[x]) can be categorized into primitive and complex data types.

Prerequisites

Conformance resources (such as StructureDefinitions or SearchParameters), transactional, or terminology resources must have meta.profile in the request payload.

Restrictions

  • Extensions of type canonical are not supported.

  • Any update within the extension will not reflect in the profiles where that extension is used. You need to explicitly update the profile version to reflect the changes.

  • Search on extensions defined on primitive data type elements is not supported.

  • Search on extensions for choice data type (enabled for more than one data type) is not supported.

  • Search on extensions of data type having multiple profiles for a given element is not supported.