FHIR Extension Data Type (R5)

Extension adds data that the base specification doesn't define. Element table, example JSON and FHIRPath for FHIR R5.

  • FHIR Extension Data Type (R5) — part of the free FHIR Toolbox library.
  • Runs entirely in your browser: your FHIR data is never uploaded to a server.

Overview

Extension adds data that the base specification doesn't define. Each has a url that identifies its definition and exactly one value[x] (or nested extensions). Modifier extensions use modifierExtension and change the meaning of the resource.

Elements

ElementTypeCardinalityDescription
Extension.urlString1..1identifies the meaning of the extension
Extension.value[x]base64Binary | boolean | canonical | code | date | dateTime | decimal | id | instant | integer | integer64 | markdown | oid | positiveInt | string | time | unsignedInt | uri | url | uuid | Address | Age | Annotation | Attachment | CodeableConcept | CodeableReference | Coding | ContactPoint | Count | Distance | Duration | HumanName | Identifier | Money | Period | Quantity | Range | Ratio | RatioRange | Reference | SampledData | Signature | Timing | ContactDetail | DataRequirement | Expression | ParameterDefinition | RelatedArtifact | TriggerDefinition | UsageContext | Availability | ExtendedContactDetail | Dosage | Meta0..1Value of extension

Example JSON (R5)

{
  "url": "http://hl7.org/fhir/StructureDefinition/patient-birthPlace",
  "valueAddress": {
    "city": "Boston",
    "state": "MA",
    "country": "US"
  }
}

FHIRPath

  • Patient.extension('http://hl7.org/fhir/StructureDefinition/patient-birthPlace').value — Read an extension's value

FHIR Toolbox is a free, privacy-first collection of HL7 FHIR utilities by Omindra Labs. Every tool performs zero-server processing — your health data never leaves your device.