cqm-reports 3.1.9 → 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: 853f4fbe17601e4bb5ad3353eafb99674f5e979d452b4634f25520027ca1f54c
4
- data.tar.gz: 1117d2f6f67f04de9e63d3103d25c74936cb6722447171602b7053ebc95f4b69
3
+ metadata.gz: 189b0fb1eea44b69983a9e7254bcb3fc328bc1b98d3b22f020bd984d6118d415
4
+ data.tar.gz: 10f89503bdf5af98f065ce348c0e32220dffd5db99e06d7f8eed88c73f593f1f
5
5
  SHA512:
6
- metadata.gz: 9d467ec2fe66246ed0101976d2c89621e3a3b7177e962b942d307a98f6dcefb8fb0a3f06742f5520139816c8bce91c025d4742f675d02c8f30cafe3ee4c66c67
7
- data.tar.gz: 9ceb20859d5cad76cc1ddfd6ab621dec639ef915087d6b6ae81942705da323dbe769fd8ee8f30dada7cb4fb121a398fcbd9631649d360cd078344682049da5f6
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
@@ -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.9
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: 2022-02-28 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