Schedule Group Visits Action

Create visiting records for patient home visits by bundling them into a group and scheduling either a single start-of-care visit or a series of recurring visits associated with the bundled records.

This action is available in API version 60.0 and later.

Special Access Rules 

The Schedule Group Visits action is available in Enterprise and Unlimited Editions with Health Cloud enabled with the Home Health setting.

Supported REST HTTP Methods 

URI: /services/data/vXX.X/actions/standard/scheduleGroupVisits

Where XX.X is the latest API version.

Formats: JSON, XML

HTTP Methods: POST

Authentication: Authorization: Bearer TOKEN

Where TOKEN is your OAuth access token.

Inputs 

InputTypeDescription
schedulingPolicyIdstringRequired.
ID of the home health scheduling policy to be used to schedule the group visits.
appointmentBundlePolicyIdstringRequired.
ID of the home health appointment bundle policy to be used to create the patient visit records.
workTypeIdstringRequired.
ID of the work type that represents the care service that the visits are being scheduled for.
serviceTerritoryIdstringRequired.
ID of the service territory record that contains the care resources to be assigned to the visits.
firstVisitStartDateTimedatetimeRequired.
Scheduled date and time for the start of the first group visit.
firstVisitEndDateTimedatetimeDate and time when the first group visit ends.
operatingHoursIdstringID of the operating hours record that specifies the time slots to schedule the group visit for.
skillsIdsListstringA comma-delimited list of record IDs of all skills required for the group visits.
isRecurringVisitbooleanIndicates whether recurring visits are scheduled. If false, then a single start-of-care group visit is scheduled.
recurrenceFrequencyTypestringRequired.
Specifies the type of recurring group visits. If specified, the selectedDays property is required. Valid values are:
  • Daily
  • Weekly
recurringDaysListstringComma-delimited list of days to schedule recurring group visits for patients. For example, Monday, Thursday, Saturday. If recurrenceFrequencyType is set to Weekly, recurringDaysList is required.
visitsRequiredintegerThe number of recurring group visits to be scheduled.
groupVisitAddressApex-defined(Input example of apex type:{“street":"123 Main St","city":"Cityville","state":"CA","zip":"12345"})An Apex GroupVisitAddress record that specifies the address where the group visit for the selected patients is scheduled.
clinicalServiceRequestIdsListstringComma-delimited list of record IDs of all clinical service requests of the selected patients in the group visit.

Outputs 

None.

Example 

POST

This sample request is for the Schedule Group Visits action.

1{ 
2  "inputs" : [
3    {
4      "schedulingPolicyId" : "001SG000005OtxxYA0",
5      "appointmentBundlePolicyId" : "0jyxx0000000001AAA",
6     ."workTypeId" : "0jyxx0000000001AAA",
7      "serviceTerritoryId" : "0HxxG00000015dZ0AQ",
8      "serviceTerritoryId" : "0HxxG00000015dZ0AQ",
9      "firstVisitStartDateTime" : "2024-03-16T07:00:00.000Z",
10      "isRecurringVisit" : "false",
11      "operatingHoursId" : "0OHxx0000004CKKGA2",
12      "recurrenceFrequencyType" : "WEEKLY",
13      "recurringDaysList" : "Monday, Thursday",
14      "clinicalServiceRequestIdsList" :["0jxxG0000000b1BYAQ","0jyxx0000000b1KYAQ"],
15      "groupVisitAddress" :{ "city" : "Hyderabad" }
16    }
17  ]
18}

This sample response is for the Schedule Group Visits action.

1[ {
2  "actionName" : "scheduleGroupVisits",
3  "errors" : null,
4  "isSuccess" : true,
5  "outputValues" : {
6      "careServiceVisitPlanId": "null"
7      "bundleStatusMessage": "Group visit request has been submitted"
8    },
9  "version" : 1
10} ]