cqm-reports 3.1.9 → 4.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (116) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/lib/cqm-reports.rb +1 -2
  4. data/lib/html-export/qdm-patient/data_element/_data_element_other_fields.mustache +10 -0
  5. data/lib/html-export/qdm-patient/qdm_patient.rb +7 -7
  6. data/lib/qrda-export/catI-r5/_header.mustache +2 -2
  7. data/lib/qrda-export/catI-r5/qrda1_r5.mustache +3 -6
  8. data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +1 -1
  9. data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +1 -1
  10. data/lib/qrda-export/catI-r5/qrda_templates/assessment_order.mustache +1 -1
  11. data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +7 -3
  12. data/lib/qrda-export/catI-r5/qrda_templates/assessment_recommended.mustache +1 -1
  13. data/lib/qrda-export/catI-r5/qrda_templates/communication_performed.mustache +1 -1
  14. data/lib/qrda-export/catI-r5/qrda_templates/device_order.mustache +2 -2
  15. data/lib/qrda-export/catI-r5/qrda_templates/device_recommended.mustache +2 -2
  16. data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +2 -2
  17. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_order.mustache +1 -1
  18. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +9 -1
  19. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_recommended.mustache +1 -1
  20. data/lib/qrda-export/catI-r5/qrda_templates/encounter_order.mustache +2 -2
  21. data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +11 -7
  22. data/lib/qrda-export/catI-r5/qrda_templates/encounter_recommended.mustache +2 -2
  23. data/lib/qrda-export/catI-r5/qrda_templates/family_history.mustache +2 -2
  24. data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +1 -1
  25. data/lib/qrda-export/catI-r5/qrda_templates/immunization_order.mustache +1 -1
  26. data/lib/qrda-export/catI-r5/qrda_templates/intervention_order.mustache +1 -1
  27. data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +5 -1
  28. data/lib/qrda-export/catI-r5/qrda_templates/intervention_recommended.mustache +1 -1
  29. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_order.mustache +1 -1
  30. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_performed.mustache +3 -3
  31. data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_recommended.mustache +1 -1
  32. data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +1 -1
  33. data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +1 -1
  34. data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +2 -4
  35. data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +2 -2
  36. data/lib/qrda-export/catI-r5/qrda_templates/medication_order.mustache +5 -1
  37. data/lib/qrda-export/catI-r5/qrda_templates/patient_care_experience.mustache +1 -1
  38. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_order.mustache +1 -1
  39. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +3 -3
  40. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_recommended.mustache +1 -1
  41. data/lib/qrda-export/catI-r5/qrda_templates/procedure_order.mustache +1 -1
  42. data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +5 -1
  43. data/lib/qrda-export/catI-r5/qrda_templates/procedure_recommended.mustache +1 -1
  44. data/lib/qrda-export/catI-r5/qrda_templates/program_participation.mustache +1 -7
  45. data/lib/qrda-export/catI-r5/qrda_templates/provider_care_experience.mustache +1 -1
  46. data/lib/qrda-export/catI-r5/qrda_templates/substance_recommended.mustache +1 -1
  47. data/lib/qrda-export/catI-r5/qrda_templates/symptom.mustache +2 -2
  48. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_class.mustache +6 -0
  49. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis_qdm.mustache +2 -2
  50. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity.mustache +3 -0
  51. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_location.mustache +11 -0
  52. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_organization.mustache +2 -2
  53. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_interpretation.mustache +1 -0
  54. data/lib/qrda-export/{catIII-r2-1 → catIII}/_continuous_variable_value.mustache +0 -0
  55. data/lib/qrda-export/{catIII-r2-1 → catIII}/_header.mustache +1 -5
  56. data/lib/qrda-export/{catIII-r2-1 → catIII}/_measure_data.mustache +0 -0
  57. data/lib/qrda-export/{catIII-r2-1 → catIII}/_measure_section.mustache +3 -3
  58. data/lib/qrda-export/{catIII-r2-1 → catIII}/_reporting_period.mustache +0 -0
  59. data/lib/qrda-export/{catIII-r2-1 → catIII}/_stratification.mustache +0 -0
  60. data/lib/qrda-export/{catIII-r2-1 → catIII}/_supplemental_data.mustache +0 -0
  61. data/lib/qrda-export/{catIII-r2-1/qrda3_r21.mustache → catIII/qrda3.mustache} +0 -0
  62. data/lib/qrda-export/{catIII-r2-1/qrda3_r21.rb → catIII/qrda3.rb} +1 -1
  63. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_author.mustache +0 -0
  64. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_custodian.mustache +0 -0
  65. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_documentation_of_service_event.mustache +0 -0
  66. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_information_recipient.mustache +0 -0
  67. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_legal_authenticator.mustache +0 -0
  68. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_participant_ehr.mustache +0 -0
  69. data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_participant_location.mustache +0 -0
  70. data/lib/qrda-import/base-importers/section_importer.rb +52 -29
  71. data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +2 -1
  72. data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +2 -1
  73. data/lib/qrda-import/data-element-importers/assessment_order_importer.rb +2 -1
  74. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +6 -1
  75. data/lib/qrda-import/data-element-importers/assessment_recommended_importer.rb +2 -1
  76. data/lib/qrda-import/data-element-importers/communication_performed_importer.rb +4 -2
  77. data/lib/qrda-import/data-element-importers/device_order_importer.rb +2 -1
  78. data/lib/qrda-import/data-element-importers/device_recommended_importer.rb +2 -1
  79. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +2 -1
  80. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +2 -1
  81. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +6 -1
  82. data/lib/qrda-import/data-element-importers/diagnostic_study_recommended_importer.rb +2 -1
  83. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +2 -1
  84. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +6 -1
  85. data/lib/qrda-import/data-element-importers/encounter_recommended_importer.rb +2 -1
  86. data/lib/qrda-import/data-element-importers/family_history_importer.rb +2 -1
  87. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +2 -1
  88. data/lib/qrda-import/data-element-importers/immunization_order_importer.rb +2 -1
  89. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +2 -1
  90. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +4 -1
  91. data/lib/qrda-import/data-element-importers/intervention_recommended_importer.rb +2 -1
  92. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +2 -1
  93. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +4 -1
  94. data/lib/qrda-import/data-element-importers/laboratory_test_recommended_importer.rb +2 -1
  95. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +2 -1
  96. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +2 -1
  97. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +5 -3
  98. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +4 -2
  99. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +4 -1
  100. data/lib/qrda-import/data-element-importers/patient_care_experience_importer.rb +2 -1
  101. data/lib/qrda-import/data-element-importers/physical_exam_order_importer.rb +2 -1
  102. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +4 -1
  103. data/lib/qrda-import/data-element-importers/physical_exam_recommended_importer.rb +2 -1
  104. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +2 -1
  105. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +4 -1
  106. data/lib/qrda-import/data-element-importers/procedure_recommended_importer.rb +2 -1
  107. data/lib/qrda-import/data-element-importers/program_participation_importer.rb +0 -1
  108. data/lib/qrda-import/data-element-importers/provider_care_experience_importer.rb +2 -1
  109. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +2 -1
  110. data/lib/qrda-import/data-element-importers/substance_recommended_importer.rb +2 -1
  111. data/lib/qrda-import/data-element-importers/symptom_importer.rb +2 -1
  112. data/lib/qrda-import/patient_importer.rb +0 -1
  113. data/lib/util/entity_helper.rb +4 -0
  114. metadata +26 -25
  115. data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +0 -44
  116. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +0 -26
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 853f4fbe17601e4bb5ad3353eafb99674f5e979d452b4634f25520027ca1f54c
4
- data.tar.gz: 1117d2f6f67f04de9e63d3103d25c74936cb6722447171602b7053ebc95f4b69
3
+ metadata.gz: 9916f810f725d5fff7cfbc0f961e588ad17cc2dc634b9d51a48517a92eb7c076
4
+ data.tar.gz: f5080b36a062bb8197420ecfefcfcfb480ba3a8d99bbd63dabd9bc325e638043
5
5
  SHA512:
6
- metadata.gz: 9d467ec2fe66246ed0101976d2c89621e3a3b7177e962b942d307a98f6dcefb8fb0a3f06742f5520139816c8bce91c025d4742f675d02c8f30cafe3ee4c66c67
7
- data.tar.gz: 9ceb20859d5cad76cc1ddfd6ab621dec639ef915087d6b6ae81942705da323dbe769fd8ee8f30dada7cb4fb121a398fcbd9631649d360cd078344682049da5f6
6
+ metadata.gz: 54c5b802bcbba1c16aa3701e4927daa32230081a54ae039540ce82ce7af79a34a2ae7c884bd8af0e40bf94e9f5016db0e8b98565d3d3b308350a2b2bd7c6345f
7
+ data.tar.gz: e7e2e958018f24a2ebbb07faf8ad1f2762054e861f99c8fa89466682d46e1f461674391a160788fca9e13ea2022a086fac860feb17ad032040cb2dd39bc9b1cd
data/Gemfile CHANGED
@@ -17,7 +17,7 @@ group :development do
17
17
  end
18
18
 
19
19
  group :test do
20
- gem 'cqm-models', '~> 3.0'
20
+ gem 'cqm-models', '~> 4.0'
21
21
  gem 'factory_girl', '~> 4.1.0'
22
22
  gem 'tailor', '~> 1.1.2'
23
23
  gem 'cane', '~> 2.3.0'
data/lib/cqm-reports.rb CHANGED
@@ -17,7 +17,7 @@ require_relative 'qrda-export/helper/cat1_view_helper.rb'
17
17
  require_relative 'html-export/qdm-patient/qdm_patient.rb'
18
18
 
19
19
  require_relative 'qrda-export/catI-r5/qrda1_r5.rb'
20
- require_relative 'qrda-export/catIII-r2-1/qrda3_r21.rb'
20
+ require_relative 'qrda-export/catIII/qrda3.rb'
21
21
 
22
22
  require_relative 'qrda-import/cda_identifier.rb'
23
23
  require_relative 'qrda-import/narrative_reference_handler.rb'
@@ -36,7 +36,6 @@ require_relative 'qrda-import/data-element-importers/diagnosis_importer.rb'
36
36
  require_relative 'qrda-import/data-element-importers/diagnostic_study_order_importer.rb'
37
37
  require_relative 'qrda-import/data-element-importers/diagnostic_study_performed_importer.rb'
38
38
  require_relative 'qrda-import/data-element-importers/diagnostic_study_recommended_importer.rb'
39
- require_relative 'qrda-import/data-element-importers/device_applied_importer.rb'
40
39
  require_relative 'qrda-import/data-element-importers/device_order_importer.rb'
41
40
  require_relative 'qrda-import/data-element-importers/device_recommended_importer.rb'
42
41
  require_relative 'qrda-import/data-element-importers/encounter_order_importer.rb'
@@ -25,6 +25,11 @@
25
25
  <div class="div-table-head--no-border"><span class="criteria-heading">Category:</span> {{{code_code_system_string}}}</div>
26
26
  </div>
27
27
  {{/category}}
28
+ {{#clazz}}
29
+ <div class="div-head-row">
30
+ <div class="div-table-head--no-border"><span class="criteria-heading">Class:</span> {{{code_code_system_string}}}</div>
31
+ </div>
32
+ {{/clazz}}
28
33
  {{#components}}
29
34
  {{#code}}
30
35
  <div class="div-head-row">
@@ -82,6 +87,11 @@
82
87
  <div class="div-table-head--no-border"><span class="criteria-heading">Identifier:</span> {{{identifier_string}}}</div>
83
88
  </div>
84
89
  {{/identifier}}
90
+ {{#interpretation}}
91
+ <div class="div-head-row">
92
+ <div class="div-table-head--no-border"><span class="criteria-heading">Interpretation:</span> {{{code_code_system_string}}}</div>
93
+ </div>
94
+ {{/interpretation}}
85
95
  {{#lengthOfStay}}
86
96
  <div class="div-head-row">
87
97
  <div class="div-table-head--no-border"><span class="criteria-heading">Length Of Stay:</span> {{{unit_string}}}</div>
@@ -33,10 +33,7 @@ class QdmPatient < Mustache
33
33
  end
34
34
 
35
35
  def patient_telecoms
36
- @patient_telecoms ||= [CQM::Telecom.new(
37
- use: 'HP',
38
- value: '555-555-2003'
39
- )]
36
+ @patient_telecoms ||= [CQM::Telecom.new(use: 'HP', value: '555-555-2003')]
40
37
  # create formatted telecoms
41
38
  @patient_telecoms.map { |telecom| "(#{telecom['use']}) #{telecom['value']}" }.join("<br>")
42
39
  end
@@ -65,7 +62,10 @@ class QdmPatient < Mustache
65
62
  </br>&nbsp; Care Partner Relationship: #{code_for_element(self['relationship'])}"
66
63
  elsif organization_entity?
67
64
  "</br>&nbsp; Organization: #{identifier_for_element(self['identifier'])}
68
- </br>&nbsp; Organization Type: #{code_for_element(self['type'])}"
65
+ </br>&nbsp; Organization Type: #{code_for_element(self['organizationType'])}"
66
+ elsif location_entity?
67
+ "</br>&nbsp; Location: #{identifier_for_element(self['identifier'])}
68
+ </br>&nbsp; Location Type: #{code_for_element(self['locationType'])}"
69
69
  elsif patient_entity?
70
70
  "</br>&nbsp; Patient: #{identifier_for_element(self['identifier'])}"
71
71
  elsif practitioner_entity?
@@ -83,7 +83,7 @@ class QdmPatient < Mustache
83
83
  end
84
84
 
85
85
  def identifier_for_element(identifier)
86
- "#{identifier['value']} (#{identifier['namingSystem']})"
86
+ identifier ? "#{identifier['value']} (#{identifier['namingSystem']})" : ''
87
87
  end
88
88
 
89
89
  def code_code_system_string
@@ -91,7 +91,7 @@ class QdmPatient < Mustache
91
91
  end
92
92
 
93
93
  def code_for_element(element)
94
- "#{element['code']} (#{HQMF::Util::CodeSystemHelper.code_system_for(element['system'])})#{code_description(element)}"
94
+ element ? "#{element['code']} (#{HQMF::Util::CodeSystemHelper.code_system_for(element['system'])})#{code_description(element)}" : ''
95
95
  end
96
96
 
97
97
  def code_system_name
@@ -6,9 +6,9 @@
6
6
  <!-- QRDA templateId -->
7
7
  <templateId root="2.16.840.1.113883.10.20.24.1.1" extension="2017-08-01"/>
8
8
  <!-- QDM-based QRDA templateId -->
9
- <templateId root="2.16.840.1.113883.10.20.24.1.2" extension="2019-12-01"/>
9
+ <templateId root="2.16.840.1.113883.10.20.24.1.2" extension="2021-08-01"/>
10
10
  <!-- CMS QRDA templateId -->
11
- <templateId root="2.16.840.1.113883.10.20.24.1.3" extension="2020-02-01"/>
11
+ <templateId root="2.16.840.1.113883.10.20.24.1.3" extension="2022-02-01"/>
12
12
  <!-- This is the globally unique identifier for this QRDA document -->
13
13
  <id root="{{random_id}}"/>
14
14
  <!-- QRDA document type code -->
@@ -12,8 +12,9 @@
12
12
  <!-- This is the templateId for Patient Data section -->
13
13
  <templateId root="2.16.840.1.113883.10.20.17.2.4"/>
14
14
  <!-- This is the templateId for Patient Data QDM section -->
15
- <templateId extension="2019-12-01" root="2.16.840.1.113883.10.20.24.2.1"/>
16
- <templateId extension="2020-02-01" root="2.16.840.1.113883.10.20.24.2.1.1"/>
15
+ <templateId extension="2021-08-01" root="2.16.840.1.113883.10.20.24.2.1"/>
16
+ <!-- Patient Data Section QDM (V8) CMS -->
17
+ <templateId extension="2022-02-01" root="2.16.840.1.113883.10.20.24.2.1.1"/>
17
18
  <code code="55188-7" codeSystem="2.16.840.1.113883.6.1"/>
18
19
  <title>Patient Data</title>
19
20
  <text/>
@@ -46,10 +47,6 @@
46
47
  {{> qrda_templates/diagnosis}}
47
48
  {{/diagnosis}}
48
49
 
49
- {{#device_applied}}
50
- {{> qrda_templates/device_applied}}
51
- {{/device_applied}}
52
-
53
50
  {{#device_order}}
54
51
  {{> qrda_templates/device_order}}
55
52
  {{/device_order}}
@@ -1,7 +1,7 @@
1
1
  <entry>
2
2
  <observation classCode="OBS" moodCode="EVN">
3
3
  <!-- Adverse Event -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.146" extension="2019-12-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.146" extension="2021-08-01"/>
5
5
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
6
  <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
7
7
  <statusCode code="completed"/>
@@ -3,7 +3,7 @@
3
3
  <!-- Conforms to C-CDA R2.1 Substance or Device Allergy - Intolerance Observation (V2) -->
4
4
  <templateId root="2.16.840.1.113883.10.20.24.3.90" extension="2014-06-09"/>
5
5
  <!-- Allergy Intolerance -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.147" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.147" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
9
9
  <statusCode code="completed" />
@@ -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
  <!-- Assessment Order -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.158" extension="2019-12-01" />
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.158" extension="2021-08-01" />
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <!-- QDM Attribute: Code -->
9
9
  {{> _codes}}
@@ -1,7 +1,7 @@
1
1
  <entry>
2
2
  <observation classCode="OBS" moodCode="EVN" {{{negation_ind}}}>
3
3
  <!-- Assessment Performed -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.144" extension="2019-12-01" />
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.144" extension="2021-08-01" />
5
5
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
6
  {{> _codes}}
7
7
  <text>{{description}}</text>
@@ -11,6 +11,10 @@
11
11
  <!-- QDM Attribute: Result -->
12
12
  {{{result_value}}}
13
13
  {{/result}}
14
+ {{#interpretation}}
15
+ <!-- QDM Attribute: Interpretation -->
16
+ {{> qrda_templates/template_partials/_interpretation}}
17
+ {{/interpretation}}
14
18
  {{#method}}
15
19
  <!-- QDM Attribute: Method -->
16
20
  {{> qrda_templates/template_partials/_method}}
@@ -38,8 +42,8 @@
38
42
  {{> qrda_templates/template_partials/_component}}
39
43
  {{/components}}
40
44
  {{#relatedTo}}
41
- <!-- QDM Attribute: Related To -->
42
- {{> qrda_templates/template_partials/_related_to}}
45
+ <!-- QDM Attribute: Related To -->
46
+ {{> qrda_templates/template_partials/_related_to}}
43
47
  {{/relatedTo}}
44
48
  </observation>
45
49
  </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
  <!-- Assessment Recommended (V2) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.145" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.145" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <!-- QDM Attribute: Code -->
9
9
  {{> _codes}}
@@ -1,6 +1,6 @@
1
1
  <entry>
2
2
  <act classCode="ACT" moodCode="EVN" {{{negation_ind}}}>
3
- <templateId root="2.16.840.1.113883.10.20.24.3.156" extension="2019-12-01"/>
3
+ <templateId root="2.16.840.1.113883.10.20.24.3.156" extension="2021-08-01"/>
4
4
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
5
5
  {{#category}}
6
6
  <!-- QDM Attribute: Category -->
@@ -1,13 +1,13 @@
1
1
  <entry>
2
2
  <act classCode="ACT" moodCode="RQO" {{{negation_ind}}}>
3
- <templateId root="2.16.840.1.113883.10.20.24.3.130" extension="2019-12-01"/>
3
+ <templateId root="2.16.840.1.113883.10.20.24.3.130" extension="2021-08-01"/>
4
4
  <code code="SPLY" codeSystem="2.16.840.1.113883.5.6" displayName="Supply" codeSystemName="ActClass"/>
5
5
  <entryRelationship typeCode="SUBJ">
6
6
  <supply classCode="SPLY" moodCode="RQO">
7
7
  <!-- Plan of Care Activity Supply -->
8
8
  <templateId root="2.16.840.1.113883.10.20.22.4.43" extension="2014-06-09"/>
9
9
  <!-- Device, Order -->
10
- <templateId root="2.16.840.1.113883.10.20.24.3.9" extension="2019-12-01"/>
10
+ <templateId root="2.16.840.1.113883.10.20.24.3.9" extension="2021-08-01"/>
11
11
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
12
12
  <text>{{description}}</text>
13
13
  <statusCode code="active"/>
@@ -1,13 +1,13 @@
1
1
  <entry>
2
2
  <act classCode="ACT" moodCode="INT" {{{negation_ind}}}>
3
- <templateId root="2.16.840.1.113883.10.20.24.3.131" extension="2019-12-01"/>
3
+ <templateId root="2.16.840.1.113883.10.20.24.3.131" extension="2021-08-01"/>
4
4
  <code code="SPLY" codeSystem="2.16.840.1.113883.5.6" displayName="Supply" codeSystemName="ActClass"/>
5
5
  <entryRelationship typeCode="SUBJ">
6
6
  <supply classCode="SPLY" moodCode="INT">
7
7
  <!-- C-CDA R2.1 : Planned Supply (V2) -->
8
8
  <templateId root="2.16.840.1.113883.10.20.22.4.43" extension="2014-06-09"/>
9
9
  <!-- Device Recommended (V4) -->
10
- <templateId root="2.16.840.1.113883.10.20.24.3.10" extension="2019-12-01"/>
10
+ <templateId root="2.16.840.1.113883.10.20.24.3.10" extension="2021-08-01"/>
11
11
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
12
12
  <text>{{description}}</text>
13
13
  <statusCode code="active"/>
@@ -3,7 +3,7 @@
3
3
  <!-- Conforms to C-CDA 2.1 Problem Concern Act (V3) -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.3" extension="2015-08-01" />
5
5
  <!-- Diagnosis Concern Act -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.137" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.137" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <code code="CONC" codeSystem="2.16.840.1.113883.5.6" displayName="Concern" />
9
9
  {{#prevalencePeriod}}
@@ -20,7 +20,7 @@
20
20
  <!-- Conforms to C-CDA R2.1 Problem Observation (V3) -->
21
21
  <templateId root="2.16.840.1.113883.10.20.22.4.4" extension="2015-08-01" />
22
22
  <!-- Diagnosis template -->
23
- <templateId root="2.16.840.1.113883.10.20.24.3.135" extension="2019-12-01" />
23
+ <templateId root="2.16.840.1.113883.10.20.24.3.135" extension="2021-08-01" />
24
24
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
25
25
  <code code="29308-4" codeSystem="2.16.840.1.113883.6.1">
26
26
  <translation code="282291009" codeSystem="2.16.840.1.113883.6.96"/>
@@ -4,7 +4,7 @@
4
4
  templateId (Implied Template) -->
5
5
  <templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09"/>
6
6
  <!-- Diagnostic Study, Order template -->
7
- <templateId root="2.16.840.1.113883.10.20.24.3.17" extension="2019-12-01"/>
7
+ <templateId root="2.16.840.1.113883.10.20.24.3.17" extension="2021-08-01"/>
8
8
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
9
9
  {{> _codes}}
10
10
  <text>{{description}}</text>
@@ -4,13 +4,17 @@
4
4
  (Implied Template) -->
5
5
  <templateId root="2.16.840.1.113883.10.20.22.4.13" extension="2014-06-09"/>
6
6
  <!-- Diagnostic Study, Performed template -->
7
- <templateId root="2.16.840.1.113883.10.20.24.3.18" extension="2019-12-01"/>
7
+ <templateId root="2.16.840.1.113883.10.20.24.3.18" extension="2021-08-01"/>
8
8
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
9
9
  {{> _codes}}
10
10
  <text>{{description}}</text>
11
11
  <statusCode code="completed"/>
12
12
  {{{relevant_date_period_or_null_flavor}}}
13
13
  <value nullFlavor="NA" xsi:type="CD" />
14
+ {{#interpretation}}
15
+ <!-- QDM Attribute: Interpretation -->
16
+ {{> qrda_templates/template_partials/_interpretation}}
17
+ {{/interpretation}}
14
18
  {{#method}}
15
19
  <!-- QDM Attribute: Method -->
16
20
  {{> qrda_templates/template_partials/_method}}
@@ -49,5 +53,9 @@
49
53
  <!-- QDM Attribute: Components -->
50
54
  {{> qrda_templates/template_partials/_component}}
51
55
  {{/components}}
56
+ {{#relatedTo}}
57
+ <!-- QDM Attribute: relatedTo -->
58
+ {{> qrda_templates/template_partials/_related_to}}
59
+ {{/relatedTo}}
52
60
  </observation>
53
61
  </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
  <!-- Diagnostic Study Recommended (V4) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.19" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.19" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  {{> _codes}}
9
9
  <text>{{description}}</text>
@@ -1,13 +1,13 @@
1
1
  <entry>
2
2
  <act classCode="ACT" moodCode="RQO" {{{negation_ind}}}>
3
- <templateId root="2.16.840.1.113883.10.20.24.3.132" extension="2019-12-01"/>
3
+ <templateId root="2.16.840.1.113883.10.20.24.3.132" extension="2021-08-01"/>
4
4
  <code code="ENC" codeSystem="2.16.840.1.113883.5.6" displayName="Encounter" codeSystemName="ActClass"/>
5
5
  <entryRelationship typeCode="SUBJ">
6
6
  <encounter classCode="ENC" moodCode="RQO">
7
7
  <!-- Plan of Care Activity Encounter template -->
8
8
  <templateId root="2.16.840.1.113883.10.20.22.4.40" extension="2014-06-09"/>
9
9
  <!-- Encounter order template -->
10
- <templateId root="2.16.840.1.113883.10.20.24.3.22" extension="2019-12-01"/>
10
+ <templateId root="2.16.840.1.113883.10.20.24.3.22" extension="2021-08-01"/>
11
11
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
12
12
  <!-- QDM Attribute: Code -->
13
13
  {{> _codes}}
@@ -1,14 +1,14 @@
1
1
  <entry>
2
- <act classCode="ACT" moodCode="EVN" {{{negation_ind}}}>
2
+ <act classCode="ACT" moodCode="EVN">
3
3
  <!--Encounter performed Act -->
4
- <templateId extension="2019-12-01" root="2.16.840.1.113883.10.20.24.3.133"/>
4
+ <templateId extension="2021-08-01" root="2.16.840.1.113883.10.20.24.3.133"/>
5
5
  <code code="ENC" codeSystem="2.16.840.1.113883.5.6" codeSystemName="ActClass" displayName="Encounter"/>
6
6
  <entryRelationship typeCode="SUBJ">
7
7
  <encounter classCode="ENC" moodCode="EVN">
8
8
  <!-- Encounter activities template -->
9
9
  <templateId extension="2015-08-01" root="2.16.840.1.113883.10.20.22.4.49"/>
10
10
  <!-- Encounter performed template -->
11
- <templateId extension="2019-12-01" root="2.16.840.1.113883.10.20.24.3.23"/>
11
+ <templateId extension="2021-08-01" root="2.16.840.1.113883.10.20.24.3.23"/>
12
12
  <id extension="{{object_id}}" root="1.3.6.1.4.1.115"/>
13
13
  <!-- QDM Attribute: Code -->
14
14
  {{> _codes}}
@@ -40,15 +40,19 @@
40
40
  {{> qrda_templates/template_partials/_entity}}
41
41
  </participant>
42
42
  {{/participant}}
43
+ {{#clazz}}
44
+ <!-- QDM Attribute: Class -->
45
+ {{> qrda_templates/template_partials/_encounter_class}}
46
+ {{/clazz}}
43
47
  {{#diagnoses}}
44
48
  <!-- QDM Attribute: Diagnoses -->
45
49
  {{> qrda_templates/template_partials/_encounter_diagnosis_qdm}}
46
50
  {{/diagnoses}}
51
+ {{#relatedTo}}
52
+ <!-- QDM Attribute: relatedTo -->
53
+ {{> qrda_templates/template_partials/_related_to}}
54
+ {{/relatedTo}}
47
55
  </encounter>
48
56
  </entryRelationship>
49
- {{#negationRationale}}
50
- <!-- QDM Attribute: Negation Rationale -->
51
- {{> qrda_templates/template_partials/_reason}}
52
- {{/negationRationale}}
53
57
  </act>
54
58
  </entry>
@@ -1,14 +1,14 @@
1
1
  <entry>
2
2
  <act classCode="ACT" moodCode="INT" {{{negation_ind}}}>
3
3
  <!--Encounter Recommended Act (V2) -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.134" extension="2019-12-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.134" extension="2021-08-01"/>
5
5
  <code code="ENC" codeSystem="2.16.840.1.113883.5.6" codeSystemName="ActClass" displayName="Encounter"/>
6
6
  <entryRelationship typeCode="SUBJ">
7
7
  <encounter classCode="ENC" moodCode="INT">
8
8
  <!-- Conforms to C-CDA R2.1 Planned Encounter (V2) template -->
9
9
  <templateId root="2.16.840.1.113883.10.20.22.4.40" extension="2014-06-09"/>
10
10
  <!-- Encounter Recommended (V4) template -->
11
- <templateId root="2.16.840.1.113883.10.20.24.3.24" extension="2019-12-01"/>
11
+ <templateId root="2.16.840.1.113883.10.20.24.3.24" extension="2021-08-01"/>
12
12
  <id extension="{{object_id}}" root="1.3.6.1.4.1.115"/>
13
13
  <!-- QDM Attribute: Code -->
14
14
  {{> _codes}}
@@ -3,7 +3,7 @@
3
3
  <!-- C-CDA R2.1 Family History Organizer (V3) -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.45" extension="2015-08-01"/>
5
5
  <!-- Family History Organizer QDM (V4) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.12" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.12" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <statusCode code="completed" />
9
9
  {{#relationship}}
@@ -19,7 +19,7 @@
19
19
  <!-- Conforms to C-CDA R2.1 Family History Observation (V3) -->
20
20
  <templateId root="2.16.840.1.113883.10.20.22.4.46" extension="2015-08-01"/>
21
21
  <!-- Family History QDM (V3) -->
22
- <templateId root="2.16.840.1.113883.10.20.24.3.112" extension="2019-12-01"/>
22
+ <templateId root="2.16.840.1.113883.10.20.24.3.112" extension="2021-08-01"/>
23
23
  <id root="1.3.6.1.4.1.115" extension="{{random_id}}"/>
24
24
  <code code="75323-6" displayName="Condition" codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1">
25
25
  <translation code="64572001" displayName="Condition" codeSystemName="SNOMED CT" codeSystem="2.16.840.1.113883.6.96"/>
@@ -8,7 +8,7 @@
8
8
  <!-- C-CDA R2 Immunization Activity -->
9
9
  <templateId root="2.16.840.1.113883.10.20.22.4.52" extension="2015-08-01"/>
10
10
  <!-- Immunization Administered -->
11
- <templateId root="2.16.840.1.113883.10.20.24.3.140" extension="2019-12-01"/>
11
+ <templateId root="2.16.840.1.113883.10.20.24.3.140" extension="2021-08-01"/>
12
12
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
13
13
  <code code="416118004" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Administration"/>
14
14
  <statusCode code="completed"/>
@@ -3,7 +3,7 @@
3
3
  <!-- Conforms to C-CDA R2.1 Planned Immunization Activity -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.120"/>
5
5
  <!-- Immunization Order (V2) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.143" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.143" extension="2021-08-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"/>
@@ -3,7 +3,7 @@
3
3
  <!-- Conforms to C-CDA R2 Planned Act (V2) template -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.39" extension="2014-06-09"/>
5
5
  <!-- Intervention Order (V4) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.31" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.31" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  {{> _codes}}
9
9
  <text>{{description}}</text>
@@ -3,7 +3,7 @@
3
3
  <!-- Consolidation CDA: Procedure Activity Act template -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.12" extension="2014-06-09"/>
5
5
  <!-- Intervention Performed Template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.32" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.32" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  {{> _codes}}
9
9
  <text>{{description}}</text>
@@ -35,5 +35,9 @@
35
35
  <!-- QDM Attribute: Status -->
36
36
  {{> qrda_templates/template_partials/_status}}
37
37
  {{/status}}
38
+ {{#relatedTo}}
39
+ <!-- QDM Attribute: relatedTo -->
40
+ {{> qrda_templates/template_partials/_related_to}}
41
+ {{/relatedTo}}
38
42
  </act>
39
43
  </entry>
@@ -3,7 +3,7 @@
3
3
  <!-- Conforms to C-CDA R2.1 Planned Act (V2) template -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.39" extension="2014-06-09"/>
5
5
  <!-- Intervention Recommended (V4) template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.33" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.33" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <!-- QDM Attribute: Code -->
9
9
  {{> _codes}}
@@ -3,7 +3,7 @@
3
3
  <!-- Consolidation Plan of Care Activity Observation -->
4
4
  <templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09"/>
5
5
  <!-- Laboratory Test, Order (V4) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.37" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.37" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  {{> _codes}}
9
9
  <text>{{description}}</text>
@@ -1,7 +1,7 @@
1
1
  <entry>
2
2
  <observation classCode="OBS" moodCode="EVN" {{{negation_ind}}}>
3
3
  <!-- Laboratory Test Performed (V4) -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.38" extension="2019-12-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.38" extension="2021-08-01"/>
5
5
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
6
  {{> _codes}}
7
7
  <text>{{description}}</text>
@@ -41,9 +41,9 @@
41
41
  <!-- QDM Attribute: Components -->
42
42
  {{> qrda_templates/template_partials/_component}}
43
43
  {{/components}}
44
- {{#encounter_id}}
44
+ {{#relatedTo}}
45
45
  <!-- QDM Attribute: relatedTo -->
46
46
  {{> qrda_templates/template_partials/_related_to}}
47
- {{/encounter_id}}
47
+ {{/relatedTo}}
48
48
  </observation>
49
49
  </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
  <!-- Laboratory Test, Recommended (V4) -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.39" extension="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.39" extension="2021-08-01"/>
7
7
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
8
  <!-- QDM Attribute: Code -->
9
9
  {{> _codes}}
@@ -3,7 +3,7 @@
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="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.41" extension="2021-08-01"/>
7
7
 
8
8
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
9
9
  <text>{{description}}</text>
@@ -3,7 +3,7 @@
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="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.42" extension="2021-08-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"/>
@@ -1,7 +1,7 @@
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="2019-12-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.105" extension="2021-08-01"/>
5
5
  <code code="75311-1" codeSystem="2.16.840.1.113883.6.1" codeSystemName="LOINC" displayName="Discharge medications"/>
6
6
  <statusCode code="active"/>
7
7
  {{#prescriber}}
@@ -20,8 +20,6 @@
20
20
  <substanceAdministration moodCode="EVN" classCode="SBADM">
21
21
  <!-- Medication Activity (consolidation) template -->
22
22
  <templateId root="2.16.840.1.113883.10.20.22.4.16" extension="2014-06-09"/>
23
- <!-- Medication, Active template -->
24
- <templateId root="2.16.840.1.113883.10.20.24.3.41" extension="2019-12-01"/>
25
23
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
26
24
  <text>{{description}}</text>
27
25
  <statusCode code="active"/>
@@ -44,7 +42,7 @@
44
42
  </manufacturedProduct>
45
43
  </consumable>
46
44
  {{#authorDatetime}}
47
- {{> qrda_templates/template_partials/_author_participation}}
45
+ {{> qrda_templates/template_partials/_author}}
48
46
  {{/authorDatetime}}
49
47
  </substanceAdministration>
50
48
  </entryRelationship>
@@ -1,13 +1,13 @@
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="2019-12-01"/>
4
+ <templateId root="2.16.840.1.113883.10.20.24.3.139" extension="2021-08-01"/>
5
5
  <code code="SPLY" codeSystem="2.16.840.1.113883.5.6" displayName="supply" codeSystemName="ActClass"/>
6
6
  <entryRelationship typeCode="SUBJ">
7
7
  <!--Medication dispensed -->
8
8
  <supply classCode="SPLY" moodCode="EVN">
9
9
  <!-- Medication Dispensed template -->
10
- <templateId root="2.16.840.1.113883.10.20.24.3.45" extension="2019-12-01"/>
10
+ <templateId root="2.16.840.1.113883.10.20.24.3.45" extension="2021-08-01"/>
11
11
  <!-- Medication Dispense template -->
12
12
  <templateId root="2.16.840.1.113883.10.20.22.4.18" extension="2014-06-09"/>
13
13
  <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
@@ -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="2019-12-01"/>
6
+ <templateId root="2.16.840.1.113883.10.20.24.3.47" extension="2021-08-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"/>
@@ -66,5 +66,9 @@
66
66
  {{> qrda_templates/template_partials/_medication_supply_request}}
67
67
  </entryRelationship>
68
68
  {{/supply}}
69
+ {{#relatedTo}}
70
+ <!-- QDM Attribute: relatedTo -->
71
+ {{> qrda_templates/template_partials/_related_to}}
72
+ {{/relatedTo}}
69
73
  </substanceAdministration>
70
74
  </entry>