Create a patient referral record. A patient referral consists of
multiple objects, such as an account, clinical service request, and clinical service request
detail.
This action is available in API version 59.0 and later for users with the Health Cloud license.
Supported REST HTTP Methods
URI: /services/data/vXX.X/actions/standard/createReferral
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
| Input | Type | Description |
|---|---|---|
| matchDuplicates | Boolean | Indicates whether to match a duplicate record that has the highest matching confidence (true) or not (false). |
| performers | String[] | Required. Comma-separated list of IDs of the organizations or practitioners who perform the service. |
| referralDetailsRecords | Reference | Collection of ClinicalServiceRequestDetails records that contain the referral information. |
| referralNotes | String | Referral notes. |
| referralRecord | Reference | Required. ClinicalServiceRequest record that contains referral information. |
| requesterId | String | Required. ID of the provider requesting the service. |
| subjectRecord | Reference | Required. Account details of the patient being referred. |
Outputs
| Output | Type | Description |
|---|---|---|
| referralIds | String[] | List of IDs of the new referral records. |
Example
Sample Request
{
"inputs":[
{
"subjectRecord":{
"Id":"001RM000005bZVvYAM",
"FirstName":"Joe",
"LastName":"Clark"
},
"requesterId":"001RM000005bZW0YAM",
"performers":[
"001RM000005bZW5YAM"
],
"referralRecord":{
"Priority":"Routine",
"Status":"Draft",
"Type":"Plan"
},
"matchDuplicates":false,
"referralNotes":"This is an urgent request",
"referralDetails":[
{
"detailType":"Insurance",
"detailRecordType":"Member Plan",
"detailRecordId":"0SqRM00000000N10AI"
}
]
}
]
}
Sample Response
{
"errors": null,
"isSuccess": true,
"outputValues": {
"referralIds": [
"0lvxx00004000001AAB"
]
}
}