health-data-standards 3.6.1 → 3.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (434) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +7 -2
  3. data/Rakefile +2 -1
  4. data/lib/health-data-standards.rb +22 -1
  5. data/lib/health-data-standards/export/cat_1.rb +25 -6
  6. data/lib/health-data-standards/export/cat_1_r2.rb +8 -2
  7. data/lib/health-data-standards/export/cat_3.rb +8 -7
  8. data/lib/health-data-standards/export/exceptions.rb +13 -0
  9. data/lib/health-data-standards/export/helper/cat1_view_helper.rb +17 -11
  10. data/lib/health-data-standards/export/helper/html_view_helper.rb +13 -7
  11. data/lib/health-data-standards/export/helper/scooped_view_helper.rb +68 -25
  12. data/lib/health-data-standards/export/html.rb +9 -4
  13. data/lib/health-data-standards/export/qrda/entry_template_resolver.rb +29 -11
  14. data/lib/health-data-standards/export/qrda/hqmf-qrda-oids.json +89 -5
  15. data/lib/health-data-standards/export/rendering_context.rb +2 -2
  16. data/lib/health-data-standards/export/template_helper.rb +7 -2
  17. data/lib/health-data-standards/export/view_helper.rb +107 -39
  18. data/lib/health-data-standards/import/bulk_record_importer.rb +8 -5
  19. data/lib/health-data-standards/import/bundle/importer.rb +21 -14
  20. data/lib/health-data-standards/import/c32/care_goal_importer.rb +1 -1
  21. data/lib/health-data-standards/import/c32/immunization_importer.rb +1 -1
  22. data/lib/health-data-standards/import/cat1/clinical_trial_participant_importer.rb +20 -0
  23. data/lib/health-data-standards/import/cat1/device_order_importer.rb +20 -0
  24. data/lib/health-data-standards/import/cat1/diagnosis_active_importer.rb +4 -9
  25. data/lib/health-data-standards/import/cat1/diagnosis_importer.rb +15 -0
  26. data/lib/health-data-standards/import/cat1/diagnosis_inactive_importer.rb +1 -1
  27. data/lib/health-data-standards/import/cat1/diagnostic_study_order_importer.rb +6 -0
  28. data/lib/health-data-standards/import/cat1/encounter_order_act_importer.rb +19 -0
  29. data/lib/health-data-standards/import/cat1/encounter_performed_act_importer.rb +19 -0
  30. data/lib/health-data-standards/import/cat1/encounter_performed_importer.rb +16 -0
  31. data/lib/health-data-standards/import/cat1/immunization_administered_importer.rb +14 -0
  32. data/lib/health-data-standards/import/cat1/medication_dispensed_act_importer.rb +18 -0
  33. data/lib/health-data-standards/import/cat1/patient_importer.rb +44 -17
  34. data/lib/health-data-standards/import/cat1/procedure_order_importer.rb +4 -4
  35. data/lib/health-data-standards/import/cat1/procedure_performed_importer.rb +1 -0
  36. data/lib/health-data-standards/import/cat1/transfer_from_act_importer.rb +18 -0
  37. data/lib/health-data-standards/import/cat1/transfer_from_importer.rb +24 -0
  38. data/lib/health-data-standards/import/cat1/transfer_to_act_importer.rb +18 -0
  39. data/lib/health-data-standards/import/cat1/transfer_to_importer.rb +23 -0
  40. data/lib/health-data-standards/import/cda/allergy_importer.rb +1 -1
  41. data/lib/health-data-standards/import/cda/communication_importer.rb +55 -0
  42. data/lib/health-data-standards/import/cda/condition_importer.rb +17 -1
  43. data/lib/health-data-standards/import/cda/encounter_importer.rb +23 -21
  44. data/lib/health-data-standards/import/cda/medical_equipment_importer.rb +1 -0
  45. data/lib/health-data-standards/import/cda/medication_importer.rb +14 -4
  46. data/lib/health-data-standards/import/cda/procedure_importer.rb +4 -4
  47. data/lib/health-data-standards/import/cda/result_importer.rb +1 -1
  48. data/lib/health-data-standards/import/cda/section_importer.rb +59 -18
  49. data/lib/health-data-standards/models/assessment.rb +3 -0
  50. data/lib/health-data-standards/models/care_experience.rb +2 -0
  51. data/lib/health-data-standards/models/care_goal.rb +4 -0
  52. data/lib/health-data-standards/models/communication.rb +3 -0
  53. data/lib/health-data-standards/models/condition.rb +12 -9
  54. data/lib/health-data-standards/models/cqm/bundle.rb +2 -1
  55. data/lib/health-data-standards/models/cqm/measure.rb +2 -1
  56. data/lib/health-data-standards/models/cqm/patient_cache.rb +7 -3
  57. data/lib/health-data-standards/models/cqm/query_cache.rb +2 -0
  58. data/lib/health-data-standards/models/encounter.rb +14 -1
  59. data/lib/health-data-standards/models/encounter_principal_diagnosis.rb +36 -0
  60. data/lib/health-data-standards/models/entry.rb +5 -1
  61. data/lib/health-data-standards/models/family_history.rb +4 -0
  62. data/lib/health-data-standards/models/immunization.rb +1 -0
  63. data/lib/health-data-standards/models/lab_result.rb +10 -1
  64. data/lib/health-data-standards/models/medical_equipment.rb +2 -1
  65. data/lib/health-data-standards/models/medication.rb +19 -2
  66. data/lib/health-data-standards/models/patient_preference.rb +5 -0
  67. data/lib/health-data-standards/models/procedure.rb +16 -3
  68. data/lib/health-data-standards/models/provider.rb +17 -1
  69. data/lib/health-data-standards/models/provider_preference.rb +5 -0
  70. data/lib/health-data-standards/models/record.rb +8 -9
  71. data/lib/health-data-standards/models/reference.rb +1 -1
  72. data/lib/health-data-standards/models/svs/value_set.rb +28 -10
  73. data/lib/health-data-standards/models/transfer.rb +6 -1
  74. data/lib/health-data-standards/tasks/bundle.rake +5 -3
  75. data/lib/health-data-standards/util/hqmf_template_helper.rb +20 -14
  76. data/lib/health-data-standards/util/hqmfr2_template_oid_map.json +382 -0
  77. data/lib/health-data-standards/util/nlm_helper.rb +14 -0
  78. data/lib/health-data-standards/util/vs_api.rb +72 -54
  79. data/lib/health-data-standards/validate/measure_validator.rb +8 -3
  80. data/lib/health-data-standards/validate/performance_rate_validator.rb +1 -1
  81. data/lib/health-data-standards/validate/qrda_qdm_template_validator.rb +253 -0
  82. data/lib/health-data-standards/validate/reported_result_extractor.rb +5 -1
  83. data/lib/health-data-standards/validate/schematron_validator.rb +6 -0
  84. data/lib/health-data-standards/validate/validators.rb +49 -1
  85. data/lib/hqmf-generator/document.xml.erb +6 -5
  86. data/lib/hqmf-generator/field.xml.erb +1 -0
  87. data/lib/hqmf-generator/hqmf-generator.rb +85 -41
  88. data/lib/hqmf-generator/subset.xml.erb +15 -0
  89. data/lib/hqmf-generator/temporal_relationship.xml.erb +8 -3
  90. data/lib/hqmf-generator/temporal_relationship_attribute.xml.erb +10 -0
  91. data/lib/hqmf-generator/value.xml.erb +2 -2
  92. data/lib/hqmf-model/data_criteria.json +88 -17
  93. data/lib/hqmf-model/data_criteria.rb +144 -72
  94. data/lib/hqmf-model/population_criteria.rb +20 -18
  95. data/lib/hqmf-model/precondition.rb +6 -3
  96. data/lib/hqmf-model/types.rb +1 -1
  97. data/lib/hqmf-parser.rb +9 -0
  98. data/lib/hqmf-parser/1.0/utilities.rb +1 -1
  99. data/lib/hqmf-parser/2.0/data_criteria.rb +293 -319
  100. data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_base_extract.rb +80 -0
  101. data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_definition_from_template_or_type_extract.rb +201 -0
  102. data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_post_processing.rb +85 -0
  103. data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_specific_occurrences_and_source_data_criteria_extract.rb +117 -0
  104. data/lib/hqmf-parser/2.0/document.rb +246 -222
  105. data/lib/hqmf-parser/2.0/document_helpers/doc_population_helper.rb +175 -0
  106. data/lib/hqmf-parser/2.0/document_helpers/doc_utilities.rb +131 -0
  107. data/lib/hqmf-parser/2.0/field_value_helper.rb +251 -0
  108. data/lib/hqmf-parser/2.0/population_criteria.rb +101 -32
  109. data/lib/hqmf-parser/2.0/precondition.rb +61 -35
  110. data/lib/hqmf-parser/2.0/source_data_criteria_helper.rb +112 -0
  111. data/lib/hqmf-parser/2.0/types.rb +253 -73
  112. data/lib/hqmf-parser/2.0/utilities.rb +27 -12
  113. data/lib/hqmf-parser/2.0/value_set_helper.rb +101 -0
  114. data/lib/hqmf-parser/converter/pass1/data_criteria_converter.rb +6 -1
  115. data/lib/hqmf-parser/converter/pass1/population_criteria_converter.rb +34 -30
  116. data/lib/hqmf-parser/parser.rb +5 -5
  117. data/resources/schematron/qrda/cat_1/{CDAR2_QRDA_I_R1_D3_2015MAY_Schematron.sch → HL7_CDAR2_QRDA_Category_I_2_12_16.sch} +4692 -4675
  118. data/resources/schematron/qrda/cat_1_r3_1/HL7 QRDA Category I STU 3.1.sch +3573 -0
  119. data/resources/schematron/qrda/cat_1_r3_1/HL7 QRDA Category III STU 1.1.sch +464 -0
  120. data/resources/schematron/qrda/cat_1_r3_1/QRDA Category I STU Release 3.1.sch +5394 -0
  121. data/resources/schematron/qrda/cat_1_r3_1/voc.xml +1229 -0
  122. data/resources/schematron/qrda/cat_1_r4/HL7 QRDA Category I STU 4.sch +3526 -0
  123. data/resources/schematron/qrda/cat_1_r4/voc.xml +1186 -0
  124. data/resources/schematron/qrda/cat_3_r1_1/HL7 QRDA Category III STU 1.1.sch +528 -0
  125. data/resources/schematron/qrda/cat_3_r1_1/voc.xml +8 -0
  126. data/resources/schematron/qrda/cat_3_r2/HL7 QRDA Category III STU 2.sch +677 -0
  127. data/resources/schematron/qrda/cat_3_r2/voc.xml +1186 -0
  128. data/resources/schematron/qrda/cat_3_r2_1/HL7 QRDA Category III STU 2.1.sch +678 -0
  129. data/resources/schematron/qrda/cat_3_r2_1/voc.xml +1186 -0
  130. data/templates/c32/_medical_equipment.c32.erb +1 -1
  131. data/templates/c32/_vital_signs.c32.erb +1 -1
  132. data/templates/cat1/{_2.16.840.1.113883.10.20.22.4.85.cat1.erb → r2/_2.16.840.1.113883.10.20.22.4.85.cat1.erb} +1 -1
  133. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.1.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.1.cat1.erb} +3 -3
  134. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.101.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.101.cat1.erb} +1 -1
  135. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.103.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.103.cat1.erb} +9 -5
  136. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.105.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.105.cat1.erb} +18 -10
  137. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.11.cat1.erb +88 -0
  138. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.12.cat1.erb +50 -0
  139. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.13.cat1.erb +54 -0
  140. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.135.cat1.erb +70 -0
  141. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.136.cat1.erb +52 -0
  142. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.14.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.14.cat1.erb} +24 -6
  143. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.140.cat1.erb +39 -0
  144. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +23 -0
  145. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.18.cat1.erb +25 -0
  146. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.2.cat1.erb +29 -0
  147. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.20.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.20.cat1.erb} +4 -4
  148. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.22.cat1.erb +22 -0
  149. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.23.cat1.erb +114 -0
  150. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.26.cat1.erb +20 -0
  151. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.28.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.28.cat1.erb} +2 -2
  152. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.3.cat1.erb +25 -0
  153. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +23 -0
  154. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.32.cat1.erb +20 -0
  155. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.34.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.34.cat1.erb} +6 -6
  156. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +22 -0
  157. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.38.cat1.erb +20 -0
  158. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.4.cat1.erb +29 -0
  159. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.40.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.40.cat1.erb} +3 -3
  160. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.41.cat1.erb +46 -0
  161. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.42.cat1.erb +38 -0
  162. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.43.cat1.erb +24 -0
  163. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.44.cat1.erb +25 -0
  164. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.45.cat1.erb +26 -0
  165. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.46.cat1.erb +30 -0
  166. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +47 -0
  167. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +14 -0
  168. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.54.cat1.erb +32 -0
  169. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.55.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.55.cat1.erb} +0 -0
  170. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.57.cat1.erb +23 -0
  171. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.59.cat1.erb +22 -0
  172. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.62.cat1.erb +36 -0
  173. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.63.cat1.erb +21 -0
  174. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.64.cat1.erb +52 -0
  175. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.66.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.66.cat1.erb} +6 -6
  176. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.69.cat1.erb +23 -0
  177. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.7.cat1.erb +33 -0
  178. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.76.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.76.cat1.erb} +5 -3
  179. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.81.cat1.erb +23 -0
  180. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.82.cat1.erb +23 -0
  181. data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.9.cat1.erb +64 -0
  182. data/templates/cat1/r2/_2.16.840.1.113883.10.20.28.3.6.cat1.erb +17 -0
  183. data/templates/cat1/{_address.cat1.erb → r2/_address.cat1.erb} +0 -0
  184. data/templates/cat1/{_author.cat1.erb → r2/_author.cat1.erb} +0 -0
  185. data/templates/cat1/r2/_fulfills.cat1.erb +14 -0
  186. data/templates/cat1/{_id.cat1.erb → r2/_id.cat1.erb} +0 -0
  187. data/templates/cat1/{_measures.cat1.erb → r2/_measures.cat1.erb} +1 -1
  188. data/templates/cat1/{_medication_details.cat1.erb → r2/_medication_details.cat1.erb} +3 -2
  189. data/templates/cat1/r2/_medication_dispense.cat1.erb +22 -0
  190. data/templates/cat1/{_ordinality.cat1.erb → r2/_ordinality.cat1.erb} +0 -0
  191. data/templates/cat1/{_organization.cat1.erb → r2/_organization.cat1.erb} +0 -0
  192. data/templates/cat1/{_patient_data.cat1.erb → r2/_patient_data.cat1.erb} +4 -1
  193. data/templates/cat1/r2/_patient_data_r3_1.cat1.erb +17 -0
  194. data/templates/cat1/r2/_providers.cat1.erb +76 -0
  195. data/templates/cat1/r2/_reason.cat1.erb +45 -0
  196. data/templates/cat1/{_record_target.cat1.erb → r2/_record_target.cat1.erb} +3 -0
  197. data/templates/cat1/r2/_reporting_parameters.cat1.erb +31 -0
  198. data/templates/cat1/{_result_value.cat1.erb → r2/_result_value.cat1.erb} +1 -1
  199. data/templates/cat1/{_telecom.cat1.erb → r2/_telecom.cat1.erb} +0 -0
  200. data/templates/cat1/{show.cat1.erb → r2/show.cat1.erb} +52 -5
  201. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.1.cat1.erb +14 -0
  202. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.103.cat1.erb +17 -0
  203. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.105.cat1.erb +68 -0
  204. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.11.cat1.erb +58 -0
  205. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.12.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.12.cat1.erb} +4 -5
  206. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.13.cat1.erb +39 -0
  207. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.14.cat1.erb +39 -0
  208. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +23 -0
  209. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.18.cat1.erb +25 -0
  210. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.2.cat1.erb +29 -0
  211. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.22.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.22.cat1.erb} +6 -5
  212. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.23.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.23.cat1.erb} +26 -30
  213. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.26.cat1.erb +20 -0
  214. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.3.cat1.erb +25 -0
  215. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +23 -0
  216. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.32.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.32.cat1.erb} +4 -4
  217. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +22 -0
  218. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.38.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.38.cat1.erb} +3 -3
  219. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.4.cat1.erb +29 -0
  220. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.41.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.41.cat1.erb} +8 -10
  221. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.42.cat1.erb +38 -0
  222. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.43.cat1.erb +24 -0
  223. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.44.cat1.erb +25 -0
  224. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.45.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.45.cat1.erb} +5 -5
  225. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.46.cat1.erb +30 -0
  226. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +47 -0
  227. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +14 -0
  228. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.54.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.54.cat1.erb} +4 -4
  229. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.55.cat1.erb +18 -0
  230. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.57.cat1.erb +23 -0
  231. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.59.cat1.erb +22 -0
  232. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.62.cat1.erb +36 -0
  233. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.63.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.63.cat1.erb} +6 -8
  234. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.64.cat1.erb +51 -0
  235. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.69.cat1.erb +23 -0
  236. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.7.cat1.erb +33 -0
  237. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.76.cat1.erb +19 -0
  238. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.81.cat1.erb +24 -0
  239. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.82.cat1.erb +24 -0
  240. data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.9.cat1.erb +57 -0
  241. data/templates/cat1/r3/_address.cat1.erb +9 -0
  242. data/templates/{cat3/_author.cat3.erb → cat1/r3/_author.cat1.erb} +0 -0
  243. data/templates/cat1/{_fulfills.cat1.erb → r3/_fulfills.cat1.erb} +0 -0
  244. data/templates/{cat3/_id.cat3.erb → cat1/r3/_id.cat1.erb} +0 -0
  245. data/templates/cat1/r3/_measures.cat1.erb +93 -0
  246. data/templates/cat1/r3/_medication_details.cat1.erb +16 -0
  247. data/templates/cat1/{_medication_dispense.cat1.erb → r3/_medication_dispense.cat1.erb} +3 -3
  248. data/templates/cat1/r3/_ordinality.cat1.erb +10 -0
  249. data/templates/cat1/r3/_organization.cat1.erb +9 -0
  250. data/templates/cat1/r3/_patient_data.cat1.erb +17 -0
  251. data/templates/cat1/r3/_providers.cat1.erb +76 -0
  252. data/templates/cat1/r3/_reason.cat1.erb +34 -0
  253. data/templates/cat1/r3/_record_target.cat1.erb +56 -0
  254. data/templates/cat1/r3/_reporting_parameters.cat1.erb +31 -0
  255. data/templates/cat1/r3/_result_value.cat1.erb +28 -0
  256. data/templates/{cat3/_telecom.cat3.erb → cat1/r3/_telecom.cat1.erb} +0 -0
  257. data/templates/cat1/r3/show.cat1.erb +183 -0
  258. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.1.cat1.erb +14 -0
  259. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.103.cat1.erb +17 -0
  260. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.105.cat1.erb +68 -0
  261. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.12.cat1.erb +53 -0
  262. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.135.cat1.erb +71 -0
  263. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.136.cat1.erb +52 -0
  264. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.140.cat1.erb +39 -0
  265. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +23 -0
  266. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.18.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.18.cat1.erb} +3 -3
  267. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.2.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.2.cat1.erb} +2 -2
  268. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.22.cat1.erb +30 -0
  269. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.23.cat1.erb +116 -0
  270. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.26.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.26.cat1.erb} +4 -2
  271. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.3.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.3.cat1.erb} +2 -2
  272. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +24 -0
  273. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.32.cat1.erb +21 -0
  274. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +22 -0
  275. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.38.cat1.erb +21 -0
  276. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.4.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.4.cat1.erb} +2 -2
  277. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.41.cat1.erb +45 -0
  278. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.42.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.42.cat1.erb} +4 -4
  279. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.43.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.43.cat1.erb} +3 -3
  280. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.44.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.44.cat1.erb} +3 -3
  281. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.45.cat1.erb +35 -0
  282. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.46.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.46.cat1.erb} +4 -4
  283. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +47 -0
  284. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +14 -0
  285. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.54.cat1.erb +32 -0
  286. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.55.cat1.erb +18 -0
  287. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.57.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.57.cat1.erb} +3 -3
  288. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.59.cat1.erb +22 -0
  289. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.62.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.62.cat1.erb} +5 -5
  290. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.63.cat1.erb +21 -0
  291. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.64.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.64.cat1.erb} +7 -7
  292. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.69.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb} +2 -2
  293. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.7.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.7.cat1.erb} +12 -9
  294. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.81.cat1.erb +33 -0
  295. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.82.cat1.erb +33 -0
  296. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.9.cat1.erb +41 -0
  297. data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.28.3.6.cat1.erb +17 -0
  298. data/templates/cat1/r3_1/_address.cat1.erb +9 -0
  299. data/templates/cat1/r3_1/_author.cat1.erb +28 -0
  300. data/templates/cat1/r3_1/_fulfills.cat1.erb +14 -0
  301. data/templates/cat1/r3_1/_id.cat1.erb +1 -0
  302. data/templates/cat1/r3_1/_measures.cat1.erb +93 -0
  303. data/templates/cat1/r3_1/_medication_details.cat1.erb +16 -0
  304. data/templates/cat1/r3_1/_medication_dispense.cat1.erb +22 -0
  305. data/templates/cat1/r3_1/_ordinality.cat1.erb +10 -0
  306. data/templates/cat1/r3_1/_organization.cat1.erb +9 -0
  307. data/templates/cat1/r3_1/_patient_data.cat1.erb +17 -0
  308. data/templates/cat1/r3_1/_providers.cat1.erb +76 -0
  309. data/templates/cat1/r3_1/_reason.cat1.erb +34 -0
  310. data/templates/cat1/r3_1/_record_target.cat1.erb +56 -0
  311. data/templates/cat1/r3_1/_reporting_parameters.cat1.erb +31 -0
  312. data/templates/cat1/r3_1/_result_value.cat1.erb +28 -0
  313. data/templates/cat1/r3_1/_telecom.cat1.erb +1 -0
  314. data/templates/cat1/r3_1/show.cat1.erb +183 -0
  315. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.1.cat1.erb +14 -0
  316. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.103.cat1.erb +17 -0
  317. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.105.cat1.erb +68 -0
  318. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.12.cat1.erb +53 -0
  319. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.135.cat1.erb +75 -0
  320. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.136.cat1.erb +52 -0
  321. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.140.cat1.erb +39 -0
  322. data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.59.cat1.erb → r4/_2.16.840.1.113883.10.20.24.3.144.cat1.erb} +6 -6
  323. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.145.cat1.erb +24 -0
  324. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +23 -0
  325. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.18.cat1.erb +25 -0
  326. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.2.cat1.erb +29 -0
  327. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.22.cat1.erb +30 -0
  328. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.23.cat1.erb +116 -0
  329. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.3.cat1.erb +25 -0
  330. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +24 -0
  331. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.32.cat1.erb +21 -0
  332. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +22 -0
  333. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.38.cat1.erb +21 -0
  334. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.4.cat1.erb +29 -0
  335. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.41.cat1.erb +45 -0
  336. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.42.cat1.erb +38 -0
  337. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.43.cat1.erb +24 -0
  338. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.44.cat1.erb +25 -0
  339. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.45.cat1.erb +35 -0
  340. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.46.cat1.erb +30 -0
  341. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +47 -0
  342. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +14 -0
  343. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.54.cat1.erb +32 -0
  344. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.55.cat1.erb +18 -0
  345. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.57.cat1.erb +23 -0
  346. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.59.cat1.erb +22 -0
  347. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.62.cat1.erb +36 -0
  348. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.63.cat1.erb +21 -0
  349. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.64.cat1.erb +52 -0
  350. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.7.cat1.erb +33 -0
  351. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.81.cat1.erb +33 -0
  352. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.82.cat1.erb +33 -0
  353. data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.9.cat1.erb +41 -0
  354. data/templates/cat1/r4/_2.16.840.1.113883.10.20.28.3.6.cat1.erb +17 -0
  355. data/templates/cat1/r4/_address.cat1.erb +7 -0
  356. data/templates/cat1/r4/_author.cat1.erb +28 -0
  357. data/templates/cat1/r4/_fulfills.cat1.erb +14 -0
  358. data/templates/cat1/r4/_id.cat1.erb +1 -0
  359. data/templates/cat1/r4/_measures.cat1.erb +93 -0
  360. data/templates/cat1/r4/_medication_details.cat1.erb +16 -0
  361. data/templates/cat1/r4/_medication_dispense.cat1.erb +22 -0
  362. data/templates/cat1/r4/_ordinality.cat1.erb +10 -0
  363. data/templates/cat1/r4/_organization.cat1.erb +9 -0
  364. data/templates/cat1/r4/_patient_data.cat1.erb +17 -0
  365. data/templates/cat1/r4/_providers.cat1.erb +76 -0
  366. data/templates/cat1/r4/_reason.cat1.erb +34 -0
  367. data/templates/cat1/r4/_record_target.cat1.erb +54 -0
  368. data/templates/cat1/r4/_reporting_parameters.cat1.erb +31 -0
  369. data/templates/cat1/r4/_result_value.cat1.erb +28 -0
  370. data/templates/cat1/r4/_telecom.cat1.erb +1 -0
  371. data/templates/cat1/r4/show.cat1.erb +192 -0
  372. data/templates/cat3/{_address.cat3.erb → r1/_address.cat3.erb} +0 -0
  373. data/templates/cat3/r1/_author.cat3.erb +28 -0
  374. data/templates/cat3/{_continuous_variable_value.cat3.erb → r1/_continuous_variable_value.cat3.erb} +0 -0
  375. data/templates/cat3/r1/_id.cat3.erb +1 -0
  376. data/templates/cat3/{_measure_data.cat3.erb → r1/_measure_data.cat3.erb} +7 -6
  377. data/templates/cat3/{_organization.cat3.erb → r1/_organization.cat3.erb} +0 -0
  378. data/templates/cat3/{_performance_rate.cat3.erb → r1/_performance_rate.cat3.erb} +1 -3
  379. data/templates/cat3/{_providers.cat3.erb → r1/_providers.cat3.erb} +0 -0
  380. data/templates/cat3/{_reporting_parameters.cat3.erb → r1/_reporting_parameters.cat3.erb} +0 -0
  381. data/templates/cat3/{_supplemental_data.cat3.erb → r1/_supplemental_data.cat3.erb} +2 -0
  382. data/templates/cat3/r1/_telecom.cat3.erb +1 -0
  383. data/templates/cat3/{show.cat3.erb → r1/show.cat3.erb} +5 -5
  384. data/templates/cat3/r1_1/_address.cat3.erb +9 -0
  385. data/templates/cat3/r1_1/_author.cat3.erb +28 -0
  386. data/templates/cat3/r1_1/_continuous_variable_value.cat3.erb +20 -0
  387. data/templates/cat3/r1_1/_id.cat3.erb +1 -0
  388. data/templates/cat3/r1_1/_measure_data.cat3.erb +136 -0
  389. data/templates/cat3/r1_1/_organization.cat3.erb +6 -0
  390. data/templates/cat3/r1_1/_performance_rate.cat3.erb +18 -0
  391. data/templates/{cat1/_providers.cat1.erb → cat3/r1_1/_providers.cat3.erb} +18 -18
  392. data/templates/{cat1/_reporting_parameters.cat1.erb → cat3/r1_1/_reporting_parameters.cat3.erb} +5 -1
  393. data/templates/cat3/r1_1/_supplemental_data.cat3.erb +38 -0
  394. data/templates/cat3/r1_1/_telecom.cat3.erb +1 -0
  395. data/templates/cat3/r1_1/show.cat3.erb +150 -0
  396. data/templates/cat3/r2/_address.cat3.erb +9 -0
  397. data/templates/cat3/r2/_author.cat3.erb +28 -0
  398. data/templates/cat3/r2/_continuous_variable_value.cat3.erb +20 -0
  399. data/templates/cat3/r2/_id.cat3.erb +1 -0
  400. data/templates/cat3/r2/_measure_data.cat3.erb +136 -0
  401. data/templates/cat3/r2/_organization.cat3.erb +6 -0
  402. data/templates/cat3/r2/_performance_rate.cat3.erb +19 -0
  403. data/templates/cat3/r2/_providers.cat3.erb +57 -0
  404. data/templates/cat3/r2/_reporting_parameters.cat3.erb +29 -0
  405. data/templates/cat3/r2/_supplemental_data.cat3.erb +38 -0
  406. data/templates/cat3/r2/_telecom.cat3.erb +1 -0
  407. data/templates/cat3/r2/show.cat3.erb +150 -0
  408. data/templates/cat3/r2_1/_address.cat3.erb +9 -0
  409. data/templates/cat3/r2_1/_author.cat3.erb +28 -0
  410. data/templates/cat3/r2_1/_continuous_variable_value.cat3.erb +20 -0
  411. data/templates/cat3/r2_1/_id.cat3.erb +1 -0
  412. data/templates/cat3/r2_1/_measure_data.cat3.erb +136 -0
  413. data/templates/cat3/r2_1/_organization.cat3.erb +6 -0
  414. data/templates/cat3/r2_1/_performance_rate.cat3.erb +19 -0
  415. data/templates/cat3/r2_1/_providers.cat3.erb +57 -0
  416. data/templates/cat3/r2_1/_reporting_parameters.cat3.erb +20 -0
  417. data/templates/cat3/r2_1/_reporting_parameters_act.cat3.erb +10 -0
  418. data/templates/cat3/r2_1/_supplemental_data.cat3.erb +38 -0
  419. data/templates/cat3/r2_1/_telecom.cat3.erb +1 -0
  420. data/templates/cat3/r2_1/show.cat3.erb +153 -0
  421. data/templates/ccda/_medical_equipment.ccda.erb +1 -1
  422. data/templates/ccda/_social_history.ccda.erb +2 -2
  423. data/templates/ccda/_vital_signs.ccda.erb +1 -1
  424. data/templates/html/_entries_by_section.html.erb +1 -1
  425. metadata +425 -153
  426. data/lib/health-data-standards/import/cat1/procedure_importer.rb +0 -42
  427. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.11.cat1.erb +0 -55
  428. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.13.cat1.erb +0 -38
  429. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +0 -22
  430. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +0 -22
  431. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +0 -20
  432. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +0 -27
  433. data/templates/cat1/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +0 -13
  434. data/templates/cat1/_reason.cat1.erb +0 -23
@@ -0,0 +1,57 @@
1
+ <documentationOf typeCode="DOC">
2
+ <serviceEvent classCode="PCPR"> <!-- care provision -->
3
+ <% if providers.empty? -%>
4
+ <!-- No provider data found in the patient record
5
+ putting in a fake provider -->
6
+ <effectiveTime>
7
+ <low value="20020716"/>
8
+ <high value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
9
+ </effectiveTime>
10
+ <!-- You can include multiple performers, each with an NPI, TIN, CCN. -->
11
+ <performer typeCode="PRF">
12
+ <time>
13
+ <low value="20020716"/>
14
+ <high value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
15
+ </time>
16
+ <assignedEntity>
17
+ <!-- This is the provider NPI -->
18
+ <id root="2.16.840.1.113883.4.6" extension="111111111" />
19
+ <representedOrganization>
20
+ <!-- This is the organization TIN -->
21
+ <id root="2.16.840.1.113883.4.2" extension="1234567" />
22
+ <!-- This is the organization CCN -->
23
+ <id root="2.16.840.1.113883.4.336" extension="54321" />
24
+ </representedOrganization>
25
+ </assignedEntity>
26
+ </performer>
27
+ <% else -%>
28
+ <% providers.each do |prov| -%>
29
+ <effectiveTime>
30
+ <low value= "<%= start_date.utc.to_formatted_s(:number) %>" />
31
+ <high value= "<%= end_date.utc.to_formatted_s(:number) %>" />
32
+ </effectiveTime>
33
+ <!-- You can include multiple performers, each with an NPI, TIN, CCN. -->
34
+ <performer typeCode="PRF">
35
+ <time>
36
+ <low value="<%= start_date.utc.to_formatted_s(:number) %>" />
37
+ <high value="<%= end_date.utc.to_formatted_s(:number) %>" />
38
+ </time>
39
+ <assignedEntity>
40
+ <% prov.cda_identifiers.each do |cda_id| -%>
41
+ <% unless cda_id.root.eql? '2.16.840.1.113883.4.2' -%>
42
+ <id root="<%= cda_id.root %>" extension="<%= cda_id.extension %>" />
43
+ <% end -%>
44
+ <% end -%>
45
+ <representedOrganization>
46
+ <% prov.cda_identifiers.each do |cda_id| -%>
47
+ <% if cda_id.root.eql?('2.16.840.1.113883.4.2') -%>
48
+ <id root="2.16.840.1.113883.4.2" extension="<%= cda_id.extension %>" />
49
+ <% end -%>
50
+ <% end -%>
51
+ </representedOrganization>
52
+ </assignedEntity>
53
+ </performer>
54
+ <% end -%>
55
+ <% end -%>
56
+ </serviceEvent>
57
+ </documentationOf>
@@ -0,0 +1,20 @@
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
+
6
+ <!-- This is the templateId for the QRDA III Reporting Parameters Section -->
7
+ <templateId root="2.16.840.1.113883.10.20.27.2.2"/>
8
+
9
+ <code code="55187-9" codeSystem="2.16.840.1.113883.6.1"/>
10
+ <title>Reporting Parameters</title>
11
+ <text>
12
+ <list>
13
+ <item>Reporting period: <%= start_date.to_formatted_s(:long_ordinal) %> - <%= end_date.to_formatted_s(:long_ordinal) %></item>
14
+ </list>
15
+ </text>
16
+ <entry typeCode="DRIV">
17
+ <%== render :partial => 'reporting_parameters_act', :locals => {:start_date => start_date, :end_date => end_date} %>
18
+ </entry>
19
+ </section>
20
+ </component>
@@ -0,0 +1,10 @@
1
+ <act classCode="ACT" moodCode="EVN">
2
+ <!-- This is the templateId for Reporting Parameters Act -->
3
+ <templateId root="2.16.840.1.113883.10.20.17.3.8"/>
4
+ <id extension="<%= identifier_for([start_date, end_date]) %>" />
5
+ <code code="252116004" codeSystem="2.16.840.1.113883.6.96" displayName="Observation Parameters"/>
6
+ <effectiveTime>
7
+ <low value="<%= start_date.to_formatted_s(:number) %>"/>
8
+ <high value="<%= end_date.to_formatted_s(:number) %>"/>
9
+ </effectiveTime>
10
+ </act>
@@ -0,0 +1,38 @@
1
+ <!-- Supplemental Data Template -->
2
+
3
+ <entryRelationship typeCode="COMP">
4
+ <observation classCode="OBS" moodCode="EVN">
5
+ <!-- <%= template_name %> -->
6
+ <% template_ids.each do |tid| %>
7
+ <templateId root="<%= tid %>" extension="<%= extension %>"/>
8
+ <% end %>
9
+ <id nullFlavor="NA" />
10
+ <code code="<%= supplemental_data_code %>"
11
+ codeSystem="<%= supplemental_data_code_system %>"/>
12
+ <statusCode code="completed"/>
13
+ <% if supplemental_data_value_code == "" || supplemental_data_value_code == "UNK" -%>
14
+ <value xsi:type="CD"
15
+ nullFlavor="UNK" />
16
+ <% else -%>
17
+
18
+ <value xsi:type="CD"
19
+ code="<%= supplemental_data_value_code %>"
20
+ codeSystem="<%= supplemental_data_value_code_system %>"/>
21
+ <% end %>
22
+ <entryRelationship typeCode="SUBJ" inversionInd="true">
23
+ <!-- Aggregate Count template -->
24
+ <observation classCode="OBS" moodCode="EVN">
25
+ <templateId root="2.16.840.1.113883.10.20.27.3.3"/>
26
+ <code code="MSRAGG"
27
+ displayName="rate aggregation"
28
+ codeSystem="2.16.840.1.113883.5.4"
29
+ codeSystemName="ActCode"/>
30
+ <value xsi:type="INT" value="<%= count.round %>"/>
31
+ <methodCode code="COUNT"
32
+ displayName="Count"
33
+ codeSystem="2.16.840.1.113883.5.84"
34
+ codeSystemName="ObservationMethod"/>
35
+ </observation>
36
+ </entryRelationship>
37
+ </observation>
38
+ </entryRelationship>
@@ -0,0 +1 @@
1
+ <telecom use="<%=telecom.use%>" value="tel:+<%=telecom.value%>" />
@@ -0,0 +1,153 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <ClinicalDocument xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3
+ xmlns="urn:hl7-org:v3"
4
+ xmlns:cda="urn:hl7-org:v3">
5
+
6
+ <!--
7
+ ********************************************************
8
+ CDA Header
9
+ ********************************************************
10
+ -->
11
+ <realmCode code="US"/>
12
+ <typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
13
+ <!-- QRDA Category III template ID (this template ID differs from QRDA III comment only template ID). -->
14
+ <templateId root="2.16.840.1.113883.10.20.27.1.1" extension="2017-06-01"/>
15
+ <%== render :partial=>"id", :locals=>{identifier: header.identifier} %>
16
+
17
+ <!-- SHALL QRDA III document type code -->
18
+ <code code="55184-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC"
19
+ displayName="Quality Reporting Document Architecture Calculated Summary Report"/>
20
+ <!-- SHALL Title, SHOULD have this content -->
21
+ <title>QRDA Calculated Summary Report</title>
22
+ <!-- SHALL -->
23
+ <effectiveTime value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
24
+ <confidentialityCode codeSystem="2.16.840.1.113883.5.25" code="N"/>
25
+ <languageCode code="en"/>
26
+ <!-- SHOULD The version of the file being submitted. -->
27
+ <versionNumber value="1"/>
28
+ <!-- SHALL contain recordTarget and ID - but ID is nulled to NA. This is an aggregate summary report. Therefore CDA's required patient identifier is nulled. -->
29
+ <recordTarget>
30
+ <patientRole>
31
+ <id nullFlavor="NA"/>
32
+ </patientRole>
33
+ </recordTarget>
34
+
35
+ <%== render :partial=>"author", :collection=>header.authors %>
36
+ <!-- SHALL have 1..* author. MAY be device or person.
37
+ The author of the CDA document in this example is a device at a data submission vendor/registry. -->
38
+
39
+ <!-- The custodian of the CDA document is the same as the legal authenticator in this
40
+ example and represents the reporting organization. -->
41
+ <!-- SHALL -->
42
+ <custodian>
43
+ <assignedCustodian>
44
+ <%== render :partial=>"organization", :locals=>{organization: header.custodian.organization, tag_name: "representedCustodianOrganization"} %>
45
+ </assignedCustodian>
46
+ </custodian>
47
+ <!-- The legal authenticator of the CDA document is a single person who is at the
48
+ same organization as the custodian in this example. This element must be present. -->
49
+ <!-- SHALL -->
50
+ <legalAuthenticator>
51
+ <!-- SHALL -->
52
+ <time value="<%= header.legal_authenticator.time.utc.to_formatted_s(:number) %>"/>
53
+ <!-- SHALL -->
54
+ <signatureCode code="S"/>
55
+ <assignedEntity>
56
+ <!-- SHALL ID -->
57
+ <%== render :partial=>"id", :collection=>header.legal_authenticator.ids, :id=>"identifier" %>
58
+ <%== render :partial=>"address" , :collection=>header.legal_authenticator.addresses %>
59
+ <assignedPerson>
60
+ <name>
61
+ <given><%= header.legal_authenticator.person.given %></given>
62
+ <family><%= header.legal_authenticator.person.family %></family>
63
+ </name>
64
+ </assignedPerson>
65
+
66
+ <%== render :partial=>"organization", :locals=>{organization: header.legal_authenticator.organization, tag_name: "representedOrganization"} %>
67
+ </assignedEntity>
68
+ </legalAuthenticator>
69
+
70
+ <%== render :partial=>"providers", :locals=>{providers: header.performers, start_date: start_date, end_date: end_date} %>
71
+
72
+
73
+ <!--
74
+ ********************************************************
75
+ CDA Body
76
+ ********************************************************
77
+ -->
78
+ <component>
79
+ <structuredBody>
80
+ <!--
81
+ ********************************************************
82
+ QRDA Category III Reporting Parameters
83
+ ********************************************************
84
+ -->
85
+ <%== render :partial => 'reporting_parameters', :locals => {:start_date => start_date, :end_date => end_date} %>
86
+ <!--
87
+ ********************************************************
88
+ Measure Section
89
+ ********************************************************
90
+ -->
91
+ <component>
92
+ <section>
93
+ <!-- Implied template Measure Section templateId -->
94
+ <templateId root="2.16.840.1.113883.10.20.24.2.2"/>
95
+ <!-- In this case the query is using an eMeasure -->
96
+ <!-- QRDA Category III Measure Section template -->
97
+ <templateId root="2.16.840.1.113883.10.20.27.2.1" extension="2017-06-01"/>
98
+ <code code="55186-1" codeSystem="2.16.840.1.113883.6.1"/>
99
+ <title>Measure Section</title>
100
+ <text>
101
+
102
+ </text>
103
+ <% measures.each do |measure| %>
104
+ <entry>
105
+ <organizer classCode="CLUSTER" moodCode="EVN">
106
+ <!-- Implied template Measure Reference templateId -->
107
+ <templateId root="2.16.840.1.113883.10.20.24.3.98"/>
108
+ <!-- SHALL 1..* (one for each referenced measure) Measure Reference and Results template -->
109
+ <templateId root="2.16.840.1.113883.10.20.27.3.1" extension="2016-09-01"/>
110
+ <id extension="<%= measure['id'] || UUID.generate %>"/>
111
+ <statusCode code="completed"/>
112
+ <reference typeCode="REFR">
113
+ <externalDocument classCode="DOC" moodCode="EVN">
114
+ <!-- SHALL: required Id but not restricted to the eMeasure Document/Id-->
115
+ <!-- QualityMeasureDocument/id This is the version specific identifier for eMeasure -->
116
+ <id root="2.16.840.1.113883.4.738" extension="<%= measure['hqmf_id'] %>"/>
117
+
118
+ <!-- SHOULD This is the title of the eMeasure -->
119
+ <text><%= measure['name'] %></text>
120
+ <!-- SHOULD: setId is the eMeasure version neutral id -->
121
+ <setId root="<%= measure['hqmf_set_id'] %>"/>
122
+ <!-- This is the sequential eMeasure Version number -->
123
+ <versionNumber value="1"/>
124
+ </externalDocument>
125
+ </reference>
126
+
127
+ <% result = results[measure['hqmf_id']]
128
+ unless result.is_cv?
129
+ result.population_groups.each do |pg|
130
+ -%>
131
+ <component>
132
+ <%== render :partial => 'performance_rate', :locals => {:population_group => pg, :qrda3_version => qrda3_version} %>
133
+ </component>
134
+ <% end
135
+ end -%>
136
+ <% result.populations.each do |pop|
137
+ unless pop.type == 'OBSERV' -%>
138
+ <component>
139
+ <%== render :partial => 'measure_data', :locals => {:aggregate_count => result, :population => pop, :qrda3_version => qrda3_version} %>
140
+ </component>
141
+ <% end
142
+ end -%>
143
+ </organizer>
144
+ </entry>
145
+ <% end %>
146
+ <entry>
147
+ <%== render :partial => 'reporting_parameters_act', :locals => {:start_date => start_date, :end_date => end_date} %>
148
+ </entry>
149
+ </section>
150
+ </component>
151
+ </structuredBody>
152
+ </component>
153
+ </ClinicalDocument>
@@ -21,7 +21,7 @@
21
21
  <addr/>
22
22
  <telecom/>
23
23
  <playingDevice>
24
- <%== code_display(entry, {:preferred_code_sets => ['SNOMED-CT']}) %>
24
+ <%== code_display(entry, {'preferred_code_sets' => ['SNOMED-CT']}) %>
25
25
  </playingDevice>
26
26
  <% if entry.manufacturer %>
27
27
  <scopingEntity>
@@ -15,8 +15,8 @@
15
15
  <%== code_display(entry, {:preferred_code_sets => ['SNOMED-CT']}) %>
16
16
  <statusCode code="completed"/>
17
17
  <effectiveTime <%= value_or_null_flavor(entry.as_point_in_time) %>/>
18
- </observation>l
18
+ </observation>
19
19
  </entry>
20
20
  <% end -%>
21
21
  </section>
22
- </component>
22
+ </component>
@@ -20,7 +20,7 @@
20
20
  <templateId root="2.16.840.1.113883.10.20.22.4.27"/>
21
21
  <!-- Result observation template -->
22
22
  <id root="<%= UUID.generate %>"/>
23
- <%== code_display(entry, {'preferred_code_sets' => ['LOINC','SNOMED']}) %>
23
+ <%== code_display(entry, {'preferred_code_sets' => ['LOINC','SNOMED-CT']}) %>
24
24
  <text>
25
25
  <reference value="vitals-desc-<%= i %>"/>
26
26
  </text>
@@ -4,7 +4,7 @@
4
4
  udcs = nil
5
5
  udcs_entries = nil
6
6
  if measures.length > 0
7
- udcs = unique_data_criteria(measures)
7
+ udcs = unique_data_criteria(measures, false)
8
8
  udcs_entries = udcs.collect{|dc| entries_for_data_criteria(dc['data_criteria'],patient)}
9
9
  udcs_entries.flatten!
10
10
  udcs_entries.uniq!
metadata CHANGED
@@ -1,203 +1,214 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health-data-standards
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.1
4
+ version: 3.7.0
5
5
  platform: ruby
6
6
  authors:
7
- - Andy Gregorowicz
8
- - Sam Sayer
9
- - Marc Hadley
10
- - Rob Dingwell
11
- - Andre Quina
12
- autorequire:
7
+ - The MITRE Corporation
8
+ autorequire:
13
9
  bindir: bin
14
10
  cert_chain: []
15
- date: 2015-07-22 00:00:00.000000000 Z
11
+ date: 2017-11-08 00:00:00.000000000 Z
16
12
  dependencies:
17
13
  - !ruby/object:Gem::Dependency
14
+ name: rest-client
18
15
  requirement: !ruby/object:Gem::Requirement
19
16
  requirements:
20
- - - ~>
17
+ - - "~>"
21
18
  - !ruby/object:Gem::Version
22
19
  version: 1.8.0
23
- name: rest-client
24
- prerelease: false
25
20
  type: :runtime
21
+ prerelease: false
26
22
  version_requirements: !ruby/object:Gem::Requirement
27
23
  requirements:
28
- - - ~>
24
+ - - "~>"
29
25
  - !ruby/object:Gem::Version
30
26
  version: 1.8.0
31
27
  - !ruby/object:Gem::Dependency
28
+ name: erubis
32
29
  requirement: !ruby/object:Gem::Requirement
33
30
  requirements:
34
- - - ~>
31
+ - - "~>"
35
32
  - !ruby/object:Gem::Version
36
33
  version: 2.7.0
37
- name: erubis
38
- prerelease: false
39
34
  type: :runtime
35
+ prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
37
  requirements:
42
- - - ~>
38
+ - - "~>"
43
39
  - !ruby/object:Gem::Version
44
40
  version: 2.7.0
45
41
  - !ruby/object:Gem::Dependency
42
+ name: mongoid
46
43
  requirement: !ruby/object:Gem::Requirement
47
44
  requirements:
48
- - - ~>
45
+ - - "~>"
49
46
  - !ruby/object:Gem::Version
50
- version: 4.0.0
51
- name: mongoid
52
- prerelease: false
47
+ version: 5.0.0
53
48
  type: :runtime
49
+ prerelease: false
54
50
  version_requirements: !ruby/object:Gem::Requirement
55
51
  requirements:
56
- - - ~>
52
+ - - "~>"
57
53
  - !ruby/object:Gem::Version
58
- version: 4.0.0
54
+ version: 5.0.0
59
55
  - !ruby/object:Gem::Dependency
56
+ name: mongoid-tree
60
57
  requirement: !ruby/object:Gem::Requirement
61
58
  requirements:
62
- - - ~>
59
+ - - "~>"
63
60
  - !ruby/object:Gem::Version
64
- version: 1.0.4
65
- name: mongoid-tree
66
- prerelease: false
61
+ version: 2.0.0
67
62
  type: :runtime
63
+ prerelease: false
68
64
  version_requirements: !ruby/object:Gem::Requirement
69
65
  requirements:
70
- - - ~>
66
+ - - "~>"
71
67
  - !ruby/object:Gem::Version
72
- version: 1.0.4
68
+ version: 2.0.0
73
69
  - !ruby/object:Gem::Dependency
70
+ name: activesupport
74
71
  requirement: !ruby/object:Gem::Requirement
75
72
  requirements:
76
- - - ~>
73
+ - - "~>"
77
74
  - !ruby/object:Gem::Version
78
- version: 4.1.1
79
- name: activesupport
80
- prerelease: false
75
+ version: 4.2.0
81
76
  type: :runtime
77
+ prerelease: false
82
78
  version_requirements: !ruby/object:Gem::Requirement
83
79
  requirements:
84
- - - ~>
80
+ - - "~>"
85
81
  - !ruby/object:Gem::Version
86
- version: 4.1.1
82
+ version: 4.2.0
87
83
  - !ruby/object:Gem::Dependency
84
+ name: protected_attributes
88
85
  requirement: !ruby/object:Gem::Requirement
89
86
  requirements:
90
- - - ~>
87
+ - - "~>"
91
88
  - !ruby/object:Gem::Version
92
89
  version: 1.0.5
93
- name: protected_attributes
94
- prerelease: false
95
90
  type: :runtime
91
+ prerelease: false
96
92
  version_requirements: !ruby/object:Gem::Requirement
97
93
  requirements:
98
- - - ~>
94
+ - - "~>"
99
95
  - !ruby/object:Gem::Version
100
96
  version: 1.0.5
101
97
  - !ruby/object:Gem::Dependency
98
+ name: uuid
102
99
  requirement: !ruby/object:Gem::Requirement
103
100
  requirements:
104
- - - ~>
101
+ - - "~>"
105
102
  - !ruby/object:Gem::Version
106
103
  version: 2.3.7
107
- name: uuid
108
- prerelease: false
109
104
  type: :runtime
105
+ prerelease: false
110
106
  version_requirements: !ruby/object:Gem::Requirement
111
107
  requirements:
112
- - - ~>
108
+ - - "~>"
113
109
  - !ruby/object:Gem::Version
114
110
  version: 2.3.7
115
111
  - !ruby/object:Gem::Dependency
112
+ name: builder
116
113
  requirement: !ruby/object:Gem::Requirement
117
114
  requirements:
118
- - - ~>
115
+ - - "~>"
119
116
  - !ruby/object:Gem::Version
120
117
  version: '3.1'
121
- name: builder
122
- prerelease: false
123
118
  type: :runtime
119
+ prerelease: false
124
120
  version_requirements: !ruby/object:Gem::Requirement
125
121
  requirements:
126
- - - ~>
122
+ - - "~>"
127
123
  - !ruby/object:Gem::Version
128
124
  version: '3.1'
129
125
  - !ruby/object:Gem::Dependency
126
+ name: nokogiri
130
127
  requirement: !ruby/object:Gem::Requirement
131
128
  requirements:
132
- - - ~>
129
+ - - "~>"
133
130
  - !ruby/object:Gem::Version
134
- version: 1.6.6.2
135
- name: nokogiri
136
- prerelease: false
131
+ version: 1.8.1
137
132
  type: :runtime
133
+ prerelease: false
138
134
  version_requirements: !ruby/object:Gem::Requirement
139
135
  requirements:
140
- - - ~>
136
+ - - "~>"
141
137
  - !ruby/object:Gem::Version
142
- version: 1.6.6.2
138
+ version: 1.8.1
143
139
  - !ruby/object:Gem::Dependency
140
+ name: highline
144
141
  requirement: !ruby/object:Gem::Requirement
145
142
  requirements:
146
- - - ~>
143
+ - - "~>"
147
144
  - !ruby/object:Gem::Version
148
145
  version: 1.7.0
149
- name: highline
150
- prerelease: false
151
146
  type: :runtime
147
+ prerelease: false
152
148
  version_requirements: !ruby/object:Gem::Requirement
153
149
  requirements:
154
- - - ~>
150
+ - - "~>"
155
151
  - !ruby/object:Gem::Version
156
152
  version: 1.7.0
157
153
  - !ruby/object:Gem::Dependency
154
+ name: rubyzip
158
155
  requirement: !ruby/object:Gem::Requirement
159
156
  requirements:
160
- - - '='
157
+ - - "~>"
161
158
  - !ruby/object:Gem::Version
162
- version: 0.9.9
163
- name: rubyzip
159
+ version: 1.2.1
160
+ type: :runtime
164
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'
165
174
  type: :runtime
175
+ prerelease: false
166
176
  version_requirements: !ruby/object:Gem::Requirement
167
177
  requirements:
168
- - - '='
178
+ - - "~>"
169
179
  - !ruby/object:Gem::Version
170
- version: 0.9.9
180
+ version: '0.3'
171
181
  - !ruby/object:Gem::Dependency
182
+ name: log4r
172
183
  requirement: !ruby/object:Gem::Requirement
173
184
  requirements:
174
- - - ~>
185
+ - - "~>"
175
186
  - !ruby/object:Gem::Version
176
187
  version: 1.1.10
177
- name: log4r
178
- prerelease: false
179
188
  type: :runtime
189
+ prerelease: false
180
190
  version_requirements: !ruby/object:Gem::Requirement
181
191
  requirements:
182
- - - ~>
192
+ - - "~>"
183
193
  - !ruby/object:Gem::Version
184
194
  version: 1.1.10
185
195
  - !ruby/object:Gem::Dependency
196
+ name: memoist
186
197
  requirement: !ruby/object:Gem::Requirement
187
198
  requirements:
188
- - - ~>
199
+ - - "~>"
189
200
  - !ruby/object:Gem::Version
190
201
  version: 0.9.1
191
- name: memoist
192
- prerelease: false
193
202
  type: :runtime
203
+ prerelease: false
194
204
  version_requirements: !ruby/object:Gem::Requirement
195
205
  requirements:
196
- - - ~>
206
+ - - "~>"
197
207
  - !ruby/object:Gem::Version
198
208
  version: 0.9.1
199
- description: A library for generating and consuming various healthcare related formats. These include HITSP C32, QRDA Category I, and QRDA Category III.
200
- email: talk@projectpophealth.org
209
+ description: A library for generating and consuming various healthcare related formats.
210
+ These include HITSP C32, QRDA Category I, and QRDA Category III.
211
+ email: tacoma-list@lists.mitre.org
201
212
  executables: []
202
213
  extensions: []
203
214
  extra_rdoc_files: []
@@ -212,6 +223,7 @@ files:
212
223
  - lib/health-data-standards/export/cat_3.rb
213
224
  - lib/health-data-standards/export/ccda.rb
214
225
  - lib/health-data-standards/export/csv.rb
226
+ - lib/health-data-standards/export/exceptions.rb
215
227
  - lib/health-data-standards/export/hdata/metadata.rb
216
228
  - lib/health-data-standards/export/helper/cat1_view_helper.rb
217
229
  - lib/health-data-standards/export/helper/html_view_helper.rb
@@ -232,26 +244,36 @@ files:
232
244
  - lib/health-data-standards/import/c32/immunization_importer.rb
233
245
  - lib/health-data-standards/import/c32/insurance_provider_importer.rb
234
246
  - lib/health-data-standards/import/c32/patient_importer.rb
247
+ - lib/health-data-standards/import/cat1/clinical_trial_participant_importer.rb
248
+ - lib/health-data-standards/import/cat1/device_order_importer.rb
235
249
  - lib/health-data-standards/import/cat1/diagnosis_active_importer.rb
250
+ - lib/health-data-standards/import/cat1/diagnosis_importer.rb
236
251
  - lib/health-data-standards/import/cat1/diagnosis_inactive_importer.rb
237
252
  - lib/health-data-standards/import/cat1/diagnostic_study_order_importer.rb
238
253
  - lib/health-data-standards/import/cat1/ecog_status_importer.rb
254
+ - lib/health-data-standards/import/cat1/encounter_order_act_importer.rb
239
255
  - lib/health-data-standards/import/cat1/encounter_order_importer.rb
256
+ - lib/health-data-standards/import/cat1/encounter_performed_act_importer.rb
240
257
  - lib/health-data-standards/import/cat1/encounter_performed_importer.rb
241
258
  - lib/health-data-standards/import/cat1/entry_package.rb
242
259
  - lib/health-data-standards/import/cat1/gestational_age_importer.rb
260
+ - lib/health-data-standards/import/cat1/immunization_administered_importer.rb
243
261
  - lib/health-data-standards/import/cat1/insurance_provider_importer.rb
244
262
  - lib/health-data-standards/import/cat1/lab_order_importer.rb
245
263
  - lib/health-data-standards/import/cat1/lab_result_importer.rb
246
264
  - lib/health-data-standards/import/cat1/medication_active_importer.rb
265
+ - lib/health-data-standards/import/cat1/medication_dispensed_act_importer.rb
247
266
  - lib/health-data-standards/import/cat1/medication_dispensed_importer.rb
248
267
  - lib/health-data-standards/import/cat1/patient_importer.rb
249
- - lib/health-data-standards/import/cat1/procedure_importer.rb
250
268
  - lib/health-data-standards/import/cat1/procedure_intolerance_importer.rb
251
269
  - lib/health-data-standards/import/cat1/procedure_order_importer.rb
252
270
  - lib/health-data-standards/import/cat1/procedure_performed_importer.rb
253
271
  - lib/health-data-standards/import/cat1/symptom_active_importer.rb
254
272
  - lib/health-data-standards/import/cat1/tobacco_use_importer.rb
273
+ - lib/health-data-standards/import/cat1/transfer_from_act_importer.rb
274
+ - lib/health-data-standards/import/cat1/transfer_from_importer.rb
275
+ - lib/health-data-standards/import/cat1/transfer_to_act_importer.rb
276
+ - lib/health-data-standards/import/cat1/transfer_to_importer.rb
255
277
  - lib/health-data-standards/import/ccda/allergy_importer.rb
256
278
  - lib/health-data-standards/import/ccda/care_goal_importer.rb
257
279
  - lib/health-data-standards/import/ccda/condition_importer.rb
@@ -265,6 +287,7 @@ files:
265
287
  - lib/health-data-standards/import/ccda/result_importer.rb
266
288
  - lib/health-data-standards/import/ccda/vital_sign_importer.rb
267
289
  - lib/health-data-standards/import/cda/allergy_importer.rb
290
+ - lib/health-data-standards/import/cda/communication_importer.rb
268
291
  - lib/health-data-standards/import/cda/condition_importer.rb
269
292
  - lib/health-data-standards/import/cda/encounter_importer.rb
270
293
  - lib/health-data-standards/import/cda/entry_finder.rb
@@ -282,8 +305,12 @@ files:
282
305
  - lib/health-data-standards/import/provider_import_utils.rb
283
306
  - lib/health-data-standards/models/address.rb
284
307
  - lib/health-data-standards/models/allergy.rb
308
+ - lib/health-data-standards/models/assessment.rb
309
+ - lib/health-data-standards/models/care_experience.rb
310
+ - lib/health-data-standards/models/care_goal.rb
285
311
  - lib/health-data-standards/models/cda_identifier.rb
286
312
  - lib/health-data-standards/models/coded_result_value.rb
313
+ - lib/health-data-standards/models/communication.rb
287
314
  - lib/health-data-standards/models/condition.rb
288
315
  - lib/health-data-standards/models/cqm/aggregate_objects.rb
289
316
  - lib/health-data-standards/models/cqm/bundle.rb
@@ -292,8 +319,10 @@ files:
292
319
  - lib/health-data-standards/models/cqm/prefilter.rb
293
320
  - lib/health-data-standards/models/cqm/query_cache.rb
294
321
  - lib/health-data-standards/models/encounter.rb
322
+ - lib/health-data-standards/models/encounter_principal_diagnosis.rb
295
323
  - lib/health-data-standards/models/entry.rb
296
324
  - lib/health-data-standards/models/facility.rb
325
+ - lib/health-data-standards/models/family_history.rb
297
326
  - lib/health-data-standards/models/fulfillment_history.rb
298
327
  - lib/health-data-standards/models/functional_status.rb
299
328
  - lib/health-data-standards/models/guarantor.rb
@@ -309,12 +338,14 @@ files:
309
338
  - lib/health-data-standards/models/metadata/pedigree.rb
310
339
  - lib/health-data-standards/models/order_information.rb
311
340
  - lib/health-data-standards/models/organization.rb
341
+ - lib/health-data-standards/models/patient_preference.rb
312
342
  - lib/health-data-standards/models/person.rb
313
343
  - lib/health-data-standards/models/personable.rb
314
344
  - lib/health-data-standards/models/physical_quantity_result_value.rb
315
345
  - lib/health-data-standards/models/procedure.rb
316
346
  - lib/health-data-standards/models/provider.rb
317
347
  - lib/health-data-standards/models/provider_performance.rb
348
+ - lib/health-data-standards/models/provider_preference.rb
318
349
  - lib/health-data-standards/models/qrda/author.rb
319
350
  - lib/health-data-standards/models/qrda/custodian.rb
320
351
  - lib/health-data-standards/models/qrda/device.rb
@@ -341,11 +372,14 @@ files:
341
372
  - lib/health-data-standards/util/hl7_helper.rb
342
373
  - lib/health-data-standards/util/hqmf_template_helper.rb
343
374
  - lib/health-data-standards/util/hqmf_template_oid_map.json
375
+ - lib/health-data-standards/util/hqmfr2_template_oid_map.json
376
+ - lib/health-data-standards/util/nlm_helper.rb
344
377
  - lib/health-data-standards/util/vs_api.rb
345
378
  - lib/health-data-standards/validate/base_validator.rb
346
379
  - lib/health-data-standards/validate/data_validator.rb
347
380
  - lib/health-data-standards/validate/measure_validator.rb
348
381
  - lib/health-data-standards/validate/performance_rate_validator.rb
382
+ - lib/health-data-standards/validate/qrda_qdm_template_validator.rb
349
383
  - lib/health-data-standards/validate/reported_result_extractor.rb
350
384
  - lib/health-data-standards/validate/schema_validator.rb
351
385
  - lib/health-data-standards/validate/schematron/c_processor.rb
@@ -382,6 +416,7 @@ files:
382
416
  - lib/hqmf-generator/supply_criteria.xml.erb
383
417
  - lib/hqmf-generator/template_id.xml.erb
384
418
  - lib/hqmf-generator/temporal_relationship.xml.erb
419
+ - lib/hqmf-generator/temporal_relationship_attribute.xml.erb
385
420
  - lib/hqmf-generator/value.xml.erb
386
421
  - lib/hqmf-generator/variable_criteria.xml.erb
387
422
  - lib/hqmf-model/attribute.rb
@@ -406,11 +441,20 @@ files:
406
441
  - lib/hqmf-parser/1.0/restriction.rb
407
442
  - lib/hqmf-parser/1.0/utilities.rb
408
443
  - lib/hqmf-parser/2.0/data_criteria.rb
444
+ - lib/hqmf-parser/2.0/data_criteria_helpers/dc_base_extract.rb
445
+ - lib/hqmf-parser/2.0/data_criteria_helpers/dc_definition_from_template_or_type_extract.rb
446
+ - lib/hqmf-parser/2.0/data_criteria_helpers/dc_post_processing.rb
447
+ - lib/hqmf-parser/2.0/data_criteria_helpers/dc_specific_occurrences_and_source_data_criteria_extract.rb
409
448
  - lib/hqmf-parser/2.0/document.rb
449
+ - lib/hqmf-parser/2.0/document_helpers/doc_population_helper.rb
450
+ - lib/hqmf-parser/2.0/document_helpers/doc_utilities.rb
451
+ - lib/hqmf-parser/2.0/field_value_helper.rb
410
452
  - lib/hqmf-parser/2.0/population_criteria.rb
411
453
  - lib/hqmf-parser/2.0/precondition.rb
454
+ - lib/hqmf-parser/2.0/source_data_criteria_helper.rb
412
455
  - lib/hqmf-parser/2.0/types.rb
413
456
  - lib/hqmf-parser/2.0/utilities.rb
457
+ - lib/hqmf-parser/2.0/value_set_helper.rb
414
458
  - lib/hqmf-parser/converter/pass1/data_criteria_converter.rb
415
459
  - lib/hqmf-parser/converter/pass1/document_converter.rb
416
460
  - lib/hqmf-parser/converter/pass1/population_criteria_converter.rb
@@ -456,12 +500,24 @@ files:
456
500
  - resources/schematron/iso-schematron-xslt2/sch-messages-fr.xhtml
457
501
  - resources/schematron/iso-schematron-xslt2/sch-messages-nl.xhtml
458
502
  - resources/schematron/iso-schematron-xslt2/schematron-skeleton-api.htm
459
- - resources/schematron/qrda/cat_1/CDAR2_QRDA_I_R1_D3_2015MAY_Schematron.sch
503
+ - resources/schematron/qrda/cat_1/HL7_CDAR2_QRDA_Category_I_2_12_16.sch
460
504
  - resources/schematron/qrda/cat_1/voc.xml
461
505
  - resources/schematron/qrda/cat_1_r2/QRDA Category I Release 2.sch
462
506
  - resources/schematron/qrda/cat_1_r2/voc.xml
507
+ - resources/schematron/qrda/cat_1_r3_1/HL7 QRDA Category I STU 3.1.sch
508
+ - resources/schematron/qrda/cat_1_r3_1/HL7 QRDA Category III STU 1.1.sch
509
+ - resources/schematron/qrda/cat_1_r3_1/QRDA Category I STU Release 3.1.sch
510
+ - resources/schematron/qrda/cat_1_r3_1/voc.xml
511
+ - resources/schematron/qrda/cat_1_r4/HL7 QRDA Category I STU 4.sch
512
+ - resources/schematron/qrda/cat_1_r4/voc.xml
463
513
  - resources/schematron/qrda/cat_3/QRDA Category III.sch
464
514
  - resources/schematron/qrda/cat_3/voc.xml
515
+ - resources/schematron/qrda/cat_3_r1_1/HL7 QRDA Category III STU 1.1.sch
516
+ - resources/schematron/qrda/cat_3_r1_1/voc.xml
517
+ - resources/schematron/qrda/cat_3_r2/HL7 QRDA Category III STU 2.sch
518
+ - resources/schematron/qrda/cat_3_r2/voc.xml
519
+ - resources/schematron/qrda/cat_3_r2_1/HL7 QRDA Category III STU 2.1.sch
520
+ - resources/schematron/qrda/cat_3_r2_1/voc.xml
465
521
  - templates/_author.hdata.erb
466
522
  - templates/_pedigree.hdata.erb
467
523
  - templates/c32/_allergies.c32.erb
@@ -481,79 +537,295 @@ files:
481
537
  - templates/c32/_social_history.c32.erb
482
538
  - templates/c32/_vital_signs.c32.erb
483
539
  - templates/c32/show.c32.erb
484
- - templates/cat1/_2.16.840.1.113883.10.20.22.4.85.cat1.erb
485
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.1.cat1.erb
486
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.101.cat1.erb
487
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.103.cat1.erb
488
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.105.cat1.erb
489
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.11.cat1.erb
490
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.12.cat1.erb
491
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.13.cat1.erb
492
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.14.cat1.erb
493
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.17.cat1.erb
494
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.18.cat1.erb
495
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.2.cat1.erb
496
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.20.cat1.erb
497
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.22.cat1.erb
498
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.23.cat1.erb
499
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.26.cat1.erb
500
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.28.cat1.erb
501
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.3.cat1.erb
502
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.31.cat1.erb
503
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.32.cat1.erb
504
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.34.cat1.erb
505
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.37.cat1.erb
506
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.38.cat1.erb
507
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.4.cat1.erb
508
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.40.cat1.erb
509
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.41.cat1.erb
510
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
511
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.43.cat1.erb
512
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.44.cat1.erb
513
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.45.cat1.erb
514
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.46.cat1.erb
515
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.47.cat1.erb
516
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.51.cat1.erb
517
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.54.cat1.erb
518
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.55.cat1.erb
519
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.57.cat1.erb
520
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.59.cat1.erb
521
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.62.cat1.erb
522
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.63.cat1.erb
523
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.64.cat1.erb
524
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
525
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb
526
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.7.cat1.erb
527
- - templates/cat1/_2.16.840.1.113883.10.20.24.3.76.cat1.erb
528
- - templates/cat1/_address.cat1.erb
529
- - templates/cat1/_author.cat1.erb
530
- - templates/cat1/_fulfills.cat1.erb
531
- - templates/cat1/_id.cat1.erb
532
- - templates/cat1/_measures.cat1.erb
533
- - templates/cat1/_medication_details.cat1.erb
534
- - templates/cat1/_medication_dispense.cat1.erb
535
- - templates/cat1/_ordinality.cat1.erb
536
- - templates/cat1/_organization.cat1.erb
537
- - templates/cat1/_patient_data.cat1.erb
538
- - templates/cat1/_providers.cat1.erb
539
- - templates/cat1/_reason.cat1.erb
540
- - templates/cat1/_record_target.cat1.erb
541
- - templates/cat1/_reporting_parameters.cat1.erb
542
- - templates/cat1/_result_value.cat1.erb
543
- - templates/cat1/_telecom.cat1.erb
544
- - templates/cat1/show.cat1.erb
545
- - templates/cat3/_address.cat3.erb
546
- - templates/cat3/_author.cat3.erb
547
- - templates/cat3/_continuous_variable_value.cat3.erb
548
- - templates/cat3/_id.cat3.erb
549
- - templates/cat3/_measure_data.cat3.erb
550
- - templates/cat3/_organization.cat3.erb
551
- - templates/cat3/_performance_rate.cat3.erb
552
- - templates/cat3/_providers.cat3.erb
553
- - templates/cat3/_reporting_parameters.cat3.erb
554
- - templates/cat3/_supplemental_data.cat3.erb
555
- - templates/cat3/_telecom.cat3.erb
556
- - templates/cat3/show.cat3.erb
540
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.22.4.85.cat1.erb
541
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.1.cat1.erb
542
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.101.cat1.erb
543
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.103.cat1.erb
544
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.105.cat1.erb
545
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.11.cat1.erb
546
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.12.cat1.erb
547
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.13.cat1.erb
548
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.135.cat1.erb
549
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.136.cat1.erb
550
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.14.cat1.erb
551
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.140.cat1.erb
552
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.17.cat1.erb
553
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.18.cat1.erb
554
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.2.cat1.erb
555
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.20.cat1.erb
556
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.22.cat1.erb
557
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.23.cat1.erb
558
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.26.cat1.erb
559
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.28.cat1.erb
560
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.3.cat1.erb
561
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.31.cat1.erb
562
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.32.cat1.erb
563
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.34.cat1.erb
564
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.37.cat1.erb
565
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.38.cat1.erb
566
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.4.cat1.erb
567
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.40.cat1.erb
568
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.41.cat1.erb
569
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
570
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.43.cat1.erb
571
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.44.cat1.erb
572
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.45.cat1.erb
573
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.46.cat1.erb
574
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.47.cat1.erb
575
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.51.cat1.erb
576
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.54.cat1.erb
577
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.55.cat1.erb
578
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.57.cat1.erb
579
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.59.cat1.erb
580
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.62.cat1.erb
581
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.63.cat1.erb
582
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.64.cat1.erb
583
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.66.cat1.erb
584
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.69.cat1.erb
585
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.7.cat1.erb
586
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.76.cat1.erb
587
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.81.cat1.erb
588
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
589
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.9.cat1.erb
590
+ - templates/cat1/r2/_2.16.840.1.113883.10.20.28.3.6.cat1.erb
591
+ - templates/cat1/r2/_address.cat1.erb
592
+ - templates/cat1/r2/_author.cat1.erb
593
+ - templates/cat1/r2/_fulfills.cat1.erb
594
+ - templates/cat1/r2/_id.cat1.erb
595
+ - templates/cat1/r2/_measures.cat1.erb
596
+ - templates/cat1/r2/_medication_details.cat1.erb
597
+ - templates/cat1/r2/_medication_dispense.cat1.erb
598
+ - templates/cat1/r2/_ordinality.cat1.erb
599
+ - templates/cat1/r2/_organization.cat1.erb
600
+ - templates/cat1/r2/_patient_data.cat1.erb
601
+ - templates/cat1/r2/_patient_data_r3_1.cat1.erb
602
+ - templates/cat1/r2/_providers.cat1.erb
603
+ - templates/cat1/r2/_reason.cat1.erb
604
+ - templates/cat1/r2/_record_target.cat1.erb
605
+ - templates/cat1/r2/_reporting_parameters.cat1.erb
606
+ - templates/cat1/r2/_result_value.cat1.erb
607
+ - templates/cat1/r2/_telecom.cat1.erb
608
+ - templates/cat1/r2/show.cat1.erb
609
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.1.cat1.erb
610
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.103.cat1.erb
611
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.105.cat1.erb
612
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.11.cat1.erb
613
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.12.cat1.erb
614
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.13.cat1.erb
615
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.14.cat1.erb
616
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.17.cat1.erb
617
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.18.cat1.erb
618
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.2.cat1.erb
619
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.22.cat1.erb
620
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.23.cat1.erb
621
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.26.cat1.erb
622
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.3.cat1.erb
623
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.31.cat1.erb
624
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.32.cat1.erb
625
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.37.cat1.erb
626
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.38.cat1.erb
627
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.4.cat1.erb
628
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.41.cat1.erb
629
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
630
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.43.cat1.erb
631
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.44.cat1.erb
632
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.45.cat1.erb
633
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.46.cat1.erb
634
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.47.cat1.erb
635
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.51.cat1.erb
636
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.54.cat1.erb
637
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.55.cat1.erb
638
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.57.cat1.erb
639
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.59.cat1.erb
640
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.62.cat1.erb
641
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.63.cat1.erb
642
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.64.cat1.erb
643
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.69.cat1.erb
644
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.7.cat1.erb
645
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.76.cat1.erb
646
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.81.cat1.erb
647
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
648
+ - templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.9.cat1.erb
649
+ - templates/cat1/r3/_address.cat1.erb
650
+ - templates/cat1/r3/_author.cat1.erb
651
+ - templates/cat1/r3/_fulfills.cat1.erb
652
+ - templates/cat1/r3/_id.cat1.erb
653
+ - templates/cat1/r3/_measures.cat1.erb
654
+ - templates/cat1/r3/_medication_details.cat1.erb
655
+ - templates/cat1/r3/_medication_dispense.cat1.erb
656
+ - templates/cat1/r3/_ordinality.cat1.erb
657
+ - templates/cat1/r3/_organization.cat1.erb
658
+ - templates/cat1/r3/_patient_data.cat1.erb
659
+ - templates/cat1/r3/_providers.cat1.erb
660
+ - templates/cat1/r3/_reason.cat1.erb
661
+ - templates/cat1/r3/_record_target.cat1.erb
662
+ - templates/cat1/r3/_reporting_parameters.cat1.erb
663
+ - templates/cat1/r3/_result_value.cat1.erb
664
+ - templates/cat1/r3/_telecom.cat1.erb
665
+ - templates/cat1/r3/show.cat1.erb
666
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.1.cat1.erb
667
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.103.cat1.erb
668
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.105.cat1.erb
669
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.12.cat1.erb
670
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.135.cat1.erb
671
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.136.cat1.erb
672
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.140.cat1.erb
673
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.17.cat1.erb
674
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.18.cat1.erb
675
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.2.cat1.erb
676
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.22.cat1.erb
677
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.23.cat1.erb
678
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.26.cat1.erb
679
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.3.cat1.erb
680
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.31.cat1.erb
681
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.32.cat1.erb
682
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.37.cat1.erb
683
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.38.cat1.erb
684
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.4.cat1.erb
685
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.41.cat1.erb
686
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
687
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.43.cat1.erb
688
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.44.cat1.erb
689
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.45.cat1.erb
690
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.46.cat1.erb
691
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.47.cat1.erb
692
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.51.cat1.erb
693
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.54.cat1.erb
694
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.55.cat1.erb
695
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.57.cat1.erb
696
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.59.cat1.erb
697
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.62.cat1.erb
698
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.63.cat1.erb
699
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.64.cat1.erb
700
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb
701
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.7.cat1.erb
702
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.81.cat1.erb
703
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
704
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.9.cat1.erb
705
+ - templates/cat1/r3_1/_2.16.840.1.113883.10.20.28.3.6.cat1.erb
706
+ - templates/cat1/r3_1/_address.cat1.erb
707
+ - templates/cat1/r3_1/_author.cat1.erb
708
+ - templates/cat1/r3_1/_fulfills.cat1.erb
709
+ - templates/cat1/r3_1/_id.cat1.erb
710
+ - templates/cat1/r3_1/_measures.cat1.erb
711
+ - templates/cat1/r3_1/_medication_details.cat1.erb
712
+ - templates/cat1/r3_1/_medication_dispense.cat1.erb
713
+ - templates/cat1/r3_1/_ordinality.cat1.erb
714
+ - templates/cat1/r3_1/_organization.cat1.erb
715
+ - templates/cat1/r3_1/_patient_data.cat1.erb
716
+ - templates/cat1/r3_1/_providers.cat1.erb
717
+ - templates/cat1/r3_1/_reason.cat1.erb
718
+ - templates/cat1/r3_1/_record_target.cat1.erb
719
+ - templates/cat1/r3_1/_reporting_parameters.cat1.erb
720
+ - templates/cat1/r3_1/_result_value.cat1.erb
721
+ - templates/cat1/r3_1/_telecom.cat1.erb
722
+ - templates/cat1/r3_1/show.cat1.erb
723
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.1.cat1.erb
724
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.103.cat1.erb
725
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.105.cat1.erb
726
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.12.cat1.erb
727
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.135.cat1.erb
728
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.136.cat1.erb
729
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.140.cat1.erb
730
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.144.cat1.erb
731
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.145.cat1.erb
732
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.17.cat1.erb
733
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.18.cat1.erb
734
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.2.cat1.erb
735
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.22.cat1.erb
736
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.23.cat1.erb
737
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.3.cat1.erb
738
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.31.cat1.erb
739
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.32.cat1.erb
740
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.37.cat1.erb
741
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.38.cat1.erb
742
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.4.cat1.erb
743
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.41.cat1.erb
744
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.42.cat1.erb
745
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.43.cat1.erb
746
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.44.cat1.erb
747
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.45.cat1.erb
748
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.46.cat1.erb
749
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.47.cat1.erb
750
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.51.cat1.erb
751
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.54.cat1.erb
752
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.55.cat1.erb
753
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.57.cat1.erb
754
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.59.cat1.erb
755
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.62.cat1.erb
756
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.63.cat1.erb
757
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.64.cat1.erb
758
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.7.cat1.erb
759
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.81.cat1.erb
760
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.82.cat1.erb
761
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.9.cat1.erb
762
+ - templates/cat1/r4/_2.16.840.1.113883.10.20.28.3.6.cat1.erb
763
+ - templates/cat1/r4/_address.cat1.erb
764
+ - templates/cat1/r4/_author.cat1.erb
765
+ - templates/cat1/r4/_fulfills.cat1.erb
766
+ - templates/cat1/r4/_id.cat1.erb
767
+ - templates/cat1/r4/_measures.cat1.erb
768
+ - templates/cat1/r4/_medication_details.cat1.erb
769
+ - templates/cat1/r4/_medication_dispense.cat1.erb
770
+ - templates/cat1/r4/_ordinality.cat1.erb
771
+ - templates/cat1/r4/_organization.cat1.erb
772
+ - templates/cat1/r4/_patient_data.cat1.erb
773
+ - templates/cat1/r4/_providers.cat1.erb
774
+ - templates/cat1/r4/_reason.cat1.erb
775
+ - templates/cat1/r4/_record_target.cat1.erb
776
+ - templates/cat1/r4/_reporting_parameters.cat1.erb
777
+ - templates/cat1/r4/_result_value.cat1.erb
778
+ - templates/cat1/r4/_telecom.cat1.erb
779
+ - templates/cat1/r4/show.cat1.erb
780
+ - templates/cat3/r1/_address.cat3.erb
781
+ - templates/cat3/r1/_author.cat3.erb
782
+ - templates/cat3/r1/_continuous_variable_value.cat3.erb
783
+ - templates/cat3/r1/_id.cat3.erb
784
+ - templates/cat3/r1/_measure_data.cat3.erb
785
+ - templates/cat3/r1/_organization.cat3.erb
786
+ - templates/cat3/r1/_performance_rate.cat3.erb
787
+ - templates/cat3/r1/_providers.cat3.erb
788
+ - templates/cat3/r1/_reporting_parameters.cat3.erb
789
+ - templates/cat3/r1/_supplemental_data.cat3.erb
790
+ - templates/cat3/r1/_telecom.cat3.erb
791
+ - templates/cat3/r1/show.cat3.erb
792
+ - templates/cat3/r1_1/_address.cat3.erb
793
+ - templates/cat3/r1_1/_author.cat3.erb
794
+ - templates/cat3/r1_1/_continuous_variable_value.cat3.erb
795
+ - templates/cat3/r1_1/_id.cat3.erb
796
+ - templates/cat3/r1_1/_measure_data.cat3.erb
797
+ - templates/cat3/r1_1/_organization.cat3.erb
798
+ - templates/cat3/r1_1/_performance_rate.cat3.erb
799
+ - templates/cat3/r1_1/_providers.cat3.erb
800
+ - templates/cat3/r1_1/_reporting_parameters.cat3.erb
801
+ - templates/cat3/r1_1/_supplemental_data.cat3.erb
802
+ - templates/cat3/r1_1/_telecom.cat3.erb
803
+ - templates/cat3/r1_1/show.cat3.erb
804
+ - templates/cat3/r2/_address.cat3.erb
805
+ - templates/cat3/r2/_author.cat3.erb
806
+ - templates/cat3/r2/_continuous_variable_value.cat3.erb
807
+ - templates/cat3/r2/_id.cat3.erb
808
+ - templates/cat3/r2/_measure_data.cat3.erb
809
+ - templates/cat3/r2/_organization.cat3.erb
810
+ - templates/cat3/r2/_performance_rate.cat3.erb
811
+ - templates/cat3/r2/_providers.cat3.erb
812
+ - templates/cat3/r2/_reporting_parameters.cat3.erb
813
+ - templates/cat3/r2/_supplemental_data.cat3.erb
814
+ - templates/cat3/r2/_telecom.cat3.erb
815
+ - templates/cat3/r2/show.cat3.erb
816
+ - templates/cat3/r2_1/_address.cat3.erb
817
+ - templates/cat3/r2_1/_author.cat3.erb
818
+ - templates/cat3/r2_1/_continuous_variable_value.cat3.erb
819
+ - templates/cat3/r2_1/_id.cat3.erb
820
+ - templates/cat3/r2_1/_measure_data.cat3.erb
821
+ - templates/cat3/r2_1/_organization.cat3.erb
822
+ - templates/cat3/r2_1/_performance_rate.cat3.erb
823
+ - templates/cat3/r2_1/_providers.cat3.erb
824
+ - templates/cat3/r2_1/_reporting_parameters.cat3.erb
825
+ - templates/cat3/r2_1/_reporting_parameters_act.cat3.erb
826
+ - templates/cat3/r2_1/_supplemental_data.cat3.erb
827
+ - templates/cat3/r2_1/_telecom.cat3.erb
828
+ - templates/cat3/r2_1/show.cat3.erb
557
829
  - templates/ccda/_allergies.ccda.erb
558
830
  - templates/ccda/_allergies_no_current.ccda.erb
559
831
  - templates/ccda/_care_goals.ccda.erb
@@ -582,26 +854,26 @@ files:
582
854
  - templates/metadata.hdata.erb
583
855
  homepage: https://github.com/projectcypress/health-data-standards
584
856
  licenses:
585
- - APL 2.0
857
+ - Apache-2.0
586
858
  metadata: {}
587
- post_install_message:
859
+ post_install_message:
588
860
  rdoc_options: []
589
861
  require_paths:
590
862
  - lib
591
863
  required_ruby_version: !ruby/object:Gem::Requirement
592
864
  requirements:
593
- - - '>='
865
+ - - ">="
594
866
  - !ruby/object:Gem::Version
595
867
  version: '0'
596
868
  required_rubygems_version: !ruby/object:Gem::Requirement
597
869
  requirements:
598
- - - '>='
870
+ - - ">="
599
871
  - !ruby/object:Gem::Version
600
872
  version: '0'
601
873
  requirements: []
602
- rubyforge_project:
603
- rubygems_version: 2.4.5
604
- signing_key:
874
+ rubyforge_project:
875
+ rubygems_version: 2.5.2.1
876
+ signing_key:
605
877
  specification_version: 4
606
878
  summary: A library for generating and consuming various healthcare related formats.
607
879
  test_files: []