Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Need to properly set date / datetime fields in procedure_occurrence #54

@briangow

Description

@briangow

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, datetimeevents
  • procedureevents

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?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions