You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
FHIR and OMOP tooling: which free tools should this demo use, where, and why? (Microsoft's five FHIR projects and alternatives)
#776
Question: Which free FHIR and OMOP tools should this demo adopt, where in the stack would each one go, and which should we deliberately leave out? Below is a first assessment. Please add tools you have used in production, or disagree with a verdict. Whatever we adopt gets its own ADR.
The starting point was a LinkedIn post listing five open source FHIR projects from Microsoft ("5 open source FHIR projects from Microsoft", Darren Devitt). It is a good list for teams building on Azure Health Data Services. We do not, so each project is checked against what this repository actually does.
.NET 8 library for custom operations and caching in front of the Azure Health Data Services FHIR service
No
It extends a managed FHIR service we do not run. Our "custom operations" live in the TypeScript proxy. It only matters if we ever move the FHIR store to Azure Health Data Services.
HL7v2, C-CDA and JSON to FHIR R4, FHIR STU3 to R4, FHIR to HL7v2 (preview); Liquid templates
Yes, spike
A data-holder onboarding step: AlphaKlinik Berlin's hospital system sends HL7v2 ADT/ORU messages, the converter makes FHIR, load_fhir_neo4j.py loads it. That shows the realistic path from a hospital to the dataspace, which Synthea skips. It does not replace epa-ingest, which reads PDFs.
The open source code base of Microsoft's managed FHIR service; SQL Server or Cosmos DB
No
A full FHIR server on SQL Server is a second store next to Neo4j and adds Azure cost. If we want a real FHIR REST endpoint, Blaze or HAPI (below) are lighter and run on what we already have.
Samples for SMART App Launch with Entra ID, API Management and Azure Health Data Services
No
Bound to Entra ID and API Management; our identity is Keycloak plus the EUDI wallet. If we add SMART App Launch (for example for the Klarbefund app reading its own record), we test it with smart-launcher-v2 and client-js instead. The post itself calls it a time sink.
FHIR and DICOM anonymisation, .NET CLI, configuration per FHIRPath (redact, date shift, crypto hash, generalise, perturb, substitute)
Yes, spike
The best fit of the five. Tested below. EHDS Art. 66 asks the access body to pseudonymise or anonymise before data reaches the secure processing environment. The SPE extract step (#774) could run it per permit, with the configuration recorded on the permit next to its policyHash. It does not measure re-identification risk; ARX does (below).
Tested: the anonymiser's command-line tool
Run on 2026-10-31 with release v4.2.2 (2025-06-16), in mcr.microsoft.com/dotnet/runtime:8.0, on one Synthea R4 bundle from the project's own samples (Carolee951_Sanford861_...json, 484 KB, 14 encounters, 803 references). Synthetic data only.
Name, address line, phone, identifiers, patient UUID left in the output
0
3 strings in 32 places
0
Hashed references that still point at a hashed Resource.id
775 of 775
783 of 783
783 of 783
Intervals between the 14 encounters kept
13 of 13
13 of 13
13 of 13
Birth date
shifted by days (1969-02-21)
year only (1969)
year only (1969)
Patient address
state and 3-digit ZIP kept (HIPAA)
country only
country only
What this shows:
It works and fits the extract step. References stay resolvable after hashing (HMAC-SHA256), so the graph can be rebuilt from the output. Dates shift by up to 50 days with one offset per file, so a patient's timeline keeps its shape. Input is a folder of JSON or NDJSON (-b), the same shape $everything and $export produce.
The configuration is where the risk is. Our first config passed validation and still left the patient's name in Reference.display (31 places) and the original UUID in Bundle.entry.fullUrl. The tool cannot tell; only a leak test can. If we adopt it, CI must run a check like the one used here: no name, address, phone or identifier string of the input may appear in the output.
The sample config is HIPAA Safe Harbor, not GDPR or EHDS. It keeps the US state and a 3-digit ZIP and redacts ages over 89. We need our own config. A first version, matching what researchers already see in the UI (birth year, no residence, pseudonym), is below.
Keys are per permit. With a cryptoHashKey and dateShiftKey per permit, the same patient gets different pseudonyms and offsets in two permits, so two researchers cannot link their extracts. The access body keeps the keys, as Art. 66 expects for pseudonymised data. They would sit next to the extract key in Trustee (ADR-068).
Caveats. The released binary targets .NET 6 (out of support), so it needs DOTNET_ROLL_FORWARD=Major or a build from source on .NET 8. Fields inside extensions cannot be anonymised, only redacted as a whole. dateShiftScope: resource gives each resource its own offset in NDJSON (it worked here only because the whole bundle is one resource), so use file with one file per patient. The sample config also redacts Coding.display, which removes SNOMED and LOINC display text; the codes stay.
Where it goes. The SPE extract today is graph JSONL, not FHIR. So: export each permitted patient as a FHIR bundle (the proxy's $everything), anonymise, then load the workspace and run fhir-to-omop-transform.cypher inside it, so OMOP is derived from data that is already anonymised. It must not run at hub ingest: primary use (the patient, the data holder) needs the real identity.
The reference validator: profiles, terminology, invariants
Yes, first
A CI job that validates Synthea output, epa-ingest bundles and the iOS golden bundles (clients/ios/Tests/SharedTests/Fixtures/) against hl7.fhir.eu.base and hl7.fhir.eu.laboratory. CI only, no runtime cost, and it closes an open roadmap item.
FHIR server with a fast CQL engine for population queries ($evaluate-measure), terminology for LOINC and SNOMED; in use in Germany's Medical Informatics Initiative and in BBMRI-ERIC biobanks
Candidate
One FHIR endpoint per data holder (AlphaKlinik Berlin, Limburg Medical Centre) answering federated cohort counts in CQL instead of our hand-written Cypher. A real FHIR API for the dataspace's data plane. Bigger change, needs an ADR on its relation to Neo4j.
HL7 specification for ViewDefinitions (FHIR to flat tables)
Yes, as a format
Write the FHIR to OMOP and cohort views as ViewDefinitions instead of Cypher only, so another data holder can run the same views on its own FHIR server.
Load SNOMED, LOINC, RxNorm and ICD-10 concepts so fhir-to-omop-transform.cypher writes real *_concept_id values instead of 0. Without it no OHDSI tool gives meaningful results.
Shows a data holder's data quality the way DARWIN EU and EHDEN expect it; the result could feed the dataset's HealthDCAT-AP quality fields. Needs a CDM in Postgres.
Measure the risk of each SPE extract before it is sealed, and record it on the permit. Complements the Microsoft anonymiser, which transforms but does not measure.
Data Quality Dashboard and Achilles on a Postgres CDM export, locally first.
FHIR Converter for an HL7v2 onboarding story for a data holder.
Blaze or HAPI as a data holder's FHIR endpoint: only with an ADR, because it changes where FHIR lives.
Left out on purpose: the Azure Health Data Services Toolkit, Microsoft's FHIR server and Microsoft's SMART samples (all assume the managed Azure service and Entra ID), Medplum, LinuxForHealth FHIR, OMOPonFHIR.
What do you think? In particular:
Blaze or HAPI, if we add a real FHIR server at all?
Is a Postgres CDM next to the graph worth it for the OHDSI tools, or should OMOP stay graph-only?
Have you run the Microsoft anonymiser or ARX on EHDS secondary-use extracts?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Question: Which free FHIR and OMOP tools should this demo adopt, where in the stack would each one go, and which should we deliberately leave out? Below is a first assessment. Please add tools you have used in production, or disagree with a verdict. Whatever we adopt gets its own ADR.
The starting point was a LinkedIn post listing five open source FHIR projects from Microsoft ("5 open source FHIR projects from Microsoft", Darren Devitt). It is a good list for teams building on Azure Health Data Services. We do not, so each project is checked against what this repository actually does.
What the demo uses today
scripts/generate-synthea.sh,.github/workflows/fhir-loader.ymlscripts/load_fhir_neo4j.py$export, no$validate/fhir/Patient,$everything)services/neo4j-proxy/src/routes/fhir.tsservices/epa-ingest/hl7.fhir.eu.baseandhl7.fhir.eu.laboratoryneo4j/fhir-to-omop-transform.cypher, iOSOmopExport.swift*_source_value); no Athena vocabulary, so no OHDSI tool can run on itservices/neo4j-proxy/src/routes/omop.tsservices/spe-loader/(#774)ui/src/lib/auth.tsThe five Microsoft projects
load_fhir_neo4j.pyloads it. That shows the realistic path from a hospital to the dataspace, which Synthea skips. It does not replaceepa-ingest, which reads PDFs.policyHash. It does not measure re-identification risk; ARX does (below).Tested: the anonymiser's command-line tool
Run on 2026-10-31 with release v4.2.2 (2025-06-16), in
mcr.microsoft.com/dotnet/runtime:8.0, on one Synthea R4 bundle from the project's own samples (Carolee951_Sanford861_...json, 484 KB, 14 encounters, 803 references). Synthetic data only.--validateOutputcleanResource.idWhat this shows:
-b), the same shape$everythingand$exportproduce.Reference.display(31 places) and the original UUID inBundle.entry.fullUrl. The tool cannot tell; only a leak test can. If we adopt it, CI must run a check like the one used here: no name, address, phone or identifier string of the input may appear in the output.cryptoHashKeyanddateShiftKeyper permit, the same patient gets different pseudonyms and offsets in two permits, so two researchers cannot link their extracts. The access body keeps the keys, as Art. 66 expects for pseudonymised data. They would sit next to the extract key in Trustee (ADR-068).DOTNET_ROLL_FORWARD=Majoror a build from source on .NET 8. Fields inside extensions cannot be anonymised, only redacted as a whole.dateShiftScope: resourcegives each resource its own offset in NDJSON (it worked here only because the whole bundle is one resource), so usefilewith one file per patient. The sample config also redactsCoding.display, which removes SNOMED and LOINC display text; the codes stay.$everything), anonymise, then load the workspace and runfhir-to-omop-transform.cypherinside it, so OMOP is derived from data that is already anonymised. It must not run at hub ingest: primary use (the patient, the data holder) needs the real identity.EHDS config used in the test (keys replaced)
{ "fhirVersion": "R4", "processingError": "raise", "fhirPathRules": [ {"path": "Bundle.entry.fullUrl", "method": "redact"}, {"path": "nodesByType('Reference').display", "method": "redact"}, {"path": "nodesByType('Extension')", "method": "redact"}, {"path": "nodesByType('Narrative')", "method": "redact"}, {"path": "nodesByType('HumanName')", "method": "redact"}, {"path": "nodesByType('ContactPoint')", "method": "redact"}, {"path": "nodesByType('Identifier')", "method": "redact"}, {"path": "Patient.address.country", "method": "keep"}, {"path": "Organization.address", "method": "keep"}, {"path": "Location.address", "method": "keep"}, {"path": "nodesByType('Address')", "method": "redact"}, {"path": "Patient.contact", "method": "redact"}, {"path": "Patient.birthDate", "method": "generalize", "cases": {"true": "$this.toString().substring(0,4)"}, "otherValues": "redact"}, {"path": "Resource.id", "method": "cryptoHash"}, {"path": "nodesByType('Reference').reference", "method": "cryptoHash"}, {"path": "nodesByType('date')", "method": "dateShift"}, {"path": "nodesByType('dateTime')", "method": "dateShift"}, {"path": "nodesByType('instant')", "method": "dateShift"} ], "parameters": { "dateShiftKey": "<per-permit secret>", "dateShiftScope": "file", "cryptoHashKey": "<per-permit secret>", "enablePartialAgesForRedact": true } }Other free tools worth a look
Licence and last push are as GitHub reports them on 2026-10-31. "none" or "custom" means GitHub found no standard licence file; check before reuse.
FHIR server, validation, profiles
validator_cli.jar)epa-ingestbundles and the iOS golden bundles (clients/ios/Tests/SharedTests/Fixtures/) againsthl7.fhir.eu.baseandhl7.fhir.eu.laboratory. CI only, no runtime cost, and it closes an open roadmap item.$validateover HTTP.$evaluate-measure), terminology for LOINC and SNOMED; in use in Germany's Medical Informatics Initiative and in BBMRI-ERIC biobanksTerminology and analytics on FHIR
SnomedConceptseed with real hierarchy queries. SNOMED content needs a national licence.FHIR to OMOP and the OHDSI tools
fhir-to-omop-transform.cypherwrites real*_concept_idvalues instead of 0. Without it no OHDSI tool gives meaningful results.epa-ingestanalytes without a LOINC code.ohdsifor the researcher demo. Not on Azure: cost, and ATLAS duplicates our query UI.De-identification
epa-ingest(a doctor's comment on a lab report).Proposed order
Left out on purpose: the Azure Health Data Services Toolkit, Microsoft's FHIR server and Microsoft's SMART samples (all assume the managed Azure service and Entra ID), Medplum, LinuxForHealth FHIR, OMOPonFHIR.
What do you think? In particular:
All reactions