Skip to content

Synthetic FHIR pipeline demo

CI

This demonstration turns captured synthetic FHIR records into traceable population reports and patient risk cards. It compares a batch lakehouse with an operational integration and a second implementation of the same rules in an Ottehr-compatible Zambda handler.

Two ways

Way 1 — .NET and Vue. The SSM-style path loads DuckDB bronze resources, normalizes silver tables, and publishes gold SQL views for Metabase. The Innovare-style path uses EF Core with SQLite or SQL Server, incremental sync, an API, CDS Hooks cards, and a Vue patient chart. Both retain source IDs and agree on captured risk rows.

Way 2 — Ottehr-compatible TypeScript handler. The same synthetic cohort runs through a Zambda risk handler with intake contracts and automated Way 1 parity. We evaluated Oystehr's public FHIR API. Verified handler tests use local synthetic transport; no hosted-service or production deployment is claimed.

Missing measurements remain missing. Intake answers do not become clinical measurements. These rules are educational, not a clinical decision system.

Three-command local run

Prerequisites: .NET SDK from global.json, Node.js 22.13–24, and npm. Docker is needed for optional local HAPI FHIR, SQL Server, and Metabase resources. The DuckDB provider is vendored.

dotnet restore
npm ci --prefix web
dotnet run --project src/FhirDemo.AppHost

Open the web resource from Aspire's dashboard. Defaults: committed synthetic fixtures and SQLite. See EHR details, Metabase setup, and deployment instructions.

  • Patient demo: pending Andrew's deployment approval.
  • Forge Studio: pending Andrew's deployment approval.
  • GCP API: pending Andrew's deployment approval.

Architecture and evidence

Quality gates

A configured gate is not a claim that it passed. QUALITY-MATRIX records commands and observed results for all three tracks. VERIFY contains real receipts and explicit NOT DONE entries.

Gate Run from repository root
Build and recommended analyzers dotnet build -warnaserror
NUnit, boundary/provider contracts bash .github/scripts/pass11-test.sh
Vue unit, snapshot, mobile e2e cd web; npm ci; npm test; npm run build:snapshot; npm run e2e
Way 2 tests and type check cd ehr-track/risk; npm ci; npm test; npm run check
Mutation bash .github/scripts/pass11-mutation.sh — lane arguments and thresholds
Semgrep C#, TypeScript, secrets, SQL Pinned scanner command in ci.yml
NuGet and three npm audits bash .github/scripts/pass11-deps.sh
Full-tree/full-history Gitleaks Pinned commands in ci.yml
API/Zambda OWASP ZAP baseline bash .github/scripts/pass11-dast.sh
Synth, Terraform validate, IaC security bash .github/scripts/pass11-iac.sh
Way 1/Way 2 parity pwsh -File ehr-track/scripts/parity.ps1 -WorkingTree
Matrix completeness dotnet run --project tools/QualityGate -- matrix docs/QUALITY-MATRIX.md
Release audit dotnet run --project tools/ReleaseAudit -- . <external-release-denylist.txt>
Dependency license inventory dotnet run --project tools/LicenseReport

Linux CI pins actions and scanners, uses read-only repository permissions, and needs no configured secrets. Mutation reports must contain assessed mutants and satisfy positive thresholds. Bogus for shape, Synthea for clinical truth: clinical records remain captured synthetic fixtures.

What I'd do at Innovare

I would start with an agreed read-only integration boundary and representative de-identified test cases, then measure mapping coverage, sync lag, duplicate handling, and reconciliation failures. Authorization, audits, operational ownership, and clinical review would precede writeback or presenting a rule as a validated care recommendation.

The migration/reconciliation pass is separate. Deployment follows Andrew's approval, environment-specific validation, and a completed release audit.

Andrew Jones owns the work. Cedric Jones and Clahadore Jones assisted with implementation and review preparation; VERIFY records what ran. Original work is all rights reserved; third-party materials retain their licenses.