{
  "resourceType": "StructureDefinition",
  "id": "hc-schedule",
  "url": "https://integrator.healthconnected.nl/StructureDefinition/hc-schedule",
  "name": "HcSchedule",
  "title": "HcSchedule",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Schedule",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Schedule",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Schedule.id",
        "path": "Schedule.id",
        "min": 1
      },
      {
        "id": "Schedule.actor",
        "path": "Schedule.actor",
        "slicing": {
          "discriminator": [
            {
              "type": "pattern",
              "path": "actor"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Schedule.actor:patientActor",
        "path": "Schedule.actor",
        "sliceName": "patientActor",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/StructureDefinition/Patient"
            ]
          }
        ]
      },
      {
        "id": "Schedule.actor:scheduleTypeActor",
        "path": "Schedule.actor",
        "sliceName": "scheduleTypeActor",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://integrator.healthconnected.nl/StructureDefinition/hc-schedule-type"
            ]
          }
        ]
      },
      {
        "id": "Schedule.actor:scheduleTypeActor.display",
        "path": "Schedule.actor.display",
        "min": 1
      },
      {
        "id": "Schedule.actor:appointmentTypeActor",
        "path": "Schedule.actor",
        "sliceName": "appointmentTypeActor",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "https://integrator.healthconnected.nl/StructureDefinition/hc-appointment-type"
            ]
          }
        ]
      },
      {
        "id": "Schedule.actor:appointmentTypeActor.display",
        "path": "Schedule.actor.display",
        "min": 1
      },
      {
        "id": "Schedule.comment",
        "path": "Schedule.comment",
        "short": "Name of the schedule",
        "min": 1
      }
    ]
  }
}