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