Skip to main content
This example shows how to create a React encounter page that integrates the Form filling SDK. The clinician starts Form filling from a button, completes the assessment, and your app receives the structured results in the onSubmit callback. The example creates a FormFillingClient with useMemo, wraps the app with FormFillingProvider, and renders FormFilling only while a session is active. A sibling component uses useFormFilling() to track the session state and error without letting a stale error hide an active session.
React
Pass one form_template_id to skip the selection screen. Pass two or more to show multi-form selection. Refer to Session workflow for more details.

Next steps

Configuration examples - Minimal auth and client setup. EHR handoff - Map structured_data to your EHR. FormFillingClient - useFormFilling() return values.
Last modified on October 16, 2026