switch sql_string= to query=
@@ -280,7 +280,7 @@ def get_all_treatment_data(cursor, mrn):
)
table = pp_mosaiq.execute(
- cursor=cursor, sql_string=sql_string, parameters={"patient_id": mrn}
+ cursor=cursor, query=sql_string, parameters={"patient_id": mrn}
)
mosaiq_fields = pd.DataFrame(data=table, columns=columns)
@@ -409,7 +409,7 @@ def get_all_treatment_history_data(cursor, mrn):
)
table = pp_mosaiq.execute(
- cursor=cursor, sql_string=sql_string[0], parameters={"mrn": mrn}
+ cursor=cursor, query=sql_string[0], parameters={"mrn": mrn}
)
treatment_history = pd.DataFrame(data=table, columns=columns)
