Skip to content

Commit

Permalink
Fix config for bangladesh DHIS2 export (#5280)
Browse files Browse the repository at this point in the history
- Fixes the format of yaml file
- Adds missing reference to facility
  • Loading branch information
govindkrjoshi authored Sep 20, 2023
1 parent c2ed52f commit e7b7335
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 54 deletions.
1 change: 1 addition & 0 deletions app/exporters/bangladesh_dhis2_exporter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def self.export

exporter.export do |facility_identifier, period|
repository = Reports::Repository.new(facility_identifier.facility.region, periods: periods)
facility = facility_identifier.facility
slug = facility_identifier.facility.region.slug
{
cumulative_assigned: repository.cumulative_assigned_patients[slug][period],
Expand Down
108 changes: 54 additions & 54 deletions config/data/dhis2/bangladesh-production.yml
Original file line number Diff line number Diff line change
@@ -1,62 +1,62 @@
dhis2_data_elements:
cumulative_assigned: "eNtDKQTRdto",
cumulative_assigned_adjusted: "jCn7IIHtlXf",
controlled: "oVfmtlxYhOH",
uncontrolled: "QO2eTU3dW18",
missed_visits: "w7NRchlv0Rb",
ltfu: "w91dERGRhJ4",
dead: "SyduEtVKvlF",
cumulative_registrations: "bdMBWIf2i1h",
cumulative_assigned: "eNtDKQTRdto"
cumulative_assigned_adjusted: "jCn7IIHtlXf"
controlled: "oVfmtlxYhOH"
uncontrolled: "QO2eTU3dW18"
missed_visits: "w7NRchlv0Rb"
ltfu: "w91dERGRhJ4"
dead: "SyduEtVKvlF"
cumulative_registrations: "bdMBWIf2i1h"
monthly_registrations: "tI9g0mtCzOv"

disaggregated_dhis2_data_elements:
htn_controlled_patients: "AA6Oc6DV3Lh",
htn_uncontrolled_patients: "zdjelro1SmB",
htn_cumulative_assigned_patients: "G6Btpbfkq2W",
htn_cumulative_assigned_patients_adjusted: "Xf20lyLSBmA",
htn_cumulative_registered_patients: "aiFkmP0vSur",
htn_dead_patients: "bIO8RQ1zSC7",
htn_monthly_registered_patients: "svwuMGBC3to",
htn_patients_lost_to_follow_up: "kjt9YiJPRYT",
htn_controlled_patients: "AA6Oc6DV3Lh"
htn_uncontrolled_patients: "zdjelro1SmB"
htn_cumulative_assigned_patients: "G6Btpbfkq2W"
htn_cumulative_assigned_patients_adjusted: "Xf20lyLSBmA"
htn_cumulative_registered_patients: "aiFkmP0vSur"
htn_dead_patients: "bIO8RQ1zSC7"
htn_monthly_registered_patients: "svwuMGBC3to"
htn_patients_lost_to_follow_up: "kjt9YiJPRYT"
htn_patients_who_missed_visits: "DktVuX67zy3"

dhis2_category_option_combo:
male_15_19: "lD5fJ7FH7F5",
male_20_24: "I9QB4B7Bjaz",
male_25_29: "eodikMeezug",
male_30_34: "jFKCwmWrZDY",
male_35_39: "wJR0cZ3Ey12",
male_40_44: "pV6YSOlu7bN",
male_45_49: "O8Qwzk07pir",
male_50_54: "ZoXrml6y2Mx",
male_55_59: "xN9o5e6StnS",
male_60_64: "ySojwKytqQd",
male_65_69: "BJpFzvDeI3c",
male_70_74: "rm7nAl3Svmo",
male_75_plus: "orG8grjcMSq",
female_15_19: "mIVgzotqxo1",
female_20_24: "NFT55GaW4jy",
female_25_29: "GWxwHYzjEu1",
female_30_34: "HrPHULh80ak",
female_35_39: "bW5iuiTQ9Zn",
female_40_44: "Kxs8QxcxLwm",
female_45_49: "VGZh8BeNyd8",
female_50_54: "DfZvQ84V53t",
female_55_59: "NTVCB0eSIEc",
female_60_64: "aK96j6tDRU7",
female_65_69: "rPUciQ3Do31",
female_70_74: "sDSbNtoPUdE",
female_75_plus: "p9Y5Qp2F0ER",
transgender_15_19: "dTGIWpIRN53",
transgender_20_24: "N1Epvb2xA1o",
transgender_25_29: "VOluq9JQ69l",
transgender_30_34: "e7WxYJzM2XX",
transgender_35_39: "LSIo9sZ9c3N",
transgender_40_44: "Vck9PpDTEby",
transgender_45_49: "Wi7uegBRKew",
transgender_50_54: "JQrTthw6DAa",
transgender_55_59: "z4kY6YX9FdA",
transgender_60_64: "fVZFXNaMWCF",
transgender_65_69: "oPc5eh0j1Z9",
transgender_70_74: "AdYyauSwEI1",
male_15_19: "lD5fJ7FH7F5"
male_20_24: "I9QB4B7Bjaz"
male_25_29: "eodikMeezug"
male_30_34: "jFKCwmWrZDY"
male_35_39: "wJR0cZ3Ey12"
male_40_44: "pV6YSOlu7bN"
male_45_49: "O8Qwzk07pir"
male_50_54: "ZoXrml6y2Mx"
male_55_59: "xN9o5e6StnS"
male_60_64: "ySojwKytqQd"
male_65_69: "BJpFzvDeI3c"
male_70_74: "rm7nAl3Svmo"
male_75_plus: "orG8grjcMSq"
female_15_19: "mIVgzotqxo1"
female_20_24: "NFT55GaW4jy"
female_25_29: "GWxwHYzjEu1"
female_30_34: "HrPHULh80ak"
female_35_39: "bW5iuiTQ9Zn"
female_40_44: "Kxs8QxcxLwm"
female_45_49: "VGZh8BeNyd8"
female_50_54: "DfZvQ84V53t"
female_55_59: "NTVCB0eSIEc"
female_60_64: "aK96j6tDRU7"
female_65_69: "rPUciQ3Do31"
female_70_74: "sDSbNtoPUdE"
female_75_plus: "p9Y5Qp2F0ER"
transgender_15_19: "dTGIWpIRN53"
transgender_20_24: "N1Epvb2xA1o"
transgender_25_29: "VOluq9JQ69l"
transgender_30_34: "e7WxYJzM2XX"
transgender_35_39: "LSIo9sZ9c3N"
transgender_40_44: "Vck9PpDTEby"
transgender_45_49: "Wi7uegBRKew"
transgender_50_54: "JQrTthw6DAa"
transgender_55_59: "z4kY6YX9FdA"
transgender_60_64: "fVZFXNaMWCF"
transgender_65_69: "oPc5eh0j1Z9"
transgender_70_74: "AdYyauSwEI1"
transgender_75_plus: "eMIKquRyZZh"

0 comments on commit e7b7335

Please sign in to comment.