{
  "resourceType": "StructureDefinition",
  "id": "34b19469-7cc4-4bd8-a8f6-2afdeb6ba36b",
  "meta": {
    "lastUpdated": "2022-03-18T09:50:10.013+00:00"
  },
  "url": "https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1",
  "version": "1.0.0",
  "name": "common-hsaHierarchy",
  "status": "draft",
  "date": "2022-03-10T07:31:16.1871406+00:00",
  "publisher": "Common FHIR profile vendor collaboration",
  "description": "This extension is used to describe a healthcare unit's Swedish HSA hierarchy. There are two important levels in the hierarchy:\r\n\r\nHSA Vårdgivare (eng HSA Care Provider) - This is often a region or private healthcare provider and the highest defined level in the hierarchy.\r\nHSA Vårdenhet (eng HSA Department) - This is often a department within a region or private healthcare provider and the lower defined level in the hierarchy.\r\nAll official healthcare units in Sweden will have a representation in the national HSA catalogue, and all will have a relationship to a parent HSA Vårdenhet (lower level) and/or HSA Vårdgivare (highest level).\r\n\r\nThis can among other things be used to evaluate PDL (Patientdatalagen, eng Patient Data Law) rules.",
  "purpose": "The extension can be used for use cases related to PDL. E.g. used to indicate to which care provider and care unit a set of information belongs, which can be used to evaluate access according to PDL.",
  "fhirVersion": "4.0.1",
  "kind": "complex-type",
  "abstract": false,
  "context": [
    {
      "type": "element",
      "expression": "Resource"
    },
    {
      "type": "element",
      "expression": "Element"
    }
  ],
  "type": "Extension",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Extension",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Extension.extension",
        "path": "Extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 0
      },
      {
        "id": "Extension.extension:hsaCareProvider",
        "path": "Extension.extension",
        "sliceName": "hsaCareProvider",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Extension.extension:hsaCareProvider.url",
        "path": "Extension.extension.url",
        "fixedUri": "hsaCareProvider"
      },
      {
        "id": "Extension.extension:hsaCareProvider.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:hsaCareProvider.value[x].type",
        "path": "Extension.extension.value[x].type",
        "fixedUri": "Organization"
      },
      {
        "id": "Extension.extension:hsaCareProvider.value[x].identifier.use",
        "path": "Extension.extension.value[x].identifier.use",
        "fixedCode": "official"
      },
      {
        "id": "Extension.extension:hsaCareProvider.value[x].identifier.system",
        "path": "Extension.extension.value[x].identifier.system",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.4.1"
      },
      {
        "id": "Extension.extension:hsaCareProvider.value[x].identifier.value",
        "path": "Extension.extension.value[x].identifier.value",
        "min": 1
      },
      {
        "id": "Extension.extension:hsaCareUnit",
        "path": "Extension.extension",
        "sliceName": "hsaCareUnit",
        "min": 0,
        "max": "1"
      },
      {
        "id": "Extension.extension:hsaCareUnit.url",
        "path": "Extension.extension.url",
        "fixedUri": "hsaCareUnit"
      },
      {
        "id": "Extension.extension:hsaCareUnit.value[x]",
        "path": "Extension.extension.value[x]",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Extension.extension:hsaCareUnit.value[x].type",
        "path": "Extension.extension.value[x].type",
        "fixedUri": "Organization"
      },
      {
        "id": "Extension.extension:hsaCareUnit.value[x].identifier.use",
        "path": "Extension.extension.value[x].identifier.use",
        "fixedCode": "official"
      },
      {
        "id": "Extension.extension:hsaCareUnit.value[x].identifier.system",
        "path": "Extension.extension.value[x].identifier.system",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.4.1"
      },
      {
        "id": "Extension.extension:hsaCareUnit.value[x].identifier.value",
        "path": "Extension.extension.value[x].identifier.value",
        "min": 1
      },
      {
        "id": "Extension.url",
        "path": "Extension.url",
        "fixedUri": "https://commonprofiles.care/StructureDefinition/common-hsaHierarchy/v1"
      },
      {
        "id": "Extension.value[x]",
        "path": "Extension.value[x]",
        "max": "0"
      }
    ]
  }
}