{
  "resourceType": "StructureDefinition",
  "id": "fdc9ba79-8ae5-425c-8581-824b336dbe00",
  "meta": {
    "lastUpdated": "2021-10-11T13:47:41.34+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/BasicUnitOutlierSituationSe/v1",
  "name": "BasicUnitOutlierSituationSe",
  "status": "draft",
  "date": "2021-10-11T13:43:20.7972491Z",
  "description": "The number of patients of a given medical responsible unit outlying at another unit.\r\n\r\nAn outlier is a patient who is  admitted at a ward that do not belong to the medical responsible unit which the patient belongs to. The ward which the patient is located at has another medical responsibility. \r\n\r\nThe intended use is to get the outliers for a specified medical responsible unit.  Therefore, the organization in the call must be a medical resposnible unit.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Basic",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Basic",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Basic.extension",
        "path": "Basic.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Basic.extension:outliers",
        "path": "Basic.extension",
        "sliceName": "outliers",
        "definition": "An outlier is a patient placed on ward that is not the serving unit of the medical responsible unit of the patient.\r\nA reason for outlying patients can be that the wards that serves a specific medical responsibility is full\r\nor crowded.\r\n\r\nE.g., A patient whose responsibility is with unit X is placed in ward Y. If ward Y is not a serving unit of unit X\r\nthen;\r\n\r\nThe patient is outlying from the unit X\r\nThe patient is outlying to (inlier to) the ward Y.",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.cambio.se/StructureDefinition/unitBedSituation-outliers/v1"
            ]
          }
        ]
      },
      {
        "id": "Basic.extension:outliers.extension",
        "path": "Basic.extension.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        },
        "min": 3
      },
      {
        "id": "Basic.extension:outliers.extension:outlyingToUnitId",
        "path": "Basic.extension.extension",
        "sliceName": "outlyingToUnitId",
        "definition": "Id of the unit to which the patient(s) is outlying.",
        "min": 1
      },
      {
        "id": "Basic.identifier",
        "path": "Basic.identifier",
        "max": "0"
      },
      {
        "id": "Basic.code.coding",
        "path": "Basic.code.coding",
        "max": "1"
      },
      {
        "id": "Basic.code.text",
        "path": "Basic.code.text",
        "min": 1,
        "fixedString": "UnitOutlierSituation"
      },
      {
        "id": "Basic.subject",
        "path": "Basic.subject",
        "definition": "The Unit that the Bed overview represent",
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Organization"
            ]
          }
        ]
      },
      {
        "id": "Basic.subject.type",
        "path": "Basic.subject.type",
        "min": 1,
        "fixedUri": "Organization"
      },
      {
        "id": "Basic.subject.identifier",
        "path": "Basic.subject.identifier",
        "min": 1
      },
      {
        "id": "Basic.subject.identifier.system",
        "path": "Basic.subject.identifier.system",
        "definition": "The URN of the HSA-ID catalogue",
        "min": 1,
        "fixedUri": "urn:oid:1.2.752.129.2.1.4.1"
      },
      {
        "id": "Basic.subject.identifier.value",
        "path": "Basic.subject.identifier.value",
        "definition": "The HSA-ID of the Unit",
        "min": 1
      },
      {
        "id": "Basic.author",
        "path": "Basic.author",
        "max": "0"
      }
    ]
  }
}