What you will build
- A Form filling session opened with template IDs
- A stable
correlation_idfor your EHR mapping - Mapping
structured_datainto one EHR payload after submit
Install the Suki developer docs as a skill to get context on Suki's developer tools, APIs, and SDKs. Add the MCP server for documentation search.
correlation_id, then map structured_data from the submit result for EHR handoff.
By the end of this tutorial, submit returns filled form values and your mapping builds one EHR payload per filled template.
Prerequisites
Before you begin, make sure you have:- Completed Partner onboarding.
- Valid Form filling
template_idvalues from Suki support. Refer to Form filling templates. - A React 18+ app that meets Form filling SDK prerequisites.
EHR field names differ by partner system. The mapping in this tutorial is illustrative. Adapt
fields to your chart schema.Architecture
Project setup
- Complete Partner onboarding and obtain valid Form filling
template_idvalues (see Prerequisites). - Install the required dependencies:
-
Configure your credentials:
- Keep credentials ready for the Form filling client configuration used in later steps.
- Have valid
template_idvalues from Suki for your partner account.
-
Give the Form filling container height. React mounts the UI in
.suki-form-filling. Without height, the iframe looks blank:
Tutorial steps
Work through each step in order. Read the explanation, review the code example, then continue to the next step. The full code example is available in the accordion below.1
Create FormFillingClient Once
Build
SukiAuthManager and FormFillingClient in useMemo. Set autoRegister: false unless your integration uses provider auto-registration (default is true).2
Open Form Filling with Template IDs and correlation_id
Wrap with
FormFillingProvider. Pass template IDs from Suki support and your encounter id as correlation_id so results map back to the chart. Style .suki-form-filling with height before the UI mounts.3
Map structured_data for EHR Handoff
In
onSubmit, map structured_data.generated_values by form_template_id. Use correlation_id as your encounter key and ambient_session_id for idempotent saves. For production persistence, also handle your partner webhook.Full code example
Troubleshooting
Blank Form Filling UI
Blank Form Filling UI
Give
.suki-form-filling explicit height before the UI mounts. Zero height is the most common cause of a blank iframe. See Form filling React integration.Empty or Wrong Templates
Empty or Wrong Templates
Use
template_id values from Suki for your partner account.Cannot Correlate Results
Cannot Correlate Results
Pass a stable
correlation_id when you open the session and reuse it in your mapping.Production Saves
Production Saves
Prefer your partner webhook in production; this tutorial maps from
onSubmit for the session flow.Summary
In this tutorial, you:- Opened Form filling with template IDs and a stable
correlation_id. - Received
FormFillingResulton submit. - Mapped
structured_datainto EHR handoff payloads.