malawi_hiv_program_reports 1.1.8 → 1.1.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d0bd52cc04c44118891f8973848b941a5d521b4c8b13aa7dbd4cc0a45a8d6e30
4
- data.tar.gz: 9775a0380f000b917ccda058588ddddaf660fbe94542fd5e3351bd84655842c8
3
+ metadata.gz: 839dc184db02ec3f0fd09680a53c12e34d433011b070d79f75b8749f224509a4
4
+ data.tar.gz: 12c2605f9dc2cff02d015583bfcda99173bd89fbe1c4084eaa96dd198ea1e0d8
5
5
  SHA512:
6
- metadata.gz: f29a3c635e3e12c1f8d660de88a2b44dcb9e74e392a08a76e5e1e57c0dba7a37926cceee9f1d7a1906356b8f4d090150eb41ef5ab79c6c61f259ee5d5e46513e
7
- data.tar.gz: 39a8dae11d1e2ea5c8a5cbe396bc5712e3f86436165e51bb9ae9e45c7f732c47bc3236649583d806c3eb2dd85fa65d281b853a76f0e904e82700a6807103b315
6
+ metadata.gz: c8afc7f9d6e949bb36043814fe4e1180d65f2172c549aa00570092d39d92cce79c5a5a0f0cf1ff14d2abf15f9328d87895508377c5d727a7b07534038b520aa4
7
+ data.tar.gz: f2afa32dd842e679833bd9234f81ad8d124e5302ed017a1ba64883e6294a6384f6bff36a79ee9e173ad762b6e65315f9ac87303ae2054deb3308a1ae66e5a4fc
@@ -31,7 +31,7 @@ module MalawiHivProgramReports
31
31
  process_data
32
32
  flatten_and_sort_data
33
33
  rescue StandardError => e
34
- Rails.logger.info("Error processing location #{loc}: #{e.message}")
34
+ Rails.logger.info("Error processing location #{location}: #{e.message}")
35
35
  Rails.logger.info(e.backtrace.join("\n"))
36
36
  raise e
37
37
  end
@@ -83,7 +83,7 @@ module MalawiHivProgramReports
83
83
  (fetch_data || []).each do |data|
84
84
  age_group = data['age_group']
85
85
  regimen = data['regimen'] || 'unknown'
86
- regimen = 'unknown' if regimen == 'Other'
86
+ regimen = 'unknown' unless COHORT_REGIMENS.include?(regimen)
87
87
  patient_id = data['patient_id']
88
88
  # we need to handle regimes that only have one P to become PP. Otherwise if it is already PP or PA we leave
89
89
  # it as is. Regimens are in this format NUMBERLETTERS
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MalawiHivProgramReports
4
- VERSION = '1.1.8'
4
+ VERSION = '1.1.9'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: malawi_hiv_program_reports
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roy Chanunkha