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.
The flag, line_was_previous_maintenance, is never used after definition in line 208, rwToT_LoT_line.py. Not sure it should be line_is_maintenance or not?
The flag, line_was_previous_maintenance, is never used after definition in line 208, rwToT_LoT_line.py. Not sure it should be line_is_maintenance or not?