cqm-parsers 0.2.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +8 -4
  3. data/README.md +44 -5
  4. data/Rakefile +1 -0
  5. data/lib/ext/data_element.rb +1 -1
  6. data/lib/hqmf-parser.rb +13 -45
  7. data/lib/hqmf-parser/2.0/document.rb +1 -1
  8. data/lib/hqmf-parser/cql/document_helpers/doc_population_helper.rb +6 -1
  9. data/lib/measure-loader/cql_loader.rb +165 -0
  10. data/lib/measure-loader/elm_dependency_finder.rb +72 -0
  11. data/lib/measure-loader/elm_parser.rb +67 -0
  12. data/lib/measure-loader/exceptions.rb +10 -0
  13. data/lib/measure-loader/helpers.rb +11 -0
  14. data/lib/measure-loader/hqmf_measure_loader.rb +170 -0
  15. data/lib/measure-loader/mat_measure_files.rb +138 -0
  16. data/lib/measure-loader/source_data_criteria_loader.rb +65 -0
  17. data/lib/measure-loader/value_set_helpers.rb +68 -0
  18. data/lib/measure-loader/vsac_value_set_loader.rb +97 -0
  19. data/lib/util/util.rb +23 -0
  20. data/lib/util/vsac_api.rb +164 -101
  21. metadata +47 -129
  22. data/lib/ext/code.rb +0 -10
  23. data/lib/qrda-export/catI-r5/_code.mustache +0 -1
  24. data/lib/qrda-export/catI-r5/_codes.mustache +0 -10
  25. data/lib/qrda-export/catI-r5/_header.mustache +0 -28
  26. data/lib/qrda-export/catI-r5/_measure_section.mustache +0 -59
  27. data/lib/qrda-export/catI-r5/_reporting_period.mustache +0 -23
  28. data/lib/qrda-export/catI-r5/_values.mustache +0 -10
  29. data/lib/qrda-export/catI-r5/qrda1_r5.mustache +0 -137
  30. data/lib/qrda-export/catI-r5/qrda1_r5.rb +0 -125
  31. data/lib/qrda-export/catI-r5/qrda_header/_author.mustache +0 -24
  32. data/lib/qrda-export/catI-r5/qrda_header/_custodian.mustache +0 -43
  33. data/lib/qrda-export/catI-r5/qrda_header/_documentation_of_service_event.mustache +0 -82
  34. data/lib/qrda-export/catI-r5/qrda_header/_information_recipient.mustache +0 -7
  35. data/lib/qrda-export/catI-r5/qrda_header/_legal_authenticator.mustache +0 -25
  36. data/lib/qrda-export/catI-r5/qrda_header/_participant.mustache +0 -7
  37. data/lib/qrda-export/catI-r5/qrda_header/_record_target.mustache +0 -28
  38. data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +0 -28
  39. data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +0 -28
  40. data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +0 -25
  41. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_patient_to_provider.mustache +0 -29
  42. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_patient.mustache +0 -24
  43. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_provider.mustache +0 -31
  44. data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +0 -32
  45. data/lib/qrda-export/catI-r5/qrda_templates/device_ordered.mustache +0 -31
  46. data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +0 -38
  47. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_ordered.mustache +0 -19
  48. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +0 -32
  49. data/lib/qrda-export/catI-r5/qrda_templates/encounter_ordered.mustache +0 -24
  50. data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +0 -40
  51. data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +0 -29
  52. data/lib/qrda-export/catI-r5/qrda_templates/insurance_provider.mustache +0 -11
  53. data/lib/qrda-export/catI-r5/qrda_templates/intervention_ordered.mustache +0 -18
  54. data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +0 -25
  55. data/lib/qrda-export/catI-r5/qrda_templates/lab_test_ordered.mustache +0 -18
  56. data/lib/qrda-export/catI-r5/qrda_templates/lab_test_performed.mustache +0 -22
  57. data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +0 -35
  58. data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +0 -31
  59. data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +0 -55
  60. data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +0 -39
  61. data/lib/qrda-export/catI-r5/qrda_templates/medication_ordered.mustache +0 -38
  62. data/lib/qrda-export/catI-r5/qrda_templates/patient_characteristic_expired.mustache +0 -16
  63. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +0 -25
  64. data/lib/qrda-export/catI-r5/qrda_templates/procedure_ordered.mustache +0 -19
  65. data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +0 -44
  66. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_admission_source.mustache +0 -6
  67. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_anatomical_location_site.mustache +0 -1
  68. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author.mustache +0 -7
  69. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author_participation.mustache +0 -7
  70. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_component.mustache +0 -11
  71. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis.mustache +0 -19
  72. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_facility_location.mustache +0 -16
  73. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_mediation_frequency.mustache +0 -3
  74. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_details.mustache +0 -11
  75. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_ordinality.mustache +0 -1
  76. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_principal_diagnosis.mustache +0 -8
  77. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_reason.mustache +0 -12
  78. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_related_to.mustache +0 -6
  79. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_results.mustache +0 -19
  80. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_severity.mustache +0 -8
  81. data/lib/qrda-export/helper/cat_1_view_helper.rb +0 -150
  82. data/lib/qrda-export/helper/code_system_helper.rb +0 -77
  83. data/lib/qrda-export/helper/date_helper.rb +0 -89
  84. data/lib/qrda-import/base-importers/demographics_importer.rb +0 -49
  85. data/lib/qrda-import/base-importers/medication_importer.rb +0 -23
  86. data/lib/qrda-import/base-importers/section_importer.rb +0 -203
  87. data/lib/qrda-import/cda_identifier.rb +0 -19
  88. data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +0 -24
  89. data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +0 -22
  90. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +0 -26
  91. data/lib/qrda-import/data-element-importers/communication_from_patient_to_provider_importer.rb +0 -20
  92. data/lib/qrda-import/data-element-importers/communication_from_provider_to_patient_importer.rb +0 -20
  93. data/lib/qrda-import/data-element-importers/communication_from_provider_to_provider_importer.rb +0 -22
  94. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +0 -26
  95. data/lib/qrda-import/data-element-importers/device_order_importer.rb +0 -21
  96. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +0 -24
  97. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +0 -23
  98. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +0 -33
  99. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +0 -23
  100. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +0 -42
  101. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +0 -20
  102. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +0 -21
  103. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +0 -25
  104. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +0 -23
  105. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +0 -31
  106. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +0 -17
  107. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +0 -19
  108. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +0 -19
  109. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +0 -19
  110. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +0 -18
  111. data/lib/qrda-import/data-element-importers/patient_characteristic_expired.rb +0 -22
  112. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +0 -29
  113. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +0 -29
  114. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +0 -37
  115. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +0 -17
  116. data/lib/qrda-import/entry_finder.rb +0 -20
  117. data/lib/qrda-import/entry_package.rb +0 -16
  118. data/lib/qrda-import/narrative_reference_handler.rb +0 -33
  119. data/lib/qrda-import/patient_importer.rb +0 -111
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cqm-parsers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 2.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-09-30 00:00:00.000000000 Z
11
+ date: 2019-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mustache
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rest-client
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 2.0.1
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 2.0.1
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: erubis
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,56 +44,56 @@ dependencies:
58
44
  requirements:
59
45
  - - "~>"
60
46
  - !ruby/object:Gem::Version
61
- version: 5.0.0
47
+ version: 6.4.2
62
48
  type: :runtime
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
52
  - - "~>"
67
53
  - !ruby/object:Gem::Version
68
- version: 5.0.0
54
+ version: 6.4.2
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: mongoid-tree
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
59
  - - "~>"
74
60
  - !ruby/object:Gem::Version
75
- version: 2.0.0
61
+ version: 2.1.1
76
62
  type: :runtime
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
66
  - - "~>"
81
67
  - !ruby/object:Gem::Version
82
- version: 2.0.0
68
+ version: 2.1.1
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: activesupport
85
71
  requirement: !ruby/object:Gem::Requirement
86
72
  requirements:
87
73
  - - "~>"
88
74
  - !ruby/object:Gem::Version
89
- version: 4.2.0
75
+ version: '5.0'
90
76
  type: :runtime
91
77
  prerelease: false
92
78
  version_requirements: !ruby/object:Gem::Requirement
93
79
  requirements:
94
80
  - - "~>"
95
81
  - !ruby/object:Gem::Version
96
- version: 4.2.0
82
+ version: '5.0'
97
83
  - !ruby/object:Gem::Dependency
98
- name: protected_attributes
84
+ name: protected_attributes_continued
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
87
  - - "~>"
102
88
  - !ruby/object:Gem::Version
103
- version: 1.0.5
89
+ version: 1.4.0
104
90
  type: :runtime
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
94
  - - "~>"
109
95
  - !ruby/object:Gem::Version
110
- version: 1.0.5
96
+ version: 1.4.0
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: uuid
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -140,16 +126,22 @@ dependencies:
140
126
  name: nokogiri
141
127
  requirement: !ruby/object:Gem::Requirement
142
128
  requirements:
143
- - - "~>"
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: 1.8.5
132
+ - - "<"
144
133
  - !ruby/object:Gem::Version
145
- version: 1.10.3
134
+ version: 1.11.0
146
135
  type: :runtime
147
136
  prerelease: false
148
137
  version_requirements: !ruby/object:Gem::Requirement
149
138
  requirements:
150
- - - "~>"
139
+ - - ">="
140
+ - !ruby/object:Gem::Version
141
+ version: 1.8.5
142
+ - - "<"
151
143
  - !ruby/object:Gem::Version
152
- version: 1.10.3
144
+ version: 1.11.0
153
145
  - !ruby/object:Gem::Dependency
154
146
  name: highline
155
147
  requirement: !ruby/object:Gem::Requirement
@@ -178,6 +170,20 @@ dependencies:
178
170
  - - "~>"
179
171
  - !ruby/object:Gem::Version
180
172
  version: 1.2.2
173
+ - !ruby/object:Gem::Dependency
174
+ name: typhoeus
175
+ requirement: !ruby/object:Gem::Requirement
176
+ requirements:
177
+ - - ">="
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ type: :runtime
181
+ prerelease: false
182
+ version_requirements: !ruby/object:Gem::Requirement
183
+ requirements:
184
+ - - ">="
185
+ - !ruby/object:Gem::Version
186
+ version: '0'
181
187
  - !ruby/object:Gem::Dependency
182
188
  name: zip-zip
183
189
  requirement: !ruby/object:Gem::Requirement
@@ -229,7 +235,6 @@ files:
229
235
  - Gemfile
230
236
  - README.md
231
237
  - Rakefile
232
- - lib/ext/code.rb
233
238
  - lib/ext/data_element.rb
234
239
  - lib/hqmf-model/attribute.rb
235
240
  - lib/hqmf-model/data_criteria.json
@@ -286,103 +291,16 @@ files:
286
291
  - lib/hqmf-parser/cql/document_helpers/doc_population_helper.rb
287
292
  - lib/hqmf-parser/cql/value_set_helper.rb
288
293
  - 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
294
+ - lib/measure-loader/cql_loader.rb
295
+ - lib/measure-loader/elm_dependency_finder.rb
296
+ - lib/measure-loader/elm_parser.rb
297
+ - lib/measure-loader/exceptions.rb
298
+ - lib/measure-loader/helpers.rb
299
+ - lib/measure-loader/hqmf_measure_loader.rb
300
+ - lib/measure-loader/mat_measure_files.rb
301
+ - lib/measure-loader/source_data_criteria_loader.rb
302
+ - lib/measure-loader/value_set_helpers.rb
303
+ - lib/measure-loader/vsac_value_set_loader.rb
386
304
  - lib/tasks/hqmf.rake
387
305
  - lib/util/code_system_helper.rb
388
306
  - lib/util/counter.rb
@@ -390,6 +308,7 @@ files:
390
308
  - lib/util/hqmf_template_oid_map.json
391
309
  - lib/util/hqmfr2_template_oid_map.json
392
310
  - lib/util/hqmfr2cql_template_oid_map.json
311
+ - lib/util/util.rb
393
312
  - lib/util/vsac_api.rb
394
313
  homepage: https://github.com/projecttacoma/cqm-parsers
395
314
  licenses:
@@ -410,8 +329,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
410
329
  - !ruby/object:Gem::Version
411
330
  version: '0'
412
331
  requirements: []
413
- rubyforge_project:
414
- rubygems_version: 2.6.14
332
+ rubygems_version: 3.0.3
415
333
  signing_key:
416
334
  specification_version: 4
417
335
  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>