OHDSI / Eunomia

An R package that facilitates access to a variety of OMOP CDM sample data sets.
https://ohdsi.github.io/Eunomia/
42 stars 11 forks source link

Inconsistencies between `visit_occurrence_id` within records and `visit_occurence_id` in table `VISIT_OCCURRENCE` #38

Open mrueda opened 1 year ago

mrueda commented 1 year ago

Hello,

First of all, thank you for creating this dataset 👍🏻:

We (@mrueda @palilsonjmr) have been using your synthetic dataset to test an OMOP-CDM instance and have encountered an issue with the consistency of the visit_occurrence_id associated with each person_id.

Specifically, we have noticed a discrepancy between the visit_occurrence_id for each person_id in the _VISITOCCURRENCE table and the visit_occurrence_id for the same person_id appearing in other tables (CONDITION_OCCURRENCE, DRUG_EXPOSURE, MEASUREMENT, OBSERVATION, and PROCEDURE_OCCURRENCE).

For example, person_id = 1 has only 1 visit_occurrence_id (85) in the _VISITOCCURRENCE table, but in the MEASUREMENT table, this person_id has multiple visit_occurrence_id (22, 41, 42, 43, 45, ...).

Are you guys aware of this issue?

Best,

Manu