Skip to content

Watch Closely Measurements — Implementation Plan

Version: 1.0
Last Updated: 2026-06-10 12:00:00
Spec: 2026-06-10-watch-closely-measurements-design.md


TaskFiles
Migration V017__patient_intake_output.sqlbackend/migrations/
Repository / service / routerrepositories/intake_output.py, services/intake_output_service.py, routers/intake_output.py, schemas/intake_output.py
Wire router (vitals_tracking gate)backend/main.py
Teststests/test_intake_output.py
OpenAPI exportopenapi/openapi.json, frontend/src/lib/api.types.ts
API clientfrontend/src/lib/api.ts
UI componentsUrineBeakerCapture, UrineColourPicker, StoolBristolPicker, IntakeOutputSection
Page integrationVitalsTracking.tsx
TaskFiles
fever_band_from_celsius service helperservices/intake_output_service.py
Shared frontend fever bandslib/feverBands.ts
Thermometer on temp cardFeverThermometerDisplay.tsx, VitalsBar.tsx, VitalEntryModal.tsx
Temp trend zone backgroundsVitalsTrendChart.tsx
  • Migration: pain_context on patient_pain_entries
  • BreakthroughPainStrip, map markers, trend filter

Phase 2b–3 — Neuro, oxygen, board attention strip (later)

Section titled “Phase 2b–3 — Neuro, oxygen, board attention strip (later)”
  • Do not remove CancerWatchClosely until Phase 3 buildAttentionItems() is wired.

Terminal window
cd backend
python -m pytest tests/test_intake_output.py tests/test_fever_band.py -x
ruff check repositories/intake_output.py services/intake_output_service.py routers/intake_output.py
cd ../frontend
npm run generate:types
npm run build