cqm-reports 3.0.0.pre.alpha.2 → 3.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 +2 -1
  3. data/README.md +26 -0
  4. data/lib/cqm-reports.rb +3 -2
  5. data/lib/html-export/qdm-patient/data_element/_data_element_other_fields.mustache +129 -5
  6. data/lib/html-export/qdm-patient/data_element/_data_element_times.mustache +36 -1
  7. data/lib/html-export/qdm-patient/qdm_patient.rb +39 -5
  8. data/lib/qrda-export/catI-r5/_header.mustache +2 -2
  9. data/lib/qrda-export/catI-r5/qrda1_r5.mustache +10 -2
  10. data/lib/qrda-export/catI-r5/qrda1_r5.rb +33 -2
  11. data/lib/qrda-export/catI-r5/qrda_header/_record_target.mustache +24 -9
  12. data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +8 -2
  13. data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +8 -8
  14. data/lib/qrda-export/catI-r5/qrda_templates/assessment_order.mustache +7 -1
  15. data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +17 -1
  16. data/lib/qrda-export/catI-r5/qrda_templates/assessment_recommended.mustache +7 -1
  17. data/lib/qrda-export/catI-r5/qrda_templates/communication_performed.mustache +12 -13
  18. data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +17 -5
  19. data/lib/qrda-export/catI-r5/qrda_templates/device_order.mustache +8 -2
  20. data/lib/qrda-export/catI-r5/qrda_templates/device_recommended.mustache +8 -2
  21. data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +9 -9
  22. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_order.mustache +7 -1
  23. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +17 -5
  24. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_recommended.mustache +7 -1
  25. data/lib/qrda-export/catI-r5/qrda_templates/encounter_order.mustache +11 -2
  26. data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +9 -3
  27. data/lib/qrda-export/catI-r5/qrda_templates/encounter_recommended.mustache +8 -2
  28. data/lib/qrda-export/catI-r5/qrda_templates/family_history.mustache +8 -2
  29. data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +22 -7
  30. data/lib/qrda-export/catI-r5/qrda_templates/immunization_order.mustache +8 -2
  31. data/lib/qrda-export/catI-r5/qrda_templates/intervention_order.mustache +7 -1
  32. data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +17 -5
  33. data/lib/qrda-export/catI-r5/qrda_templates/intervention_recommended.mustache +7 -1
  34. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_order.mustache +7 -1
  35. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_performed.mustache +17 -5
  36. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_recommended.mustache +7 -1
  37. data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +17 -7
  38. data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +17 -5
  39. data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +14 -2
  40. data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +27 -16
  41. data/lib/qrda-export/catI-r5/qrda_templates/medication_order.mustache +7 -1
  42. data/lib/qrda-export/catI-r5/qrda_templates/patient_care_experience.mustache +7 -1
  43. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_order.mustache +7 -1
  44. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +17 -5
  45. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_recommended.mustache +7 -1
  46. data/lib/qrda-export/catI-r5/qrda_templates/procedure_order.mustache +11 -1
  47. data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +21 -5
  48. data/lib/qrda-export/catI-r5/qrda_templates/procedure_recommended.mustache +11 -1
  49. data/lib/qrda-export/catI-r5/qrda_templates/program_participation.mustache +21 -0
  50. data/lib/qrda-export/catI-r5/qrda_templates/provider_care_experience.mustache +7 -1
  51. data/lib/qrda-export/catI-r5/qrda_templates/related_person.mustache +18 -0
  52. data/lib/qrda-export/catI-r5/qrda_templates/substance_recommended.mustache +7 -1
  53. data/lib/qrda-export/catI-r5/qrda_templates/symptom.mustache +10 -8
  54. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author.mustache +1 -1
  55. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis_qdm.mustache +24 -0
  56. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity.mustache +12 -0
  57. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_care_partner.mustache +11 -0
  58. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_organization.mustache +11 -0
  59. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_patient.mustache +6 -0
  60. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_practitioner.mustache +19 -0
  61. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_immunization_supply_request.mustache +29 -0
  62. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_supply_request.mustache +12 -1
  63. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_rank.mustache +7 -0
  64. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_related_to.mustache +1 -1
  65. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_results.mustache +8 -1
  66. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_status.mustache +1 -1
  67. data/lib/qrda-export/helper/cat1_view_helper.rb +2 -0
  68. data/lib/qrda-export/helper/date_helper.rb +27 -4
  69. data/lib/qrda-import/base-importers/demographics_importer.rb +3 -3
  70. data/lib/qrda-import/base-importers/section_importer.rb +48 -5
  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 +1 -0
  74. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +3 -0
  75. data/lib/qrda-import/data-element-importers/assessment_recommended_importer.rb +1 -0
  76. data/lib/qrda-import/data-element-importers/communication_performed_importer.rb +7 -6
  77. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +2 -0
  78. data/lib/qrda-import/data-element-importers/device_order_importer.rb +1 -0
  79. data/lib/qrda-import/data-element-importers/device_recommended_importer.rb +1 -0
  80. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +1 -0
  81. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +1 -0
  82. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +2 -0
  83. data/lib/qrda-import/data-element-importers/diagnostic_study_recommended_importer.rb +1 -0
  84. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +3 -0
  85. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +7 -3
  86. data/lib/qrda-import/data-element-importers/encounter_recommended_importer.rb +1 -0
  87. data/lib/qrda-import/data-element-importers/family_history_importer.rb +1 -0
  88. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +3 -1
  89. data/lib/qrda-import/data-element-importers/immunization_order_importer.rb +4 -3
  90. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +1 -0
  91. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +2 -0
  92. data/lib/qrda-import/data-element-importers/intervention_recommended_importer.rb +1 -0
  93. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +1 -0
  94. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +2 -0
  95. data/lib/qrda-import/data-element-importers/laboratory_test_recommended_importer.rb +1 -0
  96. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +2 -0
  97. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +2 -0
  98. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +2 -0
  99. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +3 -4
  100. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +2 -2
  101. data/lib/qrda-import/data-element-importers/patient_care_experience_importer.rb +1 -0
  102. data/lib/qrda-import/data-element-importers/physical_exam_order_importer.rb +1 -0
  103. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +2 -0
  104. data/lib/qrda-import/data-element-importers/physical_exam_recommended_importer.rb +1 -0
  105. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +3 -0
  106. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +4 -0
  107. data/lib/qrda-import/data-element-importers/procedure_recommended_importer.rb +3 -0
  108. data/lib/qrda-import/data-element-importers/program_participation_importer.rb +21 -0
  109. data/lib/qrda-import/data-element-importers/provider_care_experience_importer.rb +1 -0
  110. data/lib/qrda-import/data-element-importers/related_person_importer.rb +19 -0
  111. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +2 -0
  112. data/lib/qrda-import/data-element-importers/substance_order_importer.rb +1 -0
  113. data/lib/qrda-import/data-element-importers/substance_recommended_importer.rb +1 -0
  114. data/lib/qrda-import/data-element-importers/symptom_importer.rb +1 -0
  115. data/lib/qrda-import/patient_importer.rb +31 -11
  116. data/lib/util/entity_helper.rb +22 -0
  117. metadata +19 -9
  118. data/lib/ext/code.rb +0 -11
  119. data/lib/ext/data_element.rb +0 -24
  120. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis.mustache +0 -23
  121. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_principal_diagnosis.mustache +0 -8
@@ -1,8 +0,0 @@
1
- <entryRelationship typeCode="REFR">
2
- <observation classCode="OBS" moodCode="EVN">
3
- <templateId root="2.16.840.1.113883.10.20.24.3.152" extension="2017-08-01"/>
4
- <id root="{{random_id}}"/>
5
- <code code="8319008" codeSystem="2.16.840.1.113883.6.96" displayName="Principal Diagnosis" codeSystemName="SNOMED"/>
6
- <value {{> _code}} xsi:type="CD"/>
7
- </observation>
8
- </entryRelationship>