This page is part of the FHIR Specification (v0.0.82: DSTU 1). 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
Example Index:
XML
Example of an available slot (no appointments allocated) (id = "example")
<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."/> </Slot>
JSON
Example of an available slot (no appointments allocated)
{
"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."
}
XML
Example for a slot that has an appointment allocated to it (id = "1")
<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."/> </Slot>
JSON
Example for a slot that has an appointment allocated to it
{
"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."
}
XML
Example for tentatively occupied slot (id = "2")
<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"/> </Slot>
JSON
Example for tentatively occupied slot
{
"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"
}
XML
Example of a slot that has been marked as unavailable (id = "3")
<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"/> </Slot>
JSON
Example of a slot that has been marked as unavailable
{
"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"
}
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.