dancoster / DrugLab

Repository for the drug<>lab pair
1 stars 0 forks source link

HiRiD - Generate ratio plots for window before = 4h, after=6h #41

Open dancoster opened 1 year ago

dancoster commented 1 year ago

Dan will send the function + list of pairs.

dancoster commented 1 year ago

Here are the functions both for the GAM plot and for the exponent Plot:

funcs_ratio_plots.txt

Here are examples for the required output:

Image

Here is the required file for the df_inhuman (its the values of the inhuman values per lab)

temp_mapping_140722_partial.csv

dancoster commented 1 year ago

List of pairs: dict_drugs = {'Platelets':'Platelets', 'Creatinine':'Pre-Admission Intake', 'Hematocrit':'Packed Red Blood Cells', 'Hemoglobin':'OR Crystalloid Intake', 'Magnesium':'Magnesium Sulfate', 'Glucose':'Dextrose 50%', 'Prothrombin time INR':'OR Cell Saver Intake', 'Red blood cell':'OR Cell Saver Intake', 'Sodium':'OR Crystalloid Intake' }

dancoster commented 1 year ago

Update functions for the plot, here is an example of the new plot:

updated.txt

Image

PavanReddy28 commented 1 year ago

Plots

Hemoglobin [Mass/volume] in Blood<>Intravenous blood transfusion of packed cells

Image Image Image

dancoster commented 1 year ago

There are too little points, don't u think?

dancoster commented 1 year ago
  1. Please generate the plots and Hemoglobin and Magnaesium (and also Vancocycin<> Glucose) without unit conversion + without remove of inhuman values.
  2. Please share with me the units of MIMIC and HIRID, and the conversion that u think is relevant.
dancoster commented 1 year ago

I move this task to the backlog as it is less prioritized for the handover of the project.