OMOP test fixtures
These fixtures are derived from the OHDSI Eunomia example dataset:
This directory intentionally contains two different kinds of OMOP input fixtures used by the test suite.
1. Full SQL fixture
omop_cdm_eunomia.sql
This is the larger PostgreSQL dump fixture used for:
omop2bffomop2pxf- streamed SQL-based OMOP regressions
Note:
concept_id = 5001was added to the fixtureCONCEPTdata so this SQL export remains self-contained without--ohdsi-db.
2. Reduced plain CSV fixtures
PERSON.csvCONCEPT.csvDRUG_EXPOSURE.csv
These are lightweight plain-CSV fixtures used to exercise the OMOP CLI/API paths without relying on a full OMOP export.
Important notes:
CONCEPT.csvis intentionally reduced and is not a complete OMOP vocabulary table.- These files are useful for regression-testing mechanics of the conversion path, but they are not a gold-standard fixture for complete OHDSI concept resolution.
- When required OMOP
concept_idvalues are missing from this reducedCONCEPT.csv, the conversion fails unless--ohdsi-dbis enabled for Athena-OHDSI fallback.
These reduced CSV fixtures are currently covered by the CLI regression test:
t/19-cli-regression.t
with a non-stream command equivalent to:
../../../bin/convert-pheno -iomop PERSON.csv CONCEPT.csv DRUG_EXPOSURE.csv \
-obff individuals_csv.json --test
3. Reduced MIMIC specimen fixture
mimic_specimen/PERSON.csvmimic_specimen/CONCEPT.csvmimic_specimen/SPECIMEN.csv
These files are a reduced fixture derived from the public MIMIC-IV demo OMOP CSV export hosted by PhysioNet:
Source files used:
1_omop_data_csv/person.csv1_omop_data_csv/specimen.csv
Important notes:
- This fixture is intentionally reduced to only the rows needed for OMOP
SPECIMEN-> Beaconbiosamplesregression tests. PERSON.csvkeeps the original MIMICperson_idvalues for the selected rows.- The demo OMOP
person.csvprovides year-level birth data; this fixture synthesizesbirth_datetime,month_of_birth, andday_of_birthas January 1 ofyear_of_birthsocollectionMomenttests remain deterministic. CONCEPT.csvis reduced to the concept ids referenced by the selectedPERSONandSPECIMENrows.
These reduced MIMIC specimen CSV fixtures are covered by:
t/26-omop-biosamples.t
Provenance details for mimic_specimen/:
- Download source: PhysioNet MIMIC-IV demo OMOP dataset, version
0.9 - Source URLs:
- Retrieved for this fixture on
2026-04-15 - Selected original MIMIC
person_idvalues kept in the fixture:4668337230155062633228888194213386895531920381065232084327131048714591189903
SPECIMEN.csvrows are reduced from those public MIMIC rows for biosample regression coverage onlyCONCEPT.csvis not copied from the MIMIC download; it is a reduced local companion fixture containing only the OMOP concept rows needed by the selectedPERSONandSPECIMENrows
4. Gzipped CSV fixtures
gz/PERSON.csv.gzgz/CONCEPT.csv.gzgz/DRUG_EXPOSURE.csv.gz
These are the fixtures used for streamed OMOP CSV regressions.
They are covered by:
t/04-api-stream-omop.tt/20-cli-stream-omop.t
with a command equivalent to:
../../../bin/convert-pheno -iomop gz/PERSON.csv.gz gz/CONCEPT.csv.gz gz/DRUG_EXPOSURE.csv.gz \
-obff individuals_csv.json.gz --stream --ohdsi-db --sep $'\t' --max-lines-sql 2700 --test