cqm-reports 1.0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +33 -0
  3. data/README.md +27 -0
  4. data/Rakefile +16 -0
  5. data/lib/cqm_report.rb +77 -0
  6. data/lib/ext/code.rb +11 -0
  7. data/lib/ext/data_element.rb +24 -0
  8. data/lib/html-export/qdm-patient/_header_css.mustache +61 -0
  9. data/lib/html-export/qdm-patient/_javascript.mustache +52 -0
  10. data/lib/html-export/qdm-patient/data_element/_data_element.mustache +4 -0
  11. data/lib/html-export/qdm-patient/data_element/_data_element_codes.mustache +9 -0
  12. data/lib/html-export/qdm-patient/data_element/_data_element_other_fields.mustache +106 -0
  13. data/lib/html-export/qdm-patient/data_element/_data_element_times.mustache +44 -0
  14. data/lib/html-export/qdm-patient/qdm_patient.mustache +73 -0
  15. data/lib/html-export/qdm-patient/qdm_patient.rb +47 -0
  16. data/lib/qrda-export/catI-r5/_code.mustache +1 -0
  17. data/lib/qrda-export/catI-r5/_codes.mustache +10 -0
  18. data/lib/qrda-export/catI-r5/_header.mustache +28 -0
  19. data/lib/qrda-export/catI-r5/_measure_section.mustache +59 -0
  20. data/lib/qrda-export/catI-r5/_reporting_period.mustache +23 -0
  21. data/lib/qrda-export/catI-r5/qrda1_r5.mustache +209 -0
  22. data/lib/qrda-export/catI-r5/qrda1_r5.rb +220 -0
  23. data/lib/qrda-export/catI-r5/qrda_header/_author.mustache +26 -0
  24. data/lib/qrda-export/catI-r5/qrda_header/_custodian.mustache +43 -0
  25. data/lib/qrda-export/catI-r5/qrda_header/_documentation_of_service_event.mustache +88 -0
  26. data/lib/qrda-export/catI-r5/qrda_header/_information_recipient.mustache +7 -0
  27. data/lib/qrda-export/catI-r5/qrda_header/_legal_authenticator.mustache +25 -0
  28. data/lib/qrda-export/catI-r5/qrda_header/_participant.mustache +7 -0
  29. data/lib/qrda-export/catI-r5/qrda_header/_record_target.mustache +44 -0
  30. data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +40 -0
  31. data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +42 -0
  32. data/lib/qrda-export/catI-r5/qrda_templates/assessment_order.mustache +25 -0
  33. data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +38 -0
  34. data/lib/qrda-export/catI-r5/qrda_templates/assessment_recommended.mustache +25 -0
  35. data/lib/qrda-export/catI-r5/qrda_templates/communication_performed.mustache +62 -0
  36. data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +41 -0
  37. data/lib/qrda-export/catI-r5/qrda_templates/device_order.mustache +38 -0
  38. data/lib/qrda-export/catI-r5/qrda_templates/device_recommended.mustache +37 -0
  39. data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +55 -0
  40. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_order.mustache +25 -0
  41. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +50 -0
  42. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_recommended.mustache +21 -0
  43. data/lib/qrda-export/catI-r5/qrda_templates/encounter_order.mustache +35 -0
  44. data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +52 -0
  45. data/lib/qrda-export/catI-r5/qrda_templates/encounter_recommended.mustache +37 -0
  46. data/lib/qrda-export/catI-r5/qrda_templates/family_history.mustache +37 -0
  47. data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +35 -0
  48. data/lib/qrda-export/catI-r5/qrda_templates/immunization_order.mustache +46 -0
  49. data/lib/qrda-export/catI-r5/qrda_templates/intervention_order.mustache +24 -0
  50. data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +36 -0
  51. data/lib/qrda-export/catI-r5/qrda_templates/intervention_recommended.mustache +25 -0
  52. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_order.mustache +24 -0
  53. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_performed.mustache +42 -0
  54. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_recommended.mustache +25 -0
  55. data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +32 -0
  56. data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +39 -0
  57. data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +63 -0
  58. data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +70 -0
  59. data/lib/qrda-export/catI-r5/qrda_templates/medication_order.mustache +64 -0
  60. data/lib/qrda-export/catI-r5/qrda_templates/patient_care_experience.mustache +14 -0
  61. data/lib/qrda-export/catI-r5/qrda_templates/patient_characteristic_clinical_trial_participant.mustache +18 -0
  62. data/lib/qrda-export/catI-r5/qrda_templates/patient_characteristic_expired.mustache +32 -0
  63. data/lib/qrda-export/catI-r5/qrda_templates/patient_characteristic_payer.mustache +14 -0
  64. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_order.mustache +30 -0
  65. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +45 -0
  66. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_recommended.mustache +30 -0
  67. data/lib/qrda-export/catI-r5/qrda_templates/procedure_order.mustache +32 -0
  68. data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +64 -0
  69. data/lib/qrda-export/catI-r5/qrda_templates/procedure_recommended.mustache +34 -0
  70. data/lib/qrda-export/catI-r5/qrda_templates/provider_care_experience.mustache +15 -0
  71. data/lib/qrda-export/catI-r5/qrda_templates/provider_characteristic.mustache +15 -0
  72. data/lib/qrda-export/catI-r5/qrda_templates/substance_recommended.mustache +35 -0
  73. data/lib/qrda-export/catI-r5/qrda_templates/symptom.mustache +48 -0
  74. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_admission_source.mustache +6 -0
  75. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_anatomical_location_site.mustache +1 -0
  76. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author.mustache +29 -0
  77. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author_participation.mustache +8 -0
  78. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_component.mustache +13 -0
  79. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_data_element_codes_as_values.mustache +10 -0
  80. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_days_supplied.mustache +6 -0
  81. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis.mustache +21 -0
  82. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_facility_location.mustache +24 -0
  83. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_immunization_details.mustache +14 -0
  84. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_details.mustache +36 -0
  85. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_supply_request.mustache +17 -0
  86. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_method.mustache +1 -0
  87. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_ordinality.mustache +1 -0
  88. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_principal_diagnosis.mustache +8 -0
  89. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_reaction_observation.mustache +9 -0
  90. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_reason.mustache +12 -0
  91. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_related_to.mustache +6 -0
  92. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_results.mustache +24 -0
  93. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_severity.mustache +8 -0
  94. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_status.mustache +8 -0
  95. data/lib/qrda-export/catIII-r2-1/_continuous_variable_value.mustache +17 -0
  96. data/lib/qrda-export/catIII-r2-1/_header.mustache +25 -0
  97. data/lib/qrda-export/catIII-r2-1/_measure_data.mustache +41 -0
  98. data/lib/qrda-export/catIII-r2-1/_measure_section.mustache +74 -0
  99. data/lib/qrda-export/catIII-r2-1/_reporting_period.mustache +23 -0
  100. data/lib/qrda-export/catIII-r2-1/_stratification.mustache +29 -0
  101. data/lib/qrda-export/catIII-r2-1/_supplemental_data.mustache +28 -0
  102. data/lib/qrda-export/catIII-r2-1/qrda3_r21.mustache +11 -0
  103. data/lib/qrda-export/catIII-r2-1/qrda3_r21.rb +127 -0
  104. data/lib/qrda-export/catIII-r2-1/qrda_header/_author.mustache +25 -0
  105. data/lib/qrda-export/catIII-r2-1/qrda_header/_custodian.mustache +17 -0
  106. data/lib/qrda-export/catIII-r2-1/qrda_header/_documentation_of_service_event.mustache +88 -0
  107. data/lib/qrda-export/catIII-r2-1/qrda_header/_legal_authenticator.mustache +25 -0
  108. data/lib/qrda-export/helper/aggregate_object_helper.rb +154 -0
  109. data/lib/qrda-export/helper/cat1_view_helper.rb +81 -0
  110. data/lib/qrda-export/helper/date_helper.rb +108 -0
  111. data/lib/qrda-export/helper/frequency_helper.rb +83 -0
  112. data/lib/qrda-export/helper/patient_view_helper.rb +46 -0
  113. data/lib/qrda-export/helper/view_helper.rb +28 -0
  114. data/lib/qrda-import/base-importers/demographics_importer.rb +38 -0
  115. data/lib/qrda-import/base-importers/section_importer.rb +237 -0
  116. data/lib/qrda-import/cda_identifier.rb +20 -0
  117. data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +26 -0
  118. data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +24 -0
  119. data/lib/qrda-import/data-element-importers/assessment_order_importer.rb +19 -0
  120. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +24 -0
  121. data/lib/qrda-import/data-element-importers/assessment_recommended_importer.rb +19 -0
  122. data/lib/qrda-import/data-element-importers/communication_performed_importer.rb +30 -0
  123. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +22 -0
  124. data/lib/qrda-import/data-element-importers/device_order_importer.rb +19 -0
  125. data/lib/qrda-import/data-element-importers/device_recommended_importer.rb +19 -0
  126. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +24 -0
  127. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +19 -0
  128. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +32 -0
  129. data/lib/qrda-import/data-element-importers/diagnostic_study_recommended_importer.rb +19 -0
  130. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +21 -0
  131. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +46 -0
  132. data/lib/qrda-import/data-element-importers/encounter_recommended_importer.rb +21 -0
  133. data/lib/qrda-import/data-element-importers/family_history_importer.rb +21 -0
  134. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +23 -0
  135. data/lib/qrda-import/data-element-importers/immunization_order_importer.rb +27 -0
  136. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +19 -0
  137. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +23 -0
  138. data/lib/qrda-import/data-element-importers/intervention_recommended_importer.rb +19 -0
  139. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +19 -0
  140. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +29 -0
  141. data/lib/qrda-import/data-element-importers/laboratory_test_recommended_importer.rb +19 -0
  142. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +25 -0
  143. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +26 -0
  144. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +32 -0
  145. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +37 -0
  146. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +36 -0
  147. data/lib/qrda-import/data-element-importers/patient_care_experience_importer.rb +19 -0
  148. data/lib/qrda-import/data-element-importers/patient_characteristic_clinical_trial_participant_importer.rb +19 -0
  149. data/lib/qrda-import/data-element-importers/patient_characteristic_expired_importer.rb +22 -0
  150. data/lib/qrda-import/data-element-importers/patient_characteristic_payer_importer.rb +19 -0
  151. data/lib/qrda-import/data-element-importers/physical_exam_order_importer.rb +21 -0
  152. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +27 -0
  153. data/lib/qrda-import/data-element-importers/physical_exam_recommended_importer.rb +21 -0
  154. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +23 -0
  155. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +33 -0
  156. data/lib/qrda-import/data-element-importers/procedure_recommended_importer.rb +23 -0
  157. data/lib/qrda-import/data-element-importers/provider_care_experience_importer.rb +19 -0
  158. data/lib/qrda-import/data-element-importers/provider_characteristic_importer.rb +19 -0
  159. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +27 -0
  160. data/lib/qrda-import/data-element-importers/substance_order_importer.rb +29 -0
  161. data/lib/qrda-import/data-element-importers/substance_recommended_importer.rb +27 -0
  162. data/lib/qrda-import/data-element-importers/symptom_importer.rb +21 -0
  163. data/lib/qrda-import/entry_finder.rb +20 -0
  164. data/lib/qrda-import/entry_package.rb +16 -0
  165. data/lib/qrda-import/narrative_reference_handler.rb +33 -0
  166. data/lib/qrda-import/patient_importer.rb +128 -0
  167. data/lib/util/code_system_helper.rb +77 -0
  168. data/lib/util/hqmf_template_helper.rb +52 -0
  169. data/lib/util/hqmf_template_oid_map.json +654 -0
  170. data/lib/util/hqmfr2_template_oid_map.json +378 -0
  171. data/lib/util/hqmfr2cql_template_oid_map.json +390 -0
  172. data/lib/util/qrda_template_helper.rb +20 -0
  173. data/lib/util/qrdar5_1_template_oid_map.json +406 -0
  174. data/lib/util/qrdar5_template_oid_map.json +406 -0
  175. metadata +344 -0
@@ -0,0 +1,25 @@
1
+ <legalAuthenticator>
2
+ <time value="{{{current_time}}}"/>
3
+ <signatureCode code="S"/>
4
+ <assignedEntity>
5
+ <id root="bc01a5d1-3a34-4286-82cc-43eb04c972a7"/>
6
+ <addr>
7
+ <streetAddressLine>202 Burlington Rd.</streetAddressLine>
8
+ <city>Bedford</city>
9
+ <state>MA</state>
10
+ <postalCode>01730</postalCode>
11
+ <country>US</country>
12
+ </addr>
13
+ <telecom use="WP" value="tel:(781)271-3000"/>
14
+ <assignedPerson>
15
+ <name>
16
+ <given>Henry</given>
17
+ <family>Seven</family>
18
+ </name>
19
+ </assignedPerson>
20
+ <representedOrganization>
21
+ <id root="2.16.840.1.113883.19.5"/>
22
+ <name>Cypress</name>
23
+ </representedOrganization>
24
+ </assignedEntity>
25
+ </legalAuthenticator>
@@ -0,0 +1,7 @@
1
+ <participant typeCode="DEV">
2
+ <associatedEntity classCode="RGPR">
3
+ <!-- CMS EHR Certification Number (formerly known as Office of the
4
+ National Coordinator Certification Number) -->
5
+ <id extension="123456789" root="2.16.840.1.113883.3.2074.1"/>
6
+ </associatedEntity>
7
+ </participant>
@@ -0,0 +1,44 @@
1
+ <recordTarget>
2
+ <patientRole>
3
+ <id extension="{{mrn}}" root="1.3.6.1.4.1.115" />
4
+ <addr use="HP">
5
+ <streetAddressLine>202 Burlington Rd.</streetAddressLine>
6
+ <city>Bedford</city>
7
+ <state>MA</state>
8
+ <postalCode>01730</postalCode>
9
+ <country>US</country>
10
+ </addr>
11
+ <telecom use="WP" value="tel:+1-781-271-3000"/>
12
+ <patient>
13
+ {{#patient}}
14
+ <name>
15
+ <given>{{{given_name}}}</given>
16
+ <family>{{familyName}}</family>
17
+ </name>
18
+ {{/patient}}
19
+ {{#patient_characteristic_sex}}
20
+ {{#dataElementCodes}}
21
+ <administrativeGenderCode {{> _code}}/>
22
+ {{/dataElementCodes}}
23
+ {{/patient_characteristic_sex}}
24
+ {{#patient_characteristic_birthdate}}
25
+ {{{birth_date_time}}}
26
+ {{/patient_characteristic_birthdate}}
27
+ {{#patient_characteristic_race}}
28
+ {{#dataElementCodes}}
29
+ <raceCode {{> _code}}/>
30
+ {{/dataElementCodes}}
31
+ {{/patient_characteristic_race}}
32
+ {{#patient_characteristic_ethnicity}}
33
+ {{#dataElementCodes}}
34
+ <ethnicGroupCode {{> _code}}/>
35
+ {{/dataElementCodes}}
36
+ {{/patient_characteristic_ethnicity}}
37
+ <languageCommunication>
38
+ <templateId root="2.16.840.1.113883.3.88.11.83.2" assigningAuthorityName="HITSP/C83"/>
39
+ <templateId root="1.3.6.1.4.1.19376.1.5.3.1.2.1" assigningAuthorityName="IHE/PCC"/>
40
+ <languageCode code="eng"/>
41
+ </languageCommunication>
42
+ </patient>
43
+ </patientRole>
44
+ </recordTarget>
@@ -0,0 +1,40 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="EVN">
3
+ <!-- Adverse Event -->
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.146" extension="2017-08-01"/>
5
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
+ <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
7
+ <statusCode code="completed"/>
8
+ {{#relevantPeriod}}
9
+ <!-- QDM Attribute: Relevant Period -->
10
+ {{{relevant_period}}}
11
+ {{/relevantPeriod}}
12
+ <value xsi:type="CD" code="281647001" displayName="Adverse reaction" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT"/>
13
+ {{#authorDatetime}}
14
+ <!-- QDM Attribute: Author dateTime -->
15
+ {{> qrda_templates/template_partials/_author}}
16
+ {{/authorDatetime}}
17
+ {{#facilityLocation}}
18
+ <!-- QDM Attribute: Facility Location -->
19
+ {{> qrda_templates/template_partials/_facility_location}}
20
+ {{/facilityLocation}}
21
+ <!-- QDM Attribute: Code -->
22
+ <entryRelationship typeCode="CAUS" inversionInd="true">
23
+ <!-- Adverse Event Cause Assertion Observation -->
24
+ <observation classCode="OBS" moodCode="EVN">
25
+ <templateId root="2.16.840.1.113883.10.20.24.3.148" extension="2017-08-01" />
26
+ <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" />
27
+ <statusCode code="completed" />
28
+ {{> qrda_templates/template_partials/_data_element_codes_as_values}}
29
+ </observation>
30
+ </entryRelationship>
31
+ {{#type}}
32
+ <!-- QDM Attribute: Type -->
33
+ {{> qrda_templates/template_partials/_reaction_observation}}
34
+ {{/type}}
35
+ {{#severity}}
36
+ <!-- QDM Attribute: Severity -->
37
+ {{> qrda_templates/template_partials/_severity}}
38
+ {{/severity}}
39
+ </observation>
40
+ </entry>
@@ -0,0 +1,42 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="EVN">
3
+ <!-- Conforms to C-CDA R2.1 Substance or Device Allergy - Intolerance Observation (V2) -->
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.90" extension="2014-06-09"/>
5
+ <!-- Allergy Intolerance -->
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.147" extension="2017-08-01"/>
7
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
+ <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
9
+ {{#prevalencePeriod}}
10
+ {{#completed_prevalence_period}}
11
+ <statusCode code="completed" />
12
+ {{/completed_prevalence_period}}
13
+ {{^completed_prevalence_period}}
14
+ <statusCode code="active" />
15
+ {{/completed_prevalence_period}}
16
+ <!-- QDM Attribute: Prevalence Period -->
17
+ {{{prevalence_period}}}
18
+ {{/prevalencePeriod}}
19
+ <value xsi:type="CD" code="419199007" displayName="Allergy to substance" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT"/>
20
+ {{#authorDatetime}}
21
+ <!-- QDM Attribute: Author dateTime -->
22
+ {{> qrda_templates/template_partials/_author}}
23
+ {{/authorDatetime}}
24
+ <participant typeCode="CSM">
25
+ <participantRole classCode="MANU">
26
+ <playingEntity classCode="MMAT">
27
+ <!-- QDM Attribute: Code -->
28
+ {{> _codes}}
29
+ <name>{{description}}</name>
30
+ </playingEntity>
31
+ </participantRole>
32
+ </participant>
33
+ {{#type}}
34
+ <!-- QDM Attribute: Type -->
35
+ {{> qrda_templates/template_partials/_reaction_observation}}
36
+ {{/type}}
37
+ {{#severity}}
38
+ <!-- QDM Attribute: Severity -->
39
+ {{> qrda_templates/template_partials/_severity}}
40
+ {{/severity}}
41
+ </observation>
42
+ </entry>
@@ -0,0 +1,25 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="RQO" {{{negation_ind}}}>
3
+ <!-- Conforms to C-CDA R2.1 Planned Observation (V2) -->
4
+ <templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09" />
5
+ <!-- Assessment Order -->
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.158" extension="2018-10-01" />
7
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
+ <!-- QDM Attribute: Code -->
9
+ {{> _codes}}
10
+ <text>{{description}}</text>
11
+ <statusCode code="active" />
12
+ {{#authorDatetime}}
13
+ <!-- QDM Attribute: Author dateTime -->
14
+ {{> qrda_templates/template_partials/_author}}
15
+ {{/authorDatetime}}
16
+ {{#reason}}
17
+ <!-- QDM Attribute: Reason -->
18
+ {{> qrda_templates/template_partials/_reason}}
19
+ {{/reason}}
20
+ {{#negationRationale}}
21
+ <!-- QDM Attribute: Negation Rationale -->
22
+ {{> qrda_templates/template_partials/_reason}}
23
+ {{/negationRationale}}
24
+ </observation>
25
+ </entry>
@@ -0,0 +1,38 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="EVN" {{{negation_ind}}}>
3
+ <!-- Assessment Performed -->
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.144" extension="2017-08-01" />
5
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
+ {{> _codes}}
7
+ <text>{{description}}</text>
8
+ <statusCode code="completed"/>
9
+ {{#result}}
10
+ <!-- QDM Attribute: Result -->
11
+ {{{result_value}}}
12
+ {{/result}}
13
+ {{#method}}
14
+ <!-- QDM Attribute: Method -->
15
+ {{> qrda_templates/template_partials/_method}}
16
+ {{/method}}
17
+ {{#authorDatetime}}
18
+ <!-- QDM Attribute: Author dateTime -->
19
+ {{> qrda_templates/template_partials/_author}}
20
+ {{/authorDatetime}}
21
+ {{#reason}}
22
+ <!-- QDM Attribute: Reason -->
23
+ {{> qrda_templates/template_partials/_reason}}
24
+ {{/reason}}
25
+ {{#negationRationale}}
26
+ <!-- QDM Attribute: Negation Rationale -->
27
+ {{> qrda_templates/template_partials/_reason}}
28
+ {{/negationRationale}}
29
+ {{#components}}
30
+ <!-- QDM Attribute: Components -->
31
+ {{> qrda_templates/template_partials/_component}}
32
+ {{/components}}
33
+ {{#relatedTo}}
34
+ <!-- QDM Attribute: Related To -->
35
+ {{> qrda_templates/template_partials/_related_to}}
36
+ {{/relatedTo}}
37
+ </observation>
38
+ </entry>
@@ -0,0 +1,25 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="INT" {{{negation_ind}}}>
3
+ <!-- Conforms to C-CDA R2.1 Planned Observation (V2) -->
4
+ <templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09" />
5
+ <!-- Assessment Recommended (V2) -->
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.145" extension="2017-08-01"/>
7
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
+ <!-- QDM Attribute: Code -->
9
+ {{> _codes}}
10
+ <text>{{description}}</text>
11
+ <statusCode code="active"/>
12
+ {{#authorDatetime}}
13
+ <!-- QDM Attribute: Author dateTime -->
14
+ {{> qrda_templates/template_partials/_author}}
15
+ {{/authorDatetime}}
16
+ {{#reason}}
17
+ <!-- QDM Attribute: Reason -->
18
+ {{> qrda_templates/template_partials/_reason}}
19
+ {{/reason}}
20
+ {{#negationRationale}}
21
+ <!-- QDM Attribute: Negation Rationale -->
22
+ {{> qrda_templates/template_partials/_reason}}
23
+ {{/negationRationale}}
24
+ </observation>
25
+ </entry>
@@ -0,0 +1,62 @@
1
+ <entry>
2
+ <act classCode="ACT" moodCode="EVN" {{{negation_ind}}}>
3
+ <templateId root="2.16.840.1.113883.10.20.24.3.156" extension="2018-10-01"/>
4
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
5
+ {{#category}}
6
+ <!-- QDM Attribute: Category -->
7
+ <code {{> _code}}/>
8
+ {{/category}}
9
+ <statusCode code="completed"/>
10
+ {{#relevantPeriod}}
11
+ <!-- QDM Attribute: Relevant Period -->
12
+ {{{relevant_period}}}
13
+ {{/relevantPeriod}}
14
+ {{#authorDatetime}}
15
+ <!-- QDM Attribute: Author dateTime -->
16
+ {{> qrda_templates/template_partials/_author}}
17
+ {{/authorDatetime}}
18
+ {{#recipient}}
19
+ <participant typeCode="IRCP">
20
+ <participantRole>
21
+ <!-- QDM Attribute: Recipient -->
22
+ <code code="158965000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Medical Practitioner"/>
23
+ </participantRole>
24
+ </participant>
25
+ {{/recipient}}
26
+ {{#sender}}
27
+ <participant typeCode="AUT">
28
+ <participantRole>
29
+ <code {{> _code}}/>
30
+ </participantRole>
31
+ </participant>
32
+ {{/sender}}
33
+ {{#medium}}
34
+ <participant typeCode="VIA">
35
+ <participantRole>
36
+ <!-- QDM Attribute: Medium -->
37
+ <code {{> _code}}/>
38
+ </participantRole>
39
+ </participant>
40
+ {{/medium}}
41
+ {{#negationRationale}}
42
+ <!-- QDM Attribute: Negation Rationale -->
43
+ {{> qrda_templates/template_partials/_reason}}
44
+ {{/negationRationale}}
45
+ {{^negationRationale}}
46
+ <entryRelationship typeCode="RSON">
47
+ <observation classCode="OBS" moodCode="EVN">
48
+ <templateId root="2.16.840.1.113883.10.20.24.3.88" extension="2014-12-01"/>
49
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}" />
50
+ <code code="77301-0" codeSystem="2.16.840.1.113883.6.1" displayName="reason" codeSystemName="LOINC"/>
51
+ <statusCode code="completed"/>
52
+ <!-- QDM Attribute: Code -->
53
+ {{> qrda_templates/template_partials/_data_element_codes_as_values}}
54
+ </observation>
55
+ </entryRelationship>
56
+ {{/negationRationale}}
57
+ {{#relatedTo}}
58
+ <!-- QDM Attribute: relatedTo -->
59
+ {{> qrda_templates/template_partials/_related_to}}
60
+ {{/relatedTo}}
61
+ </act>
62
+ </entry>
@@ -0,0 +1,41 @@
1
+ <entry>
2
+ <procedure classCode="PROC" moodCode="EVN" {{{negation_ind}}}>
3
+ <!-- Procedure Activity Procedure -->
4
+ <templateId root="2.16.840.1.113883.10.20.22.4.14" extension="2014-06-09"/>
5
+ <!-- Device Applied -->
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.7" extension="2018-10-01"/>
7
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
+ <code code="360030002" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="application of device"/>
9
+ <text>{{description}}</text>
10
+ <statusCode code="completed"/>
11
+ {{#relevantPeriod}}
12
+ <!-- QDM Attribute: Relevant Period -->
13
+ {{{relevant_period}}}
14
+ {{/relevantPeriod}}
15
+ {{#anatomicalLocationSite}}
16
+ <!-- QDM Attribute: Anatomical Location Site -->
17
+ {{> qrda_templates/template_partials/_anatomical_location_site}}
18
+ {{/anatomicalLocationSite}}
19
+ {{#authorDatetime}}
20
+ <!-- QDM Attribute: Author dateTime -->
21
+ {{> qrda_templates/template_partials/_author}}
22
+ {{/authorDatetime}}
23
+ <participant typeCode="DEV">
24
+ <participantRole classCode="MANU">
25
+ <playingDevice classCode="DEV">
26
+ <!-- QDM Attribute: Code -->
27
+ {{> _codes}}
28
+ </playingDevice>
29
+ </participantRole>
30
+ </participant>
31
+ {{#reason}}
32
+ <!-- QDM Attribute: Reason -->
33
+ {{> qrda_templates/template_partials/_reason}}
34
+ {{/reason}}
35
+ {{#negationRationale}}
36
+ <!-- QDM Attribute: Negation Rationale -->
37
+ {{> qrda_templates/template_partials/_reason}}
38
+ {{/negationRationale}}
39
+ </procedure>
40
+ </entry>
41
+
@@ -0,0 +1,38 @@
1
+ <entry>
2
+ <act classCode="ACT" moodCode="RQO" {{{negation_ind}}}>
3
+ <templateId root="2.16.840.1.113883.10.20.24.3.130" extension="2017-08-01"/>
4
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
5
+ <code code="SPLY" codeSystem="2.16.840.1.113883.5.6" displayName="Supply" codeSystemName="ActClass"/>
6
+ <entryRelationship typeCode="SUBJ">
7
+ <supply classCode="SPLY" moodCode="RQO">
8
+ <!-- Plan of Care Activity Supply -->
9
+ <templateId root="2.16.840.1.113883.10.20.22.4.43" extension="2014-06-09"/>
10
+ <!-- Device, Order -->
11
+ <templateId root="2.16.840.1.113883.10.20.24.3.9" extension="2017-08-01"/>
12
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
13
+ <text>{{description}}</text>
14
+ <statusCode code="active"/>
15
+ {{#authorDatetime}}
16
+ <!-- QDM Attribute: Author dateTime -->
17
+ {{> qrda_templates/template_partials/_author}}
18
+ {{/authorDatetime}}
19
+ <participant typeCode="DEV">
20
+ <participantRole classCode="MANU">
21
+ <playingDevice classCode="DEV">
22
+ <!-- QDM Attribute: Code -->
23
+ {{> _codes}}
24
+ </playingDevice>
25
+ </participantRole>
26
+ </participant>
27
+ {{#reason}}
28
+ <!-- QDM Attribute: Reason -->
29
+ {{> qrda_templates/template_partials/_reason}}
30
+ {{/reason}}
31
+ {{#negationRationale}}
32
+ <!-- QDM Attribute: Negation Rationale -->
33
+ {{> qrda_templates/template_partials/_reason}}
34
+ {{/negationRationale}}
35
+ </supply>
36
+ </entryRelationship>
37
+ </act>
38
+ </entry>
@@ -0,0 +1,37 @@
1
+ <entry>
2
+ <act classCode="ACT" moodCode="INT" {{{negation_ind}}}>
3
+ <templateId root="2.16.840.1.113883.10.20.24.3.131" extension="2017-08-01"/>
4
+ <code code="SPLY" codeSystem="2.16.840.1.113883.5.6" displayName="Supply" codeSystemName="ActClass"/>
5
+ <entryRelationship typeCode="SUBJ">
6
+ <supply classCode="SPLY" moodCode="INT">
7
+ <!-- C-CDA R2.1 : Planned Supply (V2) -->
8
+ <templateId root="2.16.840.1.113883.10.20.22.4.43" extension="2014-06-09"/>
9
+ <!-- Device Recommended (V4) -->
10
+ <templateId root="2.16.840.1.113883.10.20.24.3.10" extension="2017-08-01"/>
11
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
12
+ <text>{{description}}</text>
13
+ <statusCode code="active"/>
14
+ {{#authorDatetime}}
15
+ <!-- QDM Attribute: Author dateTime -->
16
+ {{> qrda_templates/template_partials/_author}}
17
+ {{/authorDatetime}}
18
+ <participant typeCode="DEV">
19
+ <participantRole classCode="MANU">
20
+ <playingDevice classCode="DEV">
21
+ <!-- QDM Attribute: Code -->
22
+ {{> _codes}}
23
+ </playingDevice>
24
+ </participantRole>
25
+ </participant>
26
+ {{#reason}}
27
+ <!-- QDM Attribute: Reason -->
28
+ {{> qrda_templates/template_partials/_reason}}
29
+ {{/reason}}
30
+ {{#negationRationale}}
31
+ <!-- QDM Attribute: Negation Rationale -->
32
+ {{> qrda_templates/template_partials/_reason}}
33
+ {{/negationRationale}}
34
+ </supply>
35
+ </entryRelationship>
36
+ </act>
37
+ </entry>
@@ -0,0 +1,55 @@
1
+ <entry>
2
+ <act classCode="ACT" moodCode="EVN">
3
+ <!-- Conforms to C-CDA 2.1 Problem Concern Act (V3) -->
4
+ <templateId root="2.16.840.1.113883.10.20.22.4.3" extension="2015-08-01" />
5
+ <!-- Diagnosis Concern Act -->
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.137" extension="2017-08-01"/>
7
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
+ <code code="CONC" codeSystem="2.16.840.1.113883.5.6" displayName="Concern" />
9
+ {{#prevalencePeriod}}
10
+ {{#completed_prevalence_period}}
11
+ <statusCode code="completed" />
12
+ {{/completed_prevalence_period}}
13
+ {{^completed_prevalence_period}}
14
+ <statusCode code="active" />
15
+ {{/completed_prevalence_period}}
16
+ {{{prevalence_period}}}
17
+ {{/prevalencePeriod}}
18
+ <entryRelationship typeCode="SUBJ">
19
+ <observation classCode="OBS" moodCode="EVN">
20
+ <!-- Conforms to C-CDA R2.1 Problem Observation (V3) -->
21
+ <templateId root="2.16.840.1.113883.10.20.22.4.4" extension="2015-08-01" />
22
+ <!-- Diagnosis template -->
23
+ <templateId root="2.16.840.1.113883.10.20.24.3.135" extension="2017-08-01" />
24
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
25
+ <code code="29308-4" codeSystem="2.16.840.1.113883.6.1">
26
+ <translation code="282291009" codeSystem="2.16.840.1.113883.6.96"/>
27
+ </code>
28
+ {{#prevalencePeriod}}
29
+ {{#completed_prevalence_period}}
30
+ <statusCode code="completed" />
31
+ {{/completed_prevalence_period}}
32
+ {{^completed_prevalence_period}}
33
+ <statusCode code="active" />
34
+ {{/completed_prevalence_period}}
35
+ <!-- QDM Attribute: Prevalence Period -->
36
+ {{{prevalence_period}}}
37
+ {{/prevalencePeriod}}
38
+ <!-- QDM Attribute: Code -->
39
+ {{> qrda_templates/template_partials/_data_element_codes_as_values}}
40
+ {{#anatomicalLocationSite}}
41
+ <!-- QDM Attribute: Anatomical Location Site -->
42
+ {{> qrda_templates/template_partials/_anatomical_location_site}}
43
+ {{/anatomicalLocationSite}}
44
+ {{#authorDatetime}}
45
+ <!-- QDM Attribute: Author dateTime -->
46
+ {{> qrda_templates/template_partials/_author}}
47
+ {{/authorDatetime}}
48
+ {{#severity}}
49
+ <!-- QDM Attribute: Severity -->
50
+ {{> qrda_templates/template_partials/_severity}}
51
+ {{/severity}}
52
+ </observation>
53
+ </entryRelationship>
54
+ </act>
55
+ </entry>
@@ -0,0 +1,25 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="RQO" {{{negation_ind}}}>
3
+ <!-- Consolidated Plan of Care Activity Observation
4
+ templateId (Implied Template) -->
5
+ <templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09"/>
6
+ <!-- Diagnostic Study, Order template -->
7
+ <templateId root="2.16.840.1.113883.10.20.24.3.17" extension="2017-08-01"/>
8
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
9
+ {{> _codes}}
10
+ <text>{{description}}</text>
11
+ <statusCode code="active"/>
12
+ {{#authorDatetime}}
13
+ <!-- QDM Attribute: Author dateTime -->
14
+ {{> qrda_templates/template_partials/_author}}
15
+ {{/authorDatetime}}
16
+ {{#reason}}
17
+ <!-- QDM Attribute: Reason -->
18
+ {{> qrda_templates/template_partials/_reason}}
19
+ {{/reason}}
20
+ {{#negationRationale}}
21
+ <!-- QDM Attribute: Negation Rationale -->
22
+ {{> qrda_templates/template_partials/_reason}}
23
+ {{/negationRationale}}
24
+ </observation>
25
+ </entry>
@@ -0,0 +1,50 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="EVN" {{{negation_ind}}}>
3
+ <!-- Consolidated Procedure Activity Observation templateId
4
+ (Implied Template) -->
5
+ <templateId root="2.16.840.1.113883.10.20.22.4.13" extension="2014-06-09"/>
6
+ <!-- Diagnostic Study, Performed template -->
7
+ <templateId root="2.16.840.1.113883.10.20.24.3.18" extension="2017-08-01"/>
8
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
9
+ {{> _codes}}
10
+ <text>{{description}}</text>
11
+ <statusCode code="completed"/>
12
+ {{#relevantPeriod}}
13
+ <!-- QDM Attribute: Relevant Period -->
14
+ {{{relevant_period}}}
15
+ {{/relevantPeriod}}
16
+ <value nullFlavor="NA" xsi:type="CD" />
17
+ {{#method}}
18
+ <!-- QDM Attribute: Method -->
19
+ {{> qrda_templates/template_partials/_method}}
20
+ {{/method}}
21
+ {{#authorDatetime}}
22
+ <!-- QDM Attribute: Author dateTime -->
23
+ {{> qrda_templates/template_partials/_author}}
24
+ {{/authorDatetime}}
25
+ {{#facilityLocation}}
26
+ <!-- QDM Attribute: Facility Location -->
27
+ {{> qrda_templates/template_partials/_facility_location}}
28
+ {{/facilityLocation}}
29
+ {{#reason}}
30
+ <!-- QDM Attribute: Reason -->
31
+ {{> qrda_templates/template_partials/_reason}}
32
+ {{/reason}}
33
+ {{#negationRationale}}
34
+ <!-- QDM Attribute: Negation Rationale -->
35
+ {{> qrda_templates/template_partials/_reason}}
36
+ {{/negationRationale}}
37
+ {{#status}}
38
+ <!-- QDM Attribute: Status -->
39
+ {{> qrda_templates/template_partials/_status}}
40
+ {{/status}}
41
+ {{#result}}
42
+ <!-- QDM Attribute: Result -->
43
+ {{> qrda_templates/template_partials/_results}}
44
+ {{/result}}
45
+ {{#components}}
46
+ <!-- QDM Attribute: Components -->
47
+ {{> qrda_templates/template_partials/_component}}
48
+ {{/components}}
49
+ </observation>
50
+ </entry>
@@ -0,0 +1,21 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="INT" {{{negation_ind}}}>
3
+ <!-- Conforms to C-CDA R2.1 Planned Observation (V2) -->
4
+ <templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09"/>
5
+ <!-- Diagnostic Study Recommended (V4) -->
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.19" extension="2017-08-01"/>
7
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
+ {{> _codes}}
9
+ <text>{{description}}</text>
10
+ <statusCode code="active"/>
11
+ <value nullFlavor="NA" xsi:type="CD" />
12
+ {{#authorDatetime}}
13
+ <!-- QDM Attribute: Author dateTime -->
14
+ {{> qrda_templates/template_partials/_author}}
15
+ {{/authorDatetime}}
16
+ {{#negationRationale}}
17
+ <!-- QDM Attribute: Negation Rationale -->
18
+ {{> qrda_templates/template_partials/_reason}}
19
+ {{/negationRationale}}
20
+ </observation>
21
+ </entry>
@@ -0,0 +1,35 @@
1
+ <entry>
2
+ <act classCode="ACT" moodCode="RQO" {{{negation_ind}}}>
3
+ <templateId root="2.16.840.1.113883.10.20.24.3.132" extension="2017-08-01"/>
4
+ <code code="ENC" codeSystem="2.16.840.1.113883.5.6" displayName="Encounter" codeSystemName="ActClass"/>
5
+ <entryRelationship typeCode="SUBJ">
6
+ <encounter classCode="ENC" moodCode="RQO">
7
+ <!-- Plan of Care Activity Encounter template -->
8
+ <templateId root="2.16.840.1.113883.10.20.22.4.40" extension="2014-06-09"/>
9
+ <!-- Encounter order template -->
10
+ <templateId root="2.16.840.1.113883.10.20.24.3.22" extension="2017-08-01"/>
11
+ <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
12
+ <!-- QDM Attribute: Code -->
13
+ {{> _codes}}
14
+ <text>{{description}}</text>
15
+ <statusCode code="active"/>
16
+ {{#authorDatetime}}
17
+ <!-- QDM Attribute: Author dateTime -->
18
+ {{> qrda_templates/template_partials/_author}}
19
+ {{/authorDatetime}}
20
+ {{#facilityLocation}}
21
+ <!-- QDM Attribute: Facility Location -->
22
+ {{> qrda_templates/template_partials/_facility_location}}
23
+ {{/facilityLocation}}
24
+ {{#reason}}
25
+ <!-- QDM Attribute: Reason -->
26
+ {{> qrda_templates/template_partials/_reason}}
27
+ {{/reason}}
28
+ {{#negationRationale}}
29
+ <!-- QDM Attribute: Negation Rationale -->
30
+ {{> qrda_templates/template_partials/_reason}}
31
+ {{/negationRationale}}
32
+ </encounter>
33
+ </entryRelationship>
34
+ </act>
35
+ </entry>