Book Slot Chain (POST)

Create service appointments for a care program enrollee in advanced therapy management based on the provided appointment slots.

This API takes both the published and unpublished slots as inputs. If the provided slots are published, the API calls the Salesforce Scheduler API to book the slots.

Resource

/connect/health/advanced-therapy-management/book-slot-chain

Resource Example

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

https://{yourInstance}.salesforce.com/services/data/v68.0/connect/health/advanced-therapy-management/book-slot-chain

Available Version

60.0

HTTP Methods

POST

JSON example

{
   "careProgramEnrolleeId":"08pxx0000004C92AAE",
   "workProcedureId":"08pxx0000004C92AAE",
   "slots":[
      {
         "schedStartTime":"2022-03-26T16:30:00.000+0000",
         "schedEndTime":"2022-03-26T16:30:00.000+0000",
         "workTypeId":"08pxx0000004C92AAE",
         "serviceTerritoryId":"08pxx0000004C92AAE",
         "serviceResourceId":"08pxx0000004C92AAE",
         "contactId":"08pxx0000004C92AAE",
         "appointmentType":"08pxx0000004C92AAE",
         "subject":"Apheresis",
         "additionalInformation":"Needs Cab Assistance",
         "street":"1 Market Street",
         "city":"San Francisco",
         "state":"CA",
         "postalCode":"94105",
         "country":"USA",
         "comments":"",
         "status":"Scheduled"
      },
      {
         "schedStartTime":"2022-03-26T16:30:00.000+0000",
         "schedEndTime":"2022-03-26T16:30:00.000+0000",
         "workTypeId":"08pxx0000004C92AAE",
         "serviceTerritoryId":"08pxx0000004C92AAE",
         "serviceResourceId":"08pxx0000004C92AAE",
         "contactId":"08pxx0000004C92AAE",
         "appointmentType":"08pxx0000004C92AAE",
         "subject":"Apheresis",
         "additionalInformation":"Needs Cab Assistance",
         "street":"1 Market Street",
         "city":"San Francisco",
         "state":"CA",
         "postalCode":"94105",
         "country":"USA",
         "comments":"",
         "status":"Scheduled"
      },
      {
         "schedStartTime":"2022-03-26T16:30:00.000+0000",
         "schedEndTime":"2022-03-26T16:30:00.000+0000",
         "workTypeId":"08pxx0000004C92AAE",
         "serviceTerritoryId":"08pxx0000004C92AAE",
         "serviceResourceId":"08pxx0000004C92AAE",
         "contactId":"08pxx0000004C92AAE",
         "appointmentType":"08pxx0000004C92AAE",
         "subject":"Apheresis",
         "additionalInformation":"Needs Cab Assistance",
         "street":"1 Market Street",
         "city":"San Francisco",
         "state":"CA",
         "postalCode":"94105",
         "country":"USA",
         "comments":"",
         "status":"Scheduled"
      }
   ]
}

Properties

Name Type Description Required or Optional Available Version
careProgramEnrolleeId String ID of the care program enrollee for whom the service appointments must be created. Required 60.0
slots Slots [] Appointment slots to be booked. Required 60.0
workProcedureId String ID of the work procedure for which the service appointments are to be created. Required 60.0

Response Body for POST

Book Slot Chain Output