← CMP-DC home

Form Runtime (JSON demo)

This page uses a static FormJson mock via FormLoader. Later, this will load form definitions from the backend and submit JSON back to the API.

Community health intake (demo)

Realistic screening workflow with roster repeat, conditional follow-up, vitals with a calculated BMI, and a rating grid.

demohealthfield-testexport-fixture

Screening visit

Complete one row per adult present. Adjust the roster size with the first numeric question.

Visit registration
Visit code*

Format: two letters, hyphen, four digits (e.g. CH-2048).

How many adults (18+) are you registering right now?*

Drives the roster below (1–15).

Adult roster (one row per person)
Row 1
Person in this row
Full name*
Age (years)*
Sex recorded for this visit*
Referral to clinic needed?*
Referral notes (facility, reason)*

Shown only when a referral is required.

Dietary considerations (optional)
Previous positive TB test on record?*
Anthropometrics
Height (cm)*

Standing height in centimeters.

Weight (kg)*
BMI (auto-calculated)

Updates from height and weight; arithmetic only (not a clinical decision).

How may we follow up? (pick all that apply)*
Rate today’s visit (each row must use a different score)

Duplicate scores in two rows will fail validation.

ItemPoorFairGoodExcellent
Waiting time
Staff respect
Instructions clarity