openmrs_data_sanitizer 1.0.7 → 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: 40a55f5fb47f9307da0c2e0a5905f5554dee6688c1f4abf09889c4a7852fca95
|
4
|
+
data.tar.gz: 18ebfa45e8aefdd2fd3bf0cab02d0187ba9d3ac16e4f37e50a9de982cacd4e6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6db161bf332f91467f74e8f489cc536d06aac21689dc8114e296d70fbb1851d25a58face6b05141634d74806bbd9ea03a17d509ba87e8605e22a94795c8902fd
|
7
|
+
data.tar.gz: 9b0dfacd32c8bbbf5d9154bcf1402878e279bbf756ee37300d179e8d456d43b589ba857af87156619372679c798c713eae2505b42d671ed185db8c9b4884a1f1
|
@@ -832,8 +832,8 @@ module OpenmrsDataSanitizer
|
|
832
832
|
INSERT INTO #{schema}.data_sanitizer_arv_orders(patient_id, order_id, encounter_id, visit_date, drug_id, drug_name, units, equivalent_daily_dose, instructions, start_date, runout_date, quantity)
|
833
833
|
SELECT e.patient_id, o.order_id, o.encounter_id, DATE(o.start_date) AS visit_date, da.drug_inventory_id AS drug_id, d.name AS drug_name, d.units, da.equivalent_daily_dose, o.instructions, DATE(o.start_date), DATE(o.auto_expire_date), da.quantity
|
834
834
|
FROM #{schema}.orders o
|
835
|
-
INNER JOIN #{schema}.encounter e ON e.encounter_id = o.encounter_id AND e.program_id = 1 AND e.
|
836
|
-
INNER JOIN #{schema}.drug_order da ON da.order_id = o.order_id AND
|
835
|
+
INNER JOIN #{schema}.encounter e ON e.encounter_id = o.encounter_id AND e.program_id = 1 AND e.voided = 0
|
836
|
+
INNER JOIN #{schema}.drug_order da ON da.order_id = o.order_id AND da.quantity > 0
|
837
837
|
INNER JOIN #{schema}.drug d ON d.drug_id = da.drug_inventory_id
|
838
838
|
INNER JOIN #{schema}.arv_drug ad ON ad.drug_id = d.drug_id
|
839
839
|
WHERE o.voided = 0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: openmrs_data_sanitizer
|
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
|
- Mwatha
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-10-
|
11
|
+
date: 2024-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|