cqm-reports 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/qrda-export/catI-r5/qrda_header/_record_target.mustache +9 -0
- data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +6 -1
- data/lib/qrda-export/catI-r5/qrda_templates/substance_recommended.mustache +1 -0
- data/lib/qrda-import/base-importers/demographics_importer.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85228f99b1da3c4bef7a4dbdc0a13d4d86d9aa8a
|
4
|
+
data.tar.gz: d3717683fb12381639282564266d5c4d32c93c1e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 115495a336e16c205cd97aad80c14a63d90a2faf188e20e83997f81ac7bcdfee5e92da9012423360cd3361abcd14a66cd4dfd80920d655889e3d37bdfa798adb
|
7
|
+
data.tar.gz: fb975cddeb74b625ab25c25dbbfbdfb41aa04b0b4096d6fa9c7dabd11401e04cca5cc4b25fba3d811a791c1f31cb3f746c3f6c26e3ec1dcddc25c284b4eabd1d
|
@@ -21,6 +21,9 @@
|
|
21
21
|
<administrativeGenderCode {{> _code}}/>
|
22
22
|
{{/dataElementCodes}}
|
23
23
|
{{/patient_characteristic_sex}}
|
24
|
+
{{^patient_characteristic_sex}}
|
25
|
+
<administrativeGenderCode nullFlavor="UNK"/>
|
26
|
+
{{/patient_characteristic_sex}}
|
24
27
|
{{#patient_characteristic_birthdate}}
|
25
28
|
{{{birth_date_time}}}
|
26
29
|
{{/patient_characteristic_birthdate}}
|
@@ -29,11 +32,17 @@
|
|
29
32
|
<raceCode {{> _code}}/>
|
30
33
|
{{/dataElementCodes}}
|
31
34
|
{{/patient_characteristic_race}}
|
35
|
+
{{^patient_characteristic_race}}
|
36
|
+
<raceCode nullFlavor="UNK"/>
|
37
|
+
{{/patient_characteristic_race}}
|
32
38
|
{{#patient_characteristic_ethnicity}}
|
33
39
|
{{#dataElementCodes}}
|
34
40
|
<ethnicGroupCode {{> _code}}/>
|
35
41
|
{{/dataElementCodes}}
|
36
42
|
{{/patient_characteristic_ethnicity}}
|
43
|
+
{{^patient_characteristic_ethnicity}}
|
44
|
+
<ethnicGroupCode nullFlavor="UNK"/>
|
45
|
+
{{/patient_characteristic_ethnicity}}
|
37
46
|
<languageCommunication>
|
38
47
|
<templateId root="2.16.840.1.113883.3.88.11.83.2" assigningAuthorityName="HITSP/C83"/>
|
39
48
|
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.2.1" assigningAuthorityName="IHE/PCC"/>
|
@@ -1,5 +1,10 @@
|
|
1
1
|
<entry>
|
2
|
-
|
2
|
+
{{#negated}}
|
3
|
+
<substanceAdministration classCode="SBADM" moodCode="EVN" {{{negation_ind}}}>
|
4
|
+
{{/negated}}
|
5
|
+
{{^negated}}
|
6
|
+
<substanceAdministration classCode="SBADM" moodCode="EVN" negationInd="false">
|
7
|
+
{{/negated}}
|
3
8
|
<!-- C-CDA R2 Immunization Activity -->
|
4
9
|
<templateId root="2.16.840.1.113883.10.20.22.4.52" extension="2015-08-01"/>
|
5
10
|
<!-- Immunization Administered -->
|
@@ -6,6 +6,7 @@
|
|
6
6
|
<templateId root="2.16.840.1.113883.10.20.24.3.75" extension="2017-08-01"/>
|
7
7
|
<id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
|
8
8
|
<statusCode code="active"/>
|
9
|
+
{{{author_effective_time}}}
|
9
10
|
{{> qrda_templates/template_partials/_medication_details}}
|
10
11
|
<consumable>
|
11
12
|
<manufacturedProduct classCode="MANU">
|
@@ -15,17 +15,17 @@ module QRDA
|
|
15
15
|
pcs = QDM::PatientCharacteristicSex.new
|
16
16
|
code_element = patient_element.at_xpath('cda:administrativeGenderCode')
|
17
17
|
pcs.dataElementCodes = [code_if_present(code_element)]
|
18
|
-
patient.qdmPatient.dataElements << pcs
|
18
|
+
patient.qdmPatient.dataElements << pcs unless pcs.dataElementCodes.compact.blank?
|
19
19
|
|
20
20
|
pcr = QDM::PatientCharacteristicRace.new
|
21
21
|
code_element = patient_element.at_xpath('cda:raceCode')
|
22
22
|
pcr.dataElementCodes = [code_if_present(code_element)]
|
23
|
-
patient.qdmPatient.dataElements << pcr
|
23
|
+
patient.qdmPatient.dataElements << pcr unless pcr.dataElementCodes.compact.blank?
|
24
24
|
|
25
25
|
pce = QDM::PatientCharacteristicEthnicity.new
|
26
26
|
code_element = patient_element.at_xpath('cda:ethnicGroupCode')
|
27
27
|
pce.dataElementCodes = [code_if_present(code_element)]
|
28
|
-
patient.qdmPatient.dataElements << pce
|
28
|
+
patient.qdmPatient.dataElements << pce unless pce.dataElementCodes.compact.blank?
|
29
29
|
end
|
30
30
|
|
31
31
|
def code_if_present(code_element)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cqm-reports
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The MITRE Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cqm-models
|