Enrollments

Enroll multiple patients into a care program.

Resource 

1/services/data/vXX.X/connect/health/care-programs/enrollments

Available Version 

46.0

Authentication 

Use OAuth to connect to Salesforce and get an access token. Pass the access token in your requests. For more information, see Connect to Connect REST API Using OAuth.

HTTP Methods 

POST

Root XML tag 

<careProgramEnrollmentData>

JSON example 

1{
2  "programId": "programId1",
3  "sourceSystem": "source-system-name",
4  "patientData": [
5    {
6      "patientId": "patient1",
7      "careProgramProductData": [
8        {
9          "providerId": "provider1",
10          "productId": "product1"
11        },
12        {
13          "providerId": "provider1",
14          "productId": "product2"
15        }
16      ]
17    },
18    {
19      "patientId": "patient2",
20      "careProgramProductData": [
21        {
22          "providerId": "provider3",
23          "productId": "product4"
24        }
25      ]
26    }
27  ]
28}

Properties 

NameTypeDescriptionRequiredAvailable Version
patientDataPatient Input[]List of all objects that contain patients data. You can have up to 200 items in this list.Yes46.0
programIdStringID of the care program as configured in the care system field mappings.Yes46.0
sourceSystemStringName of the source system as configured in the care system field mappings.Yes46.0

Response Body 

Program Enrollment Result

Prerequisites 

Ensure that you have configured the following care system field mapping configured in Setup | Care System Field Mappings:

NameRoleTarget Object
Care_ProgramNot ApplicableCareProgram
PatientPatientAccount
ProductNot ApplicableProduct2
ProviderService ProviderAccount

Ensure that you have configured appropriate external ID field and source system for each of these mappings.

Note

For more information, see CareSystemFieldMapping.

See Also