cqm-parsers 0.2.2 → 3.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +7 -3
  3. data/README.md +57 -5
  4. data/Rakefile +1 -0
  5. data/lib/{hqmf-parser.rb → cqm-parsers.rb} +13 -45
  6. data/lib/ext/data_element.rb +1 -1
  7. data/lib/hqmf-parser/2.0/document.rb +1 -1
  8. data/lib/hqmf-parser/2.0/population_criteria.rb +1 -1
  9. data/lib/hqmf-parser/cql/document_helpers/doc_population_helper.rb +11 -6
  10. data/lib/measure-loader/cql_loader.rb +165 -0
  11. data/lib/measure-loader/elm_dependency_finder.rb +72 -0
  12. data/lib/measure-loader/elm_parser.rb +67 -0
  13. data/lib/measure-loader/exceptions.rb +10 -0
  14. data/lib/measure-loader/helpers.rb +11 -0
  15. data/lib/measure-loader/hqmf_measure_loader.rb +170 -0
  16. data/lib/measure-loader/mat_measure_files.rb +138 -0
  17. data/lib/measure-loader/source_data_criteria_loader.rb +75 -0
  18. data/lib/measure-loader/value_set_helpers.rb +68 -0
  19. data/lib/measure-loader/vsac_value_set_loader.rb +97 -0
  20. data/lib/tasks/hqmf.rake +1 -1
  21. data/lib/util/util.rb +23 -0
  22. data/lib/util/vsac_api.rb +166 -103
  23. metadata +49 -116
  24. data/lib/ext/code.rb +0 -10
  25. data/lib/qrda-export/catI-r5/_code.mustache +0 -1
  26. data/lib/qrda-export/catI-r5/_codes.mustache +0 -10
  27. data/lib/qrda-export/catI-r5/_header.mustache +0 -28
  28. data/lib/qrda-export/catI-r5/_measure_section.mustache +0 -59
  29. data/lib/qrda-export/catI-r5/_reporting_period.mustache +0 -23
  30. data/lib/qrda-export/catI-r5/_values.mustache +0 -10
  31. data/lib/qrda-export/catI-r5/qrda1_r5.mustache +0 -137
  32. data/lib/qrda-export/catI-r5/qrda1_r5.rb +0 -125
  33. data/lib/qrda-export/catI-r5/qrda_header/_author.mustache +0 -24
  34. data/lib/qrda-export/catI-r5/qrda_header/_custodian.mustache +0 -43
  35. data/lib/qrda-export/catI-r5/qrda_header/_documentation_of_service_event.mustache +0 -82
  36. data/lib/qrda-export/catI-r5/qrda_header/_information_recipient.mustache +0 -7
  37. data/lib/qrda-export/catI-r5/qrda_header/_legal_authenticator.mustache +0 -25
  38. data/lib/qrda-export/catI-r5/qrda_header/_participant.mustache +0 -7
  39. data/lib/qrda-export/catI-r5/qrda_header/_record_target.mustache +0 -28
  40. data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +0 -28
  41. data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +0 -28
  42. data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +0 -25
  43. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_patient_to_provider.mustache +0 -29
  44. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_patient.mustache +0 -24
  45. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_provider.mustache +0 -31
  46. data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +0 -32
  47. data/lib/qrda-export/catI-r5/qrda_templates/device_ordered.mustache +0 -31
  48. data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +0 -38
  49. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_ordered.mustache +0 -19
  50. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +0 -29
  51. data/lib/qrda-export/catI-r5/qrda_templates/encounter_ordered.mustache +0 -24
  52. data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +0 -40
  53. data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +0 -29
  54. data/lib/qrda-export/catI-r5/qrda_templates/insurance_provider.mustache +0 -11
  55. data/lib/qrda-export/catI-r5/qrda_templates/intervention_ordered.mustache +0 -18
  56. data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +0 -25
  57. data/lib/qrda-export/catI-r5/qrda_templates/lab_test_ordered.mustache +0 -18
  58. data/lib/qrda-export/catI-r5/qrda_templates/lab_test_performed.mustache +0 -22
  59. data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +0 -35
  60. data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +0 -31
  61. data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +0 -55
  62. data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +0 -39
  63. data/lib/qrda-export/catI-r5/qrda_templates/medication_ordered.mustache +0 -38
  64. data/lib/qrda-export/catI-r5/qrda_templates/patient_characteristic_expired.mustache +0 -16
  65. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +0 -25
  66. data/lib/qrda-export/catI-r5/qrda_templates/procedure_ordered.mustache +0 -19
  67. data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +0 -44
  68. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_admission_source.mustache +0 -6
  69. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_anatomical_location_site.mustache +0 -1
  70. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author.mustache +0 -7
  71. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author_participation.mustache +0 -7
  72. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_component.mustache +0 -11
  73. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis.mustache +0 -19
  74. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_facility_location.mustache +0 -16
  75. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_mediation_frequency.mustache +0 -3
  76. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_details.mustache +0 -11
  77. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_ordinality.mustache +0 -1
  78. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_principal_diagnosis.mustache +0 -8
  79. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_reason.mustache +0 -12
  80. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_related_to.mustache +0 -6
  81. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_results.mustache +0 -21
  82. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_severity.mustache +0 -8
  83. data/lib/qrda-export/helper/cat_1_view_helper.rb +0 -142
  84. data/lib/qrda-export/helper/code_system_helper.rb +0 -77
  85. data/lib/qrda-export/helper/date_helper.rb +0 -85
  86. data/lib/qrda-import/base-importers/demographics_importer.rb +0 -43
  87. data/lib/qrda-import/base-importers/medication_importer.rb +0 -23
  88. data/lib/qrda-import/base-importers/section_importer.rb +0 -196
  89. data/lib/qrda-import/cda_identifier.rb +0 -19
  90. data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +0 -24
  91. data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +0 -22
  92. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +0 -24
  93. data/lib/qrda-import/data-element-importers/communication_from_patient_to_provider_importer.rb +0 -19
  94. data/lib/qrda-import/data-element-importers/communication_from_provider_to_patient_importer.rb +0 -19
  95. data/lib/qrda-import/data-element-importers/communication_from_provider_to_provider_importer.rb +0 -21
  96. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +0 -24
  97. data/lib/qrda-import/data-element-importers/device_order_importer.rb +0 -19
  98. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +0 -24
  99. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +0 -21
  100. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +0 -31
  101. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +0 -21
  102. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +0 -42
  103. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +0 -18
  104. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +0 -19
  105. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +0 -23
  106. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +0 -21
  107. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +0 -29
  108. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +0 -17
  109. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +0 -17
  110. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +0 -19
  111. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +0 -19
  112. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +0 -16
  113. data/lib/qrda-import/data-element-importers/patient_characteristic_expired.rb +0 -22
  114. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +0 -27
  115. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +0 -27
  116. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +0 -35
  117. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +0 -16
  118. data/lib/qrda-import/entry_finder.rb +0 -20
  119. data/lib/qrda-import/entry_package.rb +0 -16
  120. data/lib/qrda-import/narrative_reference_handler.rb +0 -33
  121. data/lib/qrda-import/patient_importer.rb +0 -111
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cqm-parsers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 3.0.0.0
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: 2019-01-25 00:00:00.000000000 Z
11
+ date: 2020-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: mustache
14
+ name: cqm-models
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 3.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 3.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: rest-client
28
+ name: mustache
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 1.8.0
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 1.8.0
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: erubis
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -140,16 +140,22 @@ dependencies:
140
140
  name: nokogiri
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - "~>"
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: 1.8.5
146
+ - - "<"
147
+ - !ruby/object:Gem::Version
148
+ version: 1.11.0
146
149
  type: :runtime
147
150
  prerelease: false
148
151
  version_requirements: !ruby/object:Gem::Requirement
149
152
  requirements:
150
- - - "~>"
153
+ - - ">="
151
154
  - !ruby/object:Gem::Version
152
155
  version: 1.8.5
156
+ - - "<"
157
+ - !ruby/object:Gem::Version
158
+ version: 1.11.0
153
159
  - !ruby/object:Gem::Dependency
154
160
  name: highline
155
161
  requirement: !ruby/object:Gem::Requirement
@@ -170,14 +176,28 @@ dependencies:
170
176
  requirements:
171
177
  - - "~>"
172
178
  - !ruby/object:Gem::Version
173
- version: 1.2.2
179
+ version: '1.3'
174
180
  type: :runtime
175
181
  prerelease: false
176
182
  version_requirements: !ruby/object:Gem::Requirement
177
183
  requirements:
178
184
  - - "~>"
179
185
  - !ruby/object:Gem::Version
180
- version: 1.2.2
186
+ version: '1.3'
187
+ - !ruby/object:Gem::Dependency
188
+ name: typhoeus
189
+ requirement: !ruby/object:Gem::Requirement
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ version: '0'
194
+ type: :runtime
195
+ prerelease: false
196
+ version_requirements: !ruby/object:Gem::Requirement
197
+ requirements:
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: '0'
181
201
  - !ruby/object:Gem::Dependency
182
202
  name: zip-zip
183
203
  requirement: !ruby/object:Gem::Requirement
@@ -229,7 +249,7 @@ files:
229
249
  - Gemfile
230
250
  - README.md
231
251
  - Rakefile
232
- - lib/ext/code.rb
252
+ - lib/cqm-parsers.rb
233
253
  - lib/ext/data_element.rb
234
254
  - lib/hqmf-model/attribute.rb
235
255
  - lib/hqmf-model/data_criteria.json
@@ -239,7 +259,6 @@ files:
239
259
  - lib/hqmf-model/precondition.rb
240
260
  - lib/hqmf-model/types.rb
241
261
  - lib/hqmf-model/utilities.rb
242
- - lib/hqmf-parser.rb
243
262
  - lib/hqmf-parser/1.0/attribute.rb
244
263
  - lib/hqmf-parser/1.0/comparison.rb
245
264
  - lib/hqmf-parser/1.0/data_criteria.rb
@@ -286,103 +305,16 @@ files:
286
305
  - lib/hqmf-parser/cql/document_helpers/doc_population_helper.rb
287
306
  - lib/hqmf-parser/cql/value_set_helper.rb
288
307
  - lib/hqmf-parser/parser.rb
289
- - lib/qrda-export/catI-r5/_code.mustache
290
- - lib/qrda-export/catI-r5/_codes.mustache
291
- - lib/qrda-export/catI-r5/_header.mustache
292
- - lib/qrda-export/catI-r5/_measure_section.mustache
293
- - lib/qrda-export/catI-r5/_reporting_period.mustache
294
- - lib/qrda-export/catI-r5/_values.mustache
295
- - lib/qrda-export/catI-r5/qrda1_r5.mustache
296
- - lib/qrda-export/catI-r5/qrda1_r5.rb
297
- - lib/qrda-export/catI-r5/qrda_header/_author.mustache
298
- - lib/qrda-export/catI-r5/qrda_header/_custodian.mustache
299
- - lib/qrda-export/catI-r5/qrda_header/_documentation_of_service_event.mustache
300
- - lib/qrda-export/catI-r5/qrda_header/_information_recipient.mustache
301
- - lib/qrda-export/catI-r5/qrda_header/_legal_authenticator.mustache
302
- - lib/qrda-export/catI-r5/qrda_header/_participant.mustache
303
- - lib/qrda-export/catI-r5/qrda_header/_record_target.mustache
304
- - lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache
305
- - lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache
306
- - lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache
307
- - lib/qrda-export/catI-r5/qrda_templates/communication_from_patient_to_provider.mustache
308
- - lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_patient.mustache
309
- - lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_provider.mustache
310
- - lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache
311
- - lib/qrda-export/catI-r5/qrda_templates/device_ordered.mustache
312
- - lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache
313
- - lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_ordered.mustache
314
- - lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache
315
- - lib/qrda-export/catI-r5/qrda_templates/encounter_ordered.mustache
316
- - lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache
317
- - lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache
318
- - lib/qrda-export/catI-r5/qrda_templates/insurance_provider.mustache
319
- - lib/qrda-export/catI-r5/qrda_templates/intervention_ordered.mustache
320
- - lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache
321
- - lib/qrda-export/catI-r5/qrda_templates/lab_test_ordered.mustache
322
- - lib/qrda-export/catI-r5/qrda_templates/lab_test_performed.mustache
323
- - lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache
324
- - lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache
325
- - lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache
326
- - lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache
327
- - lib/qrda-export/catI-r5/qrda_templates/medication_ordered.mustache
328
- - lib/qrda-export/catI-r5/qrda_templates/patient_characteristic_expired.mustache
329
- - lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache
330
- - lib/qrda-export/catI-r5/qrda_templates/procedure_ordered.mustache
331
- - lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache
332
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_admission_source.mustache
333
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_anatomical_location_site.mustache
334
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_author.mustache
335
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_author_participation.mustache
336
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_component.mustache
337
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis.mustache
338
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_facility_location.mustache
339
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_mediation_frequency.mustache
340
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_details.mustache
341
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_ordinality.mustache
342
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_principal_diagnosis.mustache
343
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_reason.mustache
344
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_related_to.mustache
345
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_results.mustache
346
- - lib/qrda-export/catI-r5/qrda_templates/template_partials/_severity.mustache
347
- - lib/qrda-export/helper/cat_1_view_helper.rb
348
- - lib/qrda-export/helper/code_system_helper.rb
349
- - lib/qrda-export/helper/date_helper.rb
350
- - lib/qrda-import/base-importers/demographics_importer.rb
351
- - lib/qrda-import/base-importers/medication_importer.rb
352
- - lib/qrda-import/base-importers/section_importer.rb
353
- - lib/qrda-import/cda_identifier.rb
354
- - lib/qrda-import/data-element-importers/adverse_event_importer.rb
355
- - lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb
356
- - lib/qrda-import/data-element-importers/assessment_performed_importer.rb
357
- - lib/qrda-import/data-element-importers/communication_from_patient_to_provider_importer.rb
358
- - lib/qrda-import/data-element-importers/communication_from_provider_to_patient_importer.rb
359
- - lib/qrda-import/data-element-importers/communication_from_provider_to_provider_importer.rb
360
- - lib/qrda-import/data-element-importers/device_applied_importer.rb
361
- - lib/qrda-import/data-element-importers/device_order_importer.rb
362
- - lib/qrda-import/data-element-importers/diagnosis_importer.rb
363
- - lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb
364
- - lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb
365
- - lib/qrda-import/data-element-importers/encounter_order_importer.rb
366
- - lib/qrda-import/data-element-importers/encounter_performed_importer.rb
367
- - lib/qrda-import/data-element-importers/immunization_administered_importer.rb
368
- - lib/qrda-import/data-element-importers/intervention_order_importer.rb
369
- - lib/qrda-import/data-element-importers/intervention_performed_importer.rb
370
- - lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb
371
- - lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb
372
- - lib/qrda-import/data-element-importers/medication_active_importer.rb
373
- - lib/qrda-import/data-element-importers/medication_administered_importer.rb
374
- - lib/qrda-import/data-element-importers/medication_discharge_importer.rb
375
- - lib/qrda-import/data-element-importers/medication_dispensed_importer.rb
376
- - lib/qrda-import/data-element-importers/medication_order_importer.rb
377
- - lib/qrda-import/data-element-importers/patient_characteristic_expired.rb
378
- - lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb
379
- - lib/qrda-import/data-element-importers/procedure_order_importer.rb
380
- - lib/qrda-import/data-element-importers/procedure_performed_importer.rb
381
- - lib/qrda-import/data-element-importers/substance_administered_importer.rb
382
- - lib/qrda-import/entry_finder.rb
383
- - lib/qrda-import/entry_package.rb
384
- - lib/qrda-import/narrative_reference_handler.rb
385
- - lib/qrda-import/patient_importer.rb
308
+ - lib/measure-loader/cql_loader.rb
309
+ - lib/measure-loader/elm_dependency_finder.rb
310
+ - lib/measure-loader/elm_parser.rb
311
+ - lib/measure-loader/exceptions.rb
312
+ - lib/measure-loader/helpers.rb
313
+ - lib/measure-loader/hqmf_measure_loader.rb
314
+ - lib/measure-loader/mat_measure_files.rb
315
+ - lib/measure-loader/source_data_criteria_loader.rb
316
+ - lib/measure-loader/value_set_helpers.rb
317
+ - lib/measure-loader/vsac_value_set_loader.rb
386
318
  - lib/tasks/hqmf.rake
387
319
  - lib/util/code_system_helper.rb
388
320
  - lib/util/counter.rb
@@ -390,6 +322,7 @@ files:
390
322
  - lib/util/hqmf_template_oid_map.json
391
323
  - lib/util/hqmfr2_template_oid_map.json
392
324
  - lib/util/hqmfr2cql_template_oid_map.json
325
+ - lib/util/util.rb
393
326
  - lib/util/vsac_api.rb
394
327
  homepage: https://github.com/projecttacoma/cqm-parsers
395
328
  licenses:
@@ -411,7 +344,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
411
344
  version: '0'
412
345
  requirements: []
413
346
  rubyforge_project:
414
- rubygems_version: 2.7.7
347
+ rubygems_version: 2.6.14
415
348
  signing_key:
416
349
  specification_version: 4
417
350
  summary: A library for parsing HQMF documents.
@@ -1,10 +0,0 @@
1
- module QDM
2
- class Code
3
- def ==(other)
4
- return false unless other.is_a? QDM::Code
5
- (code == other.code) && (codeSystem == other.codeSystem) && (codeSystemOid == other.codeSystemOid) && (version == other.version)
6
- end
7
-
8
- alias eql? ==
9
- end
10
- end
@@ -1 +0,0 @@
1
- {{{code_and_codesystem}}}
@@ -1,10 +0,0 @@
1
- {{#multiple_codes?}}
2
- <code {{{primary_code_and_codesystem}}}>
3
- {{{translation_codes_and_codesystem_list}}}
4
- </code>
5
- {{/multiple_codes?}}
6
- {{^multiple_codes?}}
7
- {{#dataElementCodes}}
8
- <code {{> _code}}/>
9
- {{/dataElementCodes}}
10
- {{/multiple_codes?}}
@@ -1,28 +0,0 @@
1
- <!-- QRDA Header -->
2
- <realmCode code="US"/>
3
- <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
4
- <!-- US Realm Header Template Id -->
5
- <templateId root="2.16.840.1.113883.10.20.22.1.1" extension="2015-08-01"/>
6
- <!-- QRDA templateId -->
7
- <templateId root="2.16.840.1.113883.10.20.24.1.1" extension="2017-08-01"/>
8
- <!-- QDM-based QRDA templateId -->
9
- <templateId root="2.16.840.1.113883.10.20.24.1.2" extension="2017-08-01"/>
10
- <!-- CMS QRDA templateId -->
11
- <templateId root="2.16.840.1.113883.10.20.24.1.3" extension="2018-02-01"/>
12
- <!-- This is the globally unique identifier for this QRDA document -->
13
- <id root="{{random_id}}"/>
14
- <!-- QRDA document type code -->
15
- <code code="55182-0" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Quality Measure Report"/>
16
- <title>QRDA Incidence Report</title>
17
- <!-- This is the document creation time -->
18
- <effectiveTime value="{{{current_time}}}"/>
19
- <confidentialityCode code="N" codeSystem="2.16.840.1.113883.5.25"/>
20
- <languageCode code="en"/>
21
- <!-- reported patient -->
22
- {{> qrda_header/_record_target}}
23
- {{> qrda_header/_author}}
24
- {{> qrda_header/_custodian}}
25
- {{> qrda_header/_information_recipient}}
26
- {{> qrda_header/_legal_authenticator}}
27
- {{> qrda_header/_participant}}
28
- {{> qrda_header/_documentation_of_service_event}}
@@ -1,59 +0,0 @@
1
- <component>
2
- <section>
3
- <!--
4
- *****************************************************************
5
- Measure Section
6
- *****************************************************************
7
- -->
8
- <!-- This is the templateId for Measure Section -->
9
- <templateId root="2.16.840.1.113883.10.20.24.2.2"/>
10
- <!-- This is the templateId for Measure Section QDM -->
11
- <templateId root="2.16.840.1.113883.10.20.24.2.3"/>
12
- <!-- This is the LOINC code for "Measure document". This stays the same for all measure section required by QRDA standard -->
13
- <code code="55186-1" codeSystem="2.16.840.1.113883.6.1"/>
14
- <title>Measure Section</title>
15
- <text>
16
- <table border="1" width="100%">
17
- <thead>
18
- <tr>
19
- <th>eMeasure Title</th>
20
- <th>Version specific identifier</th>
21
- </tr>
22
- </thead>
23
- <tbody>
24
- {{#measures}}
25
- <tr>
26
- <td>{{description}}</td>
27
- <td>{{hqmf_id}}</td>
28
- <td/>
29
- </tr>
30
- {{/measures}}
31
- </tbody>
32
- </table>
33
- </text>
34
- <!-- 1..* Organizers, each containing a reference to an eMeasure -->
35
- {{#measures}}
36
- <entry>
37
- <organizer classCode="CLUSTER" moodCode="EVN">
38
- <!-- This is the templateId for Measure Reference -->
39
- <templateId root="2.16.840.1.113883.10.20.24.3.98"/>
40
- <!-- This is the templateId for eMeasure Reference QDM -->
41
- <templateId root="2.16.840.1.113883.10.20.24.3.97"/>
42
- <id extension="{{random_id}}" root="1.3.6.1.4.1.115"/>
43
- <statusCode code="completed"/>
44
- <!-- Containing isBranch external references -->
45
- <reference typeCode="REFR">
46
- <externalDocument classCode="DOC" moodCode="EVN">
47
- <!-- SHALL: This is the version specific identifier for eMeasure: QualityMeasureDocument/id it is a GUID-->
48
- <id extension="{{hqmf_id}}" root="2.16.840.1.113883.4.738"/>
49
- <!-- SHOULD This is the title of the eMeasure -->
50
- <text>{{description}}</text>
51
- <!-- SHOULD: setId is the eMeasure version neutral id -->
52
- <setId root="{{hqmf_set_id}}"/>
53
- </externalDocument>
54
- </reference>
55
- </organizer>
56
- </entry>
57
- {{/measures}}
58
- </section>
59
- </component>
@@ -1,23 +0,0 @@
1
- <component>
2
- <section>
3
- <!-- This is the templateId for Reporting Parameters section -->
4
- <templateId root="2.16.840.1.113883.10.20.17.2.1"/>
5
- <templateId extension="2016-03-01" root="2.16.840.1.113883.10.20.17.2.1.1"/>
6
- <code code="55187-9" codeSystem="2.16.840.1.113883.6.1"/>
7
- <title>Reporting Parameters</title>
8
- <text></text>
9
- <entry typeCode="DRIV">
10
- <act classCode="ACT" moodCode="EVN">
11
- <!-- This is the templateId for Reporting Parameteres Act -->
12
- <templateId root="2.16.840.1.113883.10.20.17.3.8"/>
13
- <templateId extension="2016-03-01" root="2.16.840.1.113883.10.20.17.3.8.1"/>
14
- <id extension="{{random_id}}" root="1.3.6.1.4.1.115"/>
15
- <code code="252116004" codeSystem="2.16.840.1.113883.6.96" displayName="Observation Parameters"/>
16
- <effectiveTime>
17
- <low value="{{{performance_period_start}}}"/>
18
- <high value="{{{performance_period_end}}}"/>
19
- </effectiveTime>
20
- </act>
21
- </entry>
22
- </section>
23
- </component>
@@ -1,10 +0,0 @@
1
- {{#multiple_codes?}}
2
- <value xsi:type="CD" {{{primary_code_and_codesystem}}}>
3
- {{{translation_codes_and_codesystem_list}}}
4
- </value>
5
- {{/multiple_codes?}}
6
- {{^multiple_codes?}}
7
- {{#dataElementCodes}}
8
- <value xsi:type="CD" {{> _code}}/>
9
- {{/dataElementCodes}}
10
- {{/multiple_codes?}}
@@ -1,137 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:hl7-org:v3" xmlns:voc="urn:hl7-org:v3/voc" xmlns:sdtc="urn:hl7-org:sdtc">
3
-
4
- {{> _header}}
5
-
6
- <component>
7
- <structuredBody>
8
- {{> _measure_section}}
9
- {{> _reporting_period}}
10
- <component>
11
- <section>
12
- <!-- This is the templateId for Patient Data section -->
13
- <templateId root="2.16.840.1.113883.10.20.17.2.4"/>
14
- <!-- This is the templateId for Patient Data QDM section -->
15
- <templateId extension="2017-08-01" root="2.16.840.1.113883.10.20.24.2.1"/>
16
- <templateId extension="2018-02-01" root="2.16.840.1.113883.10.20.24.2.1.1"/>
17
- <code code="55188-7" codeSystem="2.16.840.1.113883.6.1"/>
18
- <title>Patient Data</title>
19
- <text/>
20
-
21
- {{#adverse_event}}
22
- {{> qrda_templates/adverse_event}}
23
- {{/adverse_event}}
24
-
25
- {{#allergy_intolerance}}
26
- {{> qrda_templates/allergy_intolerance}}
27
- {{/allergy_intolerance}}
28
-
29
- {{#assessment_performed}}
30
- {{> qrda_templates/assessment_performed}}
31
- {{/assessment_performed}}
32
-
33
- {{#communication_from_patient_to_provider}}
34
- {{> qrda_templates/communication_from_patient_to_provider}}
35
- {{/communication_from_patient_to_provider}}
36
-
37
- {{#communication_from_provider_to_provider}}
38
- {{> qrda_templates/communication_from_provider_to_provider}}
39
- {{/communication_from_provider_to_provider}}
40
-
41
- {{#communication_from_provider_to_patient}}
42
- {{> qrda_templates/communication_from_provider_to_patient}}
43
- {{/communication_from_provider_to_patient}}
44
-
45
- {{#diagnosis}}
46
- {{> qrda_templates/diagnosis}}
47
- {{/diagnosis}}
48
-
49
- {{#device_ordered}}
50
- {{> qrda_templates/device_ordered}}
51
- {{/device_ordered}}
52
-
53
- {{#device_applied}}
54
- {{> qrda_templates/device_applied}}
55
- {{/device_applied}}
56
-
57
- {{#diagnostic_study_ordered}}
58
- {{> qrda_templates/diagnostic_study_ordered}}
59
- {{/diagnostic_study_ordered}}
60
-
61
- {{#diagnostic_study_performed}}
62
- {{> qrda_templates/diagnostic_study_performed}}
63
- {{/diagnostic_study_performed}}
64
-
65
- {{#encounter_ordered}}
66
- {{> qrda_templates/encounter_ordered}}
67
- {{/encounter_ordered}}
68
-
69
- {{#encounter_performed}}
70
- {{> qrda_templates/encounter_performed}}
71
- {{/encounter_performed}}
72
-
73
- {{#immunization_administered}}
74
- {{> qrda_templates/immunization_administered}}
75
- {{/immunization_administered}}
76
-
77
- {{#intervention_ordered}}
78
- {{> qrda_templates/intervention_ordered}}
79
- {{/intervention_ordered}}
80
-
81
- {{#intervention_performed}}
82
- {{> qrda_templates/intervention_performed}}
83
- {{/intervention_performed}}
84
-
85
- {{#lab_test_performed}}
86
- {{> qrda_templates/lab_test_performed}}
87
- {{/lab_test_performed}}
88
-
89
- {{#lab_test_ordered}}
90
- {{> qrda_templates/lab_test_ordered}}
91
- {{/lab_test_ordered}}
92
-
93
- {{#medication_active}}
94
- {{> qrda_templates/medication_active}}
95
- {{/medication_active}}
96
-
97
- {{#medication_administered}}
98
- {{> qrda_templates/medication_administered}}
99
- {{/medication_administered}}
100
-
101
- {{#medication_discharge}}
102
- {{> qrda_templates/medication_discharge}}
103
- {{/medication_discharge}}
104
-
105
- {{#medication_dispensed}}
106
- {{> qrda_templates/medication_dispensed}}
107
- {{/medication_dispensed}}
108
-
109
- {{#medication_ordered}}
110
- {{> qrda_templates/medication_ordered}}
111
- {{/medication_ordered}}
112
-
113
- {{#patient_characteristic_expired}}
114
- {{> qrda_templates/patient_characteristic_expired}}
115
- {{/patient_characteristic_expired}}
116
-
117
- {{#physical_exam_performed}}
118
- {{> qrda_templates/physical_exam_performed}}
119
- {{/physical_exam_performed}}
120
-
121
- {{#procedure_ordered}}
122
- {{> qrda_templates/procedure_ordered}}
123
- {{/procedure_ordered}}
124
-
125
- {{#procedure_performed}}
126
- {{> qrda_templates/procedure_performed}}
127
- {{/procedure_performed}}
128
-
129
- {{#insurance_provider}}
130
- {{> qrda_templates/insurance_provider}}
131
- {{/insurance_provider}}
132
-
133
- </section>
134
- </component>
135
- </structuredBody>
136
- </component>
137
- </ClinicalDocument>