Hello Everyone,
We have visit data from the hospital which has visit_type, person_id, admit_time, discharge_time and visit_ids.
However the issue is visit_ids (visit_occurrence_ids) are repeating and aren’t unique. Meaning I can see that in our data
a) Multiple person sharing the same visit_ids
b) One person with same visit_ids occurring multiple times
Am I right to understand that
scenario a) indicates issue with data? I feel this is an issue with data but still wanted to check with you folks in forum on whether you have dealt with such issues here and how did you resolve them while transforming them to OMOP CDM?.
scenario b) is possible that the patient visited different counters in the hospital where they made use of same visit_id as reference? Can you shed some light on this? Have you encountered this scenario at your end? If yes, I can drop these source visit_ids and create custom visit_ids based on your logic
Is there any one here who devised their own logic to create visit_occurrence_ids based on time or any other approach?
But still in visit_occurrence table, we know that visit_occurrence_ids cannot repeat (as it is a primary key). So, in this case, will my scenario b) also becomes a data issue?
Any suggestions or help please?