{
  "resourceType": "StructureDefinition",
  "url": "http://electronichealth.se/fhir/StructureDefinition/NLLCareUnit",
  "name": "NLLCareUnit",
  "status": "draft",
  "description": "OLD! Denna profil skapades innan införande av fullmakter pausades i NLL 1.0 (maj 2021). This profile describes an organization in the form of a care unit (sv: vård- och omsorgsenhet). A care unit is related to one or many sub units (sv: arbetsställen).",
  "fhirVersion": "4.0.0",
  "mapping": [
    {
      "identity": "eHM",
      "uri": "http://electronichealth.se",
      "name": "The Swedish eHealth Agency",
      "comment": "NLL Information model as published by The Swedish eHealth Agency"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization",
        "path": "Organization",
        "short": "Used to represent a care unit that is a grantee for a consent",
        "mapping": [
          {
            "identity": "eHM",
            "map": "Fullmaktshanterande vård- och omsorgsenhet"
          }
        ]
      },
      {
        "id": "Organization.extension",
        "path": "Organization.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Organization.extension:registrationDate",
        "path": "Organization.extension",
        "sliceName": "registrationDate",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/RegistrationDate"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:registrationDate.value[x]:valueDate",
        "path": "Organization.extension.valueDate",
        "sliceName": "valueDate"
      },
      {
        "id": "Organization.extension:documentType",
        "path": "Organization.extension",
        "sliceName": "documentType",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/DocumentType"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:documentRefId",
        "path": "Organization.extension",
        "sliceName": "documentRefId",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/DocumentRefId"
            ]
          }
        ]
      },
      {
        "id": "Organization.extension:documentRefId.value[x]:valueString",
        "path": "Organization.extension.valueString",
        "sliceName": "valueString"
      },
      {
        "id": "Organization.extension:workplaceLocation",
        "path": "Organization.extension",
        "sliceName": "workplaceLocation",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://electronichealth.se/fhir/StructureDefinition/NLLWorkplaceLocation"
            ]
          }
        ]
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Organization.identifier:hsaId",
        "path": "Organization.identifier",
        "sliceName": "hsaId",
        "mapping": [
          {
            "identity": "eHM",
            "map": "Fullmaktshanterande vård- och omsorgsenhet.HSA-id"
          }
        ]
      },
      {
        "id": "Organization.identifier:hsaId.system",
        "path": "Organization.identifier.system",
        "fixedUri": "http://electronichealth.se/identifier/hsa_id"
      },
      {
        "id": "Organization.identifier:unitId",
        "path": "Organization.identifier",
        "sliceName": "unitId",
        "mapping": [
          {
            "identity": "eHM",
            "map": "Fullmaktshanterande vård- och omsorgsenhet.Enhets-id"
          }
        ]
      },
      {
        "id": "Organization.identifier:unitId.system",
        "path": "Organization.identifier.system",
        "fixedUri": "http://electronichealth.se/identifier/unit_id"
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "definition": "A name associated with the care unit (sv: namn på vård- och omsorgsenhet).",
        "mapping": [
          {
            "identity": "eHM",
            "language": "Sv",
            "map": "Fullmaktshanterande vård- och omsorgsenhet.Namn"
          }
        ]
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "definition": "CareUnit belongs to an organization (vård- och omsorgsgivare).",
        "mustSupport": false
      }
    ]
  }
}