<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="Schedule-verto" />
  <url value="http://verto.ca/fhir/StructureDefinition/Schedule-verto" />
  <version value="1.0.0" />
  <name value="Schedule" />
  <title value="Verto's Schedule Profile" />
  <status value="active" />
  <experimental value="true" />
  <publisher value="Verto Health" />
  <description value="Schedule Profile constrained by Verto's Digital Twin" />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Schedule" />
  <baseDefinition value="http://hl7.org/fhir/R5/StructureDefinition/Schedule" />
  <derivation value="constraint" />
  <differential>
    <element id="Schedule">
      <path value="Schedule" />
      <short value="Schedule of time slots" />
      <definition value="A container for slots of time that may be available for booking appointments" />
    </element>
    <element id="Schedule.identifier">
      <path value="Schedule.identifier" />
      <short value="External identifiers" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Identifier" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Schedule.active">
      <path value="Schedule.active" />
      <short value="Whether this schedule is active" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Schedule.serviceCategory">
      <path value="Schedule.serviceCategory" />
      <short value="High-level category" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/service-category" />
      </binding>
    </element>
    <element id="Schedule.serviceType">
      <path value="Schedule.serviceType" />
      <short value="Specific service" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableReference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="example" />
        <valueSet value="http://hl7.org/fhir/ValueSet/service-type" />
      </binding>
    </element>
    <element id="Schedule.specialty">
      <path value="Schedule.specialty" />
      <short value="Type of specialty needed" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="CodeableConcept" />
      </type>
      <mustSupport value="true" />
      <binding>
        <strength value="preferred" />
        <valueSet value="http://hl7.org/fhir/ValueSet/practice-setting-code" />
      </binding>
    </element>
    <element id="Schedule.name">
      <path value="Schedule.name" />
      <short value="Human-readable label" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Schedule.actor">
      <path value="Schedule.actor" />
      <short value="Resource(s) that availability information is being provided for" />
      <min value="1" />
      <max value="*" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Practitioner" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PractitionerRole" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/CareTeam" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/RelatedPerson" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Device" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/HealthcareService" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Schedule.planningHorizon">
      <path value="Schedule.planningHorizon" />
      <short value="Period of time covered by schedule" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>