{
  "resourceType": "StructureDefinition",
  "text": {
    "status": "empty",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\" />"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Appointment",
  "version": "v0.10.0",
  "name": "EReferralAppointment",
  "title": "Appointment",
  "status": "draft",
  "description": "A booking of a healthcare event among patient(s), practitioner(s), related person(s) and/or device(s) for a specific date/time. This may result in one or more Encounter(s).",
  "fhirVersion": "4.0.0",
  "kind": "resource",
  "abstract": false,
  "type": "Appointment",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Appointment",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Appointment.meta",
        "path": "Appointment.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Appointment.meta.profile",
        "path": "Appointment.meta.profile",
        "comment": "#### **_` FOR eREFERRAL USAGE: The meta.profile = http://ehealthontario.ca/fhir/StructureDefinition/ca-on-eReferral-profile-Appointment|1.0.0 `_**\r\n\r\nIt is up to the server and/or other infrastructure of policy to determine whether/how these claims are verified and/or updated over time.  The list of profile URLs is a set.",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Appointment.text",
        "path": "Appointment.text",
        "mustSupport": true
      },
      {
        "id": "Appointment.text.status",
        "path": "Appointment.text.status",
        "mustSupport": true
      },
      {
        "id": "Appointment.text.div",
        "path": "Appointment.text.div",
        "mustSupport": true
      },
      {
        "id": "Appointment.status",
        "path": "Appointment.status",
        "mustSupport": true
      },
      {
        "id": "Appointment.appointmentType",
        "path": "Appointment.appointmentType",
        "mustSupport": true,
        "binding": {
          "strength": "preferred",
          "valueSet": "https://www.hl7.org/fhir/v2/0276/index.html"
        }
      },
      {
        "id": "Appointment.appointmentType.coding",
        "path": "Appointment.appointmentType.coding",
        "mustSupport": true
      },
      {
        "id": "Appointment.appointmentType.coding.system",
        "path": "Appointment.appointmentType.coding.system",
        "mustSupport": true
      },
      {
        "id": "Appointment.appointmentType.coding.code",
        "path": "Appointment.appointmentType.coding.code",
        "mustSupport": true
      },
      {
        "id": "Appointment.appointmentType.coding.display",
        "path": "Appointment.appointmentType.coding.display",
        "mustSupport": true
      },
      {
        "id": "Appointment.description",
        "path": "Appointment.description",
        "mustSupport": true
      },
      {
        "id": "Appointment.start",
        "path": "Appointment.start",
        "mustSupport": true
      },
      {
        "id": "Appointment.end",
        "path": "Appointment.end",
        "mustSupport": true
      },
      {
        "id": "Appointment.minutesDuration",
        "path": "Appointment.minutesDuration",
        "mustSupport": true
      },
      {
        "id": "Appointment.created",
        "path": "Appointment.created",
        "mustSupport": true
      },
      {
        "id": "Appointment.comment",
        "path": "Appointment.comment",
        "mustSupport": true
      },
      {
        "id": "Appointment.patientInstruction",
        "path": "Appointment.patientInstruction",
        "mustSupport": true
      },
      {
        "id": "Appointment.basedOn",
        "path": "Appointment.basedOn",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/ereferral-ontario/ereferralservicerequest"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Appointment.basedOn.reference",
        "path": "Appointment.basedOn.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Appointment.participant",
        "path": "Appointment.participant",
        "mustSupport": true
      },
      {
        "id": "Appointment.participant.actor",
        "path": "Appointment.participant.actor",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://simplifier.net/ereferral-ontario/ereferralpractitionerrole",
              "https://simplifier.net/ereferral-ontario/ereferrallocation",
              "https://simplifier.net/ereferral-ontario/ereferralpatient"
            ],
            "aggregation": [
              "referenced"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Appointment.participant.required",
        "path": "Appointment.participant.required",
        "mustSupport": true
      },
      {
        "id": "Appointment.participant.status",
        "path": "Appointment.participant.status",
        "mustSupport": true
      },
      {
        "id": "Appointment.participant.period",
        "path": "Appointment.participant.period",
        "mustSupport": true
      },
      {
        "id": "Appointment.participant.period.start",
        "path": "Appointment.participant.period.start",
        "mustSupport": true
      },
      {
        "id": "Appointment.participant.period.end",
        "path": "Appointment.participant.period.end",
        "mustSupport": true
      },
      {
        "id": "Appointment.requestedPeriod",
        "path": "Appointment.requestedPeriod",
        "mustSupport": true
      },
      {
        "id": "Appointment.requestedPeriod.start",
        "path": "Appointment.requestedPeriod.start",
        "mustSupport": true
      },
      {
        "id": "Appointment.requestedPeriod.end",
        "path": "Appointment.requestedPeriod.end",
        "mustSupport": true
      }
    ]
  }
}