Merck / Merck/Line-of-Therapy-Algorithm
switch maintenance drugs
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 39
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
according to the definition of switch maintenence drug in rwToT_LoT_functions.py
def is_eligible_switch_maintenance(regimen, cases_maintenance, line_number):
regimen = [x.upper() for x in regimen]
cases_maintenance = pd.DataFrame(data = cases_maintenance)
cases_maintenance = cases_maintenance[cases_maintenance['maintenance_type'] == 'SWITCH']
return all(drug in regimen for drug in cases_maintenance['drug_name']) and (line_number == 1)
My understand to the above code is that to define it as a switch maintenance drug, all the switch maintenenance drugs in the cases_maintenance.csv must be in the regimen of the current line and the line number must be 1. If I understand it correctly, this function can never return True when there are more than one switch maintenance drug in cases_maintenance.csv.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in rwToT_LoT_functions.py at is_eligible_switch_maintenance and inspect the maintenance_type and drug_name values in cases_maintenance.csv. Verify whether all matching switch drugs are intended to be required for a line-1 regimen, and document or report the expected behavior when multiple switch maintenance drugs are present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100