{
  "resourceType": "StructureDefinition",
  "id": "Location",
  "url": "https://fhir.centraxx.de/StructureDefinition/PatientTransfer",
  "version": "2025.4.0",
  "name": "PatientTransfer",
  "status": "active",
  "publisher": "Kairos an IQVIA business",
  "description": "Represents a CentraXX patient transfer.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Location",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Location.extension",
        "path": "Location.extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "closed"
        },
        "min": 0,
        "max": "6",
        "type": [
          {
            "code": "Extension"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Location.extension:episode",
        "path": "Location.extension",
        "sliceName": "episode",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/patientTransfer/episode"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Location.extension:transferDate",
        "path": "Location.extension",
        "sliceName": "transferDate",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/patientTransfer/transferDate"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Location.extension:attendingDoctor",
        "path": "Location.extension",
        "sliceName": "attendingDoctor",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/patientTransfer/attendingDoctor"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Location.extension:currentLocation",
        "path": "Location.extension",
        "sliceName": "currentLocation",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/patientTransfer/currentLocation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Location.extension:priorLocation",
        "path": "Location.extension",
        "sliceName": "priorLocation",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "https://fhir.centraxx.de/extension/patientTransfer/priorLocation"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Location.type",
        "path": "Location.type",
        "min": 1,
        "patternCodeableConcept": {
          "coding": [
            {
              "system": "https://fhir.centraxx.de/system/locationType",
              "code": "PATIENT_TRANSFER"
            }
          ]
        },
        "mustSupport": true
      },
      {
        "id": "Location.managingOrganization",
        "path": "Location.managingOrganization",
        "mustSupport": true
      }
    ]
  }
}