Skip to main content

Fetch Patient Reports

This API facilitates the retrieval of patient reports data, requiring the inclusion of the patient ID as a query parameter and the inclusion of an authorized token in the headers.

Demo Curl

curl --location 'https://demo.hng.one/developerapi/mmu/reports?patientId=<<Patient Id>>' \
--header 'Authorization: Bearer <<Token>>'

Prod Curl

curl --location 'https://aths.hng.one/developerapi/mmu/reports?patientId=<<Patient Id>>' \
--header 'Authorization: Bearer <<Token>>'

Sample Responce

You will receive a response similar to below.

{
"code": "Ok",
"message": "Reports obtained successfully!",
"data": {
"data": {
"reports": [
{
"reportGeneratedAt": 1709296873,
"created_by": "test@client",
"medeUid": "medexUID|12345",
"reportGeneratedBy": "test doctor",
"reportId": "report id",
"reportType": "PRESCRIPTION",
"reportUrl": "https://prints.play.medeintegra.app/api/reports/report id",
"updated_by": "test@client",
"created_at": "2024-03-01T13:36:44.080211+00:00",
"updated_at": "2024-03-01T13:36:44.080211+00:00",
"facilityId": "facility|123",
"azp": "1we23"
}
]
},
"loading": false,
"networkStatus": 7
}
}