Book Appointment (POST)

Create or book a health appointment.

Resource 

1/connect/health/appointment-management/appointment

Resource Example 

Replace {yourInstance} with the My Domain name of your Salesforce org.

1https://{yourInstance}.salesforce.com/services/data/v68.0/connect/health/appointment-management/appointment

HTTP Methods 

POST

Request Body for POST LS 

1{
2  "startDate": "2013-12-10T09:00:00Z",
3  "endDate": "2013-12-10T11:00:00Z",
4  "workTypeId": "<workTypeId>",
5  "channelId": "<channelId>",
6  "comment": "Further expand on the results of the MRI and determine the next actions that may be appropriate.",
7    "participants": [
8    {
9      "reference": "Patient/<patientId>"
10    },
11    {
12      "reference": "Facility/<facilityId>"
13    },
14    {
15      "reference": "Practitioner/<healthcarePractitionerId>",
16      "isReferenceRequired": true
17    }
18  ]
19}

Request Body for POST (EHR - External System, Like Cerner, Epic and Others) 

1{
2  "startDate": "2013-12-10T09:00:00Z",
3  "endDate": "2013-12-10T11:00:00Z",
4  "workTypeId": "<workTypeId>",
5  "channelId": "<channelId>",
6  "sourceSystem": "cerner",
7  "comment": "Further expand on the results of the MRI and determine the next actions that may be appropriate.",
8  "appointmentTypes": [
9	"FOLLOWUP"
10  ],
11  "serviceCategories": [
12    "serviceCategoryCode1",
13    "serviceCategoryCode2"
14  ],
15  "serviceTypes": [
16    "serviceTypeCode1",
17    "serviceTypeCode2"
18  ],
19  "specialties": [
20    "specialityCode"
21  ],
22  "slots": [
23    {
24      "id": "24477854-21304876-62852027-2",
25      "reference": "<healthcarePractitionerId>" - matches with the reference of practitioner within participants
26    }
27  ],
28  "participants": [
29    {
30      "reference": "Patient/<patientId>"
31    },
32    {
33      "reference": "Facility/<facilityId>"
34    },
35    {
36      "reference": "Practitioner/<healthcarePractitionerId>",
37      "isReferenceRequired": true
38    }
39  ]
40}

Request Parameters for POST 

Parameter NameTypeDescriptionRequired or OptionalAvailable Version
appointment​TypesArrayType of the appointment.Required, if none of the following are provided:
  • workTypeId
  • serviceTypes
  • serviceCategories
65.0
channel​IdStringEngagement channel associated with the work type.Required65.0
comment​StringAdditional text to aid in facilitating the appointment.Optional65.0
endDateStringEnd date and time for the slots range.Required65.0
participantsArrayList of participants involved in the appointment. Patient and Facility are required. For single resource appointment, include either a Device (asset) or Provider or both for multi-resource appointment.Required65.0
service​CategoriesArrayList of broad categorizations of the service. An array of strings.Required, if none of the following are provided:
  • workTypeId
  • serviceTypes
  • appointmentType
65.0
service​TypesArrayList of specific services to be performed. An array of strings.Required, if none of the following are provided:
  • workTypeId
  • appointmentType
  • serviceCategories
65.0
slotsArrayList of references to the slots the appointment is filling.Required, if the appointment is for an external resource.65.0
source​SystemStringSource system associated with the appointment type, service type or service category.Required, if workTypeId is not provided but either appointmentType, serviceTypes, or serviceCategories is.65.0
specialtiesArrayList of the specialties of a practitioner required for the service.Optional65.0
start​DateStringStart date and time for the slots range.Required65.0
timeZoneStringTimezone in which the appointment is updated.Optional65.0
workType​IdStringWork type associated with the resource.Required65.0

Response Body for POST 

Book Appointment Output