diff --git a/base/configs/superset/assets/charts/CCS_Indicators_150.yaml b/base/configs/superset/assets/charts/CCS_Indicators_150.yaml new file mode 100644 index 00000000..ad3a8c9a --- /dev/null +++ b/base/configs/superset/assets/charts/CCS_Indicators_150.yaml @@ -0,0 +1,82 @@ +slice_name: CCS Indicators +description: null +certified_by: null +certification_details: null +viz_type: pivot_table_v2 +params: + datasource: 35__table + viz_type: pivot_table_v2 + slice_id: 150 + granularity_sqla: Visit Start date + time_grain_sqla: P1D + time_range: No filter + groupbyColumns: [] + groupbyRows: [] + metrics: + - expressionType: SQL + sqlExpression: COUNT(DISTINCT CASE WHEN indicator = 'women-aged-30-49-years-with-ccs-screening-first-time' + THEN "OpenMRS ID" END) + column: null + aggregate: null + datasourceWarning: false + hasCustomLabel: true + label: Registered women aged 30 to 49 years that have had their CCS screening + for the first time + optionName: metric_bm4lu228m7_czv4wuqradj + - expressionType: SQL + sqlExpression: "CASE \n WHEN (COUNT(DISTINCT CASE WHEN indicator = '80-percent-women-aged-30-49-years-with-ccs-screening-first-time-via-positive-referred'\ + \ THEN \"OpenMRS ID\" END) * 100.0 / (COUNT(DISTINCT CASE WHEN indicator = 'women-aged-30-49-years-with-ccs-screening-first-time'\ + \ THEN \"OpenMRS ID\" END) + COUNT(DISTINCT CASE WHEN indicator = '80-pecent-followup-with-hypertension-iabetes-and-medication'\ + \ THEN \"OpenMRS ID\" END))) >= 80 \n THEN 'Yes'\n ELSE 'No'\nEND\n" + column: null + aggregate: null + datasourceWarning: false + hasCustomLabel: true + label: 80% (of registered women aged 30 to 49 years that have had their CCS screening + for the first time) were VIA positive and referred? + optionName: metric_2cxj9ntl3yi_kdmjmpegqto + metricsLayout: ROWS + adhoc_filters: [] + row_limit: 1000 + order_desc: true + aggregateFunction: Sum + rowTotals: false + colTotals: false + transposePivot: true + combineMetric: false + valueFormat: ~g + date_format: smart_date + rowOrder: key_a_to_z + colOrder: key_a_to_z + conditional_formatting: [] + extra_form_data: {} + dashboards: + - 20 +query_context: '{"datasource":{"id":35,"type":"table"},"force":false,"queries":[{"time_range":"No + filter","granularity":"Visit Start date","filters":[],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":[],"metrics":[{"expressionType":"SQL","sqlExpression":"COUNT(DISTINCT + CASE WHEN indicator = ''women-aged-30-49-years-with-ccs-screening-first-time'' THEN + \"OpenMRS ID\" END)","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"Registered + women aged 30 to 49 years that have had their CCS screening for the first time","optionName":"metric_bm4lu228m7_czv4wuqradj"},{"expressionType":"SQL","sqlExpression":"CASE + \n WHEN (COUNT(DISTINCT CASE WHEN indicator = ''80-percent-women-aged-30-49-years-with-ccs-screening-first-time-via-positive-referred'' + THEN \"OpenMRS ID\" END) * 100.0 / (COUNT(DISTINCT CASE WHEN indicator = ''women-aged-30-49-years-with-ccs-screening-first-time'' + THEN \"OpenMRS ID\" END) + COUNT(DISTINCT CASE WHEN indicator = ''80-pecent-followup-with-hypertension-iabetes-and-medication'' + THEN \"OpenMRS ID\" END))) >= 80 \n THEN ''Yes''\n ELSE ''No''\nEND\n","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"80% + (of registered women aged 30 to 49 years that have had their CCS screening for the + first time) were VIA positive and referred?","optionName":"metric_2cxj9ntl3yi_kdmjmpegqto"}],"orderby":[[{"expressionType":"SQL","sqlExpression":"COUNT(DISTINCT + CASE WHEN indicator = ''women-aged-30-49-years-with-ccs-screening-first-time'' THEN + \"OpenMRS ID\" END)","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"Registered + women aged 30 to 49 years that have had their CCS screening for the first time","optionName":"metric_bm4lu228m7_czv4wuqradj"},false]],"annotation_layers":[],"row_limit":1000,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{}}],"form_data":{"datasource":"35__table","viz_type":"pivot_table_v2","slice_id":150,"granularity_sqla":"Visit + Start date","time_grain_sqla":"P1D","time_range":"No filter","groupbyColumns":[],"groupbyRows":[],"metrics":[{"expressionType":"SQL","sqlExpression":"COUNT(DISTINCT + CASE WHEN indicator = ''women-aged-30-49-years-with-ccs-screening-first-time'' THEN + \"OpenMRS ID\" END)","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"Registered + women aged 30 to 49 years that have had their CCS screening for the first time","optionName":"metric_bm4lu228m7_czv4wuqradj"},{"expressionType":"SQL","sqlExpression":"CASE + \n WHEN (COUNT(DISTINCT CASE WHEN indicator = ''80-percent-women-aged-30-49-years-with-ccs-screening-first-time-via-positive-referred'' + THEN \"OpenMRS ID\" END) * 100.0 / (COUNT(DISTINCT CASE WHEN indicator = ''women-aged-30-49-years-with-ccs-screening-first-time'' + THEN \"OpenMRS ID\" END) + COUNT(DISTINCT CASE WHEN indicator = ''80-pecent-followup-with-hypertension-iabetes-and-medication'' + THEN \"OpenMRS ID\" END))) >= 80 \n THEN ''Yes''\n ELSE ''No''\nEND\n","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"80% + (of registered women aged 30 to 49 years that have had their CCS screening for the + first time) were VIA positive and referred?","optionName":"metric_2cxj9ntl3yi_kdmjmpegqto"}],"metricsLayout":"ROWS","adhoc_filters":[],"row_limit":1000,"order_desc":true,"aggregateFunction":"Sum","rowTotals":false,"colTotals":false,"transposePivot":true,"combineMetric":false,"valueFormat":"~g","date_format":"smart_date","rowOrder":"key_a_to_z","colOrder":"key_a_to_z","conditional_formatting":[],"extra_form_data":{},"dashboards":[20],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}' +cache_timeout: null +uuid: ee7add1c-c8aa-4984-9db7-3fa3f726f15c +version: 1.0.0 +dataset_uuid: 3680ccf7-bec7-45bc-8e9d-8afaba18b508 diff --git a/base/configs/superset/assets/charts/NCD_Indicators_151.yaml b/base/configs/superset/assets/charts/NCD_Indicators_151.yaml new file mode 100644 index 00000000..f1215e0e --- /dev/null +++ b/base/configs/superset/assets/charts/NCD_Indicators_151.yaml @@ -0,0 +1,82 @@ +slice_name: NCD Indicators +description: null +certified_by: null +certification_details: null +viz_type: pivot_table_v2 +params: + datasource: 36__table + viz_type: pivot_table_v2 + slice_id: 151 + granularity_sqla: Visit Start date + time_grain_sqla: P1D + time_range: No filter + groupbyColumns: [] + groupbyRows: [] + metrics: + - expressionType: SQL + sqlExpression: COUNT(DISTINCT CASE WHEN indicator = 'patients-aged-40-above-with-first-time + ncd-screening' THEN "OpenMRS ID" END) + column: null + aggregate: null + datasourceWarning: false + hasCustomLabel: true + label: Registered patients aged 40 and above that have had their NCD screening + for the first time + optionName: metric_9ttlclpl5ts_chyyfmbkdlq + - expressionType: SQL + sqlExpression: "CASE \n WHEN (COUNT(DISTINCT CASE WHEN indicator = '80-pecent-followup-with-hypertension-iabetes-and-medication'\ + \ THEN \"OpenMRS ID\" END) * 100.0 / (COUNT(DISTINCT CASE WHEN indicator = 'patients-aged-40-above-with-first-time\ + \ ncd-screening' THEN \"OpenMRS ID\" END) + COUNT(DISTINCT CASE WHEN indicator\ + \ = '80-pecent-followup-with-hypertension-iabetes-and-medication' THEN \"OpenMRS\ + \ ID\" END))) >= 80 \n THEN 'Yes'\n ELSE 'No'\nEND\n" + column: null + aggregate: null + datasourceWarning: false + hasCustomLabel: true + label: 80% (of registered patients with a Follow-up date and diagnosed with Hypertension + & Diabetes) were given medication with at least a 4 weeks prescription? + optionName: metric_dmznsk3y057_77lv31713b2 + metricsLayout: ROWS + adhoc_filters: [] + row_limit: 1000 + order_desc: true + aggregateFunction: Sum + transposePivot: true + valueFormat: ~g + date_format: smart_date + rowOrder: key_a_to_z + colOrder: key_a_to_z + conditional_formatting: [] + extra_form_data: {} + dashboards: + - 20 +query_context: '{"datasource":{"id":36,"type":"table"},"force":false,"queries":[{"time_range":"No + filter","granularity":"Visit Start date","filters":[],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":[],"metrics":[{"expressionType":"SQL","sqlExpression":"COUNT(DISTINCT + CASE WHEN indicator = ''patients-aged-40-above-with-first-time ncd-screening'' THEN + \"OpenMRS ID\" END)","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"Registered + patients aged 40 and above that have had their NCD screening for the first time","optionName":"metric_9ttlclpl5ts_chyyfmbkdlq"},{"expressionType":"SQL","sqlExpression":"CASE + \n WHEN (COUNT(DISTINCT CASE WHEN indicator = ''80-pecent-followup-with-hypertension-iabetes-and-medication'' + THEN \"OpenMRS ID\" END) * 100.0 / (COUNT(DISTINCT CASE WHEN indicator = ''patients-aged-40-above-with-first-time + ncd-screening'' THEN \"OpenMRS ID\" END) + COUNT(DISTINCT CASE WHEN indicator = + ''80-pecent-followup-with-hypertension-iabetes-and-medication'' THEN \"OpenMRS ID\" + END))) >= 80 \n THEN ''Yes''\n ELSE ''No''\nEND\n","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"80% + (of registered patients with a Follow-up date and diagnosed with Hypertension & + Diabetes) were given medication with at least a 4 weeks prescription?","optionName":"metric_dmznsk3y057_77lv31713b2"}],"orderby":[[{"expressionType":"SQL","sqlExpression":"COUNT(DISTINCT + CASE WHEN indicator = ''patients-aged-40-above-with-first-time ncd-screening'' THEN + \"OpenMRS ID\" END)","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"Registered + patients aged 40 and above that have had their NCD screening for the first time","optionName":"metric_9ttlclpl5ts_chyyfmbkdlq"},false]],"annotation_layers":[],"row_limit":1000,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{}}],"form_data":{"datasource":"36__table","viz_type":"pivot_table_v2","slice_id":151,"granularity_sqla":"Visit + Start date","time_grain_sqla":"P1D","time_range":"No filter","groupbyColumns":[],"groupbyRows":[],"metrics":[{"expressionType":"SQL","sqlExpression":"COUNT(DISTINCT + CASE WHEN indicator = ''patients-aged-40-above-with-first-time ncd-screening'' THEN + \"OpenMRS ID\" END)","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"Registered + patients aged 40 and above that have had their NCD screening for the first time","optionName":"metric_9ttlclpl5ts_chyyfmbkdlq"},{"expressionType":"SQL","sqlExpression":"CASE + \n WHEN (COUNT(DISTINCT CASE WHEN indicator = ''80-pecent-followup-with-hypertension-iabetes-and-medication'' + THEN \"OpenMRS ID\" END) * 100.0 / (COUNT(DISTINCT CASE WHEN indicator = ''patients-aged-40-above-with-first-time + ncd-screening'' THEN \"OpenMRS ID\" END) + COUNT(DISTINCT CASE WHEN indicator = + ''80-pecent-followup-with-hypertension-iabetes-and-medication'' THEN \"OpenMRS ID\" + END))) >= 80 \n THEN ''Yes''\n ELSE ''No''\nEND\n","column":null,"aggregate":null,"datasourceWarning":false,"hasCustomLabel":true,"label":"80% + (of registered patients with a Follow-up date and diagnosed with Hypertension & + Diabetes) were given medication with at least a 4 weeks prescription?","optionName":"metric_dmznsk3y057_77lv31713b2"}],"metricsLayout":"ROWS","adhoc_filters":[],"row_limit":1000,"order_desc":true,"aggregateFunction":"Sum","transposePivot":true,"valueFormat":"~g","date_format":"smart_date","rowOrder":"key_a_to_z","colOrder":"key_a_to_z","conditional_formatting":[],"extra_form_data":{},"dashboards":[20],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}' +cache_timeout: null +uuid: 802a00e7-0681-407f-bd7a-c55a4f4e466e +version: 1.0.0 +dataset_uuid: 54c5a8fb-66f7-4279-8498-abebf5d65e7f diff --git a/base/configs/superset/assets/charts/Registered_patients_aged_40_and_above_and_screened_for_the_first_time_with_a_follow-up_date_and_diagnosed_with_Hypertension__Diabetes_and_were_given_medication_with_at_least_a_4_weeks_prescription_153.yaml b/base/configs/superset/assets/charts/Registered_patients_aged_40_and_above_and_screened_for_the_first_time_with_a_follow-up_date_and_diagnosed_with_Hypertension__Diabetes_and_were_given_medication_with_at_least_a_4_weeks_prescription_153.yaml new file mode 100644 index 00000000..affdbe7c --- /dev/null +++ b/base/configs/superset/assets/charts/Registered_patients_aged_40_and_above_and_screened_for_the_first_time_with_a_follow-up_date_and_diagnosed_with_Hypertension__Diabetes_and_were_given_medication_with_at_least_a_4_weeks_prescription_153.yaml @@ -0,0 +1,101 @@ +slice_name: Registered patients aged 40 and above and screened for the first time + with a follow-up date and diagnosed with Hypertension & Diabetes and were given + medication with at least a 4 weeks prescription +description: null +certified_by: null +certification_details: null +viz_type: table +params: + datasource: 36__table + viz_type: table + slice_id: 153 + granularity_sqla: Visit Start date + time_grain_sqla: P1D + time_range: No filter + query_mode: raw + groupby: [] + metrics: [] + all_columns: + - Facility Name + - Facility District + - Facility Province + - OpenMRS ID + - Patient's First name + - Patient's Last name + - Patient Address + - Phone number + - Other Identifiers + - Visit Start date + - Visit End date + - Visit Type + - Referral source + - Insurance type + - Known Diabetes + - Known Hypertension + - Weight + - Height + - Circumference + - Systolic Pressure + - Diastolic Pressure + - BMI + - Pulse + - Temperature + - Fasting Blood Sugar + - Random Blood Sugar + - OGTT + - HbA1c + - Albumin + - Ketones + - Diagnosis 1 + - Diagnosis 2 + - Facility + - Has a Referral Letter + - CVD Risk Score + - Follow-Up For + - Follow-Up Date + - Started on Medication + - Drug Names + percent_metrics: [] + adhoc_filters: + - expressionType: SIMPLE + subject: indicator + operator: == + operatorId: EQUALS + comparator: 80-pecent-followup-with-hypertension-iabetes-and-medication + clause: WHERE + sqlExpression: null + isExtra: false + isNew: false + datasourceWarning: false + filterOptionName: filter_9ueu89ej385_2xnaetav0xr + order_by_cols: [] + row_limit: 1000 + server_page_length: 10 + order_desc: true + table_timestamp_format: smart_date + show_cell_bars: true + color_pn: true + extra_form_data: {} + dashboards: + - 20 +query_context: '{"datasource":{"id":36,"type":"table"},"force":false,"queries":[{"time_range":"No + filter","granularity":"Visit Start date","filters":[{"col":"indicator","op":"==","val":"80-pecent-followup-with-hypertension-iabetes-and-medication"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":["Facility + Name","Facility District","Facility Province","OpenMRS ID","Patient''s First name","Patient''s + Last name","Patient Address","Phone number","Other Identifiers","Visit Start date","Visit + End date","Visit Type","Referral source","Insurance type","Known Diabetes","Known + Hypertension","Weight","Height","Circumference","Systolic Pressure","Diastolic Pressure","BMI","Pulse","Temperature","Fasting + Blood Sugar","Random Blood Sugar","OGTT","HbA1c","Albumin","Ketones","Diagnosis + 1","Diagnosis 2","Facility","Has a Referral Letter","CVD Risk Score","Follow-Up + For","Follow-Up Date","Started on Medication","Drug Names"],"orderby":[],"annotation_layers":[],"row_limit":1000,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"post_processing":[]}],"form_data":{"datasource":"36__table","viz_type":"table","slice_id":153,"granularity_sqla":"Visit + Start date","time_grain_sqla":"P1D","time_range":"No filter","query_mode":"raw","groupby":[],"metrics":[],"all_columns":["Facility + Name","Facility District","Facility Province","OpenMRS ID","Patient''s First name","Patient''s + Last name","Patient Address","Phone number","Other Identifiers","Visit Start date","Visit + End date","Visit Type","Referral source","Insurance type","Known Diabetes","Known + Hypertension","Weight","Height","Circumference","Systolic Pressure","Diastolic Pressure","BMI","Pulse","Temperature","Fasting + Blood Sugar","Random Blood Sugar","OGTT","HbA1c","Albumin","Ketones","Diagnosis + 1","Diagnosis 2","Facility","Has a Referral Letter","CVD Risk Score","Follow-Up + For","Follow-Up Date","Started on Medication","Drug Names"],"percent_metrics":[],"adhoc_filters":[{"expressionType":"SIMPLE","subject":"indicator","operator":"==","operatorId":"EQUALS","comparator":"80-pecent-followup-with-hypertension-iabetes-and-medication","clause":"WHERE","sqlExpression":null,"isExtra":false,"isNew":false,"datasourceWarning":false,"filterOptionName":"filter_9ueu89ej385_2xnaetav0xr"}],"order_by_cols":[],"row_limit":1000,"server_page_length":10,"include_time":false,"order_desc":true,"table_timestamp_format":"smart_date","show_cell_bars":true,"color_pn":true,"extra_form_data":{},"dashboards":[20],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}' +cache_timeout: null +uuid: 07b02091-ffa9-4d41-8c26-965416489fb3 +version: 1.0.0 +dataset_uuid: 54c5a8fb-66f7-4279-8498-abebf5d65e7f diff --git a/base/configs/superset/assets/charts/Registered_patients_aged_40_and_above_that_have_had_their_NCD_screening_for_the_first_time_152.yaml b/base/configs/superset/assets/charts/Registered_patients_aged_40_and_above_that_have_had_their_NCD_screening_for_the_first_time_152.yaml new file mode 100644 index 00000000..1fae83fc --- /dev/null +++ b/base/configs/superset/assets/charts/Registered_patients_aged_40_and_above_that_have_had_their_NCD_screening_for_the_first_time_152.yaml @@ -0,0 +1,102 @@ +slice_name: Registered patients aged 40 and above that have had their NCD screening + for the first time +description: null +certified_by: null +certification_details: null +viz_type: table +params: + datasource: 36__table + viz_type: table + slice_id: 152 + granularity_sqla: Visit Start date + time_grain_sqla: P1D + time_range: No filter + query_mode: raw + groupby: [] + metrics: [] + all_columns: + - Facility Name + - Facility District + - Facility Province + - OpenMRS ID + - Patient's First name + - Patient's Last name + - Patient Address + - Phone number + - Other Identifiers + - Visit Start date + - Visit End date + - Visit Type + - Referral source + - Insurance type + - Known Diabetes + - Known Hypertension + - Weight + - Height + - Circumference + - Systolic Pressure + - Diastolic Pressure + - BMI + - Pulse + - Temperature + - Fasting Blood Sugar + - Random Blood Sugar + - OGTT + - HbA1c + - Albumin + - Ketones + - Diagnosis 1 + - Diagnosis 2 + - Facility + - Has a Referral Letter + - CVD Risk Score + - Follow-Up For + - Follow-Up Date + - Started on Medication + - Drug Names + percent_metrics: [] + adhoc_filters: + - expressionType: SIMPLE + subject: indicator + operator: == + operatorId: EQUALS + comparator: patients-aged-40-above-with-first-time ncd-screening + clause: WHERE + sqlExpression: null + isExtra: false + isNew: false + datasourceWarning: false + filterOptionName: filter_qvcziuvafa_o222siew87 + order_by_cols: [] + row_limit: 1000 + server_page_length: 10 + order_desc: true + table_timestamp_format: smart_date + show_cell_bars: true + color_pn: true + extra_form_data: {} + dashboards: + - 20 +query_context: '{"datasource":{"id":36,"type":"table"},"force":false,"queries":[{"time_range":"No + filter","granularity":"Visit Start date","filters":[{"col":"indicator","op":"==","val":"patients-aged-40-above-with-first-time + ncd-screening"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":["Facility + Name","Facility District","Facility Province","OpenMRS ID","Patient''s First name","Patient''s + Last name","Patient Address","Phone number","Other Identifiers","Visit Start date","Visit + End date","Visit Type","Referral source","Insurance type","Known Diabetes","Known + Hypertension","Weight","Height","Circumference","Systolic Pressure","Diastolic Pressure","BMI","Pulse","Temperature","Fasting + Blood Sugar","Random Blood Sugar","OGTT","HbA1c","Albumin","Ketones","Diagnosis + 1","Diagnosis 2","Facility","Has a Referral Letter","CVD Risk Score","Follow-Up + For","Follow-Up Date","Started on Medication","Drug Names"],"orderby":[],"annotation_layers":[],"row_limit":1000,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"post_processing":[]}],"form_data":{"datasource":"36__table","viz_type":"table","slice_id":152,"granularity_sqla":"Visit + Start date","time_grain_sqla":"P1D","time_range":"No filter","query_mode":"raw","groupby":[],"metrics":[],"all_columns":["Facility + Name","Facility District","Facility Province","OpenMRS ID","Patient''s First name","Patient''s + Last name","Patient Address","Phone number","Other Identifiers","Visit Start date","Visit + End date","Visit Type","Referral source","Insurance type","Known Diabetes","Known + Hypertension","Weight","Height","Circumference","Systolic Pressure","Diastolic Pressure","BMI","Pulse","Temperature","Fasting + Blood Sugar","Random Blood Sugar","OGTT","HbA1c","Albumin","Ketones","Diagnosis + 1","Diagnosis 2","Facility","Has a Referral Letter","CVD Risk Score","Follow-Up + For","Follow-Up Date","Started on Medication","Drug Names"],"percent_metrics":[],"adhoc_filters":[{"expressionType":"SIMPLE","subject":"indicator","operator":"==","operatorId":"EQUALS","comparator":"patients-aged-40-above-with-first-time + ncd-screening","clause":"WHERE","sqlExpression":null,"isExtra":false,"isNew":false,"datasourceWarning":false,"filterOptionName":"filter_qvcziuvafa_o222siew87"}],"order_by_cols":[],"row_limit":1000,"server_page_length":10,"include_time":false,"order_desc":true,"table_timestamp_format":"smart_date","show_cell_bars":true,"color_pn":true,"extra_form_data":{},"dashboards":[20],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}' +cache_timeout: null +uuid: c7bd827c-daa4-48ab-986d-0cd07a139b9a +version: 1.0.0 +dataset_uuid: 54c5a8fb-66f7-4279-8498-abebf5d65e7f diff --git a/base/configs/superset/assets/charts/Registered_women_aged_30_to_49_years_that_have_had_their_CCS_screening_for_the_first_time_154.yaml b/base/configs/superset/assets/charts/Registered_women_aged_30_to_49_years_that_have_had_their_CCS_screening_for_the_first_time_154.yaml new file mode 100644 index 00000000..6b238468 --- /dev/null +++ b/base/configs/superset/assets/charts/Registered_women_aged_30_to_49_years_that_have_had_their_CCS_screening_for_the_first_time_154.yaml @@ -0,0 +1,87 @@ +slice_name: Registered women aged 30 to 49 years that have had their CCS screening + for the first time +description: null +certified_by: null +certification_details: null +viz_type: table +params: + datasource: 35__table + viz_type: table + slice_id: 154 + granularity_sqla: Visit Start date + time_grain_sqla: P1D + time_range: No filter + query_mode: raw + groupby: [] + metrics: [] + all_columns: + - Facility Name + - Facility District + - Facility Province + - OpenMRS ID + - Patient's First name + - Patient's Last name + - Patient Address + - Phone number + - Other Identifiers + - Visit Start date + - Visit End date + - Visit Type + - Referral source + - Insurance type + - First Screening? + - HPV Test + - Visibility of SCJ + - VIA Test Result + - Number of Quadrants + - Area of ectocervix + - Colposcopy + - Cervical Biopsy + - Pap Smear + - Referral Facility + - CC Reason for Referral + - CC Treatment + - CC Follow-up date + - Encounter date and time + percent_metrics: [] + adhoc_filters: + - expressionType: SIMPLE + subject: indicator + operator: == + operatorId: EQUALS + comparator: women-aged-30-49-years-with-ccs-screening-first-time + clause: WHERE + sqlExpression: null + isExtra: false + isNew: false + datasourceWarning: false + filterOptionName: filter_0sxq4bni7gig_9yc69feloca + order_by_cols: [] + row_limit: 1000 + server_page_length: 10 + order_desc: true + table_timestamp_format: smart_date + show_cell_bars: true + color_pn: true + extra_form_data: {} + dashboards: + - 20 +query_context: '{"datasource":{"id":35,"type":"table"},"force":false,"queries":[{"time_range":"No + filter","granularity":"Visit Start date","filters":[{"col":"indicator","op":"==","val":"women-aged-30-49-years-with-ccs-screening-first-time"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":["Facility + Name","Facility District","Facility Province","OpenMRS ID","Patient''s First name","Patient''s + Last name","Patient Address","Phone number","Other Identifiers","Visit Start date","Visit + End date","Visit Type","Referral source","Insurance type","First Screening?","HPV + Test","Visibility of SCJ","VIA Test Result","Number of Quadrants","Area of ectocervix","Colposcopy","Cervical + Biopsy","Pap Smear","Referral Facility","CC Reason for Referral","CC Treatment","CC + Follow-up date","Encounter date and time"],"orderby":[],"annotation_layers":[],"row_limit":1000,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"post_processing":[]}],"form_data":{"datasource":"35__table","viz_type":"table","slice_id":154,"granularity_sqla":"Visit + Start date","time_grain_sqla":"P1D","time_range":"No filter","query_mode":"raw","groupby":[],"metrics":[],"all_columns":["Facility + Name","Facility District","Facility Province","OpenMRS ID","Patient''s First name","Patient''s + Last name","Patient Address","Phone number","Other Identifiers","Visit Start date","Visit + End date","Visit Type","Referral source","Insurance type","First Screening?","HPV + Test","Visibility of SCJ","VIA Test Result","Number of Quadrants","Area of ectocervix","Colposcopy","Cervical + Biopsy","Pap Smear","Referral Facility","CC Reason for Referral","CC Treatment","CC + Follow-up date","Encounter date and time"],"percent_metrics":[],"adhoc_filters":[{"expressionType":"SIMPLE","subject":"indicator","operator":"==","operatorId":"EQUALS","comparator":"women-aged-30-49-years-with-ccs-screening-first-time","clause":"WHERE","sqlExpression":null,"isExtra":false,"isNew":false,"datasourceWarning":false,"filterOptionName":"filter_0sxq4bni7gig_9yc69feloca"}],"order_by_cols":[],"row_limit":1000,"server_page_length":10,"include_time":false,"order_desc":true,"table_timestamp_format":"smart_date","show_cell_bars":true,"color_pn":true,"extra_form_data":{},"dashboards":[20],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}' +cache_timeout: null +uuid: 37c2b93f-2cdf-4bf7-9195-076c83eda4b4 +version: 1.0.0 +dataset_uuid: 3680ccf7-bec7-45bc-8e9d-8afaba18b508 diff --git a/base/configs/superset/assets/charts/Registered_women_aged_30_to_49_years_that_have_had_their_CCS_screening_for_the_first_time_and_were_VIA_positive_and_referred_155.yaml b/base/configs/superset/assets/charts/Registered_women_aged_30_to_49_years_that_have_had_their_CCS_screening_for_the_first_time_and_were_VIA_positive_and_referred_155.yaml new file mode 100644 index 00000000..0e9386ad --- /dev/null +++ b/base/configs/superset/assets/charts/Registered_women_aged_30_to_49_years_that_have_had_their_CCS_screening_for_the_first_time_and_were_VIA_positive_and_referred_155.yaml @@ -0,0 +1,87 @@ +slice_name: Registered women aged 30 to 49 years that have had their CCS screening + for the first time and were VIA positive and referred +description: null +certified_by: null +certification_details: null +viz_type: table +params: + datasource: 35__table + viz_type: table + slice_id: 155 + granularity_sqla: Visit Start date + time_grain_sqla: P1D + time_range: No filter + query_mode: raw + groupby: [] + metrics: [] + all_columns: + - Facility Name + - Facility District + - Facility Province + - OpenMRS ID + - Patient's First name + - Patient's Last name + - Patient Address + - Phone number + - Other Identifiers + - Visit Start date + - Visit End date + - Visit Type + - Referral source + - Insurance type + - First Screening? + - HPV Test + - Visibility of SCJ + - VIA Test Result + - Number of Quadrants + - Area of ectocervix + - Colposcopy + - Cervical Biopsy + - Pap Smear + - Referral Facility + - CC Reason for Referral + - CC Treatment + - CC Follow-up date + - Encounter date and time + percent_metrics: [] + adhoc_filters: + - expressionType: SIMPLE + subject: indicator + operator: == + operatorId: EQUALS + comparator: 80-percent-women-aged-30-49-years-with-ccs-screening-first-time-via-positive-referred + clause: WHERE + sqlExpression: null + isExtra: false + isNew: false + datasourceWarning: false + filterOptionName: filter_5stpm8h7cda_f2e3lyfu96d + order_by_cols: [] + row_limit: 1000 + server_page_length: 10 + order_desc: true + table_timestamp_format: smart_date + show_cell_bars: true + color_pn: true + extra_form_data: {} + dashboards: + - 20 +query_context: '{"datasource":{"id":35,"type":"table"},"force":false,"queries":[{"time_range":"No + filter","granularity":"Visit Start date","filters":[{"col":"indicator","op":"==","val":"80-percent-women-aged-30-49-years-with-ccs-screening-first-time-via-positive-referred"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":["Facility + Name","Facility District","Facility Province","OpenMRS ID","Patient''s First name","Patient''s + Last name","Patient Address","Phone number","Other Identifiers","Visit Start date","Visit + End date","Visit Type","Referral source","Insurance type","First Screening?","HPV + Test","Visibility of SCJ","VIA Test Result","Number of Quadrants","Area of ectocervix","Colposcopy","Cervical + Biopsy","Pap Smear","Referral Facility","CC Reason for Referral","CC Treatment","CC + Follow-up date","Encounter date and time"],"orderby":[],"annotation_layers":[],"row_limit":1000,"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"post_processing":[]}],"form_data":{"datasource":"35__table","viz_type":"table","slice_id":155,"granularity_sqla":"Visit + Start date","time_grain_sqla":"P1D","time_range":"No filter","query_mode":"raw","groupby":[],"metrics":[],"all_columns":["Facility + Name","Facility District","Facility Province","OpenMRS ID","Patient''s First name","Patient''s + Last name","Patient Address","Phone number","Other Identifiers","Visit Start date","Visit + End date","Visit Type","Referral source","Insurance type","First Screening?","HPV + Test","Visibility of SCJ","VIA Test Result","Number of Quadrants","Area of ectocervix","Colposcopy","Cervical + Biopsy","Pap Smear","Referral Facility","CC Reason for Referral","CC Treatment","CC + Follow-up date","Encounter date and time"],"percent_metrics":[],"adhoc_filters":[{"expressionType":"SIMPLE","subject":"indicator","operator":"==","operatorId":"EQUALS","comparator":"80-percent-women-aged-30-49-years-with-ccs-screening-first-time-via-positive-referred","clause":"WHERE","sqlExpression":null,"isExtra":false,"isNew":false,"datasourceWarning":false,"filterOptionName":"filter_5stpm8h7cda_f2e3lyfu96d"}],"order_by_cols":[],"row_limit":1000,"server_page_length":10,"include_time":false,"order_desc":true,"table_timestamp_format":"smart_date","show_cell_bars":true,"color_pn":true,"extra_form_data":{},"dashboards":[20],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}' +cache_timeout: null +uuid: a770204a-9220-4c7e-8ea0-4773b2bf8a62 +version: 1.0.0 +dataset_uuid: 3680ccf7-bec7-45bc-8e9d-8afaba18b508 diff --git a/base/configs/superset/assets/dashboards/Disbursement_Report_Dashboard_20.yaml b/base/configs/superset/assets/dashboards/Disbursement_Report_Dashboard_20.yaml new file mode 100644 index 00000000..b7d76299 --- /dev/null +++ b/base/configs/superset/assets/dashboards/Disbursement_Report_Dashboard_20.yaml @@ -0,0 +1,374 @@ +dashboard_title: Disbursement Report Dashboard +description: null +css: '' +slug: null +uuid: 2439cfd3-bd2d-42f7-988e-e9af336eb2cd +position: + CHART-9thSsJSkeY: + children: [] + id: CHART-9thSsJSkeY + meta: + chartId: 152 + height: 50 + sliceName: Registered patients aged 40 and above that have had their NCD screening + for the first time + uuid: c7bd827c-daa4-48ab-986d-0cd07a139b9a + width: 6 + parents: + - ROOT_ID + - GRID_ID + - TABS-ZRS7TWNBEY + - TAB-MFLXG67ZDQ + - ROW-a3xYoJoMRW + type: CHART + CHART-auU0qpYADt: + children: [] + id: CHART-auU0qpYADt + meta: + chartId: 150 + height: 31 + sliceName: CCS Indicators + uuid: ee7add1c-c8aa-4984-9db7-3fa3f726f15c + width: 6 + parents: + - ROOT_ID + - GRID_ID + - TABS-vVToFo37Yd + - TAB-Pf9SVE-52F + - ROW-fDSarEWFr + type: CHART + CHART-gSiI5FA9Eh: + children: [] + id: CHART-gSiI5FA9Eh + meta: + chartId: 154 + height: 50 + sliceName: Registered women aged 30 to 49 years that have had their CCS screening + for the first time + uuid: 37c2b93f-2cdf-4bf7-9195-076c83eda4b4 + width: 6 + parents: + - ROOT_ID + - GRID_ID + - TABS-jAi7lQUpvu + - TAB-zmiZPQAMiF + - ROW-lSn0ovyoVx + type: CHART + CHART-l6yN9QRqOT: + children: [] + id: CHART-l6yN9QRqOT + meta: + chartId: 153 + height: 50 + sliceName: Registered patients screened for the first time with a follow-up + date and diagnosed with Hypertension & Diabetes and were given medication + with at least a 4 weeks prescription + uuid: 07b02091-ffa9-4d41-8c26-965416489fb3 + width: 6 + parents: + - ROOT_ID + - GRID_ID + - TABS-ZRS7TWNBEY + - TAB-MFLXG67ZDQ + - ROW-a3xYoJoMRW + type: CHART + CHART-wE9z76bX9M: + children: [] + id: CHART-wE9z76bX9M + meta: + chartId: 155 + height: 50 + sliceName: Registered women aged 30 to 49 years that have had their CCS screening + for the first time and were VIA positive and referred + uuid: a770204a-9220-4c7e-8ea0-4773b2bf8a62 + width: 6 + parents: + - ROOT_ID + - GRID_ID + - TABS-jAi7lQUpvu + - TAB-zmiZPQAMiF + - ROW-lSn0ovyoVx + type: CHART + CHART-wj7DkIY-Pb: + children: [] + id: CHART-wj7DkIY-Pb + meta: + chartId: 151 + height: 31 + sliceName: NCD Indicators + uuid: 802a00e7-0681-407f-bd7a-c55a4f4e466e + width: 6 + parents: + - ROOT_ID + - GRID_ID + - TABS-vVToFo37Yd + - TAB-Pf9SVE-52F + - ROW-fDSarEWFr + type: CHART + DASHBOARD_VERSION_KEY: v2 + GRID_ID: + children: + - TABS-vVToFo37Yd + - TABS-ZRS7TWNBEY + - TABS-jAi7lQUpvu + id: GRID_ID + parents: + - ROOT_ID + type: GRID + HEADER_ID: + id: HEADER_ID + meta: + text: Disbursement Report Dashboard + type: HEADER + ROOT_ID: + children: + - GRID_ID + id: ROOT_ID + type: ROOT + ROW-a3xYoJoMRW: + children: + - CHART-9thSsJSkeY + - CHART-l6yN9QRqOT + id: ROW-a3xYoJoMRW + meta: + background: BACKGROUND_TRANSPARENT + parents: + - ROOT_ID + - GRID_ID + - TABS-ZRS7TWNBEY + - TAB-MFLXG67ZDQ + type: ROW + ROW-fDSarEWFr: + children: + - CHART-auU0qpYADt + - CHART-wj7DkIY-Pb + id: ROW-fDSarEWFr + meta: + background: BACKGROUND_TRANSPARENT + parents: + - ROOT_ID + - GRID_ID + - TABS-vVToFo37Yd + - TAB-Pf9SVE-52F + type: ROW + ROW-lSn0ovyoVx: + children: + - CHART-gSiI5FA9Eh + - CHART-wE9z76bX9M + id: ROW-lSn0ovyoVx + meta: + background: BACKGROUND_TRANSPARENT + parents: + - ROOT_ID + - GRID_ID + - TABS-jAi7lQUpvu + - TAB-zmiZPQAMiF + type: ROW + TAB-MFLXG67ZDQ: + children: + - ROW-a3xYoJoMRW + id: TAB-MFLXG67ZDQ + meta: + defaultText: Tab title + placeholder: Tab title + text: NCD Indicators Supporting Data + parents: + - ROOT_ID + - GRID_ID + - TABS-ZRS7TWNBEY + type: TAB + TAB-Pf9SVE-52F: + children: + - ROW-fDSarEWFr + id: TAB-Pf9SVE-52F + meta: + defaultText: Tab title + placeholder: Tab title + text: Indicators + parents: + - ROOT_ID + - GRID_ID + - TABS-vVToFo37Yd + type: TAB + TAB-zmiZPQAMiF: + children: + - ROW-lSn0ovyoVx + id: TAB-zmiZPQAMiF + meta: + defaultText: Tab title + placeholder: Tab title + text: CCS Indicators Supporting Data + parents: + - ROOT_ID + - GRID_ID + - TABS-jAi7lQUpvu + type: TAB + TABS-ZRS7TWNBEY: + children: + - TAB-MFLXG67ZDQ + id: TABS-ZRS7TWNBEY + meta: {} + parents: + - ROOT_ID + - GRID_ID + type: TABS + TABS-jAi7lQUpvu: + children: + - TAB-zmiZPQAMiF + id: TABS-jAi7lQUpvu + meta: {} + parents: + - ROOT_ID + - GRID_ID + type: TABS + TABS-vVToFo37Yd: + children: + - TAB-Pf9SVE-52F + id: TABS-vVToFo37Yd + meta: {} + parents: + - ROOT_ID + - GRID_ID + type: TABS +metadata: + show_native_filters: true + color_scheme: '' + refresh_frequency: 0 + shared_label_colors: {} + color_scheme_domain: [] + expanded_slices: {} + label_colors: {} + timed_refresh_immune_slices: [] + cross_filters_enabled: false + default_filters: '{}' + chart_configuration: {} + native_filter_configuration: + - id: NATIVE_FILTER-pBRxyNbMB + controlValues: + enableEmptyFilter: false + defaultToFirstItem: false + multiSelect: true + searchAllOptions: true + inverseSelection: false + name: "\u1798\u1793\u17D2\u1791\u17B8\u179A\u179F\u17BB\u1781\u17B6\u1797\u17B7\ + \u1794\u17B6\u179B\u1781\u17C1\u178F\u17D2\u178F (Provincial Health Department)" + filterType: filter_select + targets: + - column: + name: Facility Province + datasetUuid: 54c5a8fb-66f7-4279-8498-abebf5d65e7f + defaultDataMask: + extraFormData: {} + filterState: {} + ownState: {} + cascadeParentIds: [] + scope: + rootPath: + - ROOT_ID + excluded: [] + type: NATIVE_FILTER + description: '' + chartsInScope: + - 150 + - 151 + - 152 + - 153 + - 154 + - 155 + tabsInScope: + - TAB-MFLXG67ZDQ + - TAB-Pf9SVE-52F + - TAB-zmiZPQAMiF + - id: NATIVE_FILTER-lEYFRZdtt + controlValues: + enableEmptyFilter: false + defaultToFirstItem: false + multiSelect: true + searchAllOptions: true + inverseSelection: false + name: "\u179F\u17D2\u179A\u17BB\u1780\u1794\u17D2\u179A\u178F\u17B7\u1794\u178F\ + \u17D2\u178F\u17B7 (Operational District)" + filterType: filter_select + targets: + - column: + name: Facility District + datasetUuid: 54c5a8fb-66f7-4279-8498-abebf5d65e7f + defaultDataMask: + extraFormData: {} + filterState: {} + ownState: {} + cascadeParentIds: [] + scope: + rootPath: + - ROOT_ID + excluded: [] + type: NATIVE_FILTER + description: '' + chartsInScope: + - 151 + - 152 + - 153 + tabsInScope: + - TAB-MFLXG67ZDQ + - TAB-Pf9SVE-52F + - id: NATIVE_FILTER-segLnb0Vx + controlValues: + enableEmptyFilter: false + defaultToFirstItem: false + multiSelect: true + searchAllOptions: true + inverseSelection: false + name: "\u1788\u17D2\u1798\u17C4\u17C7\u1793\u17B7\u1784\u179B\u17C1\u1781\u1780\ + \u17BC\u178A\u1798\u17BC\u179B\u178A\u17D2\u178B\u17B6\u1793\u179F\u17BB\u1781\ + \u17B6\u1797\u17B7\u1794\u17B6\u179B (Health Facility's Name)" + filterType: filter_select + targets: + - column: + name: Facility Name + datasetUuid: 54c5a8fb-66f7-4279-8498-abebf5d65e7f + defaultDataMask: + extraFormData: {} + filterState: {} + ownState: {} + cascadeParentIds: [] + scope: + rootPath: + - ROOT_ID + excluded: [] + type: NATIVE_FILTER + description: '' + chartsInScope: + - 151 + - 152 + - 153 + tabsInScope: + - TAB-MFLXG67ZDQ + - TAB-Pf9SVE-52F + - id: NATIVE_FILTER-R6N9v3yG4 + controlValues: + enableEmptyFilter: false + name: "\u1780\u17B6\u179A\u179A\u17B6\u1799\u1780\u17B6\u179A\u178E\u17CD\u17A2\ + \u17C6\u1796\u17B8\u1787\u17BD\u179A\u1796\u17C1\u179B\u179C\u17C1\u179B\u17B6\ + \ (Reporting Time Range)" + filterType: filter_time + targets: + - {} + defaultDataMask: + extraFormData: {} + filterState: {} + ownState: {} + cascadeParentIds: [] + scope: + rootPath: + - ROOT_ID + excluded: [] + type: NATIVE_FILTER + description: '' + chartsInScope: + - 151 + - 152 + - 153 + tabsInScope: + - TAB-MFLXG67ZDQ + - TAB-Pf9SVE-52F +version: 1.0.0 diff --git a/base/configs/superset/assets/databases/PostgreSQL.yaml b/base/configs/superset/assets/databases/PostgreSQL.yaml deleted file mode 100644 index fb9cb617..00000000 --- a/base/configs/superset/assets/databases/PostgreSQL.yaml +++ /dev/null @@ -1,13 +0,0 @@ -database_name: PostgreSQL -sqlalchemy_uri: postgresql+psycopg2://postgres:XXXXXXXXXX@gateway.docker.internal:5432/analytics -cache_timeout: null -expose_in_sqllab: true -allow_run_async: false -allow_ctas: false -allow_cvas: false -allow_dml: false -allow_file_upload: false -extra: - allows_virtual_table_explore: true -uuid: b90d1451-c3b9-4f55-ab9a-f872d933a1f6 -version: 1.0.0 diff --git a/base/configs/superset/assets/datasets/PostgreSQL/HC_NCD_OPD_Register_Query-dataset.yaml b/base/configs/superset/assets/datasets/PostgreSQL/HC_NCD_OPD_Register_Query-dataset.yaml index e9f0dacd..98eef895 100644 --- a/base/configs/superset/assets/datasets/PostgreSQL/HC_NCD_OPD_Register_Query-dataset.yaml +++ b/base/configs/superset/assets/datasets/PostgreSQL/HC_NCD_OPD_Register_Query-dataset.yaml @@ -29,14 +29,9 @@ sql: "SELECT\n f_facility AS \"Facility Name\",\n f_district AS \"Facility \ AS \"Alcohol Use\",\n obs_cvd_risk_score AS \"CVD risk score (%)\",\n obs_teleconsultation\ \ AS \"Tele-consultation with NCD unit\",\n obs_diagnosis1 AS \"Diagnosis 1\"\ ,\n obs_diagnosis2 AS \"Diagnosis 2\",\n obs_treatment_recommendations AS\ - \ \"Management Lifestyle\",\n CASE WHEN medications IS NOT NULL \n THEN\ - \ \n (SELECT distinct_medications.medications FROM (\n \ - \ SELECT \n STRING_AGG(DISTINCT drug_name, ', ') AS medications\n\ - \ FROM (\n SELECT unnest(string_to_array(medications,\ - \ ', ')) AS drug_name\n ) AS distinct_drugs\n ) AS distinct_medications)\n\ - \ ELSE NULL \n END AS \"Management - Medications\",\n obs_followup_date\ - \ AS \"Appointment Date\",\n obs_followup_for AS \"Appointment Reason\",\n \ - \ obs_facility AS \"Referral Facility\",\n CONCAT_WS(', ', obs_diabetes_referral_reason,\ + \ \"Management Lifestyle\",\n medications AS \"Management - Medications\",\n\ + \ obs_followup_date AS \"Appointment Date\",\n obs_followup_for AS \"Appointment\ + \ Reason\",\n obs_facility AS \"Referral Facility\",\n CONCAT_WS(', ', obs_diabetes_referral_reason,\ \ obs_hypertension_referral_reason) AS \"Reason for referral\",\n insurance_type\ \ AS \"Payment Type\",\n '' AS \"Remarks\"\nFROM (\n SELECT\n facility_address.state_province\ \ AS \"f_province\",\n facility_address.county_district AS \"f_district\"\ @@ -91,8 +86,8 @@ sql: "SELECT\n f_facility AS \"Facility Name\",\n f_district AS \"Facility \ WHEN obs.question_uuid = '45583478-f703-46e3-b63a-54b0a95c25f0' THEN obs.answer_coded\ \ ELSE NULL END) AS \"obs_diagnosis1\",\n MAX(CASE WHEN obs.question_uuid\ \ = '76ca08a5-2128-4b53-afba-74227b015924' THEN obs.answer_coded ELSE NULL END)\ - \ AS \"obs_diagnosis2\",\n STRING_AGG(drug_order.drug_name, ', ') AS \"medications\"\ - ,\n MAX(CASE WHEN obs.question_uuid = '9f7c8739-3ea3-4f7f-8648-d6c36fef7be2'\ + \ AS \"obs_diagnosis2\",\n STRING_AGG(DISTINCT drug_order.drug_name, ', ')\ + \ AS \"medications\",\n MAX(CASE WHEN obs.question_uuid = '9f7c8739-3ea3-4f7f-8648-d6c36fef7be2'\ \ THEN obs.answer_coded ELSE NULL END) AS \"obs_treatment_recommendations\",\n \ \ MAX(CASE WHEN obs.question_uuid = '80fc2e59-8c16-40db-9767-ac9d9ffeb010'\ \ THEN obs.answer_coded ELSE NULL END) AS \"obs_teleconsultation\",\n MAX(CASE\ diff --git a/base/configs/superset/assets/datasets/PostgreSQL/Patients_Screened_For_NCD_For_The_First_Time_Query-dataset.yaml b/base/configs/superset/assets/datasets/PostgreSQL/Patients_Screened_For_NCD_For_The_First_Time_Query-dataset.yaml new file mode 100644 index 00000000..0f763dec --- /dev/null +++ b/base/configs/superset/assets/datasets/PostgreSQL/Patients_Screened_For_NCD_For_The_First_Time_Query-dataset.yaml @@ -0,0 +1,640 @@ +table_name: Patients Screened For NCD For The First Time Query-dataset +main_dttm_col: Visit Start date +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: "SELECT \"Facility Name\" AS \"Facility Name\",\n \"Facility District\"\ + \ AS \"Facility District\",\n \"Facility Province\" AS \"Facility Province\"\ + ,\n \"OpenMRS ID\" AS \"OpenMRS ID\",\n \"Patient's First name\" AS\ + \ \"Patient's First name\",\n \"Patient's Last name\" AS \"Patient's Last\ + \ name\",\n \"Patient Address\" AS \"Patient Address\",\n \"Phone number\"\ + \ AS \"Phone number\",\n \"Other Identifiers\" AS \"Other Identifiers\",\n\ + \ \"Visit Start date\" AS \"Visit Start date\",\n \"Visit End date\"\ + \ AS \"Visit End date\",\n \"Visit Type\" AS \"Visit Type\",\n \"Referral\ + \ source\" AS \"Referral source\",\n \"Insurance type\" AS \"Insurance type\"\ + ,\n \"Known Diabetes\" AS \"Known Diabetes\",\n \"Known Hypertension\"\ + \ AS \"Known Hypertension\",\n \"Weight\" AS \"Weight\",\n \"Height\"\ + \ AS \"Height\",\n \"Circumference\" AS \"Circumference\",\n \"Systolic\ + \ Pressure\" AS \"Systolic Pressure\",\n \"Diastolic Pressure\" AS \"Diastolic\ + \ Pressure\",\n \"BMI\" AS \"BMI\",\n \"Pulse\" AS \"Pulse\",\n \ + \ \"Temperature\" AS \"Temperature\",\n \"Fasting Blood Sugar\" AS \"Fasting\ + \ Blood Sugar\",\n \"Random Blood Sugar\" AS \"Random Blood Sugar\",\n \ + \ \"OGTT\" AS \"OGTT\",\n \"HbA1c\" AS \"HbA1c\",\n \"Albumin\" AS\ + \ \"Albumin\",\n \"Ketones\" AS \"Ketones\",\n \"Diagnosis 1\" AS \"\ + Diagnosis 1\",\n \"Diagnosis 2\" AS \"Diagnosis 2\",\n \"Facility\"\ + \ AS \"Facility\",\n \"Has a Referral Letter\" AS \"Has a Referral Letter\"\ + ,\n \"CVD Risk Score\" AS \"CVD Risk Score\",\n \"Follow-Up For\" AS\ + \ \"Follow-Up For\",\n \"Follow-Up Date\" AS \"Follow-Up Date\",\n \"\ + Started on Medication\" AS \"Started on Medication\",\n \"Drug Names\" AS\ + \ \"Drug Names\",\n CASE \n WHEN (raw_data_set.diagnosis_1_answer_uuid\ + \ = '105903f4-7b6d-496a-b613-37ab9d0f5450' OR raw_data_set.diagnosis_1_answer_uuid\ + \ = '8b26ecd3-8726-4c8e-b042-cbe71e44a863' OR raw_data_set.diagnosis_1_answer_uuid=\ + \ '117399AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') AND raw_data_set.max_medication_duration_in_weeks\ + \ >= 4 \n THEN '80-pecent-followup-with-hypertension-iabetes-and-medication'\n\ + \ ELSE 'patients-aged-40-above-with-first-time ncd-screening'\n \ + \ END AS \"indicator\"\nFROM\n (SELECT \n l.name AS \"Facility Name\"\ + ,\n l.county_district AS \"Facility District\",\n l.state_province\ + \ AS \"Facility Province\",\n CASE \n WHEN p.identifiers ~ '.*OpenMRS\ + \ ID: (.*?)(,|$).*' THEN REGEXP_REPLACE(p.identifiers, '.*OpenMRS ID: (.*?)(,|$).*',\ + \ '\\1', 'g')\n ELSE ''\n END AS \"OpenMRS ID\",\n MAX(p.given_name)\ + \ AS \"Patient's First name\",\n MAX(p.family_name) AS \"Patient's Last name\"\ + ,\n MAX(CONCAT_WS(' ', p.address_state_province, p.address_county_district,\ + \ p.address_city, p.address_1)) AS \"Patient Address\",\n MAX(CASE \n \ + \ WHEN p.attributes ~ '.*Telephone Number: (.*?)(\\/|$).*' THEN REGEXP_REPLACE(p.attributes,\ + \ '.*Telephone Number: (.*?)(\\/|$).*', '\\1', 'g')\n ELSE ''\n \ + \ END) AS \"Phone number\",\n COALESCE(\n REGEXP_REPLACE(\n\ + \ REGEXP_REPLACE(\n MAX(p.identifiers), \n \ + \ '(?:OpenMRS ID): [^,]*,?\\s?', \n '', \n \ + \ 'g'\n ), \n '^, |, $', \n \ + \ ''\n ), \n NULL\n ) AS \"Other Identifiers\"\ + ,\n MAX(v.date_started) AS \"Visit Start date\",\n MAX(v.date_stopped)\ + \ AS \"Visit End date\",\n MAX(v.type) AS \"Visit Type\",\n MAX(CASE\ + \ \n WHEN v.visit_attributes ~ '.*Referred from: (.*?)(\\/|$).*' THEN\ + \ REGEXP_REPLACE(v.visit_attributes, '.*Referred from: (.*?)(\\/|$).*', '\\1', 'g')\n\ + \ ELSE ''\n END) AS \"Referral source\",\n MAX(CASE \n\ + \ WHEN v.visit_attributes ~ '.*Insurance Type: (.*?)(\\/|$).*' THEN REGEXP_REPLACE(v.visit_attributes,\ + \ '.*Insurance Type: (.*?)(\\/|$).*', '\\1', 'g')\n ELSE ''\n \ + \ END) AS \"Insurance type\",\n MAX(CASE WHEN o.question_uuid = 'b8edfbde-5f94-421e-8b25-e86afe35d0f7'\ + \ THEN o.answer_coded ELSE NULL END) AS \"Known Diabetes\",\n MAX(CASE WHEN\ + \ o.question_uuid = 'f8fd0782-a9fc-4c02-b556-72740853bc18' THEN o.answer_coded ELSE\ + \ NULL END) AS \"Known Hypertension\",\n MAX(CASE WHEN o.question_uuid =\ + \ '5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' THEN o.answer_numeric ELSE NULL END) AS\ + \ \"Weight\",\n MAX(CASE WHEN o.question_uuid = '5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'\ + \ THEN o.answer_numeric ELSE NULL END) AS \"Height\",\n MAX(CASE WHEN o.question_uuid\ + \ = '1343AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' THEN o.answer_numeric ELSE NULL END)\ + \ AS \"Circumference\",\n MAX(CASE WHEN o.question_uuid = '5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'\ + \ THEN o.answer_numeric ELSE NULL END) AS \"Systolic Pressure\",\n MAX(CASE\ + \ WHEN o.question_uuid = '5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' THEN o.answer_numeric\ + \ ELSE NULL END) AS \"Diastolic Pressure\",\n MAX(CASE WHEN o.question_uuid\ + \ = 'a89c60c0-1350-11df-a1f1-0026b9348838' THEN o.answer_numeric ELSE NULL END)\ + \ AS \"BMI\",\n MAX(CASE WHEN o.question_uuid = '5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'\ + \ THEN o.answer_numeric ELSE NULL END) AS \"Pulse\",\n MAX(CASE WHEN o.question_uuid\ + \ = '5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' THEN o.answer_numeric ELSE NULL END)\ + \ AS \"Temperature\",\n MAX(CASE WHEN o.question_uuid = '4a6ad2db-86af-4acc-906b-b749b7f6cda6'\ + \ THEN o.answer_numeric ELSE NULL END) AS \"Fasting Blood Sugar\",\n MAX(CASE\ + \ WHEN o.question_uuid = 'f52d731e-58da-4f3a-a480-77c5e9d8d2eb' THEN o.answer_numeric\ + \ ELSE NULL END) AS \"Random Blood Sugar\",\n MAX(CASE WHEN o.question_uuid\ + \ = '163594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' THEN o.answer_numeric ELSE NULL END)\ + \ AS \"OGTT\",\n MAX(CASE WHEN o.question_uuid = 'a8af7520-1350-11df-a1f1-0026b9348838'\ + \ THEN o.answer_numeric ELSE NULL END) AS \"HbA1c\",\n MAX(CASE WHEN o.question_uuid\ + \ = 'c423325e-be95-42e2-ae38-b940c2586327' THEN o.answer_numeric ELSE NULL END)\ + \ AS \"Albumin\",\n MAX(CASE WHEN o.question_uuid = '07015405-c865-4a22-8ad1-c8863d5f005b'\ + \ THEN o.answer_numeric ELSE NULL END) AS \"Ketones\",\n MAX(CASE WHEN o.question_uuid\ + \ = '45583478-f703-46e3-b63a-54b0a95c25f0' THEN o.answer_coded ELSE NULL END) AS\ + \ \"Diagnosis 1\",\n MAX(CASE WHEN o.question_uuid = '45583478-f703-46e3-b63a-54b0a95c25f0'\ + \ THEN o.answer_coded_uuid ELSE NULL END) AS \"diagnosis_1_answer_uuid\",\n \ + \ MAX(CASE WHEN o.question_uuid = '76ca08a5-2128-4b53-afba-74227b015924' THEN\ + \ o.answer_coded ELSE NULL END) AS \"Diagnosis 2\",\n MAX(CASE WHEN o.question_uuid\ + \ = '758b9dd8-b6d0-4ac2-b245-0e7bffb4693a' THEN o.answer_coded ELSE NULL END) AS\ + \ \"Facility\",\n MAX(CASE \n WHEN v.visit_attributes ~ '.*Has\ + \ a referral letter ?: (.*?)(\\/|$).*' THEN REGEXP_REPLACE(v.visit_attributes, '.*Has\ + \ a referral letter ?: (.*?)(\\/|$).*', '\\1', 'g')\n ELSE ''\n \ + \ END) AS \"Has a Referral Letter\",\n MAX(CASE WHEN o.question_uuid =\ + \ 'dff491e3-b14c-4b32-ab64-63b96966d72d' THEN o.answer_coded ELSE NULL END) AS \"\ + CVD Risk Score\",\n MAX(CASE WHEN o.question_uuid = '2e27bbf9-d744-46a2-a7d4-cecd33c28b8a'\ + \ THEN o.answer_coded ELSE NULL END) AS \"Follow-Up For\",\n MAX(CASE WHEN\ + \ o.question_uuid = 'e9c145c1-f4e9-4c34-b237-da069939dc38' THEN o.answer_datetime\ + \ ELSE NULL END) AS \"Follow-Up Date\",\n MAX(CASE WHEN o.question_uuid =\ + \ '805c3a0b-cd38-4ed6-b4f8-f3af0fc118ad' THEN o.answer_coded ELSE NULL END) AS \"\ + Started on Medication\",\n STRING_AGG(DISTINCT medications.drug_name, ',\ + \ ') AS \"Drug Names\",\n MAX(medications.medication_duration_in_weeks) AS\ + \ max_medication_duration_in_weeks\n FROM \n encounters e \n LEFT JOIN\ + \ \n patients p ON e.patient_uuid = p.patient_uuid\n LEFT JOIN \n \ + \ visits v ON e.visit_uuid = v.visit_uuid\n LEFT JOIN \n observations\ + \ o ON e.encounter_uuid = o.encounter_uuid AND o.question_uuid IN (\n \ + \ 'b8edfbde-5f94-421e-8b25-e86afe35d0f7',\n 'f8fd0782-a9fc-4c02-b556-72740853bc18',\n\ + \ '5089AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',\n '5090AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',\n\ + \ '1343AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',\n '5085AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',\n\ + \ '5086AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',\n 'a89c60c0-1350-11df-a1f1-0026b9348838',\n\ + \ '5087AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',\n '5088AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',\n\ + \ '4a6ad2db-86af-4acc-906b-b749b7f6cda6',\n 'f52d731e-58da-4f3a-a480-77c5e9d8d2eb',\n\ + \ '163594AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA',\n 'a8af7520-1350-11df-a1f1-0026b9348838',\n\ + \ 'c423325e-be95-42e2-ae38-b940c2586327',\n '07015405-c865-4a22-8ad1-c8863d5f005b',\n\ + \ '45583478-f703-46e3-b63a-54b0a95c25f0',\n '76ca08a5-2128-4b53-afba-74227b015924',\n\ + \ '758b9dd8-b6d0-4ac2-b245-0e7bffb4693a',\n 'dff491e3-b14c-4b32-ab64-63b96966d72d',\n\ + \ '2e27bbf9-d744-46a2-a7d4-cecd33c28b8a',\n 'e9c145c1-f4e9-4c34-b237-da069939dc38',\n\ + \ '805c3a0b-cd38-4ed6-b4f8-f3af0fc118ad'\n )\n LEFT JOIN \n\ + \ locations l ON e.location_uuid = l.uuid\n LEFT JOIN \n (\n \ + \ SELECT \n CASE \n WHEN d_o.duration_unit_uuid\ + \ LIKE '1822AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' THEN (d_o.duration / 672)\n \ + \ WHEN d_o.duration_unit_uuid LIKE '1072AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'\ + \ THEN (d_o.duration / 7)\n WHEN d_o.duration_unit_uuid LIKE\ + \ '1073AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' THEN d_o.duration\n \ + \ WHEN d_o.duration_unit_uuid LIKE '1074AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' THEN (d_o.duration\ + \ * 4.34524)\n WHEN d_o.duration_unit_uuid LIKE '1734AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA'\ + \ THEN (d_o.duration * 52.1429)\n ELSE 0\n END\ + \ AS \"medication_duration_in_weeks\",\n d_o.encounter_uuid,\n \ + \ d_o.patient_uuid,\n d_o.drug_name\n FROM\ + \ \n orders d_o\n ) medications ON medications.patient_uuid\ + \ = p.patient_uuid AND e.encounter_uuid = medications.encounter_uuid\n WHERE\ + \ \n e.encounter_type IN ('Health Center - NCD Screening')\n AND (e.encounter_datetime\ + \ - p.birthdate) >= interval '40 years'\n AND e.patient_uuid NOT IN (\n \ + \ SELECT \n patient_uuid \n FROM \n \ + \ encounters previous_e\n WHERE \n previous_e.patient_uuid\ + \ = e.patient_uuid AND previous_e.encounter_type IN ('Health Center - NCD Screening')\ + \ \n {% if from_dttm != undefined and from_dttm is not none %}\n\ + \ AND DATE(previous_e.encounter_datetime) <= '{{ from_dttm }}'\n\ + \ {% else %}\n AND 1=0\n {%- endif\ + \ -%}\n )\n GROUP BY \n \"Facility Name\", \"Facility District\"\ + , \"Facility Province\", \"OpenMRS ID\", e.encounter_uuid\n ) raw_data_set" +params: null +template_params: '' +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 54c5a8fb-66f7-4279-8498-abebf5d65e7f +metrics: +- metric_name: count + verbose_name: null + metric_type: null + expression: count(*) + description: null + d3format: null + extra: + warning_markdown: '' + warning_text: null +columns: +- column_name: Has a Referral Letter + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Patient's First name + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Patient's Last name + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Fasting Blood Sugar + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Random Blood Sugar + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Visit End date + verbose_name: null + is_dttm: true + is_active: null + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Visit Start date + verbose_name: null + is_dttm: true + is_active: null + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: CVD Risk Score + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Started on Medication + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Follow-Up Date + verbose_name: null + is_dttm: true + is_active: null + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Follow-Up For + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Diagnosis 1 + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Diagnosis 2 + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Diastolic Pressure + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Systolic Pressure + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Patient Address + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Facility District + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: OpenMRS ID + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Known Diabetes + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Drug Names + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Facility Name + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Facility Province + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Known Hypertension + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Other Identifiers + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Insurance type + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Phone number + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Referral source + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Visit Type + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: HbA1c + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Albumin + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: BMI + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Circumference + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: OGTT + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Height + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Ketones + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Pulse + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Temperature + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Weight + verbose_name: null + is_dttm: false + is_active: null + type: FLOAT + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: Facility + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +- column_name: indicator + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: {} +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe diff --git a/base/configs/superset/assets/datasets/PostgreSQL/RH_NCD_OPD_Register_Query-dataset.yaml b/base/configs/superset/assets/datasets/PostgreSQL/RH_NCD_OPD_Register_Query-dataset.yaml index de52a307..f58be22e 100644 --- a/base/configs/superset/assets/datasets/PostgreSQL/RH_NCD_OPD_Register_Query-dataset.yaml +++ b/base/configs/superset/assets/datasets/PostgreSQL/RH_NCD_OPD_Register_Query-dataset.yaml @@ -29,22 +29,17 @@ sql: "SELECT\n f_facility AS \"Facility Name\",\n f_district AS \"Facility \ AS \"Physical Exercise\",\n obs_alcohol_use AS \"Alcohol Use\",\n obs_cvd_risk_score\ \ AS \"CVD risk score (%)\",\n obs_diagnosis1 AS \"Diagnosis 1\",\n obs_diagnosis2\ \ AS \"Diagnosis 2\",\n obs_complications AS \"Complications\",\n obs_treatment_recommendations\ - \ AS \"Management - Lifestlye\",\n CASE WHEN medications IS NOT NULL \n \ - \ THEN \n (SELECT distinct_medications.medications FROM (\n \ - \ SELECT \n STRING_AGG(DISTINCT drug_name, ', ') AS medications\n\ - \ FROM (\n SELECT unnest(string_to_array(medications,\ - \ ', ')) AS drug_name\n ) AS distinct_drugs\n ) AS distinct_medications)\n\ - \ ELSE NULL \n END AS \"Management - Medications\",\n obs_followup_date\ - \ AS \"Appointment Date\",\n obs_followup_for AS \"Appointment Reason\",\n \ - \ obs_facility AS \"Referral Facility\",\n obs_reason_for_referral AS \"Reason\ - \ For Referral\",\n insurance_type AS \"Payment Type\",\n '' AS \"Remarks\"\ - \nFROM (\n SELECT\n facility_address.state_province AS \"f_province\"\ - ,\n facility_address.county_district AS \"f_district\",\n facility_address.name\ - \ AS \"f_facility\",\n MAX(given_name) AS given_name,\n MAX(middle_name)\ - \ AS middle_name,\n MAX(family_name) AS family_name,\n MAX(identifiers)\ - \ AS identifiers,\n MAX(birthdate) AS birthdate,\n MAX(gender) AS\ - \ gender,\n MAX(address_state_province) AS address_state_province,\n \ - \ MAX(address_county_district) AS address_county_district,\n MAX(address_city)\ + \ AS \"Management - Lifestlye\",\n medications AS \"Management - Medications\"\ + ,\n obs_followup_date AS \"Appointment Date\",\n obs_followup_for AS \"Appointment\ + \ Reason\",\n obs_facility AS \"Referral Facility\",\n obs_reason_for_referral\ + \ AS \"Reason For Referral\",\n insurance_type AS \"Payment Type\",\n '' AS\ + \ \"Remarks\"\nFROM (\n SELECT\n facility_address.state_province AS \"\ + f_province\",\n facility_address.county_district AS \"f_district\",\n \ + \ facility_address.name AS \"f_facility\",\n MAX(given_name) AS given_name,\n\ + \ MAX(middle_name) AS middle_name,\n MAX(family_name) AS family_name,\n\ + \ MAX(identifiers) AS identifiers,\n MAX(birthdate) AS birthdate,\n\ + \ MAX(gender) AS gender,\n MAX(address_state_province) AS address_state_province,\n\ + \ MAX(address_county_district) AS address_county_district,\n MAX(address_city)\ \ AS address_city,\n MAX(address_1) AS address_1,\n MAX(attributes)\ \ AS attributes,\n MAX(vi.date_started) AS \"visit_date\",\n MAX(vi.type)\ \ AS \"visit_type\",\n MAX(CASE \n WHEN vi.visit_attributes ~\ @@ -94,8 +89,8 @@ sql: "SELECT\n f_facility AS \"Facility Name\",\n f_district AS \"Facility \ WHEN obs.question_uuid = '76ca08a5-2128-4b53-afba-74227b015924' THEN obs.answer_coded\ \ ELSE NULL END) AS \"obs_diagnosis2\",\n MAX(CASE WHEN obs.question_uuid\ \ = '3f36a039-eac3-46bd-8798-102c55639d49' THEN obs.answer_coded ELSE NULL END)\ - \ AS \"obs_complications\",\n STRING_AGG(drug_order.drug_name, ', ') AS \"\ - medications\",\n MAX(CASE WHEN obs.question_uuid = 'dee2db0c-5a06-4b1e-8be6-0f327fe6158d'\ + \ AS \"obs_complications\",\n STRING_AGG(DISTINCT drug_order.drug_name, ',\ + \ ') AS \"medications\",\n MAX(CASE WHEN obs.question_uuid = 'dee2db0c-5a06-4b1e-8be6-0f327fe6158d'\ \ THEN obs.answer_coded ELSE NULL END) AS \"obs_reason_for_referral\",\n \ \ MAX(CASE WHEN obs.question_uuid = '9f7c8739-3ea3-4f7f-8648-d6c36fef7be2' THEN\ \ obs.answer_coded ELSE NULL END) AS \"obs_treatment_recommendations\",\n \ diff --git a/base/configs/superset/assets/datasets/PostgreSQL/Women_Screened_For_Cervical_Cancer_For_The_First_Time_Query-dataset.yaml b/base/configs/superset/assets/datasets/PostgreSQL/Women_Screened_For_Cervical_Cancer_For_The_First_Time_Query-dataset.yaml new file mode 100644 index 00000000..15e2aaaa --- /dev/null +++ b/base/configs/superset/assets/datasets/PostgreSQL/Women_Screened_For_Cervical_Cancer_For_The_First_Time_Query-dataset.yaml @@ -0,0 +1,495 @@ +table_name: Women Screened For Cervical Cancer For The First Time Query-dataset +main_dttm_col: Visit Start date +description: null +default_endpoint: null +offset: 0 +cache_timeout: null +schema: public +sql: "SELECT \n \"Facility Name\" AS \"Facility Name\",\n \"Facility\ + \ District\" AS \"Facility District\",\n \"Facility Province\" AS \"Facility\ + \ Province\",\n \"OpenMRS ID\" AS \"OpenMRS ID\",\n \"Patient's First\ + \ name\" AS \"Patient's First name\",\n \"Patient's Last name\" AS \"Patient's\ + \ Last name\",\n \"Patient Address\" AS \"Patient Address\",\n \"\ + Phone number\" AS \"Phone number\",\n \"Other Identifiers\" AS \"Other Identifiers\"\ + ,\n \"Visit Start date\" AS \"Visit Start date\",\n \"Visit End date\"\ + \ AS \"Visit End date\",\n \"Visit Type\" AS \"Visit Type\",\n \"\ + Referral source\" AS \"Referral source\",\n \"Insurance type\" AS \"Insurance\ + \ type\",\n \"First Screening?\" AS \"First Screening?\",\n \"HPV\ + \ Test\" AS \"HPV Test\",\n \"Visibility of SCJ\" AS \"Visibility of SCJ\"\ + ,\n \"VIA Test Result\" AS \"VIA Test Result\",\n \"Number of Quadrants\"\ + \ AS \"Number of Quadrants\",\n \"Area of ectocervix\" AS \"Area of ectocervix\"\ + ,\n \"Colposcopy\" AS \"Colposcopy\",\n \"Cervical Biopsy\" AS \"\ + Cervical Biopsy\",\n \"Pap Smear\" AS \"Pap Smear\",\n \"Referral\ + \ Facility\" AS \"Referral Facility\",\n \"CC Reason for Referral\" AS \"\ + CC Reason for Referral\",\n \"CC Treatment\" AS \"CC Treatment\",\n \ + \ \"CC Follow-up date\" AS \"CC Follow-up date\",\n \"Encounter date and\ + \ time\" AS \"Encounter date and time\",\n CASE \n WHEN (raw_data_set.via_result_answer_uuid\ + \ = '703AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA') AND (raw_data_set.cc_reason_referral_answer_uuid=\ + \ '7d469a03-a56b-4c51-a421-0e5787556630' OR raw_data_set.cc_reason_referral_answer_uuid\ + \ = 'fc3909e3-9ddb-46e3-b4f7-6905732d977b')\n THEN '80-percent-women-aged-30-49-years-with-ccs-screening-first-time-via-positive-referred'\n\ + \ ELSE 'women-aged-30-49-years-with-ccs-screening-first-time'\n \ + \ END AS \"indicator\"\nFROM\n (SELECT \n l.name AS \"Facility Name\"\ + ,\n l.county_district AS \"Facility District\",\n l.state_province\ + \ AS \"Facility Province\",\n CASE \n WHEN p.identifiers ~ '.*OpenMRS\ + \ ID: (.*?)(,|$).*' THEN REGEXP_REPLACE(p.identifiers, '.*OpenMRS ID: (.*?)(,|$).*',\ + \ '\\1', 'g')\n ELSE ''\n END AS \"OpenMRS ID\",\n MAX(p.given_name)\ + \ AS \"Patient's First name\",\n MAX(p.family_name) AS \"Patient's Last name\"\ + ,\n MAX(CONCAT_WS(' ', p.address_state_province, p.address_county_district,\ + \ p.address_city, p.address_1)) AS \"Patient Address\",\n MAX(CASE \n \ + \ WHEN p.attributes ~ '.*Telephone Number: (.*?)(\\/|$).*' THEN REGEXP_REPLACE(p.attributes,\ + \ '.*Telephone Number: (.*?)(\\/|$).*', '\\1', 'g')\n ELSE ''\n \ + \ END) AS \"Phone number\",\n COALESCE(\n REGEXP_REPLACE(\n\ + \ REGEXP_REPLACE(\n MAX(p.identifiers), \n \ + \ '(?:OpenMRS ID): [^,]*,?\\s?', \n '', \n \ + \ 'g'\n ), \n '^, |, $', \n \ + \ ''\n ), \n NULL\n ) AS \"Other Identifiers\"\ + ,\n MAX(v.date_started) AS \"Visit Start date\",\n MAX(v.date_stopped)\ + \ AS \"Visit End date\",\n MAX(v.type) AS \"Visit Type\",\n MAX(CASE\ + \ \n WHEN v.visit_attributes ~ '.*Referred from: (.*?)(\\/|$).*' THEN\ + \ REGEXP_REPLACE(v.visit_attributes, '.*Referred from: (.*?)(\\/|$).*', '\\1', 'g')\n\ + \ ELSE ''\n END) AS \"Referral source\",\n MAX(CASE \n\ + \ WHEN v.visit_attributes ~ '.*Insurance Type: (.*?)(\\/|$).*' THEN REGEXP_REPLACE(v.visit_attributes,\ + \ '.*Insurance Type: (.*?)(\\/|$).*', '\\1', 'g')\n ELSE ''\n \ + \ END) AS \"Insurance type\",\n MAX(CASE WHEN o.question_uuid = '75681e39-683c-4de9-9ca7-5b55b736bfa7'\ + \ THEN o.answer_coded ELSE NULL END) AS \"First Screening?\",\n MAX(CASE\ + \ WHEN o.question_uuid = '5f27683c-e4ab-4a10-922d-e34bbb560884' THEN o.answer_coded\ + \ ELSE NULL END) AS \"HPV Test\",\n MAX(CASE WHEN o.question_uuid = 'd2ec630a-a223-492a-89f2-597266b36571'\ + \ THEN o.answer_coded ELSE NULL END) AS \"Visibility of SCJ\",\n MAX(CASE\ + \ WHEN o.question_uuid = '27912a31-4b1e-40d4-a3a0-947e0eb2e588' THEN o.answer_coded\ + \ ELSE NULL END) AS \"VIA Test Result\",\n MAX(CASE WHEN o.question_uuid\ + \ = '27912a31-4b1e-40d4-a3a0-947e0eb2e588' THEN o.answer_coded_uuid ELSE NULL END)\ + \ AS \"via_result_answer_uuid\",\n MAX(CASE WHEN o.question_uuid = '0dd61510-1ddd-49e8-838b-b4ec7fdaf95f'\ + \ THEN o.answer_coded ELSE NULL END) AS \"Number of Quadrants\",\n MAX(CASE\ + \ WHEN o.question_uuid = 'a84a070a-172f-43f7-96f3-67574d42ba1b' THEN o.answer_coded\ + \ ELSE NULL END) AS \"Area of ectocervix\",\n MAX(CASE WHEN o.question_uuid\ + \ = 'c0027068-fe1b-4401-aad5-d70e4437362c' THEN o.answer_coded ELSE NULL END) AS\ + \ \"Colposcopy\",\n MAX(CASE WHEN o.question_uuid = 'df802805-a937-4031-928d-8ce7b69aefc7'\ + \ THEN o.answer_coded ELSE NULL END) AS \"Cervical Biopsy\",\n MAX(CASE WHEN\ + \ o.question_uuid = '863d4bf3-310d-472a-990d-8467e543ebab' THEN o.answer_coded ELSE\ + \ NULL END) AS \"Pap Smear\",\n MAX(CASE WHEN o.question_uuid = '758b9dd8-b6d0-4ac2-b245-0e7bffb4693a'\ + \ THEN o.answer_coded ELSE NULL END) AS \"Referral Facility\",\n MAX(CASE\ + \ WHEN o.question_uuid = 'c158e3b2-edf9-4e0e-9e95-d36de1a51527' THEN o.answer_coded\ + \ ELSE NULL END) AS \"CC Reason for Referral\",\n MAX(CASE WHEN o.question_uuid\ + \ = 'c158e3b2-edf9-4e0e-9e95-d36de1a51527' THEN o.answer_coded_uuid ELSE NULL END)\ + \ AS \"cc_reason_referral_answer_uuid\",\n MAX(CASE WHEN o.question_uuid\ + \ = '1ca7d712-f7d7-4e09-8184-048bc4173902' THEN o.answer_coded ELSE NULL END) AS\ + \ \"CC Treatment\",\n MAX(CASE WHEN o.question_uuid = 'f6a3e29c-9ecc-4583-9768-359c77529635'\ + \ THEN o.answer_coded ELSE NULL END) AS \"CC Follow-up date\",\n MAX(e.encounter_datetime)\ + \ AS \"Encounter date and time\"\n FROM \n encounters e \n LEFT JOIN\ + \ \n patients p ON e.patient_uuid = p.patient_uuid\n LEFT JOIN \n \ + \ visits v ON e.visit_uuid = v.visit_uuid\n LEFT JOIN \n observations\ + \ o ON e.encounter_uuid = o.encounter_uuid AND o.question_uuid IN (\n '75681e39-683c-4de9-9ca7-5b55b736bfa7',\n\ + \ '5f27683c-e4ab-4a10-922d-e34bbb560884',\n 'd2ec630a-a223-492a-89f2-597266b36571',\n\ + \ '27912a31-4b1e-40d4-a3a0-947e0eb2e588',\n '0dd61510-1ddd-49e8-838b-b4ec7fdaf95f',\n\ + \ 'a84a070a-172f-43f7-96f3-67574d42ba1b',\n 'c0027068-fe1b-4401-aad5-d70e4437362c',\n\ + \ 'df802805-a937-4031-928d-8ce7b69aefc7',\n '863d4bf3-310d-472a-990d-8467e543ebab',\n\ + \ '758b9dd8-b6d0-4ac2-b245-0e7bffb4693a',\n 'c158e3b2-edf9-4e0e-9e95-d36de1a51527',\n\ + \ '1ca7d712-f7d7-4e09-8184-048bc4173902',\n 'f6a3e29c-9ecc-4583-9768-359c77529635'\n\ + \ )\n LEFT JOIN \n locations l ON e.location_uuid = l.uuid\n \ + \ WHERE \n e.encounter_type IN ('Cervical Cancer Screening')\n AND\ + \ (e.encounter_datetime - p.birthdate) >= interval '30 years' AND (e.encounter_datetime\ + \ - p.birthdate) <= interval '49 years'\n AND e.patient_uuid NOT IN (\n \ + \ SELECT \n patient_uuid \n FROM \n \ + \ encounters previous_e\n WHERE \n previous_e.patient_uuid\ + \ = e.patient_uuid AND previous_e.encounter_type IN ('Cervical Cancer Screening')\ + \ \n {% if from_dttm != undefined and from_dttm is not none %}\n\ + \ AND DATE(previous_e.encounter_datetime) <= '{{ from_dttm }}'\n\ + \ {% else %}\n AND 1=0\n {%- endif\ + \ -%}\n )\n GROUP BY \n \"Facility Name\", \"Facility District\"\ + , \"Facility Province\", \"OpenMRS ID\", e.encounter_uuid\n ) raw_data_set\n" +params: null +template_params: '' +filter_select_enabled: false +fetch_values_predicate: null +extra: null +uuid: 3680ccf7-bec7-45bc-8e9d-8afaba18b508 +metrics: +- metric_name: count + verbose_name: null + metric_type: null + expression: count(*) + description: null + d3format: null + extra: + warning_markdown: '' + warning_text: null +columns: +- column_name: Encounter date and time + verbose_name: null + is_dttm: true + is_active: null + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: CC Reason for Referral + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Patient's First name + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Patient's Last name + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: CC Follow-up date + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Visit End date + verbose_name: null + is_dttm: true + is_active: null + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Visit Start date + verbose_name: null + is_dttm: true + is_active: null + type: DATETIME + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: VIA Test Result + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Area of ectocervix + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Visibility of SCJ + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Number of Quadrants + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: First Screening? + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Patient Address + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Cervical Biopsy + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: CC Treatment + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Facility District + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: OpenMRS ID + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Facility Name + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Facility Province + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Referral Facility + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: HPV Test + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Other Identifiers + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Insurance type + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Pap Smear + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Phone number + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Referral source + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Visit Type + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: Colposcopy + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +- column_name: indicator + verbose_name: null + is_dttm: false + is_active: null + type: STRING + advanced_data_type: null + groupby: true + filterable: true + expression: '' + description: null + python_date_format: null + extra: + warning_markdown: null +version: 1.0.0 +database_uuid: 4e5f4045-a62d-4964-b719-58229a60e7fe