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

Refer to Configuration examples for minimal auth and client setup Refer to EHR handoff to map structured_data to your EHR Refer to Formfillingclient for useFormFilling() return values
Last modified on July 23, 2026