I am reaching out to seek clarity on a topic that I find somewhat confusing, and I believe your expertise could greatly help me understand it better.
I’m currently working on a healthcare utilization segment for the OMOP CDM database, and have been exploring the OHDSI data model and noticed that there are separate tables for “Visit Occurrence” and “Visit Details.” From my current understanding, both tables capture information related to patient visits, but they serve slightly different purposes. Given their similarities, I find myself questioning the necessity of having both tables as distinct entities. While I do understand that visit_details is more granular than visit_occurrences , I wonder if including the movements of the patients into visit_occurrences is still in the realms of standard practice.
My current understanding of the two tables is that:
- visit_occurrences table would refer to their ‘first visit’ (i.e their first visit to the doctor, or A&E) ,
- and more granular details , such as their movements to the OT, ward, etc will be captured in the visit_details,
which means that there is only 1 parent in the visit occurrences and >= 0 children in the
visit_details, which would be linking the “first” visit and the follow-up movements.
Questions :
-
Could someone kindly explain the fundamental differences between these two tables, aside from the granularity? Specifically, I’m interested in understanding how they complement each other and whether there are scenarios where one table might be preferred over the other.
-
Additionally, what could be the practical implications of consolidating visit-related data. Would it be feasible or advisable to merge all visit details into the “Visit Occurrence” table and forego the use of the “Visit Details” table ? Or are there compelling reasons to maintain these as separate entities within the database structure?
-
Also, if I were to utilize both tables, I assume visit details would be more than enough to get details of a patient’s movement across healthcare services. Meaning all of these details would be in the visit_details
Example of a patient’s progress.
Admission to the emergency department ->Transfer to the intensive care unit (ICU). ->Move to a general ward for continued recovery. ->Discharge from the hospital.)
In this scenerio:
Admission to the emergency department would be in the details_occurrence table
while the Transfer, General Ward, and Discharge would be in the visit_details table, is that fair?
I understand that this might be a nuanced topic, and there could be specific design considerations behind this choice. I appreciate any insights you could provide on this matter, including any examples or best practices you might share.
Thank you for taking the time and for any guidance you can offer.