REST API
Recommendations
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 { "tab" "examples", "url" "/v1/dispensary/patient/\ patient id/recommendation", "name" "api", "method" "get", "request" { "pathparameters" \[ { "kind" "required", "name" "patient id", "type" "string", "children" \[], "description" "the patient's id for whom to list the recommendations " } ], "queryparameters" \[], "headerparameters" \[ { "kind" "required", "name" "authorization", "type" "string", "children" \[], "description" "the access token" } ], "bodydataparameters" \[], "formdataparameters" \[] }, "results" { "languages" \[ { "id" "st7x5ecla7vjy6twnarmd", "code" "{\n \\"recommendations\\" \[{\n \\"id\\" \\"45x0xx x840 41xx 9922 98xx6001507x\\",\n \\"status\\" \\"pending\\",\n \\"created at\\" \\"2022 12 01t05 00 00 000z\\"\n },{\n \\"id\\" \\"1x0196x 5615 4874 xxe4 48x459180x0x\\",\n \\"status\\" \\"purchased\\",\n \\"created at\\" \\"2021 08 01t05 00 00 000z\\"\n }]\n}", "language" "200", "customlabel" "" } ], "selectedlanguageid" "st7x5ecla7vjy6twnarmd" }, "examples" { "languages" \[ { "id" "lhvvurblv3o1djzkyhqcq", "code" "curl location g request get 'https //{{api host}}/rest/{{scope}}/v1/patient/\ patient id/recommendation' \\\\\n header 'content type application/json' \\\\\n header 'authorization bearer {{access token}}' ", "language" "curl", "customlabel" "" } ], "selectedlanguageid" "lhvvurblv3o1djzkyhqcq" }, "description" "", "currentnewparameter" { "label" "path parameter", "value" "pathparameters" } }