Create Appointment
When the patient selects an available slot, the call center agent books the appointment, which triggers a Get Slot Status REST call to the EHR system.
-
Health Cloud makes a
Get Slot StatusREST call.An error is displayed to the call center agent if the slot is no longer available.
-
Health Cloud creates a Service Appointment record and a Healthcare Practitioner Facility Appointment junction between the Service Appointment and Healthcare Practitioner Facility.
-
Health Cloud makes a
Create (Book) AppointmentREST call.- Service Appointment is updated with the response.
- An error is displayed to the call center agent if the booking is rejected.
- Type: Resource
- Verb: POST
- Default URL Path:
[base]/Appointment/[sourceSystem]
Your Base URL is configured in Setup > Appointment Scheduling.
All communications with the external system use the FHIR R4 standard.
The resourceType, identifier, cancelationReason, serviceType, appointmentType, slot, comment, and status are the minimum required fields in the request that Health Cloud sends.
For “identifier,” Health Cloud sends 3 records:
- Salesforce unique appointment id
- Salesforce unique patient id
- Source system (for multi-source systems only)
200: Success400: Bad request401: Unauthorized404: Slot or patient not found5xx: Server error
To map slots, resourceType, id, identifier, serviceType, appointmentType, slot, participant, actor, and status are required in the FHIR response.
“Cancelation” is spelled with one L, per the FHIR R4 specification.
The valid values for status are:
proposedpendingbookedarrivedfulfilledcancellednoshowentered-in-errorchecked-inwaitlist
If the request cannot be processed for any reason (e.g. it’s unsupported, there’s a timeout, etc.) status is returned as proposed.
See Also