<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Mxx-HealthHub-SchedulerConfiguration" />
  <url value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_SchedulerConfiguration" />
  <version value="1.5.0" />
  <name value="Mxx_HealthHub_SchedulerConfiguration" />
  <status value="active" />
  <publisher value="medatixx GmbH &amp; Co. KG" />
  <copyright value="medatixx GmbH &amp; Co. KG" />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Schedule" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Schedule" />
  <derivation value="constraint" />
  <differential>
    <element id="Schedule.extension">
      <path value="Schedule.extension" />
      <min value="1" />
    </element>
    <element id="Schedule.extension:mxxHealthHubSchedulerSearchConfiguration">
      <path value="Schedule.extension" />
      <sliceName value="mxxHealthHubSchedulerSearchConfiguration" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_SchedulerSearchConfiguration" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Schedule.extension:mxxHealthHubAppointmentsRequireConfirmation">
      <path value="Schedule.extension" />
      <sliceName value="mxxHealthHubAppointmentsRequireConfirmation" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AppointmentsRequireConfirmation" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Schedule.modifierExtension">
      <path value="Schedule.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Schedule.identifier">
      <path value="Schedule.identifier" />
      <max value="0" />
    </element>
    <element id="Schedule.active">
      <path value="Schedule.active" />
      <min value="1" />
    </element>
    <element id="Schedule.serviceCategory">
      <path value="Schedule.serviceCategory" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Schedule.serviceCategory.coding">
      <path value="Schedule.serviceCategory.coding" />
      <max value="0" />
    </element>
    <element id="Schedule.serviceCategory.text">
      <path value="Schedule.serviceCategory.text" />
      <short value="Configuration name" />
      <definition value="Name of the configuration to allow identification in the partner system" />
      <min value="1" />
    </element>
    <element id="Schedule.serviceType">
      <path value="Schedule.serviceType" />
      <short value="Concept - reference to a terminology or just  text" />
      <definition value="The type of the appointment to be booked, e.g. &quot;General Consultation&quot;, &quot;Blood Test&quot;, &quot;Vaccination&quot;, etc." />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_HealthcareService" />
      </type>
    </element>
    <element id="Schedule.specialty">
      <path value="Schedule.specialty" />
      <max value="0" />
    </element>
    <element id="Schedule.actor">
      <path value="Schedule.actor" />
      <slicing>
        <discriminator>
          <type value="value" />
          <path value="extension('https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AppointmentResourceType').value.code" />
        </discriminator>
        <rules value="open" />
      </slicing>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
      </type>
    </element>
    <element id="Schedule.actor:practitioners">
      <path value="Schedule.actor" />
      <sliceName value="practitioners" />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_Practitioner" />
      </type>
    </element>
    <element id="Schedule.actor:practitioners.extension">
      <path value="Schedule.actor.extension" />
      <min value="1" />
    </element>
    <element id="Schedule.actor:practitioners.extension:mxxHealthHubAppointmentResourceType">
      <path value="Schedule.actor.extension" />
      <sliceName value="mxxHealthHubAppointmentResourceType" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AppointmentResourceType" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Schedule.actor:practitioners.extension:mxxHealthHubAppointmentResourceType.value[x].code">
      <path value="Schedule.actor.extension.value[x].code" />
      <fixedCode value="practitioner" />
    </element>
    <element id="Schedule.actor:practitioners.reference">
      <path value="Schedule.actor.reference" />
      <min value="1" />
    </element>
    <element id="Schedule.actor:practitioners.type">
      <path value="Schedule.actor.type" />
      <max value="0" />
    </element>
    <element id="Schedule.actor:practitioners.identifier">
      <path value="Schedule.actor.identifier" />
      <max value="0" />
    </element>
    <element id="Schedule.actor:practitioners.display">
      <path value="Schedule.actor.display" />
      <min value="1" />
    </element>
    <element id="Schedule.actor:practitioners.display.extension:mxxHealthHubMailName">
      <path value="Schedule.actor.display.extension" />
      <sliceName value="mxxHealthHubMailName" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MailName" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Schedule.actor:assistants">
      <path value="Schedule.actor" />
      <sliceName value="assistants" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_User" />
      </type>
    </element>
    <element id="Schedule.actor:assistants.extension">
      <path value="Schedule.actor.extension" />
      <min value="1" />
    </element>
    <element id="Schedule.actor:assistants.extension:mxxHealthHubAppointmentResourceType">
      <path value="Schedule.actor.extension" />
      <sliceName value="mxxHealthHubAppointmentResourceType" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_AppointmentResourceType" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Schedule.actor:assistants.extension:mxxHealthHubAppointmentResourceType.value[x].code">
      <path value="Schedule.actor.extension.value[x].code" />
      <fixedCode value="assistant" />
    </element>
    <element id="Schedule.actor:assistants.reference">
      <path value="Schedule.actor.reference" />
      <min value="1" />
    </element>
    <element id="Schedule.actor:assistants.type">
      <path value="Schedule.actor.type" />
      <max value="0" />
    </element>
    <element id="Schedule.actor:assistants.identifier">
      <path value="Schedule.actor.identifier" />
      <max value="0" />
    </element>
    <element id="Schedule.actor:assistants.display">
      <path value="Schedule.actor.display" />
      <min value="1" />
    </element>
    <element id="Schedule.actor:assistants.display.extension:mxxHealthHubMailName">
      <path value="Schedule.actor.display.extension" />
      <sliceName value="mxxHealthHubMailName" />
      <max value="1" />
      <type>
        <code value="Extension" />
        <profile value="https://fhir.medatixx.de/HealthHub/StructureDefinition/Mxx_HealthHub_MailName" />
      </type>
      <isModifier value="false" />
    </element>
    <element id="Schedule.planningHorizon">
      <path value="Schedule.planningHorizon" />
      <max value="0" />
    </element>
    <element id="Schedule.comment">
      <path value="Schedule.comment" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>