Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSC-248: HSC reports #86

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ d7a52bd1-77dd-4f71-a5d0-92848a746014,,impl.contactPersonName,Contact Person's Na
62844ea0-8be6-4a12-9471-cbb1f060d78b,,impl.contactPersonPhoneNumber,Contact Person's Phone Number,Numéro de la personne à contacter,Numéro de la personne à contacter,java.lang.String,,,,
0c6d3b0c-7b54-4848-9638-6afc046c59ec,,impl.contactPersonAddress,Contact Person's Address,Adresse de la personne à contacter,Adresse de la personne à contacter,java.lang.String,,,,
b47a9c55-4d28-4549-a223-b16d54b8fbbf,,impl.contactPersonRelationship,Contact Person Relationship,Lien avec la personne à contacter,Lien avec la personne à contacter,org.openmrs.Concept,ee63d1f2-095a-4d28-ba95-fbc933666070,,,
d9b2d63d-6b6d-4c9e-b4e1-6e8f4f3efc3e,,email,Email,Email,Email,java.lang.String,d9b2d63d-6b6d-4c9e-b4e1-6e8f4f3efc3e,TRUE,,
d9b2d63d-6b6d-4c9e-b4e1-6e8f4f3efc3e,,email,Email,Email,Email,java.lang.String,d9b2d63d-6b6d-4c9e-b4e1-6e8f4f3efc3e,TRUE,,
20 changes: 20 additions & 0 deletions configs/superset/assembly.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<assembly
xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.2
http://maven.apache.org/xsd/assembly-1.1.2.xsd"
>
<id>zip-superset-configs</id>
<formats>
<format>zip</format>
</formats>
<includeBaseDirectory>false</includeBaseDirectory>
<fileSets>
<fileSet>
<outputDirectory>.</outputDirectory>
<directory>${project.build.directory}/${project.artifactId}-${project.version}</directory>
</fileSet>
</fileSets>
</assembly>
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
slice_name: Age distribution of non-pregnant women receiving iron folate (ferus sulfate
+ folic acid)
description: null
certified_by: null
certification_details: null
viz_type: echarts_area
params:
datasource: 4__table
viz_type: echarts_area
slice_id: 8
x_axis: age
time_grain_sqla: P1D
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
metrics:
- count
groupby: []
adhoc_filters:
- expressionType: SIMPLE
subject: date_started
operator: TEMPORAL_RANGE
operatorId: TEMPORAL_RANGE
comparator: No filter
clause: WHERE
sqlExpression: null
isExtra: false
isNew: false
datasourceWarning: false
filterOptionName: filter_p5ku6b2g3g_bad8jyydmn
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
x_axis_title: Age (years)
x_axis_title_margin: 30
y_axis_title: Number of other women receiving iron folate
y_axis_title_margin: 50
y_axis_title_position: Left
sort_series_type: sum
color_scheme: supersetColors
seriesType: line
opacity: 0.4
show_value: false
stack: Stack
only_total: true
percentage_threshold: 0
show_extra_controls: true
markerEnabled: true
markerSize: 5
minorTicks: true
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
rich_tooltip: true
tooltipTimeFormat: smart_date
y_axis_format: SMART_NUMBER
truncateXAxis: true
y_axis_bounds:
- null
- null
extra_form_data: {}
dashboards:
- 1
query_context: '{"datasource":{"id":4,"type":"table"},"force":false,"queries":[{"filters":[{"col":"date_started","op":"TEMPORAL_RANGE","val":"No
filter"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":[{"timeGrain":"P1D","columnType":"BASE_AXIS","sqlExpression":"age","label":"age","expressionType":"SQL"}],"metrics":["count"],"orderby":[["count",false]],"annotation_layers":[],"row_limit":10000,"series_columns":[],"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"time_offsets":[],"post_processing":[{"operation":"pivot","options":{"index":["age"],"columns":[],"aggregates":{"count":{"operator":"mean"}},"drop_missing_columns":false}},{"operation":"flatten"}]}],"form_data":{"datasource":"4__table","viz_type":"echarts_area","slice_id":8,"x_axis":"age","time_grain_sqla":"P1D","x_axis_sort_asc":true,"x_axis_sort_series":"name","x_axis_sort_series_ascending":true,"metrics":["count"],"groupby":[],"adhoc_filters":[{"expressionType":"SIMPLE","subject":"date_started","operator":"TEMPORAL_RANGE","operatorId":"TEMPORAL_RANGE","comparator":"No
filter","clause":"WHERE","sqlExpression":null,"isExtra":false,"isNew":false,"datasourceWarning":false,"filterOptionName":"filter_p5ku6b2g3g_bad8jyydmn"}],"order_desc":true,"row_limit":10000,"truncate_metric":true,"show_empty_columns":true,"comparison_type":"values","annotation_layers":[],"forecastPeriods":10,"forecastInterval":0.8,"x_axis_title":"Age
(years)","x_axis_title_margin":30,"y_axis_title":"Number of other women receiving
iron folate","y_axis_title_margin":50,"y_axis_title_position":"Left","sort_series_type":"sum","color_scheme":"supersetColors","seriesType":"line","opacity":0.4,"show_value":false,"stack":"Stack","only_total":true,"percentage_threshold":0,"show_extra_controls":true,"markerEnabled":true,"markerSize":5,"minorTicks":true,"show_legend":true,"legendType":"scroll","legendOrientation":"top","x_axis_time_format":"smart_date","rich_tooltip":true,"tooltipTimeFormat":"smart_date","y_axis_format":"SMART_NUMBER","truncateXAxis":true,"y_axis_bounds":[null,null],"extra_form_data":{},"dashboards":[1],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: 4328ca2c-8f53-49a1-a7be-a4968c7ff678
version: 1.0.0
dataset_uuid: 7232c62b-55a1-48c1-a13f-edba38253ec0
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
slice_name: Age distribution of patients receiving albendazole
description: null
certified_by: null
certification_details: null
viz_type: echarts_timeseries_bar
params:
datasource: 1__table
viz_type: echarts_timeseries_bar
slice_id: 3
x_axis: age
time_grain_sqla: P1D
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
metrics:
- count
groupby:
- gender
adhoc_filters:
- clause: WHERE
comparator: No filter
datasourceWarning: false
expressionType: SIMPLE
filterOptionName: filter_ualiyetyj7f_rnimf1j8c1o
isExtra: false
isNew: false
operator: TEMPORAL_RANGE
operatorId: TEMPORAL_RANGE
sqlExpression: null
subject: date_created
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
orientation: vertical
x_axis_title: Age
x_axis_title_margin: 30
y_axis_title: Number of patients receiving Albendazole
y_axis_title_margin: 50
y_axis_title_position: Left
sort_series_type: sum
sort_series_ascending: false
color_scheme: supersetColors
show_value: true
stack: Stack
only_total: true
minorTicks: true
zoomable: false
show_legend: false
legendType: scroll
legendOrientation: top
legendMargin: null
x_axis_time_format: smart_date
xAxisLabelRotation: 0
y_axis_format: SMART_NUMBER
logAxis: false
minorSplitLine: true
truncateXAxis: true
xAxisBounds:
- null
- null
truncateYAxis: false
y_axis_bounds:
- null
- null
rich_tooltip: true
tooltipSortByMetric: true
tooltipTimeFormat: smart_date
extra_form_data: {}
dashboards:
- 3
query_context: '{"datasource":{"id":1,"type":"table"},"force":false,"queries":[{"filters":[{"col":"date_created","op":"TEMPORAL_RANGE","val":"No
filter"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":[{"timeGrain":"P1D","columnType":"BASE_AXIS","sqlExpression":"age","label":"age","expressionType":"SQL"},"gender"],"metrics":["count"],"orderby":[["count",false]],"annotation_layers":[],"row_limit":10000,"series_columns":["gender"],"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"time_offsets":[],"post_processing":[{"operation":"pivot","options":{"index":["age"],"columns":["gender"],"aggregates":{"count":{"operator":"mean"}},"drop_missing_columns":false}},{"operation":"rename","options":{"columns":{"count":null},"level":0,"inplace":true}},{"operation":"flatten"}]}],"form_data":{"datasource":"1__table","viz_type":"echarts_timeseries_bar","slice_id":3,"x_axis":"age","time_grain_sqla":"P1D","x_axis_sort_asc":true,"x_axis_sort_series":"name","x_axis_sort_series_ascending":true,"metrics":["count"],"groupby":["gender"],"adhoc_filters":[{"clause":"WHERE","comparator":"No
filter","datasourceWarning":false,"expressionType":"SIMPLE","filterOptionName":"filter_ualiyetyj7f_rnimf1j8c1o","isExtra":false,"isNew":false,"operator":"TEMPORAL_RANGE","operatorId":"TEMPORAL_RANGE","sqlExpression":null,"subject":"date_created"}],"order_desc":true,"row_limit":10000,"truncate_metric":true,"show_empty_columns":true,"comparison_type":"values","annotation_layers":[],"forecastPeriods":10,"forecastInterval":0.8,"orientation":"vertical","x_axis_title":"Age","x_axis_title_margin":30,"y_axis_title":"Number
of patients receiving Albendazole","y_axis_title_margin":50,"y_axis_title_position":"Left","sort_series_type":"sum","sort_series_ascending":false,"color_scheme":"supersetColors","show_value":true,"stack":"Stack","only_total":true,"minorTicks":true,"zoomable":false,"show_legend":false,"legendType":"scroll","legendOrientation":"top","legendMargin":null,"x_axis_time_format":"smart_date","xAxisLabelRotation":0,"y_axis_format":"SMART_NUMBER","logAxis":false,"minorSplitLine":true,"truncateXAxis":true,"xAxisBounds":[null,null],"truncateYAxis":false,"y_axis_bounds":[null,null],"rich_tooltip":true,"tooltipSortByMetric":true,"tooltipTimeFormat":"smart_date","extra_form_data":{},"dashboards":[3],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: 77d1228c-2f30-4ea3-af5c-569addc79c26
version: 1.0.0
dataset_uuid: 112cd19a-9a3a-45a5-95cb-e1f1b198eece
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
slice_name: Age distribution of pregnant women receiving iron folate (ferus sulfate
+ folic acid)
description: null
certified_by: null
certification_details: null
viz_type: echarts_area
params:
datasource: 3__table
viz_type: echarts_area
x_axis: age
time_grain_sqla: P1D
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
metrics:
- count
groupby: []
adhoc_filters:
- expressionType: SIMPLE
subject: date_started
operator: TEMPORAL_RANGE
operatorId: TEMPORAL_RANGE
comparator: No filter
clause: WHERE
sqlExpression: null
isExtra: false
isNew: false
datasourceWarning: false
filterOptionName: filter_wix1gww18y_zfbn00lxymh
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: true
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
x_axis_title: Age (years)
x_axis_title_margin: 30
y_axis_title: Number of pregnant women
y_axis_title_margin: 50
y_axis_title_position: Left
sort_series_type: sum
color_scheme: echarts5Colors
seriesType: line
opacity: 0.3
show_value: true
stack: Stack
only_total: true
show_extra_controls: true
markerEnabled: true
markerSize: 9
minorTicks: false
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
rich_tooltip: true
tooltipSortByMetric: true
tooltipTimeFormat: smart_date
y_axis_format: ',d'
logAxis: false
minorSplitLine: true
truncateXAxis: true
y_axis_bounds:
- null
- null
extra_form_data: {}
dashboards: []
query_context: '{"datasource":{"id":3,"type":"table"},"force":false,"queries":[{"filters":[{"col":"date_started","op":"TEMPORAL_RANGE","val":"No
filter"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":[{"timeGrain":"P1D","columnType":"BASE_AXIS","sqlExpression":"age","label":"age","expressionType":"SQL"}],"metrics":["count"],"orderby":[["count",false]],"annotation_layers":[],"row_limit":10000,"series_columns":[],"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"time_offsets":[],"post_processing":[{"operation":"pivot","options":{"index":["age"],"columns":[],"aggregates":{"count":{"operator":"mean"}},"drop_missing_columns":false}},{"operation":"flatten"}]}],"form_data":{"datasource":"3__table","viz_type":"echarts_area","x_axis":"age","time_grain_sqla":"P1D","x_axis_sort_asc":true,"x_axis_sort_series":"name","x_axis_sort_series_ascending":true,"metrics":["count"],"groupby":[],"adhoc_filters":[{"expressionType":"SIMPLE","subject":"date_started","operator":"TEMPORAL_RANGE","operatorId":"TEMPORAL_RANGE","comparator":"No
filter","clause":"WHERE","sqlExpression":null,"isExtra":false,"isNew":false,"datasourceWarning":false,"filterOptionName":"filter_wix1gww18y_zfbn00lxymh"}],"order_desc":true,"row_limit":10000,"truncate_metric":true,"show_empty_columns":true,"comparison_type":"values","annotation_layers":[],"forecastPeriods":10,"forecastInterval":0.8,"x_axis_title":"Age
(years)","x_axis_title_margin":30,"y_axis_title":"Number of pregnant women","y_axis_title_margin":50,"y_axis_title_position":"Left","sort_series_type":"sum","color_scheme":"echarts5Colors","seriesType":"line","opacity":0.3,"show_value":true,"stack":"Stack","only_total":true,"show_extra_controls":true,"markerEnabled":true,"markerSize":9,"minorTicks":false,"show_legend":true,"legendType":"scroll","legendOrientation":"top","x_axis_time_format":"smart_date","rich_tooltip":true,"tooltipSortByMetric":true,"tooltipTimeFormat":"smart_date","y_axis_format":",d","logAxis":false,"minorSplitLine":true,"truncateXAxis":true,"y_axis_bounds":[null,null],"extra_form_data":{},"dashboards":[],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: f3aaf511-e1ce-4b0a-bfc9-0275aef29da9
version: 1.0.0
dataset_uuid: 54e7e9a1-4295-4ead-9726-8aef532c85a5
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
slice_name: Age distribution of pregnant women receiving prenatal multivitamins
description: null
certified_by: null
certification_details: null
viz_type: echarts_area
params:
datasource: 6__table
viz_type: echarts_area
x_axis: patient_age_at_visit
time_grain_sqla: P1D
xAxisForceCategorical: true
x_axis_sort: patient_age_at_visit
x_axis_sort_asc: true
x_axis_sort_series: name
x_axis_sort_series_ascending: true
metrics:
- count
groupby: []
contributionMode: null
adhoc_filters:
- expressionType: SIMPLE
subject: date_started
operator: TEMPORAL_RANGE
operatorId: TEMPORAL_RANGE
comparator: No filter
clause: WHERE
sqlExpression: null
isExtra: false
isNew: false
datasourceWarning: false
filterOptionName: filter_idst49r1vfk_5skc8na4gsh
order_desc: true
row_limit: 10000
truncate_metric: true
show_empty_columns: false
comparison_type: values
annotation_layers: []
forecastPeriods: 10
forecastInterval: 0.8
x_axis_title: Age in years
x_axis_title_margin: 30
y_axis_title: Number of pregnant women
y_axis_title_margin: 50
y_axis_title_position: Left
sort_series_type: sum
color_scheme: supersetColors
seriesType: line
opacity: 0.2
show_value: false
only_total: true
markerSize: 6
minorTicks: true
zoomable: true
show_legend: true
legendType: scroll
legendOrientation: top
x_axis_time_format: smart_date
rich_tooltip: true
tooltipSortByMetric: true
tooltipTimeFormat: smart_date
y_axis_format: SMART_NUMBER
truncateXAxis: true
y_axis_bounds:
- null
- null
extra_form_data: {}
dashboards:
- 6
query_context: '{"datasource":{"id":6,"type":"table"},"force":false,"queries":[{"filters":[{"col":"date_started","op":"TEMPORAL_RANGE","val":"No
filter"}],"extras":{"time_grain_sqla":"P1D","having":"","where":""},"applied_time_extras":{},"columns":[{"timeGrain":"P1D","columnType":"BASE_AXIS","sqlExpression":"patient_age_at_visit","label":"patient_age_at_visit","expressionType":"SQL"}],"metrics":["count"],"orderby":[["count",false]],"annotation_layers":[],"row_limit":10000,"series_columns":[],"series_limit":0,"order_desc":true,"url_params":{},"custom_params":{},"custom_form_data":{},"time_offsets":[],"post_processing":[{"operation":"pivot","options":{"index":["patient_age_at_visit"],"columns":[],"aggregates":{"count":{"operator":"mean"}},"drop_missing_columns":true}},{"operation":"sort","options":{"is_sort_index":true,"ascending":true}},{"operation":"flatten"}]}],"form_data":{"datasource":"6__table","viz_type":"echarts_area","x_axis":"patient_age_at_visit","time_grain_sqla":"P1D","xAxisForceCategorical":true,"x_axis_sort":"patient_age_at_visit","x_axis_sort_asc":true,"x_axis_sort_series":"name","x_axis_sort_series_ascending":true,"metrics":["count"],"groupby":[],"contributionMode":null,"adhoc_filters":[{"expressionType":"SIMPLE","subject":"date_started","operator":"TEMPORAL_RANGE","operatorId":"TEMPORAL_RANGE","comparator":"No
filter","clause":"WHERE","sqlExpression":null,"isExtra":false,"isNew":false,"datasourceWarning":false,"filterOptionName":"filter_idst49r1vfk_5skc8na4gsh"}],"order_desc":true,"row_limit":10000,"truncate_metric":true,"show_empty_columns":false,"comparison_type":"values","annotation_layers":[],"forecastPeriods":10,"forecastInterval":0.8,"x_axis_title":"Age
in years","x_axis_title_margin":30,"y_axis_title":"Number of pregnant women","y_axis_title_margin":50,"y_axis_title_position":"Left","sort_series_type":"sum","color_scheme":"supersetColors","seriesType":"line","opacity":0.2,"show_value":false,"only_total":true,"markerSize":6,"minorTicks":true,"zoomable":true,"show_legend":true,"legendType":"scroll","legendOrientation":"top","x_axis_time_format":"smart_date","rich_tooltip":true,"tooltipSortByMetric":true,"tooltipTimeFormat":"smart_date","y_axis_format":"SMART_NUMBER","truncateXAxis":true,"y_axis_bounds":[null,null],"extra_form_data":{},"dashboards":[6],"force":false,"result_format":"json","result_type":"full"},"result_format":"json","result_type":"full"}'
cache_timeout: null
uuid: 96b5f873-b200-46cd-b439-e8d69dc2f292
version: 1.0.0
dataset_uuid: f1553bdf-bff6-49e6-8ef2-ed70a90fae52
Loading