{
  "resourceType": "StructureDefinition",
  "id": "Schedule-my-core",
  "url": "http://fhir.hie.moh.gov.my/StructureDefinition/Schedule-my-core",
  "version": "1.0.0",
  "name": "ScheduleMyCore",
  "title": "Schedule (MY Core)",
  "status": "active",
  "date": "2024-03-13T01:41:41.3395961+00:00",
  "description": "A container for slots of time that may be available for booking appointments.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Schedule",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Schedule",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Schedule.extension",
        "path": "Schedule.extension",
        "min": 1
      },
      {
        "id": "Schedule.extension:scheduleType",
        "path": "Schedule.extension",
        "sliceName": "scheduleType",
        "short": "Extension about the type of schedule",
        "definition": "Extension about the type of schedule",
        "min": 1,
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.hie.moh.gov.my/StructureDefinition/schedule-type-my-core"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Schedule.extension:addressState",
        "path": "Schedule.extension",
        "sliceName": "addressState",
        "short": "Extension to store address state in a Codeable Concept",
        "definition": "Extension to store address state in a Codeable Concept",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.hie.moh.gov.my/StructureDefinition/address-state-my-core"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Schedule.extension:addressDistrict",
        "path": "Schedule.extension",
        "sliceName": "addressDistrict",
        "short": "Extension to store district address in the form of a Codeable Concept",
        "definition": "Extension to store district address in the form of a Codeable Concept",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.hie.moh.gov.my/StructureDefinition/address-district-my-core"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Schedule.extension:schedulePosition",
        "path": "Schedule.extension",
        "sliceName": "schedulePosition",
        "short": "Extension about the Global Positioning System (GPS) position in a Schedule",
        "definition": "Extension about the Global Positioning System (GPS) position in a Schedule",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.hie.moh.gov.my/StructureDefinition/schedule-position-my-core"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Schedule.extension:audit",
        "path": "Schedule.extension",
        "sliceName": "audit",
        "short": "Extension of the individual who recorded and updated the date",
        "definition": "Extension of the individual who recorded and updated the date",
        "comment": "Record audit on individual who recorded and updated the data",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.hie.moh.gov.my/StructureDefinition/audit-my-core"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Schedule.extension:serviceProvider",
        "path": "Schedule.extension",
        "sliceName": "serviceProvider",
        "short": "Extension to reference the custodian of this Resource",
        "definition": "Extension to reference the custodian of this Resource",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.hie.moh.gov.my/StructureDefinition/service-provider-my-core"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Schedule.extension:requireApproval",
        "path": "Schedule.extension",
        "sliceName": "requireApproval",
        "short": "Whether an appointment booked under this schedule requires approval from the provider side prior booking",
        "definition": "Whether an appointment booked under this schedule requires approval from the provider side prior booking",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://fhir.hie.moh.gov.my/StructureDefinition/require-approval-my-core"
            ]
          }
        ],
        "isModifier": false
      },
      {
        "id": "Schedule.serviceCategory",
        "path": "Schedule.serviceCategory",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "coding.system"
            }
          ],
          "rules": "open"
        },
        "min": 1,
        "binding": {
          "strength": "example",
          "valueSet": "http://fhir.hie.moh.gov.my/ValueSet/encounter-class-my-core"
        }
      },
      {
        "id": "Schedule.serviceCategory:encounterClass",
        "path": "Schedule.serviceCategory",
        "sliceName": "encounterClass",
        "binding": {
          "strength": "example",
          "valueSet": "http://fhir.hie.moh.gov.my/ValueSet/encounter-class-my-core"
        }
      },
      {
        "id": "Schedule.serviceCategory:encounterClass.coding.system",
        "path": "Schedule.serviceCategory.coding.system",
        "fixedUri": "http://fhir.hie.moh.gov.my/ValueSet/encounter-class-my-core"
      },
      {
        "id": "Schedule.serviceCategory:serviceRequestCategory",
        "path": "Schedule.serviceCategory",
        "sliceName": "serviceRequestCategory",
        "binding": {
          "strength": "example",
          "valueSet": "http://fhir.hie.moh.gov.my/ValueSet/servicerequest-category-my-core"
        }
      },
      {
        "id": "Schedule.serviceCategory:serviceRequestCategory.coding.system",
        "path": "Schedule.serviceCategory.coding.system",
        "fixedUri": "http://fhir.hie.moh.gov.my/ValueSet/servicerequest-category-my-core"
      },
      {
        "id": "Schedule.serviceType",
        "path": "Schedule.serviceType",
        "min": 1,
        "binding": {
          "strength": "example",
          "valueSet": "http://fhir.hie.moh.gov.my/ValueSet/service-type-my-core"
        }
      },
      {
        "id": "Schedule.specialty",
        "path": "Schedule.specialty",
        "min": 1,
        "binding": {
          "strength": "preferred",
          "valueSet": "http://fhir.hie.moh.gov.my/ValueSet/specialty-my-core"
        }
      },
      {
        "id": "Schedule.actor.type",
        "path": "Schedule.actor.type",
        "min": 1
      },
      {
        "id": "Schedule.actor.display",
        "path": "Schedule.actor.display",
        "min": 1
      }
    ]
  }
}