cqm-parsers 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (103) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +29 -0
  3. data/README.md +21 -0
  4. data/Rakefile +19 -0
  5. data/lib/ext/code.rb +10 -0
  6. data/lib/ext/data_element.rb +24 -0
  7. data/lib/hqmf-model/attribute.rb +63 -0
  8. data/lib/hqmf-model/data_criteria.rb +467 -0
  9. data/lib/hqmf-model/document.rb +253 -0
  10. data/lib/hqmf-model/population_criteria.rb +102 -0
  11. data/lib/hqmf-model/precondition.rb +94 -0
  12. data/lib/hqmf-model/types.rb +457 -0
  13. data/lib/hqmf-model/utilities.rb +52 -0
  14. data/lib/hqmf-parser.rb +116 -0
  15. data/lib/hqmf-parser/1.0/attribute.rb +121 -0
  16. data/lib/hqmf-parser/1.0/comparison.rb +34 -0
  17. data/lib/hqmf-parser/1.0/data_criteria.rb +92 -0
  18. data/lib/hqmf-parser/1.0/document.rb +195 -0
  19. data/lib/hqmf-parser/1.0/expression.rb +60 -0
  20. data/lib/hqmf-parser/1.0/observation.rb +61 -0
  21. data/lib/hqmf-parser/1.0/population_criteria.rb +75 -0
  22. data/lib/hqmf-parser/1.0/precondition.rb +90 -0
  23. data/lib/hqmf-parser/1.0/range.rb +76 -0
  24. data/lib/hqmf-parser/1.0/restriction.rb +162 -0
  25. data/lib/hqmf-parser/1.0/utilities.rb +55 -0
  26. data/lib/hqmf-parser/2.0/data_criteria.rb +372 -0
  27. data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_base_extract.rb +80 -0
  28. data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_definition_from_template_or_type_extract.rb +201 -0
  29. data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_post_processing.rb +85 -0
  30. data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_specific_occurrences_and_source_data_criteria_extract.rb +117 -0
  31. data/lib/hqmf-parser/2.0/document.rb +304 -0
  32. data/lib/hqmf-parser/2.0/document_helpers/doc_population_helper.rb +173 -0
  33. data/lib/hqmf-parser/2.0/document_helpers/doc_utilities.rb +131 -0
  34. data/lib/hqmf-parser/2.0/field_value_helper.rb +251 -0
  35. data/lib/hqmf-parser/2.0/population_criteria.rb +134 -0
  36. data/lib/hqmf-parser/2.0/precondition.rb +73 -0
  37. data/lib/hqmf-parser/2.0/source_data_criteria_helper.rb +112 -0
  38. data/lib/hqmf-parser/2.0/types.rb +448 -0
  39. data/lib/hqmf-parser/2.0/utilities.rb +45 -0
  40. data/lib/hqmf-parser/2.0/value_set_helper.rb +104 -0
  41. data/lib/hqmf-parser/converter/pass1/data_criteria_converter.rb +257 -0
  42. data/lib/hqmf-parser/converter/pass1/document_converter.rb +133 -0
  43. data/lib/hqmf-parser/converter/pass1/population_criteria_converter.rb +185 -0
  44. data/lib/hqmf-parser/converter/pass1/precondition_converter.rb +173 -0
  45. data/lib/hqmf-parser/converter/pass1/precondition_extractor.rb +201 -0
  46. data/lib/hqmf-parser/converter/pass1/simple_data_criteria.rb +26 -0
  47. data/lib/hqmf-parser/converter/pass1/simple_operator.rb +89 -0
  48. data/lib/hqmf-parser/converter/pass1/simple_population_criteria.rb +10 -0
  49. data/lib/hqmf-parser/converter/pass1/simple_precondition.rb +51 -0
  50. data/lib/hqmf-parser/converter/pass1/simple_restriction.rb +64 -0
  51. data/lib/hqmf-parser/converter/pass2/comparison_converter.rb +112 -0
  52. data/lib/hqmf-parser/converter/pass2/operator_converter.rb +102 -0
  53. data/lib/hqmf-parser/cql/data_criteria.rb +57 -0
  54. data/lib/hqmf-parser/cql/data_criteria_helpers/dc_definition_from_template_or_type_extract.rb +79 -0
  55. data/lib/hqmf-parser/cql/data_criteria_helpers/dc_post_processing.rb +43 -0
  56. data/lib/hqmf-parser/cql/document.rb +78 -0
  57. data/lib/hqmf-parser/cql/document_helpers/doc_population_helper.rb +124 -0
  58. data/lib/hqmf-parser/cql/value_set_helper.rb +103 -0
  59. data/lib/hqmf-parser/parser.rb +100 -0
  60. data/lib/qrda-export/catI-r5/qrda1_r5.rb +125 -0
  61. data/lib/qrda-export/helper/cat_1_view_helper.rb +142 -0
  62. data/lib/qrda-export/helper/code_system_helper.rb +77 -0
  63. data/lib/qrda-export/helper/date_helper.rb +81 -0
  64. data/lib/qrda-import/base-importers/demographics_importer.rb +47 -0
  65. data/lib/qrda-import/base-importers/medication_importer.rb +22 -0
  66. data/lib/qrda-import/base-importers/section_importer.rb +196 -0
  67. data/lib/qrda-import/cda_identifier.rb +19 -0
  68. data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +23 -0
  69. data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +21 -0
  70. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +23 -0
  71. data/lib/qrda-import/data-element-importers/communication_from_patient_to_provider_importer.rb +18 -0
  72. data/lib/qrda-import/data-element-importers/communication_from_provider_to_patient_importer.rb +18 -0
  73. data/lib/qrda-import/data-element-importers/communication_from_provider_to_provider_importer.rb +20 -0
  74. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +23 -0
  75. data/lib/qrda-import/data-element-importers/device_order_importer.rb +18 -0
  76. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +23 -0
  77. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +20 -0
  78. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +30 -0
  79. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +20 -0
  80. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +41 -0
  81. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +18 -0
  82. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +18 -0
  83. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +22 -0
  84. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +20 -0
  85. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +28 -0
  86. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +17 -0
  87. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +17 -0
  88. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +19 -0
  89. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +19 -0
  90. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +16 -0
  91. data/lib/qrda-import/data-element-importers/patient_characteristic_expired.rb +21 -0
  92. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +26 -0
  93. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +26 -0
  94. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +34 -0
  95. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +16 -0
  96. data/lib/qrda-import/entry_finder.rb +20 -0
  97. data/lib/qrda-import/entry_package.rb +16 -0
  98. data/lib/qrda-import/narrative_reference_handler.rb +33 -0
  99. data/lib/qrda-import/patient_importer.rb +105 -0
  100. data/lib/util/code_system_helper.rb +76 -0
  101. data/lib/util/counter.rb +20 -0
  102. data/lib/util/hqmf_template_helper.rb +39 -0
  103. metadata +340 -0
@@ -0,0 +1,16 @@
1
+ module QRDA
2
+ module Cat1
3
+ class SubstanceAdministeredImporter < MedicationAdministeredImporter
4
+ def initialize(entry_finder = QRDA::Cat1::EntryFinder.new("./cda:entry/cda:substanceAdministration[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.42']"))
5
+ super(entry_finder)
6
+ @entry_class = QDM::SubstanceAdministered
7
+ end
8
+
9
+ def create_entry(entry_element, nrh = NarrativeReferenceHandler.new)
10
+ substance_administered = super
11
+ substance_administered
12
+ end
13
+
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,20 @@
1
+ module QRDA
2
+ module Cat1
3
+ class EntryFinder
4
+ def initialize(entry_xpath)
5
+ @entry_xpath = entry_xpath
6
+ end
7
+
8
+ def entries(doc)
9
+ entry_elements = doc.xpath(@entry_xpath)
10
+ if block_given?
11
+ entry_elements.each do |entry_element|
12
+ yield entry_element
13
+ end
14
+ else
15
+ entry_elements
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,16 @@
1
+ module QRDA
2
+ module Cat1
3
+ class EntryPackage
4
+
5
+ attr_accessor :importer_type
6
+
7
+ def initialize(type)
8
+ self.importer_type = type
9
+ end
10
+
11
+ def package_entries(doc, nrh)
12
+ importer_type.create_entries(doc, nrh)
13
+ end
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,33 @@
1
+ module QRDA
2
+ module Cat1
3
+ class NarrativeReferenceHandler
4
+ def initialize
5
+ @id_map = {}
6
+ end
7
+
8
+ def build_id_map(doc)
9
+ path = "//*[@ID]"
10
+ ids = doc.xpath(path)
11
+ ids.each do |id|
12
+ tag = id['ID']
13
+ value = id.content
14
+ @id_map[tag] = value
15
+ end
16
+ end
17
+
18
+ # @param [String] tag
19
+ # @return [String] text description of tag
20
+ def lookup_tag(tag)
21
+ value = @id_map[tag]
22
+ # Not sure why, but sometimes the reference is #<Reference> and the ID value is <Reference>, and
23
+ # sometimes it is #<Reference>. We look for both.
24
+ if !value and tag[0] == '#'
25
+ tag = tag[1,tag.length]
26
+ value = @id_map[tag]
27
+ end
28
+
29
+ value
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,105 @@
1
+ module QRDA
2
+ module Cat1
3
+ # This class is the central location for taking a QRDA Cat 1 XML document and converting it
4
+ # into the processed form we store in MongoDB. The class does this by running each measure
5
+ # independently on the XML document
6
+ #
7
+ # This class is a Singleton. It should be accessed by calling PatientImporter.instance
8
+ class PatientImporter
9
+ include Singleton
10
+ include DemographicsImporter
11
+
12
+ def initialize
13
+ # This differs from other HDS patient importers in that sections can have multiple importers
14
+ @data_element_importers = []
15
+
16
+ @data_element_importers << generate_importer(EncounterPerformedImporter)
17
+ @data_element_importers << generate_importer(PhysicalExamPerformedImporter)
18
+ @data_element_importers << generate_importer(LaboratoryTestPerformedImporter)
19
+ @data_element_importers << generate_importer(DiagnosisImporter)
20
+ @data_element_importers << generate_importer(InterventionOrderImporter)
21
+ @data_element_importers << generate_importer(ProcedurePerformedImporter)
22
+ @data_element_importers << generate_importer(MedicationActiveImporter)
23
+ @data_element_importers << generate_importer(AllergyIntoleranceImporter)
24
+ @data_element_importers << generate_importer(MedicationOrderImporter)
25
+ @data_element_importers << generate_importer(DiagnosticStudyOrderImporter)
26
+
27
+ @data_element_importers << generate_importer(AdverseEventImporter)
28
+ @data_element_importers << generate_importer(AssessmentPerformedImporter)
29
+ @data_element_importers << generate_importer(CommunicationFromPatientToProviderImporter)
30
+ @data_element_importers << generate_importer(CommunicationFromProviderToPatientImporter)
31
+ @data_element_importers << generate_importer(CommunicationFromProviderToProviderImporter)
32
+ @data_element_importers << generate_importer(DeviceAppliedImporter)
33
+ @data_element_importers << generate_importer(DeviceOrderImporter)
34
+ @data_element_importers << generate_importer(DiagnosticStudyPerformedImporter)
35
+ @data_element_importers << generate_importer(EncounterOrderImporter)
36
+ @data_element_importers << generate_importer(ImmunizationAdministeredImporter)
37
+ @data_element_importers << generate_importer(InterventionPerformedImporter)
38
+ @data_element_importers << generate_importer(LaboratoryTestOrderImporter)
39
+ @data_element_importers << generate_importer(MedicationAdministeredImporter)
40
+ @data_element_importers << generate_importer(MedicationDischargeImporter)
41
+ @data_element_importers << generate_importer(MedicationDispensedImporter)
42
+ @data_element_importers << generate_importer(PatientCharacteristicExpired)
43
+ @data_element_importers << generate_importer(ProcedureOrderImporter)
44
+ @data_element_importers << generate_importer(SubstanceAdministeredImporter)
45
+
46
+ end
47
+
48
+ def parse_cat1(doc)
49
+ patient = QDM::Patient.new
50
+ entry_id_map = {}
51
+ import_data_elements(patient, doc, entry_id_map)
52
+ normalize_references(patient, entry_id_map)
53
+ get_demographics(patient, doc)
54
+ patient
55
+ end
56
+
57
+ def import_data_elements(patient, doc, entry_id_map)
58
+ context = doc.xpath("/cda:ClinicalDocument/cda:component/cda:structuredBody/cda:component/cda:section[cda:templateId/@root = '2.16.840.1.113883.10.20.24.2.1']")
59
+ nrh = NarrativeReferenceHandler.new
60
+ nrh.build_id_map(doc)
61
+ @data_element_importers.each do |entry_package|
62
+ data_elements, id_map = entry_package.package_entries(context, nrh)
63
+ new_data_elements = []
64
+
65
+ id_map.each_value do |elem_ids|
66
+
67
+ elem_id = elem_ids.first
68
+ data_element = data_elements.find { |de| de.id == elem_id }
69
+
70
+ elem_ids[1,elem_ids.length].each do |merge_id|
71
+ merge_element = data_elements.find { |de| de.id == merge_id }
72
+ data_element.merge!(merge_element)
73
+ end
74
+
75
+ new_data_elements << data_element
76
+ end
77
+
78
+ patient.dataElements << new_data_elements
79
+ entry_id_map.merge!(id_map)
80
+ end
81
+ end
82
+
83
+ def get_patient_expired(record, doc)
84
+ entry_elements = doc.xpath("/cda:ClinicalDocument/cda:component/cda:structuredBody/cda:component/cda:section[cda:templateId/@root = '2.16.840.1.113883.10.20.24.2.1']/cda:entry/cda:observation[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.54']")
85
+ return unless entry_elements.empty?
86
+ record.expired = true
87
+ record.deathdate = HealthDataStandards::Util::HL7Helper.timestamp_to_integer(entry_elements.at_xpath("./cda:effectiveTime/cda:low")['value'])
88
+ end
89
+
90
+ def normalize_references(patient, entry_id_map)
91
+ patient.dataElements.each do |data_element|
92
+ if data_element.respond_to?(:relatedTo) && data_element.relatedTo
93
+ data_element.relatedTo.map! { |related_to| entry_id_map[related_to] }
94
+ end
95
+ end
96
+ end
97
+
98
+ private
99
+
100
+ def generate_importer(importer_class)
101
+ EntryPackage.new(importer_class.new)
102
+ end
103
+ end
104
+ end
105
+ end
@@ -0,0 +1,76 @@
1
+ module HQMF
2
+ module Util
3
+ # General helpers for working with codes and code systems
4
+ class CodeSystemHelper
5
+ CODE_SYSTEMS = {
6
+ '2.16.840.1.113883.6.1' => 'LOINC',
7
+ '2.16.840.1.113883.6.96' => 'SNOMED-CT',
8
+ '2.16.840.1.113883.6.12' => 'CPT',
9
+ #'2.16.840.1.113883.3.88.12.80.32' => 'CPT', # Encounter Type from C32, a subset of CPT
10
+ '2.16.840.1.113883.6.88' => 'RxNorm',
11
+ '2.16.840.1.113883.6.103' => 'ICD-9-CM',
12
+ '2.16.840.1.113883.6.104' => 'ICD-9-PCS',
13
+ '2.16.840.1.113883.6.4' => 'ICD-10-PCS',
14
+ '2.16.840.1.113883.6.90' => 'ICD-10-CM',
15
+ '2.16.840.1.113883.6.14' => 'HCP',
16
+ '2.16.840.1.113883.6.285' => 'HCPCS',
17
+ '2.16.840.1.113883.5.2' => "HL7 Marital Status",
18
+ '2.16.840.1.113883.12.292' => 'CVX',
19
+ '2.16.840.1.113883.5.83' => 'HITSP C80 Observation Status',
20
+ '2.16.840.1.113883.3.26.1.1' => 'NCI Thesaurus',
21
+ '2.16.840.1.113883.3.88.12.80.20' => 'FDA',
22
+ "2.16.840.1.113883.4.9" => "UNII",
23
+ "2.16.840.1.113883.6.69" => "NDC",
24
+ '2.16.840.1.113883.5.14' => 'HL7 ActStatus',
25
+ '2.16.840.1.113883.6.259' => 'HL7 Healthcare Service Location',
26
+ '2.16.840.1.113883.12.112' => 'DischargeDisposition',
27
+ '2.16.840.1.113883.5.4' => 'HL7 Act Code',
28
+ '2.16.840.1.113883.1.11.18877' => 'HL7 Relationship Code',
29
+ '2.16.840.1.113883.6.238' => 'CDC Race',
30
+ '2.16.840.1.113883.6.177' => 'NLM MeSH',
31
+ '2.16.840.1.113883.5.1076' => "Religious Affiliation",
32
+ '2.16.840.1.113883.1.11.19717' => "HL7 ActNoImmunicationReason",
33
+ '2.16.840.1.113883.3.88.12.80.33' => "NUBC",
34
+ '2.16.840.1.113883.1.11.78' => "HL7 Observation Interpretation",
35
+ '2.16.840.1.113883.3.221.5' => "Source of Payment Typology",
36
+ '2.16.840.1.113883.6.13' => 'CDT',
37
+ '2.16.840.1.113883.18.2' => 'AdministrativeSex'
38
+ }
39
+
40
+ CODE_SYSTEM_ALIASES = {
41
+ 'FDA SPL' => 'NCI Thesaurus',
42
+ 'HSLOC' => 'HL7 Healthcare Service Location',
43
+ 'SOP' => "Source of Payment Typology"
44
+ }
45
+
46
+ # Some old OID are still around in data, this hash maps retired OID values to
47
+ # the new value
48
+ OID_ALIASES = {
49
+ '2.16.840.1.113883.6.59' => '2.16.840.1.113883.12.292' # CVX
50
+ }
51
+
52
+ # Returns the name of a code system given an oid
53
+ # @param [String] oid of a code system
54
+ # @return [String] the name of the code system as described in the measure definition JSON
55
+ def self.code_system_for(oid)
56
+ oid = OID_ALIASES[oid] if OID_ALIASES[oid]
57
+ CODE_SYSTEMS[oid] || "Unknown"
58
+ end
59
+
60
+ # Returns the oid for a code system given a codesystem name
61
+ # @param [String] the name of the code system
62
+ # @return [String] the oid of the code system
63
+ def self.oid_for_code_system(code_system)
64
+ code_system = CODE_SYSTEM_ALIASES[code_system] if CODE_SYSTEM_ALIASES[code_system]
65
+ CODE_SYSTEMS.invert[code_system]
66
+ end
67
+
68
+ # Returns the whole map of OIDs to code systems
69
+ # @terurn [Hash] oids as keys, code system names as values
70
+ def self.code_systems
71
+ CODE_SYSTEMS
72
+ end
73
+ end
74
+ end
75
+ end
76
+
@@ -0,0 +1,20 @@
1
+ module HQMF
2
+ # Simple class to issue monotonically increasing integer identifiers
3
+ class InstanceCounter
4
+ def initialize
5
+ @count=0
6
+ end
7
+
8
+ def reset
9
+ @count=0
10
+ end
11
+
12
+ def next
13
+ @count+=1
14
+ end
15
+ end
16
+
17
+ class Counter < InstanceCounter
18
+ include Singleton
19
+ end
20
+ end
@@ -0,0 +1,39 @@
1
+ module HQMF
2
+ module Util
3
+ # General helpers for working with codes and code systems
4
+ class HQMFTemplateHelper
5
+
6
+ def self.definition_for_template_id(template_id, version="r1")
7
+ template_id_map(version)[template_id]
8
+ end
9
+
10
+ def self.template_id_map(version)
11
+ if @id_map.blank?
12
+ @id_map = {
13
+ 'r1' => JSON.parse(File.read(File.expand_path('../hqmf_template_oid_map.json', __FILE__))),
14
+ 'r2' => JSON.parse(File.read(File.expand_path('../hqmfr2_template_oid_map.json', __FILE__))),
15
+ 'r2cql' => JSON.parse(File.read(File.expand_path('../hqmfr2cql_template_oid_map.json', __FILE__)))
16
+ }
17
+ end
18
+ @id_map[version]
19
+ end
20
+
21
+ def self.template_id_by_definition_and_status(definition, status, negation=false, version="r1")
22
+ case version
23
+ when "r1"
24
+ kv_pair = template_id_map(version).find {|k, v| v['definition'] == definition &&
25
+ v['status'] == status &&
26
+ v['negation'] == negation}
27
+ when "r2", "r2cql"
28
+ kv_pair = template_id_map(version).find {|k, v| v['definition'] == definition &&
29
+ v['status'] == status}
30
+ end
31
+ if kv_pair
32
+ kv_pair.first
33
+ else
34
+ nil
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
metadata ADDED
@@ -0,0 +1,340 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cqm-parsers
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - The MITRE Corporation
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-07-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rest-client
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 1.8.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 1.8.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: erubis
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 2.7.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.7.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: mongoid
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 5.0.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 5.0.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: mongoid-tree
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.0
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.0.0
69
+ - !ruby/object:Gem::Dependency
70
+ name: activesupport
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 4.2.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 4.2.0
83
+ - !ruby/object:Gem::Dependency
84
+ name: protected_attributes
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 1.0.5
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 1.0.5
97
+ - !ruby/object:Gem::Dependency
98
+ name: uuid
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: 2.3.7
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: 2.3.7
111
+ - !ruby/object:Gem::Dependency
112
+ name: builder
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.1'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.1'
125
+ - !ruby/object:Gem::Dependency
126
+ name: nokogiri
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 1.8.3
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 1.8.3
139
+ - !ruby/object:Gem::Dependency
140
+ name: highline
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: 1.7.0
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: 1.7.0
153
+ - !ruby/object:Gem::Dependency
154
+ name: rubyzip
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: 1.2.1
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: 1.2.1
167
+ - !ruby/object:Gem::Dependency
168
+ name: zip-zip
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '0.3'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '0.3'
181
+ - !ruby/object:Gem::Dependency
182
+ name: log4r
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: 1.1.10
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: 1.1.10
195
+ - !ruby/object:Gem::Dependency
196
+ name: memoist
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - "~>"
200
+ - !ruby/object:Gem::Version
201
+ version: 0.9.1
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - "~>"
207
+ - !ruby/object:Gem::Version
208
+ version: 0.9.1
209
+ description: A library for parsing HQMF documents.
210
+ email: tacoma-list@lists.mitre.org
211
+ executables: []
212
+ extensions: []
213
+ extra_rdoc_files: []
214
+ files:
215
+ - Gemfile
216
+ - README.md
217
+ - Rakefile
218
+ - lib/ext/code.rb
219
+ - lib/ext/data_element.rb
220
+ - lib/hqmf-model/attribute.rb
221
+ - lib/hqmf-model/data_criteria.rb
222
+ - lib/hqmf-model/document.rb
223
+ - lib/hqmf-model/population_criteria.rb
224
+ - lib/hqmf-model/precondition.rb
225
+ - lib/hqmf-model/types.rb
226
+ - lib/hqmf-model/utilities.rb
227
+ - lib/hqmf-parser.rb
228
+ - lib/hqmf-parser/1.0/attribute.rb
229
+ - lib/hqmf-parser/1.0/comparison.rb
230
+ - lib/hqmf-parser/1.0/data_criteria.rb
231
+ - lib/hqmf-parser/1.0/document.rb
232
+ - lib/hqmf-parser/1.0/expression.rb
233
+ - lib/hqmf-parser/1.0/observation.rb
234
+ - lib/hqmf-parser/1.0/population_criteria.rb
235
+ - lib/hqmf-parser/1.0/precondition.rb
236
+ - lib/hqmf-parser/1.0/range.rb
237
+ - lib/hqmf-parser/1.0/restriction.rb
238
+ - lib/hqmf-parser/1.0/utilities.rb
239
+ - lib/hqmf-parser/2.0/data_criteria.rb
240
+ - lib/hqmf-parser/2.0/data_criteria_helpers/dc_base_extract.rb
241
+ - lib/hqmf-parser/2.0/data_criteria_helpers/dc_definition_from_template_or_type_extract.rb
242
+ - lib/hqmf-parser/2.0/data_criteria_helpers/dc_post_processing.rb
243
+ - lib/hqmf-parser/2.0/data_criteria_helpers/dc_specific_occurrences_and_source_data_criteria_extract.rb
244
+ - lib/hqmf-parser/2.0/document.rb
245
+ - lib/hqmf-parser/2.0/document_helpers/doc_population_helper.rb
246
+ - lib/hqmf-parser/2.0/document_helpers/doc_utilities.rb
247
+ - lib/hqmf-parser/2.0/field_value_helper.rb
248
+ - lib/hqmf-parser/2.0/population_criteria.rb
249
+ - lib/hqmf-parser/2.0/precondition.rb
250
+ - lib/hqmf-parser/2.0/source_data_criteria_helper.rb
251
+ - lib/hqmf-parser/2.0/types.rb
252
+ - lib/hqmf-parser/2.0/utilities.rb
253
+ - lib/hqmf-parser/2.0/value_set_helper.rb
254
+ - lib/hqmf-parser/converter/pass1/data_criteria_converter.rb
255
+ - lib/hqmf-parser/converter/pass1/document_converter.rb
256
+ - lib/hqmf-parser/converter/pass1/population_criteria_converter.rb
257
+ - lib/hqmf-parser/converter/pass1/precondition_converter.rb
258
+ - lib/hqmf-parser/converter/pass1/precondition_extractor.rb
259
+ - lib/hqmf-parser/converter/pass1/simple_data_criteria.rb
260
+ - lib/hqmf-parser/converter/pass1/simple_operator.rb
261
+ - lib/hqmf-parser/converter/pass1/simple_population_criteria.rb
262
+ - lib/hqmf-parser/converter/pass1/simple_precondition.rb
263
+ - lib/hqmf-parser/converter/pass1/simple_restriction.rb
264
+ - lib/hqmf-parser/converter/pass2/comparison_converter.rb
265
+ - lib/hqmf-parser/converter/pass2/operator_converter.rb
266
+ - lib/hqmf-parser/cql/data_criteria.rb
267
+ - lib/hqmf-parser/cql/data_criteria_helpers/dc_definition_from_template_or_type_extract.rb
268
+ - lib/hqmf-parser/cql/data_criteria_helpers/dc_post_processing.rb
269
+ - lib/hqmf-parser/cql/document.rb
270
+ - lib/hqmf-parser/cql/document_helpers/doc_population_helper.rb
271
+ - lib/hqmf-parser/cql/value_set_helper.rb
272
+ - lib/hqmf-parser/parser.rb
273
+ - lib/qrda-export/catI-r5/qrda1_r5.rb
274
+ - lib/qrda-export/helper/cat_1_view_helper.rb
275
+ - lib/qrda-export/helper/code_system_helper.rb
276
+ - lib/qrda-export/helper/date_helper.rb
277
+ - lib/qrda-import/base-importers/demographics_importer.rb
278
+ - lib/qrda-import/base-importers/medication_importer.rb
279
+ - lib/qrda-import/base-importers/section_importer.rb
280
+ - lib/qrda-import/cda_identifier.rb
281
+ - lib/qrda-import/data-element-importers/adverse_event_importer.rb
282
+ - lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb
283
+ - lib/qrda-import/data-element-importers/assessment_performed_importer.rb
284
+ - lib/qrda-import/data-element-importers/communication_from_patient_to_provider_importer.rb
285
+ - lib/qrda-import/data-element-importers/communication_from_provider_to_patient_importer.rb
286
+ - lib/qrda-import/data-element-importers/communication_from_provider_to_provider_importer.rb
287
+ - lib/qrda-import/data-element-importers/device_applied_importer.rb
288
+ - lib/qrda-import/data-element-importers/device_order_importer.rb
289
+ - lib/qrda-import/data-element-importers/diagnosis_importer.rb
290
+ - lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb
291
+ - lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb
292
+ - lib/qrda-import/data-element-importers/encounter_order_importer.rb
293
+ - lib/qrda-import/data-element-importers/encounter_performed_importer.rb
294
+ - lib/qrda-import/data-element-importers/immunization_administered_importer.rb
295
+ - lib/qrda-import/data-element-importers/intervention_order_importer.rb
296
+ - lib/qrda-import/data-element-importers/intervention_performed_importer.rb
297
+ - lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb
298
+ - lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb
299
+ - lib/qrda-import/data-element-importers/medication_active_importer.rb
300
+ - lib/qrda-import/data-element-importers/medication_administered_importer.rb
301
+ - lib/qrda-import/data-element-importers/medication_discharge_importer.rb
302
+ - lib/qrda-import/data-element-importers/medication_dispensed_importer.rb
303
+ - lib/qrda-import/data-element-importers/medication_order_importer.rb
304
+ - lib/qrda-import/data-element-importers/patient_characteristic_expired.rb
305
+ - lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb
306
+ - lib/qrda-import/data-element-importers/procedure_order_importer.rb
307
+ - lib/qrda-import/data-element-importers/procedure_performed_importer.rb
308
+ - lib/qrda-import/data-element-importers/substance_administered_importer.rb
309
+ - lib/qrda-import/entry_finder.rb
310
+ - lib/qrda-import/entry_package.rb
311
+ - lib/qrda-import/narrative_reference_handler.rb
312
+ - lib/qrda-import/patient_importer.rb
313
+ - lib/util/code_system_helper.rb
314
+ - lib/util/counter.rb
315
+ - lib/util/hqmf_template_helper.rb
316
+ homepage: https://github.com/projecttacoma/cqm-parsers
317
+ licenses:
318
+ - Apache-2.0
319
+ metadata: {}
320
+ post_install_message:
321
+ rdoc_options: []
322
+ require_paths:
323
+ - lib
324
+ required_ruby_version: !ruby/object:Gem::Requirement
325
+ requirements:
326
+ - - ">="
327
+ - !ruby/object:Gem::Version
328
+ version: '0'
329
+ required_rubygems_version: !ruby/object:Gem::Requirement
330
+ requirements:
331
+ - - ">="
332
+ - !ruby/object:Gem::Version
333
+ version: '0'
334
+ requirements: []
335
+ rubyforge_project:
336
+ rubygems_version: 2.6.14
337
+ signing_key:
338
+ specification_version: 4
339
+ summary: A library for parsing HQMF documents.
340
+ test_files: []