Patient Documents

View patient documents

GET
/patients/{id}/documents

This endpoint returns all documents associated with the given patient, ordered by creation date.

Authorization

Authorization
Authorization<token>

In: header

Path Parameters

id*integer

ID of the patient

Formatint32

Query Parameters

subdomain*string

Used to scope the request to the specified institution

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Response Body

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

curl -X GET "https://example.com/patients/0/documents?subdomain=string" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "id": 18,      "filename": "patient_document.pdf",      "type": "application/pdf",      "url": "/documents/18/download",      "created_at": "2020-06-05T20:16:57.007Z",      "document_type_id": 1    }  ],  "count": 2}