View patient documents
This endpoint returns all documents associated with the given patient, ordered by creation date.
Authorization
Authorization In: header
Path Parameters
ID of the patient
int32Query Parameters
Used to scope the request to the specified institution
Header Parameters
The NexHealth API version
"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}View patient GET
This endpoint returns a single patient by its NexHealth ID.
Create patient document POST
This endpoint uploads a document for the given patient; the file's name is used when inserting the document into the EHR's filesystem, while the optional `name` param is for NexHealth display purposes only.