cqm-reports 4.1.7 → 4.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: eb69880ba7b01f902a50d99092d9293057cde3eaf2c58ee30b0f3e261ffa83db
4
- data.tar.gz: c964ecc693fa7453c5182f4bb5f207ed97fe9cc3f8317856b468890a1037908f
3
+ metadata.gz: 03d3f6f573edfb57db8906028ec45a8f98a72a1eca48b745b36de048f4953a3d
4
+ data.tar.gz: 4030579544061c2e1ce35483c0e9d222b43996232df9e648c7a3167c3a97892f
5
5
  SHA512:
6
- metadata.gz: 1d83dcab8ec27a9ac3c0f688a3c0f19b5e818a75c7208ac8dc3de7b3bd8b076f383e8f466414b03dbf0385174474c299dd55beb741261e42e4a05eaab739c106
7
- data.tar.gz: 7ace773a4901205b27264b9d5e820ef004dd38454aafa75d54c854d662f7f1315e33aef2bce29e11ad3ded4e4edf8d685a74cb7ce30a866035f97cba75fbdc60
6
+ metadata.gz: 4939c03621a3ed23c97a1aff2328fe4292e4cee5777176eec572ed041864e47fd428e324b1462ed8206a92d28c6d4a68d522b74bc43e96beab73e08266556f56
7
+ data.tar.gz: 1ba612f11c83e40189832a5dd6f0cb7e4617e26ed2b47722224d7cd29afde5ff577fd9299a46961c012e0913d31d37ff1028da151d15a3d75088ccb62d8ba48e
@@ -3,20 +3,26 @@
3
3
  <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
4
4
  <!-- US Realm Header Template Id -->
5
5
  <templateId root="2.16.840.1.113883.10.20.27.1.1" extension="2020-12-01"/>
6
- {{#ry2026_submission?}}
7
- <!-- QRDA Category III Report - CMS (V10) -->
8
- <templateId root="2.16.840.1.113883.10.20.27.1.2" extension="2025-05-01"/>
9
- {{/ry2026_submission?}}
10
- {{^ry2026_submission?}}
11
- {{#ry2025_submission?}}
12
- <!-- QRDA Category III Report - CMS (V9) -->
13
- <templateId root="2.16.840.1.113883.10.20.27.1.2" extension="2024-12-01"/>
14
- {{/ry2025_submission?}}
15
- {{^ry2025_submission?}}
16
- <!-- QRDA Category III Report - CMS (V7) -->
17
- <templateId root="2.16.840.1.113883.10.20.27.1.2" extension="2022-12-01"/>
18
- {{/ry2025_submission?}}
19
- {{/ry2026_submission?}}
6
+ {{#ry2027_submission?}}
7
+ <!-- QRDA Category III Report - CMS (V11) -->
8
+ <templateId root="2.16.840.1.113883.10.20.27.1.2" extension="2026-07-01"/>
9
+ {{/ry2027_submission?}}
10
+ {{^ry2027_submission?}}
11
+ {{#ry2026_submission?}}
12
+ <!-- QRDA Category III Report - CMS (V10) -->
13
+ <templateId root="2.16.840.1.113883.10.20.27.1.2" extension="2025-05-01"/>
14
+ {{/ry2026_submission?}}
15
+ {{^ry2026_submission?}}
16
+ {{#ry2025_submission?}}
17
+ <!-- QRDA Category III Report - CMS (V9) -->
18
+ <templateId root="2.16.840.1.113883.10.20.27.1.2" extension="2024-12-01"/>
19
+ {{/ry2025_submission?}}
20
+ {{^ry2025_submission?}}
21
+ <!-- QRDA Category III Report - CMS (V7) -->
22
+ <templateId root="2.16.840.1.113883.10.20.27.1.2" extension="2022-12-01"/>
23
+ {{/ry2025_submission?}}
24
+ {{/ry2026_submission?}}
25
+ {{/ry2027_submission?}}
20
26
  <!-- This is the globally unique identifier for this QRDA document -->
21
27
  <id root="{{random_id}}"/>
22
28
  <!-- QRDA III document type code -->
@@ -5,14 +5,20 @@
5
5
  <observation classCode="OBS" moodCode="EVN">
6
6
  <!-- Measure Data template -->
7
7
  <templateId root="2.16.840.1.113883.10.20.27.3.5" extension="2016-09-01"/>
8
- {{#ry2026_submission?}}
8
+ {{#ry2027_submission?}}
9
9
  <!-- Measure Data - CMS (V5) -->
10
10
  <templateId root="2.16.840.1.113883.10.20.27.3.16" extension="2025-05-01"/>
11
- {{/ry2026_submission?}}
12
- {{^ry2026_submission?}}
13
- <!-- Measure Data - CMS (V4) -->
14
- <templateId root="2.16.840.1.113883.10.20.27.3.16" extension="2019-05-01"/>
15
- {{/ry2026_submission?}}
11
+ {{/ry2027_submission?}}
12
+ {{^ry2027_submission?}}
13
+ {{#ry2026_submission?}}
14
+ <!-- Measure Data - CMS (V5) -->
15
+ <templateId root="2.16.840.1.113883.10.20.27.3.16" extension="2025-05-01"/>
16
+ {{/ry2026_submission?}}
17
+ {{^ry2026_submission?}}
18
+ <!-- Measure Data - CMS (V4) -->
19
+ <templateId root="2.16.840.1.113883.10.20.27.3.16" extension="2019-05-01"/>
20
+ {{/ry2026_submission?}}
21
+ {{/ry2027_submission?}}
16
22
  <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" displayName="Assertion" codeSystemName="ActCode"/>
17
23
  <statusCode code="completed"/>
18
24
  <value xsi:type="CD" code="{{population_type}}" codeSystem="2.16.840.1.113883.5.4" codeSystemName="ActCode"/>
@@ -10,14 +10,20 @@
10
10
  <!-- In this case the query is using an eMeasure -->
11
11
  <!-- QRDA Category III Measure Section template -->
12
12
  <templateId extension="2020-12-01" root="2.16.840.1.113883.10.20.27.2.1"/>
13
- {{#ry2026_submission?}}
13
+ {{#ry2027_submission?}}
14
14
  <!-- QRDA Category III Measure Section - CMS (V6) -->
15
15
  <templateId extension="2025-05-01" root="2.16.840.1.113883.10.20.27.2.3"/>
16
- {{/ry2026_submission?}}
17
- {{^ry2026_submission?}}
18
- <!-- QRDA Category III Measure Section - CMS (V5) -->
19
- <templateId extension="2022-05-01" root="2.16.840.1.113883.10.20.27.2.3"/>
20
- {{/ry2026_submission?}}
16
+ {{/ry2027_submission?}}
17
+ {{^ry2027_submission?}}
18
+ {{#ry2026_submission?}}
19
+ <!-- QRDA Category III Measure Section - CMS (V6) -->
20
+ <templateId extension="2025-05-01" root="2.16.840.1.113883.10.20.27.2.3"/>
21
+ {{/ry2026_submission?}}
22
+ {{^ry2026_submission?}}
23
+ <!-- QRDA Category III Measure Section - CMS (V5) -->
24
+ <templateId extension="2022-05-01" root="2.16.840.1.113883.10.20.27.2.3"/>
25
+ {{/ry2026_submission?}}
26
+ {{/ry2027_submission?}}
21
27
  <code code="55186-1" codeSystem="2.16.840.1.113883.6.1"/>
22
28
  <title>Measure Section</title>
23
29
  <text>
@@ -47,12 +53,17 @@
47
53
  <templateId root="2.16.840.1.113883.10.20.24.3.98"/>
48
54
  <!-- SHALL 1..* (one for each referenced measure) Measure Reference and Results template -->
49
55
  <templateId extension="2020-12-01" root="2.16.840.1.113883.10.20.27.3.1"/>
50
- {{#ry2026_submission?}}
56
+ {{#ry2027_submission?}}
51
57
  <templateId extension="2025-05-01" root="2.16.840.1.113883.10.20.27.3.17"/>
52
- {{/ry2026_submission?}}
53
- {{^ry2026_submission?}}
54
- <templateId extension="2022-05-01" root="2.16.840.1.113883.10.20.27.3.17"/>
55
- {{/ry2026_submission?}}
58
+ {{/ry2027_submission?}}
59
+ {{^ry2027_submission?}}
60
+ {{#ry2026_submission?}}
61
+ <templateId extension="2025-05-01" root="2.16.840.1.113883.10.20.27.3.17"/>
62
+ {{/ry2026_submission?}}
63
+ {{^ry2026_submission?}}
64
+ <templateId extension="2022-05-01" root="2.16.840.1.113883.10.20.27.3.17"/>
65
+ {{/ry2026_submission?}}
66
+ {{/ry2027_submission?}}
56
67
  <id extension="{{random_id}}" root="1.3.6.1.4.1.115"/>
57
68
  <statusCode code="completed"/>
58
69
  <!-- Containing isBranch external references -->
@@ -30,6 +30,7 @@ class Qrda3 < Mustache
30
30
  @ry2022_submission = options[:ry2022_submission]
31
31
  @ry2025_submission = options[:ry2025_submission]
32
32
  @ry2026_submission = options[:ry2026_submission]
33
+ @ry2027_submission = options[:ry2027_submission]
33
34
  @authoring_system = options[:authoring_system]
34
35
  end
35
36
 
@@ -104,9 +105,13 @@ class Qrda3 < Mustache
104
105
  @ry2025_submission
105
106
  end
106
107
 
107
- # use 2026 template ids if 2026 submission is specified as true, or if it unspecified
108
108
  def ry2026_submission?
109
- @ry2026_submission || @ry2026_submission.nil?
109
+ @ry2026_submission
110
+ end
111
+
112
+ # use 2027 template ids if 2027 submission is specified as true, or if it unspecified
113
+ def ry2027_submission?
114
+ @ry2027_submission || @ry2027_submission.nil?
110
115
  end
111
116
 
112
117
  def authoring_system
@@ -7,8 +7,8 @@ module Qrda
7
7
  # If there isn't a relatedTo id, return a default mood code
8
8
  return 'EVN' if related_id.blank?
9
9
 
10
- # Find the qdmStatus for the dataElement for the relatedTo id
11
- status = @qdmPatient.dataElements.find { |de| de._id.to_s == related_id }&.qdmStatus
10
+ data_element = @qdmPatient.dataElements.find { |de| de._id.to_s == related_id }
11
+ return 'EVN' unless data_element.respond_to?(:qdmStatus)
12
12
 
13
13
  # Find a corresponding mood code for the qdmStatus. Default to EVN if none found
14
14
  {
@@ -16,7 +16,7 @@ module Qrda
16
16
  'intolerance' => 'EVN', 'payer' => 'EVN', 'performed' => 'EVN',
17
17
  'discharge' => 'RQO', 'order' => 'RQO',
18
18
  'recommended' => 'INT'
19
- }.fetch(status, 'EVN')
19
+ }.fetch(data_element.qdmStatus, 'EVN')
20
20
  end
21
21
 
22
22
  def negation_ind
@@ -11,6 +11,16 @@ module QRDA
11
11
 
12
12
  def create_entry(entry_element, nrh = NarrativeReferenceHandler.new)
13
13
  patient_characteristic_payer = super
14
+ return patient_characteristic_payer unless patient_characteristic_payer.dataElementCodes.blank?
15
+
16
+ null_flavor = entry_element.at_xpath(code_xpath)&.[]('nullFlavor')
17
+
18
+ if null_flavor
19
+ patient_characteristic_payer.dataElementCodes = [
20
+ { code: null_flavor, system: 'NA' }
21
+ ]
22
+ end
23
+
14
24
  patient_characteristic_payer
15
25
  end
16
26
 
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: 4.1.7
4
+ version: 4.1.9
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: 2026-07-09 00:00:00.000000000 Z
11
+ date: 2026-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cqm-models