Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Get Resources Action
Search for available resources, such as healthcare providers or
medical assets, based on specified search criteria.
This action is available in API version 65.0 and later.
Supported REST HTTP Methods
- URI
- /services/data/v65.0/connect/health/appointment-management/resources
- Formats
- JSON
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| resourceType |
|
| providerSearchCriteria |
|
| assetSearchCriteria |
|
| commonSearchCriteria |
|
| orderBy |
|
| ascending |
|
| offset |
|
| searchLimit |
|
Outputs
| Output | Details |
|---|---|
| assetSearchResults |
|
| providerSearchResults |
|
| error |
|
Example
Sample Request
1{
2 "resourceType": "Asset",
3 "assetSearchCriteria": {
4 "assetName": "machine",
5 "assetTypeIds": [
6 "1Fwxx0000004C9bCAE",
7 "1Fwxx0000004C96CAE"
8 ],
9 "assetCategories": [
10 "Device",
11 "HealthcareService",
12 "Location"
13 ],
14 "status": "Active",
15 "productCode": "PC-45678"
16 },
17 "commonSearchCriteria": {
18 "radius": 5,
19 "distanceUnit": "miles"
20 },
21 "orderBy": "distance",
22 "ascending": true,
23 "offset": 0,
24 "searchLimit": 10
25 }Sample Response
1{
2 "providerSearchResults": [],
3 "assetSearchResults": [
4 {
5 "assetId": "02iSG000000DA4p0AG",
6 "assetName": "MRI Machine Room 3",
7 "facilityId": "001SG000000EfT80AK",
8 "facilityName": "Downtown Imaging Center",
9 "assetCategories": ["Device", "Imaging"],
10 "status": "Active",
11 "productCode": "PC-45678"
12 }
13 ],
14 "error": []
15 }