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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 839dc184db02ec3f0fd09680a53c12e34d433011b070d79f75b8749f224509a4
|
4
|
+
data.tar.gz: 12c2605f9dc2cff02d015583bfcda99173bd89fbe1c4084eaa96dd198ea1e0d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 #{
|
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'
|
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
|