Retrieve Medications for a Condition Patient Record id
get
/ohfapi/cg/v3.3/patientapi/conditions/{id}/administeredmedications
This endpoint supports the retrieval of Medications for a single Condition Patient Record (row) id. It returns all the AdministeredMedications links for the given Condition Patient ID.
Request
Supported Media Types
- application/json
- application/xml
Path Parameters
-
id: integer(int64)
Minimum Value:
0
Patient Condition Row ID
Security
-
basicAuth: basic
Type:
basic
Response
Supported Media Types
- application/json
- application/xml
200 Response
successful operation
Root Schema : DiagnosisMedications
Type:
object
Model for Diagnosis Medication object in CDM.
Show Source
-
conditionmedications(optional):
array conditionmedications
A list of links containing href to retrieve observation details
-
patientcondition(optional):
object LinkedReference
Nested Schema : conditionmedications
Type:
array
A list of links containing href to retrieve observation details
Show Source
Example:
{href: '/patientapi/administeredmedications/{id}'}
400 Response
Invalid parameters supplied
404 Response
AdministeredMedications not found
Examples
The following example submits a GET request.
API URL
http://localhost:7010/ohfapi/cg/v3.3/patientapi/conditions/10001/administeredmedications
Example of Response Body
The following example shows the response returned in JSON format.
{ "patientcondition": { "reference": "/ohfapi/cg/v3.3/patientapi/conditions/10001" }, "conditionmedications": [ { "reference": "/ohfapi/cg/v3.3/patientapi/administeredmedications/10004" } ] }