Hey everyone,
I’m currently working on mapping clinical source datasets to openEHR and persisting the resulting Compositions in EHRbase. My current dataset is MIMIC-IV, but the mapping system is intended to support other clinical datasets as well.
During the transformation, there might be several timestamps existing for the same source record:
- the time when a clinical observation was made (MIMIC:
charttime) - the start and end of interventions (MIMIC:
starttime,endtime) - the time when information was entered or validated (MIMIC:
storetime) - the time when information became available to clinicians (MIMIC:
storetime) - the time when transformed data got imported into EHRbase (Local:
MyOwnTime)
The exact meaning of storetime differs between source tables which makes the correct mapping even harder.
My problem is the following:
I would like to preserve the distinctions instead of treating every timestamp as “clinical event time”, because the differentiation can change the retrospective research outcome. Analyses based on event time versus information availability can produce different results.
My questions are:
- Is is it appropriate to put timestamps like
starttime,endtimeandcharttimeinto the clinical ENTRY structures, likeEVENT.time,HISTORY.origin, etc.? - Where should a source-system documentation/validation/availability timestamp be represented? Is
FEEDER_AUDITintended for this purpose?
My concrete evaluation use case is the calculation of clinical scores, such as SOFA. I want to compare calculations based on when an event actually occured with calculations based on when the information actually was available. Therefore, retaining the different temporal meanings in a queryable correct way is important.
I would be interested in how experienced openEHR contributors would model this, especially when preserving source-system information for research is important.
Thanks in advance ![]()
