2nd DSTU Draft For Comment

This page is part of the FHIR Specification (v0.4.0: DSTU 2 Draft). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4 R3 R2

5.27.6 Resource Slot - Examples

Example Index:

Example of an available slot (no appointments allocated)XMLJSON
Example for a slot that has an appointment allocated to itXMLJSON
Example for tentatively occupied slotXMLJSON
Example of a slot that has been marked as unavailableXMLJSON

5.27.6.1 Free Example

XML

Example of an available slot (no appointments allocated) (id = "example")

Raw XML

<Slot xmlns="http://hl7.org/fhir">
  <id value="example"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <type>
    <coding>
      <code value="45"/>
      <display value="Physiotherapy"/>
    </coding>
  </type>
  <schedule>
    <reference value="Schedule/example"/>
  </schedule>
  <freeBusyType value="FREE"/>
  <start value="2013-12-25T09:15:00Z"/>
  <end value="2013-12-25T09:30:00Z"/>
  <comment value="Assessments should be performed before requesting appointments in this slot."/>
  <lastModified value="2012-09-17"/>
</Slot>

JSON

Example of an available slot (no appointments allocated)

Raw JSON (Canonical)

{
  "resourceType": "Slot",
  "id": "example",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "type": {
    "coding": [
      {
        "code": "45",
        "display": "Physiotherapy"
      }
    ]
  },
  "schedule": {
    "reference": "Schedule/example"
  },
  "freeBusyType": "FREE",
  "start": "2013-12-25T09:15:00Z",
  "end": "2013-12-25T09:30:00Z",
  "comment": "Assessments should be performed before requesting appointments in this slot.",
  "lastModified": "2012-09-17"
}

5.27.6.2 Busy Example

XML

Example for a slot that has an appointment allocated to it (id = "1")

Raw XML

<Slot xmlns="http://hl7.org/fhir">
  <id value="1"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <identifier>
    <system value="http://example.org/identifiers/slots"/>
    <value value="123132"/>
  </identifier>
  <type>
    <coding>
      <code value="45"/>
      <display value="Physiotherapy"/>
    </coding>
  </type>
  <schedule>
    <reference value="Schedule/example"/>
  </schedule>
  <freeBusyType value="BUSY"/>
  <start value="2013-12-25T09:00:00Z"/>
  <end value="2013-12-25T09:15:00Z"/>
  <overbooked value="true"/>
  <comment value="Assessments should be performed before requesting appointments in this slot."/>
  <lastModified value="2012-09-17"/>
</Slot>

JSON

Example for a slot that has an appointment allocated to it

Raw JSON (Canonical)

{
  "resourceType": "Slot",
  "id": "1",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "identifier": [
    {
      "system": "http://example.org/identifiers/slots",
      "value": "123132"
    }
  ],
  "type": {
    "coding": [
      {
        "code": "45",
        "display": "Physiotherapy"
      }
    ]
  },
  "schedule": {
    "reference": "Schedule/example"
  },
  "freeBusyType": "BUSY",
  "start": "2013-12-25T09:00:00Z",
  "end": "2013-12-25T09:15:00Z",
  "overbooked": true,
  "comment": "Assessments should be performed before requesting appointments in this slot.",
  "lastModified": "2012-09-17"
}

5.27.6.3 Tentative Example

XML

Example for tentatively occupied slot (id = "2")

Raw XML

<Slot xmlns="http://hl7.org/fhir">
  <id value="2"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <type>
    <coding>
      <code value="45"/>
      <display value="Physiotherapy"/>
    </coding>
  </type>
  <schedule>
    <reference value="Schedule/example"/>
  </schedule>
  <freeBusyType value="BUSY-TENTATIVE"/>
  <start value="2013-12-25T09:45:00Z"/>
  <end value="2013-12-25T10:00:00Z"/>
  <comment value="Dr Careful is out of the office"/>
  <lastModified value="2012-09-17"/>
</Slot>

JSON

Example for tentatively occupied slot

Raw JSON (Canonical)

{
  "resourceType": "Slot",
  "id": "2",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "type": {
    "coding": [
      {
        "code": "45",
        "display": "Physiotherapy"
      }
    ]
  },
  "schedule": {
    "reference": "Schedule/example"
  },
  "freeBusyType": "BUSY-TENTATIVE",
  "start": "2013-12-25T09:45:00Z",
  "end": "2013-12-25T10:00:00Z",
  "comment": "Dr Careful is out of the office",
  "lastModified": "2012-09-17"
}

5.27.6.4 Unavailable Example

XML

Example of a slot that has been marked as unavailable (id = "3")

Raw XML

<Slot xmlns="http://hl7.org/fhir">
  <id value="3"/>
  <text>
    <status value="generated"/>
    <div xmlns="http://www.w3.org/1999/xhtml"><!-- Snipped for brevity --></div>
  </text>
  <type>
    <coding>
      <code value="45"/>
      <display value="Physiotherapy"/>
    </coding>
  </type>
  <schedule>
    <reference value="Schedule/example"/>
  </schedule>
  <freeBusyType value="BUSY-UNAVAILABLE"/>
  <start value="2013-12-25T09:30:00Z"/>
  <end value="2013-12-25T09:45:00Z"/>
  <comment value="Dr Careful is out of the office"/>
  <lastModified value="2012-09-17"/>
</Slot>

JSON

Example of a slot that has been marked as unavailable

Raw JSON (Canonical)

{
  "resourceType": "Slot",
  "id": "3",
  "text": {
    "status": "generated",
    "div": "<div>!-- Snipped for Brevity --></div>"
  },
  "type": {
    "coding": [
      {
        "code": "45",
        "display": "Physiotherapy"
      }
    ]
  },
  "schedule": {
    "reference": "Schedule/example"
  },
  "freeBusyType": "BUSY-UNAVAILABLE",
  "start": "2013-12-25T09:30:00Z",
  "end": "2013-12-25T09:45:00Z",
  "comment": "Dr Careful is out of the office",
  "lastModified": "2012-09-17"
}

Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.