<StructureDefinition xmlns="http://hl7.org/fhir">
  <url value="https://vvis.gov.lv/fhir/StructureDefinition/Slot" />
  <name value="Slot" />
  <status value="draft" />
  <fhirVersion value="5.0.0" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Slot" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Slot" />
  <derivation value="constraint" />
  <differential>
    <element id="Slot.extension">
      <path value="Slot.extension" />
      <max value="0" />
    </element>
    <element id="Slot.modifierExtension">
      <path value="Slot.modifierExtension" />
      <max value="0" />
    </element>
    <element id="Slot.identifier">
      <path value="Slot.identifier" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Slot.identifier.extension">
      <path value="Slot.identifier.extension" />
      <max value="0" />
    </element>
    <element id="Slot.identifier.use">
      <path value="Slot.identifier.use" />
      <max value="0" />
    </element>
    <element id="Slot.identifier.type">
      <path value="Slot.identifier.type" />
      <max value="0" />
    </element>
    <element id="Slot.identifier.system">
      <path value="Slot.identifier.system" />
      <max value="0" />
    </element>
    <element id="Slot.identifier.value">
      <path value="Slot.identifier.value" />
      <min value="1" />
    </element>
    <element id="Slot.identifier.period">
      <path value="Slot.identifier.period" />
      <max value="0" />
    </element>
    <element id="Slot.identifier.assigner">
      <path value="Slot.identifier.assigner" />
      <max value="0" />
    </element>
    <element id="Slot.serviceCategory">
      <path value="Slot.serviceCategory" />
      <max value="0" />
    </element>
    <element id="Slot.serviceType">
      <path value="Slot.serviceType" />
      <definition value="The type of appointments that can be booked into this slot (ideally this would be an identifiable service - which is at a location, rather than the location itself). If provided then this overrides the value provided on the Schedule resource.&#xD;&#xA;&#xD;&#xA;//Pakalpojums. Uz vienu slotu var būt vairāki. Kad rezervēts var būt vairāki. Kad busy, tad tikai viens.&#xD;&#xA;Integratoram jānodrošina, ka slot typs atbilst schedule tipam un mēs savā pusē to validējam." />
      <min value="1" />
      <max value="5" />
    </element>
    <element id="Slot.serviceType.extension">
      <path value="Slot.serviceType.extension" />
      <max value="0" />
    </element>
    <element id="Slot.serviceType.concept">
      <path value="Slot.serviceType.concept" />
      <min value="1" />
    </element>
    <element id="Slot.serviceType.concept.coding">
      <path value="Slot.serviceType.concept.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Slot.serviceType.concept.coding.system">
      <path value="Slot.serviceType.concept.coding.system" />
      <min value="1" />
    </element>
    <element id="Slot.serviceType.concept.coding.version">
      <path value="Slot.serviceType.concept.coding.version" />
      <max value="0" />
    </element>
    <element id="Slot.serviceType.concept.coding.code">
      <path value="Slot.serviceType.concept.coding.code" />
      <min value="1" />
    </element>
    <element id="Slot.serviceType.concept.coding.display">
      <path value="Slot.serviceType.concept.coding.display" />
      <min value="1" />
    </element>
    <element id="Slot.serviceType.concept.coding.userSelected">
      <path value="Slot.serviceType.concept.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Slot.serviceType.concept.text">
      <path value="Slot.serviceType.concept.text" />
      <max value="0" />
    </element>
    <element id="Slot.serviceType.reference">
      <path value="Slot.serviceType.reference" />
      <min value="1" />
    </element>
    <element id="Slot.serviceType.reference.reference">
      <path value="Slot.serviceType.reference.reference" />
      <min value="1" />
    </element>
    <element id="Slot.serviceType.reference.type">
      <path value="Slot.serviceType.reference.type" />
      <min value="1" />
      <fixedUri value="HealthcareService" />
    </element>
    <element id="Slot.serviceType.reference.identifier">
      <path value="Slot.serviceType.reference.identifier" />
      <max value="0" />
    </element>
    <element id="Slot.serviceType.reference.display">
      <path value="Slot.serviceType.reference.display" />
      <max value="0" />
    </element>
    <element id="Slot.specialty">
      <path value="Slot.specialty" />
      <max value="0" />
    </element>
    <element id="Slot.appointmentType">
      <path value="Slot.appointmentType" />
      <definition value="The style of appointment or patient that may be booked in the slot (not service type).&#xD;&#xA;&#xD;&#xA;//ieliksim tagad, piereģistrēsim klasifikatoru, bet neliksim obligāti pildīt. vai pagaidām likt noklusējuma vērtību?" />
      <max value="0" />
    </element>
    <element id="Slot.appointmentType.extension">
      <path value="Slot.appointmentType.extension" />
      <max value="0" />
    </element>
    <element id="Slot.appointmentType.coding">
      <path value="Slot.appointmentType.coding" />
      <min value="1" />
      <max value="1" />
    </element>
    <element id="Slot.appointmentType.coding.extension">
      <path value="Slot.appointmentType.coding.extension" />
      <max value="0" />
    </element>
    <element id="Slot.appointmentType.coding.system">
      <path value="Slot.appointmentType.coding.system" />
      <min value="1" />
    </element>
    <element id="Slot.appointmentType.coding.version">
      <path value="Slot.appointmentType.coding.version" />
      <max value="0" />
    </element>
    <element id="Slot.appointmentType.coding.code">
      <path value="Slot.appointmentType.coding.code" />
      <min value="1" />
    </element>
    <element id="Slot.appointmentType.coding.display">
      <path value="Slot.appointmentType.coding.display" />
      <min value="1" />
    </element>
    <element id="Slot.appointmentType.coding.userSelected">
      <path value="Slot.appointmentType.coding.userSelected" />
      <max value="0" />
    </element>
    <element id="Slot.appointmentType.text">
      <path value="Slot.appointmentType.text" />
      <max value="0" />
    </element>
    <element id="Slot.schedule.extension">
      <path value="Slot.schedule.extension" />
      <max value="0" />
    </element>
    <element id="Slot.schedule.reference">
      <path value="Slot.schedule.reference" />
      <min value="1" />
    </element>
    <element id="Slot.schedule.type">
      <path value="Slot.schedule.type" />
      <definition value="The expected type of the target of the reference. If both Reference.type and Reference.reference are populated and Reference.reference is a FHIR URL, both SHALL be consistent.&#xA;&#xA;The type is the Canonical URL of Resource Definition that is the type this reference refers to. References are URLs that are relative to http://hl7.org/fhir/StructureDefinition/ e.g. &quot;Patient&quot; is a reference to http://hl7.org/fhir/StructureDefinition/Patient. Absolute URLs are only allowed for logical models (and can only be used in references in logical models, not resources).&#xD;&#xA;&#xD;&#xA;//tas ko mēs sagaidām ir schedula typs. Validācijā pateikt, ka recerence sākas ar vārdu &quot;schedule/&quot;" />
      <min value="1" />
      <fixedUri value="Schedule" />
    </element>
    <element id="Slot.schedule.identifier">
      <path value="Slot.schedule.identifier" />
      <max value="0" />
    </element>
    <element id="Slot.schedule.display">
      <path value="Slot.schedule.display" />
      <max value="0" />
    </element>
    <element id="Slot.start">
      <path value="Slot.start" />
      <comment value="Note: This is intended for where precisely observed times are required, typically system logs etc., and not human-reported times - for them, see date and dateTime (which can be as precise as instant, but is not required to be) below. UTC offset is always required&#xD;&#xA;&#xD;&#xA;//vēršam uzmanību, ka 'instant' nosaka to, ka start un end date jāiesūta datums uz laiks. Piemērs yyy-mm-ddThh:mm:ss+00:00 UTC" />
    </element>
    <element id="Slot.end">
      <path value="Slot.end" />
      <comment value="Note: This is intended for where precisely observed times are required, typically system logs etc., and not human-reported times - for them, see date and dateTime (which can be as precise as instant, but is not required to be) below. UTC offset is always required&#xD;&#xA;&#xD;&#xA;//vēršam uzmanību, ka 'instant' nosaka to, ka start un end date jāiesūta datums uz laiks. Piemērs yyy-mm-ddThh:mm:ss+00:00 UTC" />
    </element>
    <element id="Slot.overbooked">
      <path value="Slot.overbooked" />
      <max value="0" />
    </element>
    <element id="Slot.comment">
      <path value="Slot.comment" />
      <max value="0" />
    </element>
  </differential>
</StructureDefinition>