{
  "resourceType": "StructureDefinition",
  "id": "ext-Context-EpisodeOfCare",
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">No narrative is provided for definitional resources. A human-readable rendering can be found in the implementation guide(s) where this resource is used.</div>"
  },
  "url": "http://nictiz.nl/fhir/StructureDefinition/ext-Context-EpisodeOfCare",
  "name": "ExtContextEpisodeOfCare",
  "title": "ext Context EpisodeOfCare",
  "status": "draft",
  "publisher": "Nictiz",
  "contact": [
    {
      "name": "Nictiz",
      "telecom": [
        {
          "system": "url",
          "value": "https://www.nictiz.nl",
          "use": "work"
        }
      ]
    }
  ],
  "description": "`Observation.context` and `MedicationRequest.context` have been renamed and remodeled in R4 to only contain a reference to Encounter. `MedicationStatement.context` and `MedicationAdministration.context` are a `0..1` reference to Encounter|EpisodeOfCare. This extension allows to add a reference to EpisodeOfCare (potentially next to a reference to an Encounter). From R5 onwards, this extension will likely be replaced by an HL7 core extension.",
  "purpose": "This extension provides a generic method to add a reference to an EpisodeOfCare resource.",
  "copyright": "Copyright and related rights waived via CC0, https://creativecommons.org/publicdomain/zero/1.0/. This does not apply to information from third parties, for example a medical terminology system. The implementer alone is responsible for identifying and obtaining any necessary licenses or authorizations to utilize third party IP in connection with the specification or otherwise.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Observation"
    },
    {
      "type": "element",
      "expression": "MedicationRequest"
    },
    {
      "type": "element",
      "expression": "MedicationAdministration.context"
    },
    {
      "type": "element",
      "expression": "MedicationStatement.context"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "http://nictiz.nl/fhir/StructureDefinition/ext-Context-EpisodeOfCare"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "short": "EpisodeOfCare",
        "definition": "Identifies the episode(s) of care that this resource is relevant to. Establishes the EpisodeOfCare as a 'grouper' of resources that are relevant to that episode.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare",
              "http://nictiz.nl/fhir/StructureDefinition/nl-core-EpisodeOfCare"
            ]
          }
        ]
      }
    ]
  }
}