VitalsWidget renders a patient’s recorded vital signs — heart rate, blood pressure, temperature, respiratory rate, oxygen saturation, weight, height, and BMI — alongside trend charts that plot historical values over time. It reads FHIR Observation resources through a backend proxy you control, so your API key never reaches the browser.
Props
URL of your backend proxy endpoint. The widget sends a GET request to this URL and expects a list of FHIR
Observation resources representing vital signs.CSS class name applied to the widget’s root element for layout and theming control.
Callback invoked when the widget fails to load observations from your proxy. Use this to show an error state to the clinician.
Proxy setup
Your proxy endpoint should return the patient’s vital-signs observations sorted by date. Fetch the most recent 50 to give the trend charts enough data points:Usage
Displayed vitals
The widget recognizes observations by their LOINC code and renders each vital in its own panel with a trend chart:| Vital sign | LOINC code |
|---|---|
| Heart rate | 8867-4 |
| Blood pressure | 85354-9 |
| Body temperature | 8310-5 |
| Respiratory rate | 9279-1 |
| Oxygen saturation | 2708-6 |
| Body weight | 29463-7 |
| Body height | 8302-2 |
| BMI | 39156-5 |
Observations with LOINC codes not in the table above are silently ignored by the widget. To display additional observation types, open a support request or use a custom chart component alongside the widget.