Create patient document
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.
Authorization
Authorization In: header
Path Parameters
ID of the patient
int32Query Parameters
Used to scope the request to the specified institution
Used to scope the request to the specified location
int32Header Parameters
The NexHealth API version
"v3.0.0"Request Body
multipart/form-data
The file being uploaded. The name of this file will be used when inserting the file into the EHRs filesystem
The ID of the document type to assign to the uploaded document
int32Response 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 POST "https://example.com/patients/0/documents?subdomain=string&location_id=0" \ -H "Nex-Api-Version: v3.0.0" \ -F file="null"{ "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}