Skip to main content
This example shows how to map Form filling results to your EHR. When a session completes, onSubmit delivers a FormFillingResult with filled forms in structured_data.generated_values. The example routes each form by form_template_id (static) or partner_form_id (dynamic) and maps the data object to your EHR fields. Use ambient_session_id to avoid duplicate saves and correlation_id to match results to your encounter. For production, run this mapping in your Webhook handler. Use SDK callbacks for in-app preview only.
TypeScript
Templates or schemas with no output appear in non_generated_values. Log or skip them in your handler:
TypeScript

Available tutorials

Next steps

Webhook handler - Server-side persistence. Get Form filling structured data - Your webhook payload does not include full output. Callbacks - FormFillingResult field details.
Last modified on October 16, 2026