Glossary¶
This glossary explains the terms, tools and standards behind the FHIR pipeline demo. All data in the demo is synthetic. Each entry starts with a one-line summary, followed by what it is, how it works, and how it is used here.
Live sites: Demo | Docs | Board | Forge Studio
The essentials in two minutes¶
| # | Point |
|---|---|
| 1 | Two implementations, one answer. Way 1 is a DuckDB medallion lakehouse. Way 2 runs the same risk rules in a serverless function, built as an evaluation of Oystehr's public FHIR API. On the captured cohort the two agree on 56/56 flags. |
| 2 | Re-running changes nothing. The lakehouse sync is idempotent. The gold layer holds 10 patients and 48 flags. |
| 3 | A migration with proof. 3,188 records moved. A second run makes zero writes. It supports crash and resume, an independent readback verifies it, and a negative control caught 2 of 2 planted errors. |
| 4 | A summary that cannot invent facts. The executive summary tool is deterministic and every line is cited. It turns about 15 pages into about 175 words. FactGuard rejects any model line that is not a verbatim quote with correct negation and subject. |
| 5 | AI is limited to quoting. Two model tiers were recorded on an RTX 4090. Each had 8 of 34 quote attempts accepted. Release 1 is quote-only, with no export. |
| 6 | Quality gates that can fail the build. Mutation testing (Stryker.NET and StrykerJS), static analysis, secret scanning, dependency audit and OWASP ZAP run in CI. Live Playwright smoke tests pass 278/278 against production. |
| 7 | Everything is code. EF Core migrations, a .NET Aspire AppHost, and CDK Terrain (cdktn) in C# over Terraform, deployed to GCP and Cloudflare Pages. CI runs on self-hosted GitHub Actions runners. |
| 8 | Independent AI review. Five model families plan, build and review, and no family approves its own work. A red team stopped two slices. Each finding was fixed with a test that fails first, then re-reviewed. |
A. The system¶
Medallion lakehouse¶
In short: Three DuckDB layers (bronze, silver, gold) where re-running the sync changes nothing.
- What it is: A DuckDB data store in bronze (raw), silver (cleaned) and gold (answers) layers, in the style of an SSM-type lakehouse.
- How it works: Raw FHIR lands in bronze, silver standardises it, and gold holds the results. Each step is idempotent.
- How it is used here: This is Way 1. Gold holds 10 patients and 48 flags, and re-running sync changes nothing.
- Learn more: Medallion architecture | DuckDB docs
Operational ETL path¶
In short: FHIR to EF Core to SQLite or SQL Server, an ASP.NET Core API, and a Vue front end.
- What it is: The conventional application route for the same data.
- How it works: FHIR data is loaded through EF Core into SQLite or SQL Server. An ASP.NET Core API serves it to a Vue front end.
- How it is used here: It shows the data in the shape of a standard .NET application.
- Learn more: EF Core | ASP.NET Core | Vue | SQL Server
Oystehr/Ottehr path (Way 2)¶
In short: The same risk rules run in a serverless function, built as an evaluation of Oystehr's public FHIR API.
- What it is: A second implementation of the risk rules, built as an evaluation of Oystehr's public FHIR API.
- How it works: The risk rules run in a serverless function.
- How it is used here: On the captured cohort, parity with Way 1 is 56/56 flags.
- Learn more: Oystehr docs
Predictive reports¶
In short: Reports built from the risk flags, with 56/56 flag parity across 12 patients.
- What it is: The report layer on top of the risk flags.
- How it works: The reports are produced from the same flags as the pipeline.
- How it is used here: Parity between the two implementations is 56/56 flags across 12 patients.
- Learn more: Demo
Data quality stored procedure¶
In short: A stored procedure that records 4 checks per run into dq_check_result.
- What it is: A SQL stored procedure for data quality.
- How it works: Each run records 4 checks into the dq_check_result table.
- How it is used here: It provides the data quality results for the operational path.
- Learn more: Docs
SFTP drop-folder ingester¶
In short: Loads files from a drop folder with SHA-256 receipts, quarantine and idempotent replay.
- What it is: An ingester for files delivered to an SFTP drop folder.
- How it works: It issues SHA-256 receipts, quarantines files that fail, and supports idempotent replay.
- How it is used here: It covers partners that deliver files rather than API calls.
- Learn more: Docs
Migration system¶
In short: Moves 3,188 records and proves the move with a second run, a readback and a negative control.
- What it is: A tool that migrates records between systems and verifies the result.
- How it works: A second run makes zero writes, a crash can be resumed, and an independent readback checks the target.
- How it is used here: It migrated 3,188 records. A negative control caught 2 of 2 planted errors, which shows the check can fail.
- Learn more: Docs
Executive summary tool¶
In short: A deterministic summary where every line is cited, about 175 words from about 15 pages.
- What it is: A tool that condenses a patient chart into a short summary.
- How it works: It is deterministic, every line is cited, and notes appear as quotes only.
- How it is used here: It turns about 15 pages into about 175 words.
- Learn more: Docs
FactGuard¶
In short: Rejects any model line that is not a verbatim quote with correct negation and subject.
- What it is: A checker for AI-written lines.
- How it works: A line passes only if it is a verbatim quote with the correct negation and experiencer scope. It is backed by ConText/NegEx-style rules, a published approach to negation in clinical text.
- How it is used here: It sits between the model and the summary.
- Learn more: Docs
Model tiers¶
In short: Two tiers, MedGemma in-tenant and a simulated BAA tier on gpt-oss:20b, each with 8 of 34 quotes accepted.
- What it is: Two places a model can run, depending on privacy needs.
- How it works: MedGemma runs in-tenant. The simulated BAA tier uses OpenAI gpt-oss:20b, run locally.
- How it is used here: Both were recorded on an RTX 4090, with 8 of 34 quotes accepted per tier.
- Learn more: MedGemma | gpt-oss-20b
Release-1 policy¶
In short: Quote-only, no export.
- What it is: The rule for what AI may do in the first release.
- How it works: Only quotes that passed FactGuard are shown, and AI output is not exported.
- How it is used here: It limits risk until evidence supports widening it.
- Learn more: Docs
Forge Studio¶
In short: A site that explains the system at three reading depths, with linked visual views.
- What it is: A site that explains the system at three reading depths.
- How it works: It combines Rete.js node graphs, a GrapesJS live mockup, Puck blueprints, Blockly method blocks, LikeC4/Structurizr C4 architecture, data lineage, a C# code graph, an OpenAPI endpoint map, and a codebase map view (Floorplan).
- How it is used here: Readers choose how deep to go, from diagram to code graph.
- Learn more: Forge Studio | Rete.js | GrapesJS | Puck | Blockly | LikeC4 | Structurizr | OpenAPI
Floorplan¶
In short: A codebase map view inside Forge Studio.
- What it is: A codebase map view inside Forge Studio.
- How it works: It presents the JS/TS code as a map.
- How it is used here: It is one of the Forge Studio views.
- Learn more: Forge Studio
Three-level documentation¶
In short: Each topic is written at plain, middle and complex depth.
- What it is: Every topic is documented three times: plain, middle and complex.
- How it works: Readers choose the depth they need.
- How it is used here: The Docs follow this pattern.
- Learn more: Docs
Everything as code¶
In short: Schema, app host and cloud are all defined in version-controlled code.
- What it is: Databases, infrastructure and the app host are defined in code.
- How it works: EF Core migrations define the schema, a .NET Aspire AppHost defines the app, and CDK Terrain (cdktn) in C# generates Terraform for GCP and Cloudflare Pages.
- How it is used here: Everything can be reproduced and reviewed like other code.
- Learn more: EF Core | .NET Aspire | CDK Terrain | Terraform | Cloudflare Pages
B. Quality and security gates¶
Test stack¶
In short: NUnit, Moq, AutoFixture and Bogus, with Stryker mutation testing.
- What it is: The .NET testing toolkit used for the project.
- How it works: NUnit, Moq, AutoFixture and Bogus are used for tests and synthetic data. Stryker.NET and StrykerJS provide mutation testing.
- How it is used here: All test data is synthetic.
- Learn more: NUnit | Moq | AutoFixture | Bogus
Mutation testing¶
In short: Injects bugs and fails the build if the tests miss them.
- What it is: A technique that injects small bugs to check that tests notice.
- How it works: Stryker.NET and StrykerJS change the code and re-run tests. A bug the tests miss is a surviving mutant.
- How it is used here: The build breaks when tests miss injected bugs.
- Learn more: Stryker.NET | StrykerJS
Contract tests¶
In short: Tests pinned to payloads captured from the real producer.
- What it is: Tests that check code against a real captured payload.
- How it works: A verbatim payload from the producing system is saved and used as the fixture.
- How it is used here: Each boundary where data crosses systems is tested this way.
- Learn more: Docs
Static analysis and secret scanning¶
In short: Semgrep checks code patterns and gitleaks checks for committed secrets.
- What it is: SAST tools.
- How it works: Semgrep matches code against rules. Gitleaks scans for secrets.
- How it is used here: Both run in CI.
- Learn more: Semgrep | gitleaks
Dependency audit¶
In short: Checks third-party packages for known vulnerabilities.
- What it is: An audit of package dependencies.
- How it works: Package versions are compared with public vulnerability data.
- How it is used here: It runs as part of the quality gates.
- Learn more: NuGet auditing
DAST with OWASP ZAP¶
In short: Tests the running application for weaknesses.
- What it is: Dynamic application security testing.
- How it works: ZAP sends test requests to a running app and reports issues.
- How it is used here: It runs in CI.
- Learn more: OWASP ZAP
Playwright smoke tests¶
In short: Browser tests against production: 278/278 pass.
- What it is: Browser automation that exercises the live site.
- How it works: Playwright drives a browser through key flows.
- How it is used here: 278/278 tests and 1,238/1,238 checkpoints pass against production.
- Learn more: Playwright for .NET
Self-hosted GitHub Actions runners¶
In short: CI runs on build machines owned by the team.
- What it is: GitHub Actions runners hosted by the team.
- How it works: A runner program pulls jobs from GitHub Actions.
- How it is used here: CI for the project runs on these runners.
- Learn more: Self-hosted runners
Council code review gate¶
In short: Every change is reviewed by several model families before it lands.
- What it is: A review step using multiple AI model families.
- How it works: Each reviewer works independently and cites file and line. A chair combines the findings.
- How it is used here: It runs before each change is committed.
- Learn more: How it was built
Red team¶
In short: A reviewer that attacks the work; it stopped two slices, and every finding was fixed.
- What it is: A review role focused on attack paths.
- How it works: It reports findings with evidence.
- How it is used here: It stopped the migration and the AI spike. Each finding was fixed with a test that fails first, then re-gated.
- Learn more: How it was built
C. How AI is used¶
The AI team and roles¶
In short: Five AI teammates from different model families, each with a role.
- What it is: Clahadore Jones (Claude), Cedric Jones (Codex/ChatGPT), Jenny Jones (Gemini), Gronktayvius Jones (Grok) and Susie Franny Jones (Meta Muse Spark).
- How it works: Clahadore orchestrates, plans and reviews. Cedric implements and gives second-opinion review. Jenny reviews backend and cloud. Gronktayvius red-teams. Susie covers frontend and security.
- How it is used here: Different families catch different mistakes.
- Learn more: How it was built
Multi-model council¶
In short: Each model family reviews independently, so no family approves its own work.
- What it is: A panel of reviewers from different model families.
- How it works: Each reviews independently, then findings are combined.
- How it is used here: It is the review gate on changes.
- Learn more: How it was built
Elephant-goldfish method¶
In short: Full-context stages followed by context-wiped reviewers who see only the plan.
- What it is: A plan-review method. "Elephant" stages hold full context. "Goldfish" stages are context-wiped reviewers who see only the plan.
- How it works: The goldfish stages are zoom-out/reuse, naive-reader comprehension, design critic/readiness, and a security threat veto.
- How it is used here: It catches things an author with full context misses.
- Learn more: How it was built
Determinism and decision rules¶
In short: Gates and reviewers decide; humans step in on disagreement, security, money or failed gates.
- What it is: A rule for when people are involved.
- How it works: Automated gates and reviewers decide routine matters.
- How it is used here: Humans are involved when reviewers disagree, or for security, money or a failed gate.
- Learn more: How it was built
Receipts rule¶
In short: No claim of "done" without the command and its output.
- What it is: An evidence rule for completion claims.
- How it works: Each claim ships with the command and the observed output.
- How it is used here: It underlies the figures on this page.
- Learn more: How it was built
D. Other tools¶
Entire¶
In short: A developer platform from former GitHub CEO Thomas Dohmke, built for humans and AI agents.
- What it is: A company launched in February 2026 to build a developer platform for humans and agents.
- How it works: Its first product, Checkpoints, stores the context behind AI-written code (prompts, transcripts, files touched, tool calls) in git alongside each commit.
- How it is used here: It is mentioned as related work. It is not part of the demo.
- Learn more: Entire
Kubernetes¶
In short: An open-source platform for running containerized applications.
- What it is: A system for managing containerized workloads.
- How it works: Users declare the desired state, and Kubernetes keeps workloads matching it.
- How it is used here: It is not used in this demo.
- Learn more: Kubernetes overview
E. Health-data standards¶
| Standard | In short | Official link |
|---|---|---|
| FHIR R4 / R4B | The HL7 standard for exchanging health data as web-friendly resources. | R4 / R4B |
| Synthea | Open-source generator of fictional patients with realistic histories. | Synthea |
| LOINC | Codes for lab tests and clinical observations. | loinc.org |
| SNOMED CT | A clinical terminology for diagnoses, findings and procedures. | snomed.org |
| RxNorm | The National Library of Medicine's normalized names for clinical drugs. | RxNorm |
| CVX | The CDC's code set for administered vaccines. | CDC CVX |
| CDS Hooks | A standard for decision support inside a clinician's workflow. | cds-hooks.org |
| HIPAA BAA | The business associate agreement required before a vendor handles PHI for a covered entity. | HHS |
| PHI | Protected health information: identifiable health data covered by HIPAA. | HHS |