Scheduling
1.0.1-current - ci-build
Scheduling, published by IHE IT Infrastructure Technical Committee. This guide is not an authorized publication; it is the continuous build for version 1.0.1-current built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/IHE/ITI.Scheduling/ and changes regularly. See the Directory of published versions
This section corresponds to transaction [ITI-115] of the IHE Technical Framework. Transaction [ITI-115] is used by the Scheduling Client and Scheduling Server Actors. The Find Potential Appointments [ITI-115] transaction is used to provide a set of parameters to the server, and based on them to get back a list of possible appointments.
The Find Potential Appointments [ITI-115] transaction allows a Scheduling Client to retrieve a list of available slots for potential appointments from a Scheduling Server based on certain search criteria.
Table 2:3.115.2-1: Actor Roles
Actor | Role |
---|---|
Scheduling Client | Sends a "Find Potential Appointments" request to Server |
Scheduling Server | Receives and processes the "Find Potential Appointments" request and responds with 0, 1 or more potential appointment slots |
This transaction uses the $find
operation as defined in the Find Potential Appointments Operation Definition.
When a Scheduling Client needs to find potential slot to book a new appointment, it issues a "Find Potential Appointments" request.
The Find Potential Appointment request is defined as a FHIR Operation. Please see the corresponding Find Potential Appointments Operation Definition.
The request parameters in the table, which is part of the operation definition, are derived from search parameters defined for the FHIR Appointment Resource and from additional functionally relevant entities, for example organization
or referral
.
Example: The Scheduling Client uses an HTTP POST with the body containing the search parameter like this:
POST [base]/Appointment/$find
{
"resourceType": "Parameters",
"parameter": [{
"name": "start",
"valueDateTime" : "2017-07-15T20:00:00Z"
},
{
"name": "end",
"valueDateTime" : "2017-07-17T20:00:00Z"
},
{
"name": "practitioner",
"valueReference": {"identifier": {"system":"urn:oid:1.3.6.1.4.1.19376.1.2.999", "value": "PR23143"},"display":"Dr. Pro Vider" }
}]
}
Binding to CodeSets and ValueSets are expected to be localized. If no localization is available the Scheduling Client is expected to use a code from the:
Note 1: Practice Setting Code ValueSet.
Note 2: Appointment Reason Code ValueSet.
Note 3: Service Category ValueSet.
Note 4: Service Type ValueSet.
The Scheduling Client SHALL support FHIR Pagination when the Scheduling Server paginates its response.
Upon receiving a Find Potential Appointments request the Scheduling Server apply internal (business) logic to determine possible appointment (slots) that meet the search criteria specified by the Scheduling Client. The Scheduling Server returns a list of potential Appointment option the Scheduling Client can choose from to reserve or book an appointment.
The list of potential appointments is returned as a FHIR Bundle of type searchset
is returned containing 0, 1, or more Appointment resources. The details are in the Bundle profile.
The Scheduling Server will make a best effort to find potential Appointments. Each Appointment resource included in the response Bundle needs to be as complete as possible allowing the Scheduling Client to render the appointment information in such a way that a (human) user is able to reserve or book an appointment.
The Scheduling Server SHALL honour the _count
request parameter when included in the Find Appointments Query request by a Scheduling Client by limiting the number of potential appointments to match the _count
value.
The Scheduling Server SHALL include a total
attribute in the FHIR Bundle response indicating the total number of potential appointments it has determined.
The Scheduling Server MAY use pagination allowing a Scheduling Client to page through the results.
The Scheduling Server SHALL NOT include any held appointments (i.e., appointments that were reserved as a result of a previous $hold
operation, and for which the holding period had not expired) in the list of potential appointments.
In the absence of any processing errors an http 200 (OK) error code is returned.
In case security or other constraints prevent a Scheduling Server from returning a response to the Scheduling Client an http 4xx error code is returned.
Table 2:3.115.4.2.4-1: Error Codes
Error Code | Description | Explanation |
---|---|---|
400 | Bad Request | The server cannot or will not process the request due to an apparent client error |
401 | Unauthorized | The server cannot or will not process the request due to an authorization issue with the request |
403 | Forbidden | The server cannot or will not process the request because the Scheduling Client (or a user) is not authorized for the request |
The Scheduling Server MAY include an OperationOutcome to the response where it uses the values from the Error Codes table.
Table 2:3.115.4.2.4-2: OperationOutcome Attributes
Attribute | Value |
---|---|
severity | Fatal |
code | <http error description> |
diagnostics | <http error explanation> |
A Server implementing this transaction SHALL provide a CapabilityStatement Resource as described in ITI TF-2x: Appendix Z.3 indicating the transaction has been implemented.
See IHE Scheduling Security Considerations
The Find Potential Appointments Transaction, when it contains a Patient resource or reference as one of the parameters, is a Patient Record event as defined in Table 3.20.4.1.1.1-1. The actors involved SHALL record audit events according to the following:
The Scheduling Client, when grouped with the ATNA Secure Node or Secure Application Actor, SHALL be able to record an audit event consistent with the Find Potential Appointments Source AuditEvent. Audit Example for a Find Potential Appointments transaction from the client perspective.
The Scheduling Server, when grouped with the ATNA Secure Node or Secure Application Actor, SHALL be able to record an audit event consistent with the Book Potential Appointments Recipient AuditEvent. Audit Example for a Find Potential Appointments transaction from the server perspective.
Both the Scheduling Client and Scheduling Server MAY be grouped with their respective Internet User Authentication (IUA) Actors.