Create Report
File Uploading
Files are attached via thefiles array in the request body. Two formats are supported.
JSON files
Files uploaded asexternal_content are saved as doc_files.
Base64 files
PDFs uploaded as base64 are rasterized and saved asdoc_images if they are 20 pages or fewer. PDFs longer than 20 pages and all other file types are saved as doc_files.
Lab Report Requirements
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
Body
The date used for chart chronology and ordering. May differ from document_date.
The date when the report was created.
The patient this report belongs to. The patient must belong to the specified practice.
The authoring practice for this report. Required on create.
The type of report. For laboratory reports, use 'Lab'.
Allergist, Audiology, Billing, Business, Cardiac, CarePlan, Consent, Consultation, Correspondence, Cosmetic, DME, Dermatology, Diabetes, Directives, EKG, ENT, Endocrinology, Exams, EyeVision, Forms, GI, History, Home, Hospice, Hospital, Imaging, Incoming, Injection, Insurance, Intake, Lab, Legal, Misc, Neuro, Nursing, OBGYN, OT, OldRecord, Oncology, Ophth, Ortho, Outgoing, PT, PaperRx, Pathology, PatientForm, Pediatric, Pharmacy, Preop, PriorAuth, Procedures, Psych, Pulmonary, Quality, Radiology, SNF, Screening, Sleep, Surgery, Testing, Therapy, Ultrasound, UrgentCare, Urology, Women 255Files and photos to attach. Two modes: (1) External JSON metadata: set content_type='application/json; schema=el8_external_content_report' and provide 'external_content' JSON that includes a 'referenced_url' (and optional metadata). The JSON is stored and used to reference the external file; file bytes are not uploaded. (2) Binary upload: set content_type='application/octet-stream' and provide 'base64_content' (and optional 'original_filename'). When any file uses base64, all files in the same request must use base64. On GET, returns file references; download via the files retrieval endpoint. For JSON content, the retrieval endpoint returns the stored JSON metadata.
Structured lab results grids. Each grid groups results by accession number and collection/resulted timestamps.
Status of a linked order, when applicable.
CANCELED, COMPLETED, DISCONTINUED, ERROR, ORDER NOT FOUND, IN PROCESS, ON HOLD, REPLACED, SCHEDULED URL to a printable PDF view of the report. You may pass the optional 'print_header' query param to select a header.
The timestamp when the report was created by an external system, usually the same as "document_date".
100Practice-scoped document tags.
Optional vendor for this report.
Response
The date used for chart chronology and ordering. May differ from document_date.
The date when the report was created.
The patient this report belongs to. The patient must belong to the specified practice.
The authoring practice for this report. Required on create.
The type of report. For laboratory reports, use 'Lab'.
Allergist, Audiology, Billing, Business, Cardiac, CarePlan, Consent, Consultation, Correspondence, Cosmetic, DME, Dermatology, Diabetes, Directives, EKG, ENT, Endocrinology, Exams, EyeVision, Forms, GI, History, Home, Hospice, Hospital, Imaging, Incoming, Injection, Insurance, Intake, Lab, Legal, Misc, Neuro, Nursing, OBGYN, OT, OldRecord, Oncology, Ophth, Ortho, Outgoing, PT, PaperRx, Pathology, PatientForm, Pediatric, Pharmacy, Preop, PriorAuth, Procedures, Psych, Pulmonary, Quality, Radiology, SNF, Screening, Sleep, Surgery, Testing, Therapy, Ultrasound, UrgentCare, Urology, Women 255Files and photos to attach. Two modes: (1) External JSON metadata: set content_type='application/json; schema=el8_external_content_report' and provide 'external_content' JSON that includes a 'referenced_url' (and optional metadata). The JSON is stored and used to reference the external file; file bytes are not uploaded. (2) Binary upload: set content_type='application/octet-stream' and provide 'base64_content' (and optional 'original_filename'). When any file uses base64, all files in the same request must use base64. On GET, returns file references; download via the files retrieval endpoint. For JSON content, the retrieval endpoint returns the stored JSON metadata.
Structured lab results grids. Each grid groups results by accession number and collection/resulted timestamps.
Read-only. Images derived from uploaded files. Upload using the 'files' field; retrieve specific images via the images endpoint.
Status of a linked order, when applicable.
CANCELED, COMPLETED, DISCONTINUED, ERROR, ORDER NOT FOUND, IN PROCESS, ON HOLD, REPLACED, SCHEDULED URL to a printable PDF view of the report. You may pass the optional 'print_header' query param to select a header.
The timestamp when the report was created by an external system, usually the same as "document_date".
100Read-only. Users and groups that have been delegated to review this report.
Practice-scoped document tags.
Optional vendor for this report.