# Bedside, Calculators, PE Guide, Vax Schedule, Milestones Dev-deep walkthrough of the **reference / decision-support** half of the PedScribe SPA. These modules differ from the rest of the app in three ways: 1. **No PHI** flows through them. Inputs are weight, age, vital signs, exam findings — not patient identifiers. Nothing here writes the `encounters` or `notes` tables. 2. **Most of them never call AI.** Bedside, Calculators and the static Vax/Catchup tables are pure JS. Only **PE Guide** and **Milestones** call `/api/generate-pe-narrative` / `/api/generate-milestone-narrative` to turn a checklist into prose. 3. **Bedside is the one corner of the frontend that uses native ES modules.** Everything else is IIFE. See section 12. The general rule: this is the part Daniel uses **at the bedside** in the ED / clinic / NICU. Speed and trust matter — every dose string shows the per-kg + max so the prescriber can re-verify the math without leaving the screen, and every clinical formula has a citation in the same render. --- ## 1. Overview | Module | File(s) | Loaded as | Talks to backend? | |---|---|---|---| | Bedside emergencies | `public/js/bedside/*` | `