<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://cgm.com/fhir/his/clinical/r4/sd/pip/Appointment_PiPAppointment_1" />
  <name value="Appointment_PiPAppointment_1" />
  <status value="draft" />
  <description value="This profile describes the appointment related data to be exchanged with Patient Portal." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Appointment" />
  <baseDefinition value="https://gematik.de/fhir/isik/v2/Terminplanung/StructureDefinition/ISiKTermin" />
  <derivation value="constraint" />
  <differential>
    <element id="Appointment.id">
      <path value="Appointment.id" />
      <definition value="The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.&#xD;&#xA;clinical: PiPAppointment.id where id is the primary key. In case the appointment is sent to clinical to be created, id would be empty." />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.meta">
      <path value="Appointment.meta" />
    </element>
    <element id="Appointment.meta.lastUpdated">
      <path value="Appointment.meta.lastUpdated" />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.meta.profile">
      <path value="Appointment.meta.profile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="https://cgm.com/fhir/his/clinical/r4/sd/pip/Appointment_PiPAppointment_1" />
    </element>
    <element id="Appointment.identifier">
      <path value="Appointment.identifier" />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.identifier.system">
      <path value="Appointment.identifier.system" />
      <comment value="Dynamically resolved for validation&#xD;&#xA;--FixedValue=https://cgm.com/fhir/his/clinical/%KUNDE%/sid1/PiPAppointment" />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.identifier.value">
      <path value="Appointment.identifier.value" />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.participant:AkteurMedizinischeBehandlungseinheit">
      <path value="Appointment.participant" />
      <sliceName value="AkteurMedizinischeBehandlungseinheit" />
      <min value="1" />
      <max value="1" />
    </element>
  </differential>
</StructureDefinition>