malawi_hiv_program_reports 1.0.11 → 1.0.12

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: 6b0b18ac14704b02389c59bca8c5e49c80fa48b381ec37faf25a26dbe9995c90
4
- data.tar.gz: 8ad3b0382ec582c6e8289f599e65591011e15969b7f0ddba40f71e87bd626bad
3
+ metadata.gz: 88faa7e9640f4c16749d15f38fe4dc3ae068850cda349e2f5816b9fd3452c4b5
4
+ data.tar.gz: 11134ce6349f51dee3e3cb5507e2d03c26d2c6dd9ab21993fc61cf31938c9e6a
5
5
  SHA512:
6
- metadata.gz: bcbbb974329cd00cfe4b57d3d6bb154c669952cf91a1996b89aee8df63086cd35b7cdf5435173f42d329ac7e00eb4d966f57e13e440aa5aa494c26584e8f2c89
7
- data.tar.gz: 3dfd717d6d6364097edaf7397c5b3380542d74f4eba5bbfd89911c562da8def22584d0adc574e7c45b358f7247bcf7925db8832aebf83b7cb0e1078f03eadbc7
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, #{function_manager(function: 'patient_reason_for_starting_art', location: @location,
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|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MalawiHivProgramReports
4
- VERSION = '1.0.11'
4
+ VERSION = '1.0.12'
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.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roy Chanunkha