DocumentReference

The DocumentReference resource represents a clinical note in a patient record

ℹ️

Context

In Halaxy, DocumentReference is referred to as a clinical note. DocumentReference only includes the "text input" type of clinical note. This does not include other types of clinical notes such as clinical tools and clinical orders (prescription, imaging, pathology).

For more information, see article: Guide to clinical notes

Endpoints

EndpointOperationDescription
POST/main/DocumentReferenceCreate DocumentReferenceCreate a clinical note in a patient profile

Schema

PropertyDescription
statusstring
Defaults to current
docStatusenum required
The status of the clinical note
preliminary - Draft
final - Published
subjectReference(Patient) required
The patient profile to create this clinical note for
"type": "Patient"
"reference": "/main/Patient/123456"
See: Patient
datedate-time read-only
The date and time when the clinical note was created.
Halaxy sets this on creation. A value sent in the request body is accepted but not stored.
authorarray of Reference(PractitionerRole) required
At least one
The practitioner and practice location linked as the clinical note's owner
"type": "PractitionerRole"
"reference": "/main/PractitionerRole/PR-123456"
See: PractitionerRole
descriptionstring required
The title of the clinical note
contentarray of objects
At least one element
The content of the clinical note. Each element wraps a single attachment object.
The first element is the note body. Every element after it is treated as a file attachment.
There is no separate property for file attachments — they go here.
content[].attachment.contentTypeenum required
The format of this element
Note body: text/html only
File attachments:
application/msword
application/vnd.ms-excel
application/vnd.openxmlformats-officedocument.wordprocessingml.document
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
application/pdf
image/jpeg
image/png
content[].attachment.datastring required
Note body: the HTML content of the note
File attachments: the file encoded to base64
Maximum file size: 20MB
content[].attachment.titlestring
The file name

Use our recipe