-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Currently the procedure_date and procedure_datetime fields in the procedure_occurrence table are set to admissions.dischtime. This doesn't seem right since these fields are supposed to represent the start date / datetime of the procedure.
In updating the ETL to v5.4.2, procedure_end_date and procedure_end_datetime fields are being introduced. These fields aren't required. I'm currently setting them to NULL.
We need to update all of these to set the variables properly. The procedure_occurrence table is being built from these MIMIC tables:
hcpcsevents,procedures_icd,datetimeeventsprocedureevents
The tables in the first bullet only have a chartdate entry. procedureevents has a starttime and endtime.
For procedurevents we should probably use starttime to set procedure_date and procedure_datetime and endttime to set procedure_end_date and procedure_end_datetime. For the other tables should we use chartdate to set procedure_date and admissions.dischtime to set procedure_end_date and procedure_end_datetime? Do something else instead?