malawi_hiv_program_reports 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 88faa7e9640f4c16749d15f38fe4dc3ae068850cda349e2f5816b9fd3452c4b5
|
|
4
|
+
data.tar.gz: 11134ce6349f51dee3e3cb5507e2d03c26d2c6dd9ab21993fc61cf31938c9e6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4e5ab0ea1bcbeabad67e7f9b1ef7d0fb29c7477f6fbda180e757df8d1ae6729af1e0f393b4a754f981358e57cbb96fafabb09a2cd42dd3122673e63908121f51
|
|
7
|
+
data.tar.gz: 6222839d0182b965055094bbeb1a7ddfa7b364df27bc544acaa6e31a542ab9aac36a6741ff937423b919d5d9912708cf467a3a0312ff94c956a8fc5a5cccbcf9
|
|
@@ -1978,20 +1978,12 @@ module MalawiHivProgramReports
|
|
|
1978
1978
|
SQL
|
|
1979
1979
|
|
|
1980
1980
|
pregnant_at_initiation = ActiveRecord::Base.connection.select_all <<~SQL
|
|
1981
|
-
SELECT patient_id
|
|
1982
|
-
args: "patient_id, #{@location}")} reason_concept_id
|
|
1981
|
+
SELECT patient_id
|
|
1983
1982
|
FROM temp_earliest_start_date
|
|
1984
1983
|
WHERE date_enrolled BETWEEN '#{start_date}' AND '#{end_date}'
|
|
1985
1984
|
AND gender IN ('F','Female') #{site_manager(operator: 'AND', column: 'site_id', location: @location)}
|
|
1985
|
+
AND reason_for_starting_art IN (6131,1755,7972,7563)
|
|
1986
1986
|
GROUP BY patient_id
|
|
1987
|
-
HAVING #{if @adapter == 'mysql2'
|
|
1988
|
-
'reason_concept_id IN (1755, 7972, 6131)'
|
|
1989
|
-
else
|
|
1990
|
-
in_manager(column: function_manager(function: 'patient_reason_for_starting_art', location: @location, args: "patient_id, #{@location}").to_s,
|
|
1991
|
-
values: [
|
|
1992
|
-
1755, 7972, 6131
|
|
1993
|
-
])
|
|
1994
|
-
end};
|
|
1995
1987
|
SQL
|
|
1996
1988
|
pregnant_at_initiation_ids = []
|
|
1997
1989
|
(pregnant_at_initiation || []).each do |patient|
|