Server-side APIEndpointsClinical records

A patient's documents

Lab reports, radiology, invoices and other documents held against a patient.

API-key only, gated on devapi_patients_documents_list. Responses carry Cache-Control: no-store.

Parameters

Path parameters

patientIdintegerrequiredExample: 4821

The Medos patient id, from GET /v1/patients.

Query parameters

category"LAB_REPORT" | "RADIOLOGY" | "INVOICE" | "PRESCRIPTION" | "OTHER"enum

Only documents of this category.

pageintegermin: 0Default: 0

Zero-based page number.

sizeintegermin: 1max: 100Default: 20

Page size. Over 100 is a 400, not a silent clamp.

Headers

x-api-keystringrequiredExample: mk_…

Your Developer API key. Server-side only.

X-Acting-User-IdstringExample: MDU_A1B2C3D4E5F6

The staff member the call is attributed to, as an MDU_… id. Omit it to attribute the call to the workspace admin.

Responses

The 200 is a page of documents:

FieldNotes
generatedtrue for a document Medos rendered itself, such as an invoice or a prescription; false for an upload.
appointmentRefSCHEDULED:<n> when the document belongs to a visit, else null.
url, urlExpiresAtA short-lived presigned download link and its expiry, valid for 15 minutes at most. May be null: not every document carries a link yet. Never store a url. Request the list again when you need a fresh one.

The storage key and the uploader's identity are deliberately not part of the response.

Test request