-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KH-501: Added Report Dashboards for KH-537, KH-538
- Loading branch information
Showing
12 changed files
with
2,068 additions
and
41 deletions.
There are no files selected for viewing
82 changes: 82 additions & 0 deletions
82
base/configs/superset/assets/charts/CCS_Indicators_150.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
82 changes: 82 additions & 0 deletions
82
base/configs/superset/assets/charts/NCD_Indicators_151.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
101 changes: 101 additions & 0 deletions
101
...tension__Diabetes_and_were_given_medication_with_at_least_a_4_weeks_prescription_153.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
Oops, something went wrong.