{
  "resourceType": "StructureDefinition",
  "id": "hospitalappointment-profile",
  "url": "http://fhir.xt.dev/StructureDefinition/HospitalAppointment",
  "version": "1.0.0",
  "name": "HospitalAppointment",
  "status": "active",
  "date": "2025-10-24T13:38:32.6207724+00:00",
  "publisher": "x-tention Informationstechnologie GmbH",
  "contact": [
    {
      "telecom": [
        {
          "system": "email",
          "value": "fhir.profiling@x-tention.com",
          "use": "work"
        }
      ]
    }
  ],
  "description": "HospitalAppointments are appointments that are not managed in Timerbee. They are currently always provider-booked appointments.",
  "copyright": "x-tention Informationstechnologie GmbH",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://fhir.xt.dev/StructureDefinition/BaseAppointment",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Appointment.identifier:primaryAppointmentID",
        "path": "Appointment.identifier",
        "sliceName": "primaryAppointmentID"
      },
      {
        "id": "Appointment.identifier:primaryAppointmentID.type.coding:timerbeeTypeCode",
        "path": "Appointment.identifier.type.coding",
        "sliceName": "timerbeeTypeCode",
        "max": "0"
      },
      {
        "id": "Appointment.identifier:primaryAppointmentID.type.coding:hisAppointmentTypeCode",
        "path": "Appointment.identifier.type.coding",
        "sliceName": "hisAppointmentTypeCode",
        "min": 1
      },
      {
        "id": "Appointment.supportingInformation:unverifiedPatientData",
        "path": "Appointment.supportingInformation",
        "sliceName": "unverifiedPatientData",
        "max": "0"
      },
      {
        "id": "Appointment.participant:unverifiedPatient",
        "path": "Appointment.participant",
        "sliceName": "unverifiedPatient",
        "max": "0"
      },
      {
        "id": "Appointment.participant:verifiedPatient",
        "path": "Appointment.participant",
        "sliceName": "verifiedPatient",
        "min": 1
      },
      {
        "id": "Appointment.participant:bookableHealthcareService",
        "path": "Appointment.participant",
        "sliceName": "bookableHealthcareService",
        "min": 1
      },
      {
        "id": "Appointment.participant:noRecordPatient",
        "path": "Appointment.participant",
        "sliceName": "noRecordPatient",
        "max": "0"
      }
    ]
  }
}