onSubmit delivers a FormFillingResult with filled forms in structured_data.generated_values.
The example routes each form by form_template_id 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
non_generated_values. Log or skip them in your handler:
TypeScript
Next steps
Refer to Webhook handler for server-side persistence Refer to Get Form filling structured data when your webhook payload does not include full output Refer to Callbacks forFormFillingResult field details