LabResultsWidget is a lab report viewer that displays a patient’s diagnostic reports alongside individual result values, reference ranges, and abnormal value flags. Clinicians can review preliminary, final, and amended reports, see which values fall outside normal ranges, and access any attached documents — all fetched through a backend proxy you control.
Props
URL of your backend proxy endpoint. The widget sends a GET request to this URL and expects a list of FHIR
DiagnosticReport resources, each with its associated Observation results included.CSS class name applied to the widget’s root element for layout and theming control.
Callback invoked when the widget fails to load reports from your proxy. Use this to display an error state to the clinician.
Proxy setup
Your proxy endpoint should return the patient’s lab reports sorted by date, most recent first. The example below fetches the 20 most recent reports:Usage
Features
- Report list with status badges: displays preliminary, final, and amended reports with clear status indicators
- Individual result values: shows each result alongside its recorded value and unit
- Reference ranges: displays the normal range for each result so clinicians can assess values at a glance
- Abnormal value highlighting: flags values outside the normal range with standard clinical flags (
H,L,HH,LL) - Conclusion text: renders the interpreting clinician’s conclusion when present in the report
- Attached document links: surfaces any PDF or document attachments linked to the report
Lab reports are stored as FHIR
DiagnosticReport resources with linked Observation resources for each result. The widget expects both to be included in the response from your proxy.