{
  "resourceType": "CodeSystem",
  "id": "extension-context-type",
  "meta": {
    "lastUpdated": "2026-07-03T14:29:03.795+00:00"
  },
  "text": {
    "status": "generated",
    "div": "\u003cdiv xmlns\u003d\"http://www.w3.org/1999/xhtml\"\u003e\u003cp class\u003d\"res-header-id\"\u003e\u003cb\u003eGenerated Narrative: CodeSystem extension-context-type\u003c/b\u003e\u003c/p\u003e\u003ca name\u003d\"extension-context-type\"\u003e \u003c/a\u003e\u003ca name\u003d\"hcextension-context-type\"\u003e \u003c/a\u003e\u003cp\u003eThis case-sensitive code system \u003ccode\u003ehttp://hl7.org/fhir/extension-context-type\u003c/code\u003e defines the following codes:\u003c/p\u003e\u003ctable class\u003d\"codes\"\u003e\u003ctr\u003e\u003ctd style\u003d\"white-space:nowrap\"\u003e\u003cb\u003eCode\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDisplay\u003c/b\u003e\u003c/td\u003e\u003ctd\u003e\u003cb\u003eDefinition\u003c/b\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd style\u003d\"white-space:nowrap\"\u003efhirpath\u003ca name\u003d\"extension-context-type-fhirpath\"\u003e \u003c/a\u003e\u003c/td\u003e\u003ctd\u003eFHIRPath\u003c/td\u003e\u003ctd\u003e\u003cdiv\u003e\u003cp\u003eThe context is all elements that match the FHIRPath query found in the expression.\u003c/p\u003e\n\u003c/div\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd style\u003d\"white-space:nowrap\"\u003eelement\u003ca name\u003d\"extension-context-type-element\"\u003e \u003c/a\u003e\u003c/td\u003e\u003ctd\u003eElement ID\u003c/td\u003e\u003ctd\u003e\u003cdiv\u003e\u003cp\u003eThe context is any element that has an ElementDefinition.id that matches that found in the expression.      This includes ElementDefinition Ids that have slicing identifiers, and also includes specialization logic (see \u003ca href\u003d\"defining-extensions.html#context\"\u003eExtension Context\u003c/a\u003e). The full path for the element is [url]#[elementid]. If there is no #, the Element id is one defined in the base specification. When an element has assigned type, the type is also an assigned id for this element, which means that the type can also be used here.\u003c/p\u003e\n\u003c/div\u003e\u003c/td\u003e\u003c/tr\u003e\u003ctr\u003e\u003ctd style\u003d\"white-space:nowrap\"\u003eextension\u003ca name\u003d\"extension-context-type-extension\"\u003e \u003c/a\u003e\u003c/td\u003e\u003ctd\u003eExtension URL\u003c/td\u003e\u003ctd\u003e\u003cdiv\u003e\u003cp\u003eThe context is a particular extension from a particular StructureDefinition, and the expression is just a uri that identifies the extension.\u003c/p\u003e\n\u003c/div\u003e\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\u003c/div\u003e"
  },
  "extension": [
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg",
      "valueCode": "fhir"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
      "valueCode": "normative"
    },
    {
      "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm",
      "valueInteger": 5
    }
  ],
  "url": "http://hl7.org/fhir/extension-context-type",
  "identifier": [
    {
      "system": "urn:ietf:rfc:3986",
      "value": "urn:oid:2.16.840.1.113883.4.642.4.1013"
    }
  ],
  "version": "6.0.0-ballot4",
  "name": "ExtensionContextType",
  "title": "Extension Context Type",
  "status": "active",
  "experimental": false,
  "date": "2021-01-05T10:01:24+11:00",
  "publisher": "HL7 (FHIR Project)",
  "contact": [
    {
      "telecom": [
        {
          "system": "url",
          "value": "http://hl7.org/fhir"
        },
        {
          "system": "email",
          "value": "fhir@lists.hl7.org"
        }
      ]
    }
  ],
  "description": "How an extension context is interpreted.",
  "jurisdiction": [
    {
      "coding": [
        {
          "system": "http://unstats.un.org/unsd/methods/m49/m49.htm",
          "code": "001",
          "display": "World"
        }
      ]
    }
  ],
  "caseSensitive": true,
  "valueSet": "http://hl7.org/fhir/ValueSet/extension-context-type",
  "content": "complete",
  "concept": [
    {
      "code": "fhirpath",
      "display": "FHIRPath",
      "definition": "The context is all elements that match the FHIRPath query found in the expression."
    },
    {
      "code": "element",
      "display": "Element ID",
      "definition": "The context is any element that has an ElementDefinition.id that matches that found in the expression.      This includes ElementDefinition Ids that have slicing identifiers, and also includes specialization logic (see [Extension Context](defining-extensions.html#context)). The full path for the element is [url]#[elementid]. If there is no #, the Element id is one defined in the base specification. When an element has assigned type, the type is also an assigned id for this element, which means that the type can also be used here."
    },
    {
      "code": "extension",
      "display": "Extension URL",
      "definition": "The context is a particular extension from a particular StructureDefinition, and the expression is just a uri that identifies the extension."
    }
  ]
}