PrenatalFlowsheet
<co-prenatal-flowsheet>PrenatalFlowsheet tracks every prenatal visit in one table, gestational age, weight, blood pressure, urine, fundal height and fetal heart rate, with flags for hypertension, size and dates mismatch and abnormal heart rate.
import { PrenatalFlowsheet } from 'health-components';
Examples
Severe Range
Usage
<PrenatalFlowsheet header={{ edd: "01/14/2027", eddBy: "8w US", gp: "G2 P1001" }} visits={[{ date: "10/09/2026", ga: [26, 3], wt: 71.4, sbp: 118, dbp: 74, protein: "neg", glucose: "neg", fh: 26, fhr: 148 }]} />
When to use
- Obstetric and midwifery prenatal visits from the first visit to delivery.
When not to use
- Labor: a labor flowsheet and fetal monitoring strip.
- Postpartum visits.
Variants and states
| Variant | What it is |
|---|---|
| header | EDD and how it was set, G/P, blood type, rubella, GBS and pre-pregnancy BMI. |
| risk badges | Warning badges for risks such as advanced maternal age or prior preterm birth. |
| BP flags | High above 139/89; severe range 160/110 or more turns the row red and shows an error Alert with the treatment window; 140/90 after 20 weeks shows a warning Alert. |
| size and dates | Fundal height more than 2 cm away from weeks after 20 weeks gets a badge. |
| FHR | Range 110 to 160 bpm; below 100 or above 180 is critical. |
| urine | Negative, trace, then 1+ warning and 2+ or more danger. |
| not yet | Fundal height before 20 weeks and Doppler before about 10 weeks read "Not yet". |
Clinical values
Every number goes through the shared clinical value rules (CareOS.fmt and ClinicalValue from the clinical-values card): tabular digits, the unit always shown, a fixed precision per measure, the reference range in the tooltip, and H, L or critical flags. Medication amounts follow the ISMP dose style through fmt.doseNumber: rounded to the stated precision, then shown with no trailing zero (5 mg, never 5.0 mg) and a leading zero (0.5 mL). The specialty measures this card adds sit in CareOS.specialty.MEAS with their precision: maternal weight 1 decimal kg, BP whole mmHg, fundal height whole cm, FHR whole bpm, GA as weeks and days. Ranges in the previews are sample values for the design system, not clinical guidance; a real deployment passes its own.
Accessibility
- Gestational age has a spoken label in weeks and days.
- Critical rows have a red background and flags in words, never colour alone.
- The table scrolls sideways on small screens instead of squashing.
Do and don't
- Do: Show GA on every row.
- Do: Repeat a severe-range BP and act within the window.
- Don't: Hide trace protein as normal.
- Don't: Compare fundal height before 20 weeks.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
header | PrenatalHeader | {} | {edd, eddBy, gp, blood, rubella, gbs, bmi, risks} |
visits | ReadonlyArray<PrenatalVisit> | [] | Visits, oldest first |
title | string | 'Prenatal flowsheet' | Card title |
subtitle | string | none | Line under the title |
readOnly | boolean | false | Hides Add Visit |
onAddVisit | () => void | none | Add Visit action |
rangeContext | RangeContextId | 'pregnancy' when no global context is set | Which shared reference range flags use; the lab range on a result still wins |
Also accepts native attributes, including defaultChecked, defaultValue, autoFocus, plus className and event handlers on the root element.
Angular, Vue and HTML
Register the elements once (Angular guide), then use <co-prenatal-flowsheet>. Attributes take strings; arrays and objects are set as properties (Angular [prop], Vue :prop) or as JSON attributes. Callbacks are DOM events with the value in event.detail.
<co-prenatal-flowsheet title="…" subtitle="…" [header]="header" (co-add-visit)="onAddVisit($event.detail)"></co-prenatal-flowsheet>
| Kind | Name | Description |
|---|---|---|
| property / JSON attribute | header | {edd, eddBy, gp, blood, rubella, gbs, bmi, risks}; default {} |
| property / JSON attribute | visits | Visits, oldest first; default [] |
| attribute | title | Card title; default 'Prenatal flowsheet' |
| attribute | subtitle | Line under the title; default none |
| attribute | read-only / readOnly | Hides Add Visit; default false |
| attribute | range-context / rangeContext | Which shared reference range flags use; the lab range on a result still wins; default 'pregnancy' when no global context is set |
| attribute | default-checked / defaultChecked | |
| property / JSON attribute | default-value / defaultValue | |
| attribute | auto-focus / autoFocus | |
| event | co-add-visit | Add Visit action; default none (React: onAddVisit) |