Merck / Line-of-Therapy-Algorithm

This is the Line of Therapy Algorithm, as described in the paper "Temporal phenotyping by mining healthcare data to derive lines of therapy for cancer" pending submission in the Journal of Biomedical Informatics.
GNU General Public License v3.0
26 stars 14 forks source link

line_end_date in rwTO-oT_LoT_line.py #1

Closed jwu19 closed 2 months ago

jwu19 commented 2 months ago

The line end date should be MED_START or MED_END? in line 154 in rwTO-oT_LoT_line.py: line_end_date = max(temp_line_end_df['MED_START'])

Weilin37 commented 2 months ago

This is done because often times the dataset will not have a date column that specifies a true MED_END date. Instead, many datasets will just have one column which is the start of medication or MED_START. In those cases, the best one can do is tax the maximum of the MED_START date as the line_end date

jwu19 commented 2 months ago

got it, thank you for clarifying that