malawi_hiv_program_reports 1.0.6 → 1.0.8
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: b208d1cfb9b841533cb422c55be10119e1fbac4884b5ba86934c76080cff7053
|
4
|
+
data.tar.gz: 8d03344e5ff345f9a183a84bcd303375234d3a7c2a39c3562f0d3b57ef28cd25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20ff92a2f61133722d2815a84dd95320c9689696daf569d2007d3d4411e4ebc624d06f70bef48dab466f2dd3ed17618f3f0eb5f23a839090d03407dd84183d22
|
7
|
+
data.tar.gz: ebd07c5962a6e3cd19d17eae483a32cecc4bbee991281632f7e3eeef200a3550e9ad88e6f2a618c2b13216a091a5403b383a67b8730619f24db4c6c8d802a9f7
|
@@ -95,9 +95,9 @@ module MalawiHivProgramReports
|
|
95
95
|
AND patient_state.voided = 0 #{site_manager(operator: 'AND', column: 'patient_state.site_id', location: @location)}
|
96
96
|
WHERE patients.date_enrolled <= #{date} #{site_manager(operator: 'AND', column: 'patients.site_id', location: @location)}
|
97
97
|
AND patient_state.date_created = (SELECT MAX(date_created)
|
98
|
-
FROM patient_state ps
|
99
|
-
WHERE ps.patient_program_id = patient_state.patient_program_id #{site_manager(operator: 'AND', column: 'ps.site_id', location: @location)}
|
100
|
-
AND ps.state = patient_state.state AND ps.voided = 0)
|
98
|
+
FROM patient_state ps
|
99
|
+
WHERE ps.patient_program_id = patient_state.patient_program_id #{site_manager(operator: 'AND', column: 'ps.site_id', location: @location)}
|
100
|
+
AND ps.state = patient_state.state AND ps.voided = 0 AND ps.start_date <= #{date})
|
101
101
|
GROUP BY patients.patient_id
|
102
102
|
SQL
|
103
103
|
end
|
@@ -715,6 +715,7 @@ module MalawiHivProgramReports
|
|
715
715
|
}
|
716
716
|
(SELECT value_coded FROM obs
|
717
717
|
WHERE concept_id = 7563 AND person_id = patient_program.patient_id AND voided = 0 #{site_manager(operator: 'AND', column: 'obs.site_id', location: @location)}
|
718
|
+
AND obs_datetime <= DATE(#{end_date}) + INTERVAL 1 DAY
|
718
719
|
ORDER BY obs_datetime DESC, date_created DESC LIMIT 1) as reason_for_starting_art,
|
719
720
|
pa.value AS occupation
|
720
721
|
FROM patient_program
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: malawi_hiv_program_reports
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Roy Chanunkha
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|