List Patient Recommendations
You can get a list of all recommendations for a patient by the patient's id.
Return
This call returns a compacted array of recommendation references, to check recommendation status and dates. Use the recommendation_id to get details via the View Recommendation call.
API
GET
/V1/dispensary/patient/:patient_id/recommendation
Path Parameters
- patient_idstringrequiredDescription
Header Parameters
- AuthorizationstringrequiredDescription
curl
curl --location -g --request GET 'https://{{api_host}}/rest/{{scope}}/V1/patient/:patient_id/recommendation' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{access_token}}' 200
{
"recommendations":[{
"id": "45x0xx-x840-41xx-9922-98xx6001507x",
"status": "pending",
"created_at": "2022-12-01T05:00:00.000Z"
},{
"id": "1x0196x-5615-4874-xxe4-48x459180x0x",
"status": "purchased",
"created_at":"2021-08-01T05:00:00.000Z"
}]
}