cqm-reports 3.1.7 → 3.1.10

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: 3b65355fa4446a36d60caff6f3559456d3ebfda2df62f198bf450d11fe70635d
4
- data.tar.gz: 45e084d13f5374d5907347834aff760b05eb54a005c63f622e0e60b9eb5766bb
3
+ metadata.gz: 189b0fb1eea44b69983a9e7254bcb3fc328bc1b98d3b22f020bd984d6118d415
4
+ data.tar.gz: 10f89503bdf5af98f065ce348c0e32220dffd5db99e06d7f8eed88c73f593f1f
5
5
  SHA512:
6
- metadata.gz: 29b96f43e5fda1ef716f2911bafda2bd5c159bc2eafcaea494cbc2aa9456658e150d9a3e4c874b081bac4d0db7cf1e0e63c5a8291f583bd9c416e4a1c9e58af0
7
- data.tar.gz: edc8457f39385fc95f0db0e9b89fe09f46f2cd25790fdc11d1b22f111910b6c027d7f8042f6492ea37803774d0bd83a597b3c2a7ac74216edcd5f233e3acfeef
6
+ metadata.gz: e1dba82c4a1b8689bd57a3d714242b8a9eac60ffe95b427e949e361529a03858465adf62196ff4b6886ea6bb0f06312278bd4e12ce1552305846f5d36dc33e0f
7
+ data.tar.gz: e315238f7f2b9aa85b0d84d9a4e1a6e8190bebc6e1a5b847ba1b40d767ea29eb8f2d87d6ce911b9ae22ae8523e6d43c213d91e5fc7c51fdad14b5474d6337b0d
@@ -83,7 +83,7 @@ class QdmPatient < Mustache
83
83
  end
84
84
 
85
85
  def identifier_for_element(identifier)
86
- "#{identifier['value']} (#{identifier['namingSystem']})"
86
+ identifier ? "#{identifier['value']} (#{identifier['namingSystem']})" : ''
87
87
  end
88
88
 
89
89
  def code_code_system_string
@@ -91,7 +91,7 @@ class QdmPatient < Mustache
91
91
  end
92
92
 
93
93
  def code_for_element(element)
94
- "#{element['code']} (#{HQMF::Util::CodeSystemHelper.code_system_for(element['system'])})#{code_description(element)}"
94
+ element ? "#{element['code']} (#{HQMF::Util::CodeSystemHelper.code_system_for(element['system'])})#{code_description(element)}" : ''
95
95
  end
96
96
 
97
97
  def code_system_name
@@ -3,6 +3,13 @@
3
3
  <!-- QDM Attribute: authorDatetime -->
4
4
  {{{author_time}}}
5
5
  <assignedAuthor>
6
- <id nullFlavor="NA"/>
6
+ {{#provider}}
7
+ {{#provider_npi}}
8
+ <id extension="{{value}}" root="2.16.840.1.113883.4.6"/>
9
+ {{/provider_npi}}
10
+ {{/provider}}
11
+ {{^provider}}
12
+ <id extension="1982671962" root="2.16.840.1.113883.4.6"/>
13
+ {{/provider}}
7
14
  </assignedAuthor>
8
15
  </author>
@@ -75,7 +75,12 @@ module QRDA
75
75
  code_list << code_if_present(code_element)
76
76
  translations = code_element.xpath('cda:translation')
77
77
  translations.each do |translation|
78
- code_list << code_if_present(translation)
78
+ translation_code = code_if_present(translation)
79
+ next unless translation_code
80
+
81
+ code_list << translation_code
82
+ @warnings << ValidationError.new(message: "Translation code #{translation_code.system}:#{translation_code.code} may not be used for eCQM calculation by a receiving system. Ensure that the root code includes a code from the eCQM valueset.",
83
+ location: coded_element.path)
79
84
  end
80
85
  end
81
86
  code_list.compact
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: 3.1.7
4
+ version: 3.1.10
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: 2021-10-01 00:00:00.000000000 Z
11
+ date: 2022-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cqm-models
@@ -89,7 +89,7 @@ dependencies:
89
89
  version: 1.8.5
90
90
  - - "<"
91
91
  - !ruby/object:Gem::Version
92
- version: 1.13.0
92
+ version: 1.14.0
93
93
  type: :runtime
94
94
  prerelease: false
95
95
  version_requirements: !ruby/object:Gem::Requirement
@@ -99,7 +99,7 @@ dependencies:
99
99
  version: 1.8.5
100
100
  - - "<"
101
101
  - !ruby/object:Gem::Version
102
- version: 1.13.0
102
+ version: 1.14.0
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: uuid
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -364,7 +364,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
364
364
  - !ruby/object:Gem::Version
365
365
  version: '0'
366
366
  requirements: []
367
- rubygems_version: 3.1.4
367
+ rubygems_version: 3.2.3
368
368
  signing_key:
369
369
  specification_version: 4
370
370
  summary: A library for import and export of reports for use with electronic Clinical