{
  "resourceType": "StructureDefinition",
  "id": "4bef8e64-d1d4-4496-b49f-e7e7df46b02b",
  "url": "https://cloudconnect.cognisantmd.com/fhir/StructureDefinition/Schedule",
  "name": "Schedule",
  "status": "draft",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "type": "Schedule",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Schedule",
  "description": "Schedules are used for OAB and schedule synchronization for the Ocean daysheet and kiosks. Note: these constraints extend the Canadian Baseline profile as a baseDefinition but avoid using it directly, due to a broken link in the Canadian registry.",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Schedule.id",
        "path": "Schedule.id",
        "definition": "This ID should match the schedule's database ID since it is used by subsequent lookups and references by Ocean. Do not use a human-readable schedule code or description here. Do not prefix the database ID in this field with 'Schedule/'."
      },
      {
        "id": "Schedule.name",
        "path": "Schedule.name",
        "short": "The name of the schedule.",
        "comment": "Schedule.name is not defined in FHIR R4, but is provided here because the substitute (Schedule.actor.display) may not be available in all cases, especialy when zero or multiple Practitioners are associated with a Schedule."
      },
      {
        "id": "Schedule.active",
        "path": "Schedule.active",
        "short": "active flag",
        "type": [
          {
            "code": "boolean"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Schedule.serviceCategory",
        "path": "Schedule.serviceCategory",
        "definition": "The category of service provided by the schedule. This code is typically 17, 'General Practice'. Check the example Schedule JSON for formatting. The complete list of codes is defined here: https://build.fhir.org/ig/HL7/UTG/ValueSet-service-category.html ",
        "mustSupport": true
      },
      {
        "id": "Schedule.serviceType",
        "path": "Schedule.serviceType",
        "definition": "The type of service provided by the schedule. This code is typically 124, 'General Practice', which gives this schedule default preference over other schedule service types. This is used to determine the default schedule to select for a patient during the online booking. Check the example Schedule JSON for formatting. The complete list of codes is defined here: https://terminology.hl7.org/3.1.0/CodeSystem-service-type.html ",
        "mustSupport": true
      },
      {
        "id": "Schedule.actor",
        "path": "Schedule.actor",
        "slicing": {
          "rules": "open"
        },
        "min": 1,
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/Practitioner",
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/PractitionerRole"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Schedule.actor.display",
        "path": "Schedule.actor.display",
        "min": 1,
        "mustSupport": true,
        "definition": "The actor display is used to display the title of the schedule in Ocean's configuration UI."
      },
      {
        "id": "Schedule.actor.practitioner",
        "path": "Schedule.actor.practitioner",
        "short": "The practitioner the schedule pertains to",
        "definition": "The provider (practitioner) for the schedule at the clinic.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://hl7.org/fhir/ca/baseline/StructureDefinition/Practitioner"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}