cqm-reports 3.1.10 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/lib/cqm-reports.rb +1 -2
  4. data/lib/html-export/qdm-patient/data_element/_data_element_other_fields.mustache +10 -0
  5. data/lib/html-export/qdm-patient/qdm_patient.rb +7 -7
  6. data/lib/qrda-export/catI-r5/_header.mustache +2 -1
  7. data/lib/qrda-export/catI-r5/qrda1_r5.mustache +2 -5
  8. data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +1 -1
  9. data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +1 -1
  10. data/lib/qrda-export/catI-r5/qrda_templates/assessment_order.mustache +1 -1
  11. data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +7 -3
  12. data/lib/qrda-export/catI-r5/qrda_templates/assessment_recommended.mustache +1 -1
  13. data/lib/qrda-export/catI-r5/qrda_templates/communication_performed.mustache +1 -1
  14. data/lib/qrda-export/catI-r5/qrda_templates/device_order.mustache +2 -2
  15. data/lib/qrda-export/catI-r5/qrda_templates/device_recommended.mustache +2 -2
  16. data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +2 -2
  17. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_order.mustache +1 -1
  18. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +9 -1
  19. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_recommended.mustache +1 -1
  20. data/lib/qrda-export/catI-r5/qrda_templates/encounter_order.mustache +2 -2
  21. data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +11 -7
  22. data/lib/qrda-export/catI-r5/qrda_templates/encounter_recommended.mustache +2 -2
  23. data/lib/qrda-export/catI-r5/qrda_templates/family_history.mustache +2 -2
  24. data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +1 -1
  25. data/lib/qrda-export/catI-r5/qrda_templates/immunization_order.mustache +1 -1
  26. data/lib/qrda-export/catI-r5/qrda_templates/intervention_order.mustache +1 -1
  27. data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +5 -1
  28. data/lib/qrda-export/catI-r5/qrda_templates/intervention_recommended.mustache +1 -1
  29. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_order.mustache +1 -1
  30. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_performed.mustache +3 -3
  31. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_recommended.mustache +1 -1
  32. data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +1 -1
  33. data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +1 -1
  34. data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +2 -4
  35. data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +2 -2
  36. data/lib/qrda-export/catI-r5/qrda_templates/medication_order.mustache +5 -1
  37. data/lib/qrda-export/catI-r5/qrda_templates/patient_care_experience.mustache +1 -1
  38. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_order.mustache +1 -1
  39. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +3 -3
  40. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_recommended.mustache +1 -1
  41. data/lib/qrda-export/catI-r5/qrda_templates/procedure_order.mustache +1 -1
  42. data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +5 -1
  43. data/lib/qrda-export/catI-r5/qrda_templates/procedure_recommended.mustache +1 -1
  44. data/lib/qrda-export/catI-r5/qrda_templates/program_participation.mustache +1 -7
  45. data/lib/qrda-export/catI-r5/qrda_templates/provider_care_experience.mustache +1 -1
  46. data/lib/qrda-export/catI-r5/qrda_templates/substance_recommended.mustache +1 -1
  47. data/lib/qrda-export/catI-r5/qrda_templates/symptom.mustache +2 -2
  48. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_class.mustache +6 -0
  49. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis_qdm.mustache +2 -2
  50. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity.mustache +3 -0
  51. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_location.mustache +11 -0
  52. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_organization.mustache +2 -2
  53. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_interpretation.mustache +1 -0
  54. data/lib/qrda-export/{catIII-r2-1 → catIII}/_continuous_variable_value.mustache +0 -0
  55. data/lib/qrda-export/{catIII-r2-1 → catIII}/_header.mustache +1 -5
  56. data/lib/qrda-export/{catIII-r2-1 → catIII}/_measure_data.mustache +0 -0
  57. data/lib/qrda-export/{catIII-r2-1 → catIII}/_measure_section.mustache +3 -3
  58. data/lib/qrda-export/{catIII-r2-1 → catIII}/_reporting_period.mustache +0 -0
  59. data/lib/qrda-export/{catIII-r2-1 → catIII}/_stratification.mustache +0 -0
  60. data/lib/qrda-export/{catIII-r2-1 → catIII}/_supplemental_data.mustache +0 -0
  61. data/lib/qrda-export/{catIII-r2-1/qrda3_r21.mustache → catIII/qrda3.mustache} +0 -0
  62. data/lib/qrda-export/{catIII-r2-1/qrda3_r21.rb → catIII/qrda3.rb} +1 -1
  63. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_author.mustache +0 -0
  64. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_custodian.mustache +0 -0
  65. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_documentation_of_service_event.mustache +0 -0
  66. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_information_recipient.mustache +0 -0
  67. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_legal_authenticator.mustache +0 -0
  68. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_participant_ehr.mustache +0 -0
  69. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_participant_location.mustache +0 -0
  70. data/lib/qrda-import/base-importers/section_importer.rb +53 -35
  71. data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +2 -1
  72. data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +2 -1
  73. data/lib/qrda-import/data-element-importers/assessment_order_importer.rb +2 -1
  74. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +6 -1
  75. data/lib/qrda-import/data-element-importers/assessment_recommended_importer.rb +2 -1
  76. data/lib/qrda-import/data-element-importers/communication_performed_importer.rb +4 -2
  77. data/lib/qrda-import/data-element-importers/device_order_importer.rb +2 -1
  78. data/lib/qrda-import/data-element-importers/device_recommended_importer.rb +2 -1
  79. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +2 -1
  80. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +2 -1
  81. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +6 -1
  82. data/lib/qrda-import/data-element-importers/diagnostic_study_recommended_importer.rb +2 -1
  83. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +2 -1
  84. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +6 -1
  85. data/lib/qrda-import/data-element-importers/encounter_recommended_importer.rb +2 -1
  86. data/lib/qrda-import/data-element-importers/family_history_importer.rb +2 -1
  87. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +2 -1
  88. data/lib/qrda-import/data-element-importers/immunization_order_importer.rb +2 -1
  89. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +2 -1
  90. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +4 -1
  91. data/lib/qrda-import/data-element-importers/intervention_recommended_importer.rb +2 -1
  92. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +2 -1
  93. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +4 -1
  94. data/lib/qrda-import/data-element-importers/laboratory_test_recommended_importer.rb +2 -1
  95. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +2 -1
  96. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +2 -1
  97. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +5 -3
  98. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +4 -2
  99. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +4 -1
  100. data/lib/qrda-import/data-element-importers/patient_care_experience_importer.rb +2 -1
  101. data/lib/qrda-import/data-element-importers/physical_exam_order_importer.rb +2 -1
  102. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +4 -1
  103. data/lib/qrda-import/data-element-importers/physical_exam_recommended_importer.rb +2 -1
  104. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +2 -1
  105. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +4 -1
  106. data/lib/qrda-import/data-element-importers/procedure_recommended_importer.rb +2 -1
  107. data/lib/qrda-import/data-element-importers/program_participation_importer.rb +0 -1
  108. data/lib/qrda-import/data-element-importers/provider_care_experience_importer.rb +2 -1
  109. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +2 -1
  110. data/lib/qrda-import/data-element-importers/substance_recommended_importer.rb +2 -1
  111. data/lib/qrda-import/data-element-importers/symptom_importer.rb +2 -1
  112. data/lib/qrda-import/patient_importer.rb +0 -1
  113. data/lib/util/entity_helper.rb +4 -0
  114. metadata +28 -27
  115. data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +0 -44
  116. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +0 -26
@@ -1,26 +0,0 @@
1
- module QRDA
2
- module Cat1
3
- class DeviceAppliedImporter < SectionImporter
4
- def initialize(entry_finder = QRDA::Cat1::EntryFinder.new("./cda:entry/cda:procedure[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.7']"))
5
- super(entry_finder)
6
- @id_xpath = './cda:id'
7
- @code_xpath = './cda:participant/cda:participantRole/cda:playingDevice/cda:code'
8
- @author_datetime_xpath = "./cda:author[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.155']/cda:time"
9
- @relevant_period_xpath = "./cda:effectiveTime"
10
- @relevant_date_time_xpath = './cda:effectiveTime[@value]'
11
- @anatomical_location_site_xpath = "./cda:targetSiteCode"
12
- @reason_xpath = "./cda:entryRelationship[@typeCode='RSON']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.88']/cda:value"
13
- @entry_class = QDM::DeviceApplied
14
- end
15
-
16
- def create_entry(entry_element, nrh = NarrativeReferenceHandler.new)
17
- device_applied = super
18
- device_applied.anatomicalLocationSite = code_if_present(entry_element.at_xpath(@anatomical_location_site_xpath))
19
- device_applied.reason = extract_reason(entry_element)
20
- device_applied.performer = extract_entity(entry_element, "./cda:participant[@typeCode='PRF']")
21
- device_applied
22
- end
23
-
24
- end
25
- end
26
- end