cqm-reports 3.0.0.pre.alpha.2 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +2 -1
  3. data/README.md +26 -0
  4. data/lib/cqm-reports.rb +3 -2
  5. data/lib/html-export/qdm-patient/data_element/_data_element_other_fields.mustache +129 -5
  6. data/lib/html-export/qdm-patient/data_element/_data_element_times.mustache +36 -1
  7. data/lib/html-export/qdm-patient/qdm_patient.rb +39 -5
  8. data/lib/qrda-export/catI-r5/_header.mustache +2 -2
  9. data/lib/qrda-export/catI-r5/qrda1_r5.mustache +10 -2
  10. data/lib/qrda-export/catI-r5/qrda1_r5.rb +33 -2
  11. data/lib/qrda-export/catI-r5/qrda_header/_record_target.mustache +24 -9
  12. data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +8 -2
  13. data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +8 -8
  14. data/lib/qrda-export/catI-r5/qrda_templates/assessment_order.mustache +7 -1
  15. data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +17 -1
  16. data/lib/qrda-export/catI-r5/qrda_templates/assessment_recommended.mustache +7 -1
  17. data/lib/qrda-export/catI-r5/qrda_templates/communication_performed.mustache +12 -13
  18. data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +17 -5
  19. data/lib/qrda-export/catI-r5/qrda_templates/device_order.mustache +8 -2
  20. data/lib/qrda-export/catI-r5/qrda_templates/device_recommended.mustache +8 -2
  21. data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +9 -9
  22. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_order.mustache +7 -1
  23. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +17 -5
  24. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_recommended.mustache +7 -1
  25. data/lib/qrda-export/catI-r5/qrda_templates/encounter_order.mustache +11 -2
  26. data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +9 -3
  27. data/lib/qrda-export/catI-r5/qrda_templates/encounter_recommended.mustache +8 -2
  28. data/lib/qrda-export/catI-r5/qrda_templates/family_history.mustache +8 -2
  29. data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +22 -7
  30. data/lib/qrda-export/catI-r5/qrda_templates/immunization_order.mustache +8 -2
  31. data/lib/qrda-export/catI-r5/qrda_templates/intervention_order.mustache +7 -1
  32. data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +17 -5
  33. data/lib/qrda-export/catI-r5/qrda_templates/intervention_recommended.mustache +7 -1
  34. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_order.mustache +7 -1
  35. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_performed.mustache +17 -5
  36. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_recommended.mustache +7 -1
  37. data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +17 -7
  38. data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +17 -5
  39. data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +14 -2
  40. data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +27 -16
  41. data/lib/qrda-export/catI-r5/qrda_templates/medication_order.mustache +7 -1
  42. data/lib/qrda-export/catI-r5/qrda_templates/patient_care_experience.mustache +7 -1
  43. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_order.mustache +7 -1
  44. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +17 -5
  45. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_recommended.mustache +7 -1
  46. data/lib/qrda-export/catI-r5/qrda_templates/procedure_order.mustache +11 -1
  47. data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +21 -5
  48. data/lib/qrda-export/catI-r5/qrda_templates/procedure_recommended.mustache +11 -1
  49. data/lib/qrda-export/catI-r5/qrda_templates/program_participation.mustache +21 -0
  50. data/lib/qrda-export/catI-r5/qrda_templates/provider_care_experience.mustache +7 -1
  51. data/lib/qrda-export/catI-r5/qrda_templates/related_person.mustache +18 -0
  52. data/lib/qrda-export/catI-r5/qrda_templates/substance_recommended.mustache +7 -1
  53. data/lib/qrda-export/catI-r5/qrda_templates/symptom.mustache +10 -8
  54. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author.mustache +1 -1
  55. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis_qdm.mustache +24 -0
  56. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity.mustache +12 -0
  57. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_care_partner.mustache +11 -0
  58. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_organization.mustache +11 -0
  59. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_patient.mustache +6 -0
  60. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_practitioner.mustache +19 -0
  61. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_immunization_supply_request.mustache +29 -0
  62. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_supply_request.mustache +12 -1
  63. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_rank.mustache +7 -0
  64. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_related_to.mustache +1 -1
  65. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_results.mustache +8 -1
  66. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_status.mustache +1 -1
  67. data/lib/qrda-export/helper/cat1_view_helper.rb +2 -0
  68. data/lib/qrda-export/helper/date_helper.rb +27 -4
  69. data/lib/qrda-import/base-importers/demographics_importer.rb +3 -3
  70. data/lib/qrda-import/base-importers/section_importer.rb +48 -5
  71. data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +2 -1
  72. data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +2 -1
  73. data/lib/qrda-import/data-element-importers/assessment_order_importer.rb +1 -0
  74. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +3 -0
  75. data/lib/qrda-import/data-element-importers/assessment_recommended_importer.rb +1 -0
  76. data/lib/qrda-import/data-element-importers/communication_performed_importer.rb +7 -6
  77. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +2 -0
  78. data/lib/qrda-import/data-element-importers/device_order_importer.rb +1 -0
  79. data/lib/qrda-import/data-element-importers/device_recommended_importer.rb +1 -0
  80. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +1 -0
  81. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +1 -0
  82. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +2 -0
  83. data/lib/qrda-import/data-element-importers/diagnostic_study_recommended_importer.rb +1 -0
  84. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +3 -0
  85. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +7 -3
  86. data/lib/qrda-import/data-element-importers/encounter_recommended_importer.rb +1 -0
  87. data/lib/qrda-import/data-element-importers/family_history_importer.rb +1 -0
  88. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +3 -1
  89. data/lib/qrda-import/data-element-importers/immunization_order_importer.rb +4 -3
  90. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +1 -0
  91. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +2 -0
  92. data/lib/qrda-import/data-element-importers/intervention_recommended_importer.rb +1 -0
  93. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +1 -0
  94. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +2 -0
  95. data/lib/qrda-import/data-element-importers/laboratory_test_recommended_importer.rb +1 -0
  96. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +2 -0
  97. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +2 -0
  98. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +2 -0
  99. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +3 -4
  100. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +2 -2
  101. data/lib/qrda-import/data-element-importers/patient_care_experience_importer.rb +1 -0
  102. data/lib/qrda-import/data-element-importers/physical_exam_order_importer.rb +1 -0
  103. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +2 -0
  104. data/lib/qrda-import/data-element-importers/physical_exam_recommended_importer.rb +1 -0
  105. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +3 -0
  106. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +4 -0
  107. data/lib/qrda-import/data-element-importers/procedure_recommended_importer.rb +3 -0
  108. data/lib/qrda-import/data-element-importers/program_participation_importer.rb +21 -0
  109. data/lib/qrda-import/data-element-importers/provider_care_experience_importer.rb +1 -0
  110. data/lib/qrda-import/data-element-importers/related_person_importer.rb +19 -0
  111. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +2 -0
  112. data/lib/qrda-import/data-element-importers/substance_order_importer.rb +1 -0
  113. data/lib/qrda-import/data-element-importers/substance_recommended_importer.rb +1 -0
  114. data/lib/qrda-import/data-element-importers/symptom_importer.rb +1 -0
  115. data/lib/qrda-import/patient_importer.rb +31 -11
  116. data/lib/util/entity_helper.rb +22 -0
  117. metadata +19 -9
  118. data/lib/ext/code.rb +0 -11
  119. data/lib/ext/data_element.rb +0 -24
  120. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis.mustache +0 -23
  121. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_principal_diagnosis.mustache +0 -8
@@ -3,15 +3,21 @@
3
3
  <!-- Medication Activity (consolidation) template -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.16" extension="2014-06-09"/>
5
5
  <!-- Medication, Active template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.41" extension="2017-08-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.41" extension="2019-12-01"/>
7
7
 
8
8
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
9
9
  <text>{{description}}</text>
10
10
  <statusCode code="active"/>
11
- {{#relevantPeriod}}
12
- <!-- QDM Attribute: Relevant Period -->
13
- {{{medication_duration_effective_time}}}
14
- {{/relevantPeriod}}
11
+ {{#relevantDatetime}}
12
+ <!-- QDM Attribute: Relevant dateTime -->
13
+ {{{relevant_date_time_value}}}
14
+ {{/relevantDatetime}}
15
+ {{^relevantDatetime}}
16
+ {{#relevantPeriod}}
17
+ <!-- QDM Attribute: Relevant Period -->
18
+ {{{medication_duration_effective_time}}}
19
+ {{/relevantPeriod}}
20
+ {{/relevantDatetime}}
15
21
  {{> qrda_templates/template_partials/_medication_details}}
16
22
  <consumable>
17
23
  <manufacturedProduct classCode="MANU">
@@ -26,7 +32,11 @@
26
32
  </manufacturerOrganization>
27
33
  </manufacturedProduct>
28
34
  </consumable>
29
-
35
+ {{#recorder}}
36
+ <!-- QDM Attribute: Recorder -->
37
+ <participant typeCode="PRF">
38
+ {{> qrda_templates/template_partials/_entity}}
39
+ </participant>
40
+ {{/recorder}}
30
41
  </substanceAdministration>
31
-
32
42
  </entry>
@@ -3,14 +3,20 @@
3
3
  <!-- Medication Activity (consolidation) template -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.16" extension="2014-06-09"/>
5
5
  <!-- Medication, Administered template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.42" extension="2017-08-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.42" extension="2019-12-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <code code="416118004" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Administration"/>
9
9
  <statusCode code="completed"/>
10
- {{#relevantPeriod}}
11
- <!-- QDM Attribute: Relevant Period -->
12
- {{{medication_duration_effective_time}}}
13
- {{/relevantPeriod}}
10
+ {{#relevantDatetime}}
11
+ <!-- QDM Attribute: Relevant dateTime -->
12
+ {{{relevant_date_time_value}}}
13
+ {{/relevantDatetime}}
14
+ {{^relevantDatetime}}
15
+ {{#relevantPeriod}}
16
+ <!-- QDM Attribute: Relevant Period -->
17
+ {{{medication_duration_effective_time}}}
18
+ {{/relevantPeriod}}
19
+ {{/relevantDatetime}}
14
20
  {{> qrda_templates/template_partials/_medication_details}}
15
21
  <consumable>
16
22
  <manufacturedProduct classCode="MANU">
@@ -27,6 +33,12 @@
27
33
  <!-- QDM Attribute: Author dateTime -->
28
34
  {{> qrda_templates/template_partials/_author}}
29
35
  {{/authorDatetime}}
36
+ {{#performer}}
37
+ <!-- QDM Attribute: Performer -->
38
+ <participant typeCode="PRF">
39
+ {{> qrda_templates/template_partials/_entity}}
40
+ </participant>
41
+ {{/performer}}
30
42
  {{#reason}}
31
43
  <!-- QDM Attribute: Reason -->
32
44
  {{> qrda_templates/template_partials/_reason}}
@@ -1,16 +1,28 @@
1
1
  <entry>
2
2
  <act classCode="ACT" moodCode="RQO" {{{negation_ind}}}>
3
3
  <!-- Discharge Medication Entry -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.105" extension="2018-10-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.105" extension="2019-12-01"/>
5
5
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
6
  <code code="75311-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Discharge medications"/>
7
7
  <statusCode code="active"/>
8
+ {{#prescriber}}
9
+ <!-- QDM Attribute: Prescriber -->
10
+ <participant typeCode="PRF">
11
+ {{> qrda_templates/template_partials/_entity}}
12
+ </participant>
13
+ {{/prescriber}}
14
+ {{#recorder}}
15
+ <!-- QDM Attribute: Recorder -->
16
+ <participant typeCode="AUT">
17
+ {{> qrda_templates/template_partials/_entity}}
18
+ </participant>
19
+ {{/recorder}}
8
20
  <entryRelationship typeCode="SUBJ">
9
21
  <substanceAdministration moodCode="EVN" classCode="SBADM">
10
22
  <!-- Medication Activity (consolidation) template -->
11
23
  <templateId root="2.16.840.1.113883.10.20.22.4.16" extension="2014-06-09"/>
12
24
  <!-- Medication, Active template -->
13
- <templateId root="2.16.840.1.113883.10.20.24.3.41" extension="2016-02-01"/>
25
+ <templateId root="2.16.840.1.113883.10.20.24.3.41" extension="2019-12-01"/>
14
26
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
15
27
  <text>{{description}}</text>
16
28
  <statusCode code="active"/>
@@ -1,23 +1,29 @@
1
1
  <entry>
2
2
  <act classCode="ACT" moodCode="EVN" {{{negation_ind}}}>
3
3
  <!-- Medication Dispensed Act -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.139" extension="2018-10-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.139" extension="2019-12-01"/>
5
5
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
6
  <code code="SPLY" codeSystem="2.16.840.1.113883.5.6" displayName="supply" codeSystemName="ActClass"/>
7
7
  <entryRelationship typeCode="SUBJ">
8
8
  <!--Medication dispensed -->
9
9
  <supply classCode="SPLY" moodCode="EVN">
10
10
  <!-- Medication Dispensed template -->
11
- <templateId root="2.16.840.1.113883.10.20.24.3.45" extension="2018-10-01"/>
11
+ <templateId root="2.16.840.1.113883.10.20.24.3.45" extension="2019-12-01"/>
12
12
  <!-- Medication Dispense template -->
13
13
  <templateId root="2.16.840.1.113883.10.20.22.4.18" extension="2014-06-09"/>
14
14
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
15
15
  <text>{{description}}</text>
16
16
  <statusCode code="completed"/>
17
- {{#relevantPeriod}}
18
- <!-- QDM Attribute: Relevant Period -->
19
- {{{medication_duration_effective_time}}}
20
- {{/relevantPeriod}}
17
+ {{#relevantDatetime}}
18
+ <!-- QDM Attribute: Relevant dateTime -->
19
+ {{{relevant_date_time_value}}}
20
+ {{/relevantDatetime}}
21
+ {{^relevantDatetime}}
22
+ {{#relevantPeriod}}
23
+ <!-- QDM Attribute: Relevant Period -->
24
+ {{{medication_duration_effective_time}}}
25
+ {{/relevantPeriod}}
26
+ {{/relevantDatetime}}
21
27
  <product>
22
28
  <manufacturedProduct classCode="MANU">
23
29
  <!-- Medication Information (consolidation) template -->
@@ -28,17 +34,22 @@
28
34
  </manufacturedMaterial>
29
35
  </manufacturedProduct>
30
36
  </product>
31
- {{#authordatetime_or_dispenserid?}}
37
+ {{#authorDatetime}}
38
+ <!-- QDM Attribute: Author dateTime -->
32
39
  {{> qrda_templates/template_partials/_author}}
33
- {{/authordatetime_or_dispenserid?}}
34
- {{#prescriberId}}
35
- <participant typeCode="PRF">
36
- <participantRole>
37
- <!-- QDM Attribute: Prescriber Id -->
38
- {{{id_or_null_flavor}}}
39
- </participantRole>
40
- </participant>
41
- {{/prescriberId}}
40
+ {{/authorDatetime}}
41
+ {{#dispenser}}
42
+ <!-- QDM Attribute: Dispenser -->
43
+ <participant typeCode="DIST">
44
+ {{> qrda_templates/template_partials/_entity}}
45
+ </participant>
46
+ {{/dispenser}}
47
+ {{#prescriber}}
48
+ <!-- QDM Attribute: Prescriber -->
49
+ <participant typeCode="PRF">
50
+ {{> qrda_templates/template_partials/_entity}}
51
+ </participant>
52
+ {{/prescriber}}
42
53
  {{#daysSupplied}}
43
54
  <entryRelationship typeCode="REFR">
44
55
  {{> qrda_templates/template_partials/_days_supplied}}
@@ -3,7 +3,7 @@
3
3
  <substanceAdministration classCode="SBADM" moodCode="RQO" {{{negation_ind}}}>
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.42" extension="2014-06-09"/>
5
5
  <!-- Medication, Order template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.47" extension="2018-10-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.47" extension="2019-12-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <text>{{description}}</text>
9
9
  <statusCode code="active"/>
@@ -41,6 +41,12 @@
41
41
  </participantRole>
42
42
  </participant>
43
43
  {{/setting}}
44
+ {{#prescriber}}
45
+ <!-- QDM Attribute: Prescriber -->
46
+ <participant typeCode="PRF">
47
+ {{> qrda_templates/template_partials/_entity}}
48
+ </participant>
49
+ {{/prescriber}}
44
50
  {{#reason}}
45
51
  <!-- QDM Attribute: Reason -->
46
52
  {{> qrda_templates/template_partials/_reason}}
@@ -1,7 +1,7 @@
1
1
  <entry>
2
2
  <observation classCode="OBS" moodCode="EVN">
3
3
  <!-- Patient Care Experience (V4) -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.48" extension="2017-08-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.48" extension="2019-12-01"/>
5
5
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
6
  <code code="77218-6" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Patient satisfaction with healthcare delivery"/>
7
7
  <statusCode code="completed"/>
@@ -10,5 +10,11 @@
10
10
  <!-- QDM Attribute: Author dateTime -->
11
11
  {{> qrda_templates/template_partials/_author}}
12
12
  {{/authorDatetime}}
13
+ {{#recorder}}
14
+ <!-- QDM Attribute: Recorder -->
15
+ <participant typeCode="PRF">
16
+ {{> qrda_templates/template_partials/_entity}}
17
+ </participant>
18
+ {{/recorder}}
13
19
  </observation>
14
20
  </entry>
@@ -3,7 +3,7 @@
3
3
  <!-- Conforms to C-CDA R2.1 Planned Observation (V2) -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09"/>
5
5
  <!-- Physical Exam Order (V4) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.58" extension="2017-08-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.58" extension="2019-12-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <code code="29545-1" codeSystem="2.16.840.1.113883.6.1" displayName="physical examination" codeSystemName="LOINC"/>
9
9
  <text>{{description}}</text>
@@ -18,6 +18,12 @@
18
18
  <!-- QDM Attribute: Author dateTime -->
19
19
  {{> qrda_templates/template_partials/_author}}
20
20
  {{/authorDatetime}}
21
+ {{#requester}}
22
+ <!-- QDM Attribute: Requester -->
23
+ <participant typeCode="PRF">
24
+ {{> qrda_templates/template_partials/_entity}}
25
+ </participant>
26
+ {{/requester}}
21
27
  {{#reason}}
22
28
  <!-- QDM Attribute: Reason -->
23
29
  {{> qrda_templates/template_partials/_reason}}
@@ -3,16 +3,22 @@
3
3
  <!-- Procedure Activity Procedure (Consolidation) template -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.13" extension="2014-06-09"/>
5
5
  <!-- Physical Exam, Performed template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.59" extension="2017-08-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.59" extension="2019-12-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <!-- QDM Attribute: Code -->
9
9
  {{> _codes}}
10
10
  <text>{{description}}</text>
11
11
  <statusCode code="completed"/>
12
- {{#relevantPeriod}}
13
- <!-- QDM Attribute: Relevant Period -->
14
- {{{relevant_period}}}
15
- {{/relevantPeriod}}
12
+ {{#relevantDatetime}}
13
+ <!-- QDM Attribute: Relevant dateTime -->
14
+ {{{relevant_date_time_value}}}
15
+ {{/relevantDatetime}}
16
+ {{^relevantDatetime}}
17
+ {{#relevantPeriod}}
18
+ <!-- QDM Attribute: Relevant Period -->
19
+ {{{relevant_period}}}
20
+ {{/relevantPeriod}}
21
+ {{/relevantDatetime}}
16
22
  {{#result}}
17
23
  <!-- QDM Attribute: Result -->
18
24
  {{{result_value}}}
@@ -33,6 +39,12 @@
33
39
  <!-- QDM Attribute: Author dateTime -->
34
40
  {{> qrda_templates/template_partials/_author}}
35
41
  {{/authorDatetime}}
42
+ {{#performer}}
43
+ <!-- QDM Attribute: Performer -->
44
+ <participant typeCode="PRF">
45
+ {{> qrda_templates/template_partials/_entity}}
46
+ </participant>
47
+ {{/performer}}
36
48
  {{#reason}}
37
49
  <!-- QDM Attribute: Reason -->
38
50
  {{> qrda_templates/template_partials/_reason}}
@@ -3,7 +3,7 @@
3
3
  <!-- Conforms to C-CDA R2.1 Planned Observation (V2) -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09"/>
5
5
  <!-- Physical Exam Recommeded (V4) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.60" extension="2017-08-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.60" extension="2019-12-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <code code="29545-1" codeSystem="2.16.840.1.113883.6.1" displayName="physical examination" codeSystemName="LOINC"/>
9
9
  <text>{{description}}</text>
@@ -18,6 +18,12 @@
18
18
  <!-- QDM Attribute: Author dateTime -->
19
19
  {{> qrda_templates/template_partials/_author}}
20
20
  {{/authorDatetime}}
21
+ {{#requester}}
22
+ <!-- QDM Attribute: Requester -->
23
+ <participant typeCode="PRF">
24
+ {{> qrda_templates/template_partials/_entity}}
25
+ </participant>
26
+ {{/requester}}
21
27
  {{#reason}}
22
28
  <!-- QDM Attribute: Reason -->
23
29
  {{> qrda_templates/template_partials/_reason}}
@@ -3,7 +3,7 @@
3
3
  <!-- Consolidated Plan of Care Activity Procedure TemplateId (Implied Template) -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.41" extension="2014-06-09"/>
5
5
  <!-- QRDA Procedure, Order TemplateId -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.63" extension="2018-10-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.63" extension="2019-12-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  {{> _codes}}
9
9
  <text>{{description}}</text>
@@ -16,6 +16,12 @@
16
16
  <!-- QDM Attribute: Author dateTime -->
17
17
  {{> qrda_templates/template_partials/_author}}
18
18
  {{/authorDatetime}}
19
+ {{#requester}}
20
+ <!-- QDM Attribute: Requester -->
21
+ <participant typeCode="PRF">
22
+ {{> qrda_templates/template_partials/_entity}}
23
+ </participant>
24
+ {{/requester}}
19
25
  {{#reason}}
20
26
  <!-- QDM Attribute: Reason -->
21
27
  {{> qrda_templates/template_partials/_reason}}
@@ -24,5 +30,9 @@
24
30
  <!-- QDM Attribute: Negation Rationale -->
25
31
  {{> qrda_templates/template_partials/_reason}}
26
32
  {{/negationRationale}}
33
+ {{#rank}}
34
+ <!-- QDM Attribute: Rank -->
35
+ {{> qrda_templates/template_partials/_rank}}
36
+ {{/rank}}
27
37
  </procedure>
28
38
  </entry>
@@ -1,17 +1,23 @@
1
1
  <entry>
2
2
  <procedure classCode="PROC" moodCode="EVN" {{{negation_ind}}}>
3
3
  <!-- Procedure performed template -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.64" extension="2018-10-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.64" extension="2019-12-01"/>
5
5
  <!-- Procedure Activity Procedure-->
6
6
  <templateId root="2.16.840.1.113883.10.20.22.4.14" extension="2014-06-09"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  {{> _codes}}
9
9
  <text>{{description}}</text>
10
10
  <statusCode code="completed"/>
11
- {{#relevantPeriod}}
12
- <!-- QDM Attribute: Relevant Period -->
13
- {{{relevant_period}}}
14
- {{/relevantPeriod}}
11
+ {{#relevantDatetime}}
12
+ <!-- QDM Attribute: Relevant dateTime -->
13
+ {{{relevant_date_time_value}}}
14
+ {{/relevantDatetime}}
15
+ {{^relevantDatetime}}
16
+ {{#relevantPeriod}}
17
+ <!-- QDM Attribute: Relevant Period -->
18
+ {{{relevant_period}}}
19
+ {{/relevantPeriod}}
20
+ {{/relevantDatetime}}
15
21
  {{#method}}
16
22
  <!-- QDM Attribute: Method -->
17
23
  {{> qrda_templates/template_partials/_method}}
@@ -24,6 +30,16 @@
24
30
  <!-- QDM Attribute: Author dateTime -->
25
31
  {{> qrda_templates/template_partials/_author}}
26
32
  {{/authorDatetime}}
33
+ {{#performer}}
34
+ <!-- QDM Attribute: Performer -->
35
+ <participant typeCode="PRF">
36
+ {{> qrda_templates/template_partials/_entity}}
37
+ </participant>
38
+ {{/performer}}
39
+ {{#rank}}
40
+ <!-- QDM Attribute: Rank -->
41
+ {{> qrda_templates/template_partials/_rank}}
42
+ {{/rank}}
27
43
  {{#reason}}
28
44
  <!-- QDM Attribute: Reason -->
29
45
  {{> qrda_templates/template_partials/_reason}}
@@ -3,7 +3,7 @@
3
3
  <!-- Conforms to C-CDA R2.1 Planned Procedure (V2) -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.41" extension="2014-06-09"/>
5
5
  <!-- Procedure Recommended (V5) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.65" extension="2018-10-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.65" extension="2019-12-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <!-- QDM Attribute: Code -->
9
9
  {{> _codes}}
@@ -17,6 +17,12 @@
17
17
  <!-- QDM Attribute: Author dateTime -->
18
18
  {{> qrda_templates/template_partials/_author}}
19
19
  {{/authorDatetime}}
20
+ {{#requester}}
21
+ <!-- QDM Attribute: Requester -->
22
+ <participant typeCode="PRF">
23
+ {{> qrda_templates/template_partials/_entity}}
24
+ </participant>
25
+ {{/requester}}
20
26
  {{#reason}}
21
27
  <!-- QDM Attribute: Reason -->
22
28
  {{> qrda_templates/template_partials/_reason}}
@@ -25,6 +31,10 @@
25
31
  <!-- QDM Attribute: Negation Rationale -->
26
32
  {{> qrda_templates/template_partials/_reason}}
27
33
  {{/negationRationale}}
34
+ {{#rank}}
35
+ <!-- QDM Attribute: Rank -->
36
+ {{> qrda_templates/template_partials/_rank}}
37
+ {{/rank}}
28
38
  </procedure>
29
39
  </entry>
30
40
 
@@ -0,0 +1,21 @@
1
+ <entry>
2
+ <observation classCode="OBS" moodCode="EVN">
3
+ <!-- Program Participation (V2) -->
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.154" extension="2019-12-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
+ {{#participationPeriod}}
9
+ <!-- QDM Attribute: Participation Period -->
10
+ {{{participation_period}}}
11
+ {{/participationPeriod}}
12
+ <!-- QDM Attribute: Code -->
13
+ {{> qrda_templates/template_partials/_data_element_codes_as_values}}
14
+ {{#recorder}}
15
+ <!-- QDM Attribute: Recorder -->
16
+ <participant typeCode="PRF">
17
+ {{> qrda_templates/template_partials/_entity}}
18
+ </participant>
19
+ {{/recorder}}
20
+ </observation>
21
+ </entry>
@@ -1,7 +1,7 @@
1
1
  <entry>
2
2
  <observation classCode="OBS" moodCode="EVN">
3
3
  <!-- Provider Care Experience (V4) -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.67" extension="2017-08-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.67" extension="2019-12-01"/>
5
5
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
6
  <code code="77219-4" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Provider satisfaction with healthcare delivery"/>
7
7
  <statusCode code="completed" />
@@ -11,5 +11,11 @@
11
11
  <!-- QDM Attribute: Author dateTime -->
12
12
  {{> qrda_templates/template_partials/_author}}
13
13
  {{/authorDatetime}}
14
+ {{#recorder}}
15
+ <!-- QDM Attribute: Recorder -->
16
+ <participant typeCode="PRF">
17
+ {{> qrda_templates/template_partials/_entity}}
18
+ </participant>
19
+ {{/recorder}}
14
20
  </observation>
15
21
  </entry>