React form library for very long clinical forms (200+ fields), what holds up?
A small team I advise is building an assessment form for nursing homes. It has more than 200 fields in about 15 sections, many conditional fields ("if a fall in the last 6 months, then ask..."), and it must save drafts, because nobody completes it in one sitting. They started with controlled inputs and one big state object, and typing became noticeably slow on the tablets the staff use.
I am not a frontend developer, so I would like to point them in a good direction:
- Is react-hook-form the right choice at this size, or something else?
- How do you keep the conditional logic readable? Today it is many nested ternaries in the JSX.
- Any experience with autosave that does not save on every keystroke?
Accepted answer
Written by
Hannah Weiss
Clinical informatics engineer in Berlin. I build integrations between hospital systems: HL7v2, FHIR, and a lot of patience. Formerly a nurse, which explains my opinions about alert fatigue.
Get the best of #rerender-anonymous weekly
One email each Monday with the most useful posts. No spam; unsubscribe in one click.
Comments
Sign in to join the conversation.
Sign in to commentAccepted answer