<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://cgm.com/fhir/his/medico/r4/sd/pip/Schedule_PiPCalendar_1" />
  <name value="Schedule_PiPCalendar_1" />
  <status value="active" />
  <description value="This profile describes the calender related data to be exchanged with Patient Portal." />
  <fhirVersion value="4.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Schedule" />
  <baseDefinition value="https://gematik.de/fhir/isik/v2/Terminplanung/StructureDefinition/ISiKKalender" />
  <derivation value="constraint" />
  <differential>
    <element id="Schedule.id">
      <path value="Schedule.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;medico: PiPCalendar-#####, where ##### is the primary key" />
    </element>
    <element id="Schedule.meta">
      <path value="Schedule.meta" />
      <min value="1" />
    </element>
    <element id="Schedule.meta.lastUpdated">
      <path value="Schedule.meta.lastUpdated" />
      <mustSupport value="true" />
    </element>
    <element id="Schedule.meta.profile">
      <path value="Schedule.meta.profile" />
      <min value="1" />
      <max value="1" />
      <fixedCanonical value="https://cgm.com/fhir/his/medico/r4/sd/pip/Schedule_PiPCalendar_1" />
    </element>
    <element id="Schedule.identifier">
      <path value="Schedule.identifier" />
      <min value="1" />
    </element>
    <element id="Schedule.identifier.system">
      <path value="Schedule.identifier.system" />
      <comment value="Dynamically resolved for validation&#xD;&#xA;--FixedValue=https://cgm.com/fhir/his/medico/%KUNDE%/sid1/PiPCalendar" />
      <min value="1" />
    </element>
    <element id="Schedule.identifier.value">
      <path value="Schedule.identifier.value" />
      <min value="1" />
    </element>
    <element id="Schedule.actor">
      <path value="Schedule.actor" />
      <definition value="Slots that reference this schedule resource provide the availability details to these referenced resource(s).&#xD;&#xA;medico: a reference to an healthcareservice is required, the reference to a practitioner is optional" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
        <aggregation value="referenced" />
      </type>
    </element>
  </differential>
</StructureDefinition>