<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="AppointmentABeReC" />
  <url value="https://www.alberta.ca/fhir/aberec/StructureDefinition/AppointmentABeReC" />
  <version value="1.1.0" />
  <name value="AppointmentABeReC" />
  <title value="Appointment (AB:eReC)" />
  <status value="draft" />
  <description value="This profile defines a set of constraints to the FHIR Appointment resource for use in Alberta eReferral and eConsult (AB:eReC). It re-profiles the CA-eReC Appointment profile and it includes constraints that represent the minimum expectations for the Appointment resource when used in the AB:eReC." />
  <fhirVersion value="4.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Appointment" />
  <baseDefinition value="http://fhir.infoway-inforoute.ca/io/CA-eReC/StructureDefinition/CA-eReC-Appointment" />
  <derivation value="constraint" />
  <differential>
    <element id="Appointment.identifier">
      <path value="Appointment.identifier" />
      <min value="1" />
      <max value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.identifier.system">
      <path value="Appointment.identifier.system" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.identifier.value">
      <path value="Appointment.identifier.value" />
      <min value="1" />
      <mustSupport value="true" />
    </element>
    <element id="Appointment.basedOn">
      <path value="Appointment.basedOn" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.alberta.ca/fhir/aberec/StructureDefinition/ServiceRequestABeReC" />
      </type>
    </element>
    <element id="Appointment.participant.actor">
      <path value="Appointment.participant.actor" />
      <type>
        <code value="Reference" />
        <targetProfile value="https://www.alberta.ca/fhir/aberec/StructureDefinition/PatientABeReC" />
        <targetProfile value="https://www.alberta.ca/fhir/aberec/StructureDefinition/PractitionerRoleABeReC" />
      </type>
    </element>
  </differential>
</StructureDefinition>