refining API
@@ -320,9 +320,8 @@ def get_recently_completed_qcls_across_sites(
return results
-def get_mosaiq(mrn):
- host_name = 'prwinvds006.utmsa.local'
- with mosaiq_connect(host_name) as cursor:
+
+def get_all_treatment_data(cursor, mrn):
table = execute_sql(
cursor,
"""
@@ -432,11 +431,13 @@ def get_mosaiq(mrn):
"couch_vrt",
"couch_lat",
"couch_lng",
- "couch_ang"
+ "couch_ang",
],
)
mosaiq_fields.drop_duplicates(inplace=True)
- mosaiq_fields["field_type"] = [FIELD_TYPES[item] for item in mosaiq_fields["field_type"]]
+ mosaiq_fields["field_type"] = [
+ FIELD_TYPES[item] for item in mosaiq_fields["field_type"]
+ ]
return mosaiq_fields
