Learning lab · PostgreSQL · OHDSI stack
OMOP Engineer Lab
Hands-on journey from Synthea CSVs to a validated OMOP CDM 5.4 warehouse — ETL, Athena vocabulary, Rabbit-in-a-Hat, and Data Quality Dashboard.
CDM version
5.4
Synthetic cohort
100 patients
Latest DQD (v6)
910 pass · 5 fail
Generate
Synthea 100-patient cohort → CSV exports
Stage
synthea_src tables (patients, encounters, conditions, meds, observations)
Vocabulary
Athena v5 → ~2M concepts in omop_cdm.concept
Map
WhiteRabbit scan + Rabbit-in-a-Hat ETL specs
Load
10_load_synthea_omop.sql → CDM clinical tables
Validate
DataQualityDashboard (Java 17, R 4.5)
Next
Achilles characterization · MIMIC OMOP demo · ATLAS
| Table | Rows (lab) |
|---|---|
| person | 107 |
| observation_period | 107 |
| visit_occurrence | 5,721 |
| condition_occurrence | 3,796 |
| drug_exposure | 4,403 |
| measurement | 72,327 |
| observation | In progress (LOINC Observation domain) |
Full DQD runs on omop_cdm with cohort/era tables excluded until those pipelines exist. Errors cleared after Java 17 and table exclusions.
| Milestone | Passed | Failed | Errors |
|---|---|---|---|
| First full DQD | 842 | 18 | 33 |
| Exclude cohort tables | 1001 | 16 | 0 |
| v3 exclusions + period type | 948 | 10 | 0 |
| v4 exclude DRUG_STRENGTH | 906 | 9 | 0 |
| v5 cdm_source 5.4 concept | 907 | 8 | 0 |
| v6 visit + domain fixes | 910 | 5 | 0 |
visit_concept_id must come from Visit domain (9201 inpatient, 9203 ED, 9202 outpatient) — not procedure SNOMED on encounters.code.
Condition, Measurement, and Drug joins must filter concept.domain_id. Wrong-domain matches were zeroed (2,156 conditions; 30,745 measurements).
PRAPARE, GAD-7, housing, and SDOH LOINC codes are standard Observation concepts — route to observation, not measurement.
Java 17 for DQD; writeToTable=FALSE avoids segfaults; tablesToExclude for empty cohort/era tables; summarize JSON when viewDqResults is unavailable.
~/omop-lab/data/output/csv/Synthea exports~/omop-lab/scripts/10_load_synthea_omop.sqlRerunnable ETL~/omop-lab/scripts/11_run_dqd_full.RDQD runner~/omop-lab/docs/synthea_to_omop.riah/RiaH mapping project~/omop-lab/dqd/output/DQD JSON resultsThis site is a static Next.js export. Push to GitHub, enable Pages from Actions, and the workflow deploys on every push to main.
omop-lab-portfolio).git remote add github https://github.com/harishedu11-hash/omop-path.git
git push -u github mainFor a user site (username.github.io root), set GITHUB_PAGES_BASE_PATH to empty in the workflow and remove basePath from the build step.
Update lib/content.ts with your GitHub link and fresh row counts after each ETL run.