Fasten Connect orchestrates a two-stage flow that begins when a patient authorizes access with Fasten Stitch and concludes when your systems retrieve their clinical data. Aligning your product and engineering teams around these stages keeps the experience compliant, transparent, and technically reliable.
Patient Consent — Patient-facing flows built with Fasten Stitch capture identity, grant authorization, and return the identifiers your backend needs to act on the consent.
Data Collection — Server-side jobs use the identifiers to request exports, monitor webhooks, and deliver the records to downstream systems while respecting retention policies.
Embed Stitch — Add the fasten-stitch-element to your application, supplying a public key that matches the deployment environment.
Listen for events — Parse the widget.complete event from the Stitch event bus and hand off the event payload to your backend over a secure channel.
(Optional) Register a webhook endpoint so you can receive patient.connection_success event notifications as a backup or for auditing.
Store consent artifacts — Persist the org_connection_id, brand_id, and other metadata alongside your patient record to build an auditable consent log.
Keep a short-lived cache of the most recent Stitch events to support patient support inquiries and replay protection.
You will be automatically subscribed to patient.ehi_export_success and related events at your registered webhook URL.
Validate the task_id in incoming events against the job you launched and record progress updates for support visibility.
Tasks will automatically time out after a reasonable period (Fasten will send a patient.ehi_export_failed; implement retry logic for transient failures or delays.
Retrieve the download link(s) from the webhook payload and stream the file(s) to your storage tier before the URLs expire
Links are valid for 24 hours from the time of the webhook event.
Import, convert or fan out the FHIR JSONL export into downstream formats (clinical data repository, data warehouse, analytics pipelines, or patient-facing portals).
Ensure your systems can handle large files and variable resource counts. (eg. 30MB with 500 resources vs 3GB with 5,000 resources + Binary data).
Use a Clinical Data Repository (CDR) that natively supports FHIR to simplify ingestion and querying.