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