cqm-parsers 0.2.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +8 -4
  3. data/README.md +44 -5
  4. data/Rakefile +1 -0
  5. data/lib/ext/data_element.rb +1 -1
  6. data/lib/hqmf-parser.rb +13 -45
  7. data/lib/hqmf-parser/2.0/document.rb +1 -1
  8. data/lib/hqmf-parser/cql/document_helpers/doc_population_helper.rb +6 -1
  9. data/lib/measure-loader/cql_loader.rb +165 -0
  10. data/lib/measure-loader/elm_dependency_finder.rb +72 -0
  11. data/lib/measure-loader/elm_parser.rb +67 -0
  12. data/lib/measure-loader/exceptions.rb +10 -0
  13. data/lib/measure-loader/helpers.rb +11 -0
  14. data/lib/measure-loader/hqmf_measure_loader.rb +170 -0
  15. data/lib/measure-loader/mat_measure_files.rb +138 -0
  16. data/lib/measure-loader/source_data_criteria_loader.rb +65 -0
  17. data/lib/measure-loader/value_set_helpers.rb +68 -0
  18. data/lib/measure-loader/vsac_value_set_loader.rb +97 -0
  19. data/lib/util/util.rb +23 -0
  20. data/lib/util/vsac_api.rb +164 -101
  21. metadata +47 -129
  22. data/lib/ext/code.rb +0 -10
  23. data/lib/qrda-export/catI-r5/_code.mustache +0 -1
  24. data/lib/qrda-export/catI-r5/_codes.mustache +0 -10
  25. data/lib/qrda-export/catI-r5/_header.mustache +0 -28
  26. data/lib/qrda-export/catI-r5/_measure_section.mustache +0 -59
  27. data/lib/qrda-export/catI-r5/_reporting_period.mustache +0 -23
  28. data/lib/qrda-export/catI-r5/_values.mustache +0 -10
  29. data/lib/qrda-export/catI-r5/qrda1_r5.mustache +0 -137
  30. data/lib/qrda-export/catI-r5/qrda1_r5.rb +0 -125
  31. data/lib/qrda-export/catI-r5/qrda_header/_author.mustache +0 -24
  32. data/lib/qrda-export/catI-r5/qrda_header/_custodian.mustache +0 -43
  33. data/lib/qrda-export/catI-r5/qrda_header/_documentation_of_service_event.mustache +0 -82
  34. data/lib/qrda-export/catI-r5/qrda_header/_information_recipient.mustache +0 -7
  35. data/lib/qrda-export/catI-r5/qrda_header/_legal_authenticator.mustache +0 -25
  36. data/lib/qrda-export/catI-r5/qrda_header/_participant.mustache +0 -7
  37. data/lib/qrda-export/catI-r5/qrda_header/_record_target.mustache +0 -28
  38. data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +0 -28
  39. data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +0 -28
  40. data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +0 -25
  41. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_patient_to_provider.mustache +0 -29
  42. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_patient.mustache +0 -24
  43. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_provider.mustache +0 -31
  44. data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +0 -32
  45. data/lib/qrda-export/catI-r5/qrda_templates/device_ordered.mustache +0 -31
  46. data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +0 -38
  47. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_ordered.mustache +0 -19
  48. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +0 -32
  49. data/lib/qrda-export/catI-r5/qrda_templates/encounter_ordered.mustache +0 -24
  50. data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +0 -40
  51. data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +0 -29
  52. data/lib/qrda-export/catI-r5/qrda_templates/insurance_provider.mustache +0 -11
  53. data/lib/qrda-export/catI-r5/qrda_templates/intervention_ordered.mustache +0 -18
  54. data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +0 -25
  55. data/lib/qrda-export/catI-r5/qrda_templates/lab_test_ordered.mustache +0 -18
  56. data/lib/qrda-export/catI-r5/qrda_templates/lab_test_performed.mustache +0 -22
  57. data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +0 -35
  58. data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +0 -31
  59. data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +0 -55
  60. data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +0 -39
  61. data/lib/qrda-export/catI-r5/qrda_templates/medication_ordered.mustache +0 -38
  62. data/lib/qrda-export/catI-r5/qrda_templates/patient_characteristic_expired.mustache +0 -16
  63. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +0 -25
  64. data/lib/qrda-export/catI-r5/qrda_templates/procedure_ordered.mustache +0 -19
  65. data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +0 -44
  66. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_admission_source.mustache +0 -6
  67. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_anatomical_location_site.mustache +0 -1
  68. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author.mustache +0 -7
  69. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author_participation.mustache +0 -7
  70. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_component.mustache +0 -11
  71. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis.mustache +0 -19
  72. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_facility_location.mustache +0 -16
  73. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_mediation_frequency.mustache +0 -3
  74. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_details.mustache +0 -11
  75. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_ordinality.mustache +0 -1
  76. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_principal_diagnosis.mustache +0 -8
  77. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_reason.mustache +0 -12
  78. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_related_to.mustache +0 -6
  79. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_results.mustache +0 -19
  80. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_severity.mustache +0 -8
  81. data/lib/qrda-export/helper/cat_1_view_helper.rb +0 -150
  82. data/lib/qrda-export/helper/code_system_helper.rb +0 -77
  83. data/lib/qrda-export/helper/date_helper.rb +0 -89
  84. data/lib/qrda-import/base-importers/demographics_importer.rb +0 -49
  85. data/lib/qrda-import/base-importers/medication_importer.rb +0 -23
  86. data/lib/qrda-import/base-importers/section_importer.rb +0 -203
  87. data/lib/qrda-import/cda_identifier.rb +0 -19
  88. data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +0 -24
  89. data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +0 -22
  90. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +0 -26
  91. data/lib/qrda-import/data-element-importers/communication_from_patient_to_provider_importer.rb +0 -20
  92. data/lib/qrda-import/data-element-importers/communication_from_provider_to_patient_importer.rb +0 -20
  93. data/lib/qrda-import/data-element-importers/communication_from_provider_to_provider_importer.rb +0 -22
  94. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +0 -26
  95. data/lib/qrda-import/data-element-importers/device_order_importer.rb +0 -21
  96. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +0 -24
  97. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +0 -23
  98. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +0 -33
  99. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +0 -23
  100. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +0 -42
  101. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +0 -20
  102. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +0 -21
  103. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +0 -25
  104. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +0 -23
  105. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +0 -31
  106. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +0 -17
  107. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +0 -19
  108. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +0 -19
  109. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +0 -19
  110. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +0 -18
  111. data/lib/qrda-import/data-element-importers/patient_characteristic_expired.rb +0 -22
  112. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +0 -29
  113. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +0 -29
  114. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +0 -37
  115. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +0 -17
  116. data/lib/qrda-import/entry_finder.rb +0 -20
  117. data/lib/qrda-import/entry_package.rb +0 -16
  118. data/lib/qrda-import/narrative_reference_handler.rb +0 -33
  119. data/lib/qrda-import/patient_importer.rb +0 -111
@@ -1,24 +0,0 @@
1
- <entry>
2
- <act classCode="ACT" moodCode="EVN" {{{negation_ind}}}>
3
- <templateId root="2.16.840.1.113883.10.20.24.3.3" extension="2017-08-01"/>
4
- <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
5
- {{> _codes}}
6
- <text>{{description}}</text>
7
- <statusCode code="completed"/>
8
- {{#authorDatetime}}
9
- {{> qrda_templates/template_partials/_author}}
10
- {{/authorDatetime}}
11
- <participant typeCode="AUT">
12
- <participantRole classCode="ASSIGNED">
13
- <code code="158965000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Medical Practitioner"/>
14
- </participantRole>
15
- </participant>
16
-
17
- <participant typeCode="IRCP">
18
- <participantRole classCode="PAT"/>
19
- </participant>
20
- {{#negationRationale}}
21
- {{> qrda_templates/template_partials/_reason}}
22
- {{/negationRationale}}
23
- </act>
24
- </entry>
@@ -1,31 +0,0 @@
1
- <entry>
2
- <act classCode="ACT" moodCode="EVN" {{{negation_ind}}}>
3
- <!-- Communication from provider to provider -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.4" 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
- {{#authorDatetime}}
10
- {{> qrda_templates/template_partials/_author}}
11
- {{/authorDatetime}}
12
- <participant typeCode="AUT">
13
- <participantRole classCode="ASSIGNED">
14
- <code code="158965000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Medical Practitioner"/>
15
- </participantRole>
16
- </participant>
17
-
18
- <participant typeCode="IRCP">
19
- <participantRole classCode="ASSIGNED">
20
- <code code="158965000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Medical Practitioner"/>
21
- </participantRole>
22
- </participant>
23
- {{#negationRationale}}
24
- {{> qrda_templates/template_partials/_reason}}
25
- {{/negationRationale}}
26
- <!-- Fulfills-->
27
- {{#relatedTo}}
28
- {{> qrda_templates/template_partials/_related_to}}
29
- {{/relatedTo}}
30
- </act>
31
- </entry>
@@ -1,32 +0,0 @@
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="2017-08-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
- {{{relevant_period}}}
13
- {{/relevantPeriod}}
14
- {{#anatomicalLocationSite}}
15
- {{> qrda_templates/template_partials/_anatomical_location_site}}
16
- {{/anatomicalLocationSite}}
17
- {{#authorDatetime}}
18
- {{> qrda_templates/template_partials/_author}}
19
- {{/authorDatetime}}
20
- <participant typeCode="DEV">
21
- <participantRole classCode="MANU">
22
- <playingDevice classCode="DEV">
23
- {{> _codes}}
24
- </playingDevice>
25
- </participantRole>
26
- </participant>
27
- {{#negationRationale}}
28
- {{> qrda_templates/template_partials/_reason}}
29
- {{/negationRationale}}
30
- </procedure>
31
- </entry>
32
-
@@ -1,31 +0,0 @@
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
- {{> qrda_templates/template_partials/_author}}
17
- {{/authorDatetime}}
18
- <participant typeCode="DEV">
19
- <participantRole classCode="MANU">
20
- <playingDevice classCode="DEV">
21
- {{> _codes}}
22
- </playingDevice>
23
- </participantRole>
24
- </participant>
25
- </supply>
26
- </entryRelationship>
27
- {{#negationRationale}}
28
- {{> qrda_templates/template_partials/_reason}}
29
- {{/negationRationale}}
30
- </act>
31
- </entry>
@@ -1,38 +0,0 @@
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
- {{#completed_prevalence_period}}
10
- <statusCode code="completed" />
11
- {{/completed_prevalence_period}}
12
- {{^completed_prevalence_period}}
13
- <statusCode code="active" />
14
- {{/completed_prevalence_period}}
15
- {{{prevalence_period}}}
16
- <entryRelationship typeCode="SUBJ">
17
- <observation classCode="OBS" moodCode="EVN">
18
- <!-- Conforms to C-CDA R2.1 Problem Observation (V3) -->
19
- <templateId root="2.16.840.1.113883.10.20.22.4.4" extension="2015-08-01" />
20
- <!-- Diagnosis template -->
21
- <templateId root="2.16.840.1.113883.10.20.24.3.135" extension="2017-08-01" />
22
- <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
23
- <code code="29308-4" codeSystem="2.16.840.1.113883.6.1">
24
- <translation code="282291009" codeSystem="2.16.840.1.113883.6.96"/>
25
- </code>
26
- <statusCode code="completed" />
27
- {{{prevalence_period}}}
28
- {{> _values}}
29
- {{#anatomicalLocationSite}}
30
- {{> qrda_templates/template_partials/_anatomical_location_site}}
31
- {{/anatomicalLocationSite}}
32
- {{#severity}}
33
- {{> qrda_templates/template_partials/_severity}}
34
- {{/severity}}
35
- </observation>
36
- </entryRelationship>
37
- </act>
38
- </entry>
@@ -1,19 +0,0 @@
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
- {{> qrda_templates/template_partials/_author}}
14
- {{/authorDatetime}}
15
- {{#negationRationale}}
16
- {{> qrda_templates/template_partials/_reason}}
17
- {{/negationRationale}}
18
- </observation>
19
- </entry>
@@ -1,32 +0,0 @@
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
- {{{relevant_period}}}
14
- {{/relevantPeriod}}
15
- <value nullFlavor="NA" xsi:type="CD" />
16
- {{#authorDatetime}}
17
- {{> qrda_templates/template_partials/_author}}
18
- {{/authorDatetime}}
19
- {{#reason}}
20
- {{> qrda_templates/template_partials/_reason}}
21
- {{/reason}}
22
- {{#negationRationale}}
23
- {{> qrda_templates/template_partials/_reason}}
24
- {{/negationRationale}}
25
- {{#result}}
26
- {{> qrda_templates/template_partials/_results}}
27
- {{/result}}
28
- {{#components}}
29
- {{> qrda_templates/template_partials/_component}}
30
- {{/components}}
31
- </observation>
32
- </entry>
@@ -1,24 +0,0 @@
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
- {{> _codes}}
13
- <text>{{description}}</text>
14
- <statusCode code="active"/>
15
- {{#authorDatetime}}
16
- {{> qrda_templates/template_partials/_author}}
17
- {{/authorDatetime}}
18
- </encounter>
19
- </entryRelationship>
20
- {{#negationRationale}}
21
- {{> qrda_templates/template_partials/_reason}}
22
- {{/negationRationale}}
23
- </act>
24
- </entry>
@@ -1,40 +0,0 @@
1
- <entry>
2
- <act classCode="ACT" moodCode="EVN">
3
- <!--Encounter performed Act -->
4
- <templateId extension="2017-08-01" root="2.16.840.1.113883.10.20.24.3.133"/>
5
- <code code="ENC" codeSystem="2.16.840.1.113883.5.6" codeSystemName="ActClass" displayName="Encounter"/>
6
- <entryRelationship typeCode="SUBJ">
7
- <encounter classCode="ENC" moodCode="EVN">
8
- <!-- Encounter activities template -->
9
- <templateId extension="2015-08-01" root="2.16.840.1.113883.10.20.22.4.49"/>
10
- <!-- Encounter performed template -->
11
- <templateId extension="2017-08-01" root="2.16.840.1.113883.10.20.24.3.23"/>
12
- <id extension="{{object_id}}" root="1.3.6.1.4.1.115"/>
13
- {{> _codes}}
14
- <text>{{description}}</text>
15
- <statusCode code="completed"/>
16
- {{#relevantPeriod}}
17
- {{{relevant_period}}}
18
- {{/relevantPeriod}}
19
- {{#dischargeDisposition}}
20
- <sdtc:dischargeDispositionCode {{> _code}}/>
21
- {{/dischargeDisposition}}
22
- {{#authorDatetime}}
23
- {{> qrda_templates/template_partials/_author}}
24
- {{/authorDatetime}}
25
- {{#facilityLocations}}
26
- {{> qrda_templates/template_partials/_encounter_facility_location}}
27
- {{/facilityLocations}}
28
- {{#admissionSource}}
29
- {{> qrda_templates/template_partials/_admission_source}}
30
- {{/admissionSource}}
31
- {{#principalDiagnosis}}
32
- {{> qrda_templates/template_partials/_principal_diagnosis}}
33
- {{/principalDiagnosis}}
34
- {{#diagnoses}}
35
- {{> qrda_templates/template_partials/_encounter_diagnosis}}
36
- {{/diagnoses}}
37
- </encounter>
38
- </entryRelationship>
39
- </act>
40
- </entry>
@@ -1,29 +0,0 @@
1
- <entry>
2
- <substanceAdministration classCode="SBADM" moodCode="EVN" {{{negation_ind}}}>
3
- <!-- Immunization Activity template -->
4
- <templateId root="2.16.840.1.113883.10.20.22.4.52" extension="2014-06-09"/>
5
- <!-- Immunization, Administered template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.140" extension="2017-08-01"/>
7
- <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
- <code code="416118004" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Administration"/>
9
- <statusCode code="completed"/>
10
- {{#authorDatetime}}
11
- {{{author_effective_time}}}
12
- {{/authorDatetime}}
13
- {{> qrda_templates/template_partials/_medication_details}}
14
- <consumable>
15
- <manufacturedProduct classCode="MANU">
16
- <!-- Immunization Information (consolidation) template -->
17
- <templateId root="2.16.840.1.113883.10.20.22.4.54" extension="2014-06-09"/>
18
- <id root="{{random_id}}"/>
19
- <manufacturedMaterial>
20
- {{> _codes}}
21
- <lotNumberText>1</lotNumberText>
22
- </manufacturedMaterial>
23
- </manufacturedProduct>
24
- </consumable>
25
- {{#negationRationale}}
26
- {{> qrda_templates/template_partials/_reason}}
27
- {{/negationRationale}}
28
- </substanceAdministration>
29
- </entry>
@@ -1,11 +0,0 @@
1
- <entry>
2
- <!-- Patient Characteristic Payer -->
3
- <observation classCode="OBS" moodCode="EVN">
4
- <templateId root="2.16.840.1.113883.10.20.24.3.55"/>
5
- <id root="{{random_id}}"/>
6
- <code code="48768-6" codeSystemName="LOINC" codeSystem="2.16.840.1.113883.6.1" displayName="Payment source"/>
7
- <statusCode code="completed"/>
8
- {{{insurance_provider_period}}}
9
- <value xsi:type="CD" {{{insurance_provider_code_and_code_system}}} sdtc:valueSet="2.16.840.1.114222.4.11.3591"/>
10
- </observation>
11
- </entry>
@@ -1,18 +0,0 @@
1
- <entry>
2
- <act classCode="ACT" moodCode="RQO" {{{negation_ind}}}>
3
- <!-- Plan of Care Activity Act template -->
4
- <templateId root="2.16.840.1.113883.10.20.22.4.39" extension="2014-06-09"/>
5
- <!-- Intervention Order template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.31" 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
- {{#authorDatetime}}
12
- {{> qrda_templates/template_partials/_author}}
13
- {{/authorDatetime}}
14
- {{#negationRationale}}
15
- {{> qrda_templates/template_partials/_reason}}
16
- {{/negationRationale}}
17
- </act>
18
- </entry>
@@ -1,25 +0,0 @@
1
- <entry>
2
- <act classCode="ACT" moodCode="EVN" {{{negation_ind}}}>
3
- <!-- Consolidation CDA: Procedure Activity Act template -->
4
- <templateId root="2.16.840.1.113883.10.20.22.4.12" extension="2014-06-09"/>
5
- <!-- Intervention Performed Template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.32" 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="completed"/>
11
- {{#relevantPeriod}}
12
- {{{relevant_period}}}
13
- {{/relevantPeriod}}
14
- {{#authorDatetime}}
15
- {{> qrda_templates/template_partials/_author}}
16
- {{/authorDatetime}}
17
- {{#negationRationale}}
18
- {{> qrda_templates/template_partials/_reason}}
19
- {{/negationRationale}}
20
- {{#result}}
21
- {{> qrda_templates/template_partials/_results}}
22
- {{/result}}
23
-
24
- </act>
25
- </entry>
@@ -1,18 +0,0 @@
1
- <entry>
2
- <observation classCode="OBS" moodCode="RQO" {{{negation_ind}}}>
3
- <!-- Consolidation Plan of Care Activity Observation -->
4
- <templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09"/>
5
- <!-- Lab Test Order -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.37" 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
- {{#authorDatetime}}
12
- {{> qrda_templates/template_partials/_author}}
13
- {{/authorDatetime}}
14
- {{#negationRationale}}
15
- {{> qrda_templates/template_partials/_reason}}
16
- {{/negationRationale}}
17
- </observation>
18
- </entry>
@@ -1,22 +0,0 @@
1
- <entry>
2
- <observation classCode="OBS" moodCode="EVN" {{{negation_ind}}}>
3
- <!-- Lab test performed -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.38" 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
- {{#relevantPeriod}}
10
- {{{relevant_period}}}
11
- {{/relevantPeriod}}
12
- {{#authorDatetime}}
13
- {{> qrda_templates/template_partials/_author}}
14
- {{/authorDatetime}}
15
- {{#negationRationale}}
16
- {{> qrda_templates/template_partials/_reason}}
17
- {{/negationRationale}}
18
- {{#result}}
19
- {{> qrda_templates/template_partials/_results}}
20
- {{/result}}
21
- </observation>
22
- </entry>
@@ -1,35 +0,0 @@
1
- <entry>
2
- <substanceAdministration classCode="SBADM" moodCode="EVN">
3
- <!-- Medication Activity (consolidation) template -->
4
- <templateId root="2.16.840.1.113883.10.20.22.4.16" extension="2014-06-09"/>
5
- <!-- Medication, Active template -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.41" extension="2017-08-01"/>
7
-
8
- <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
9
- <text>{{description}}</text>
10
- <statusCode code="active"/>
11
- {{#relevantPeriod}}
12
- {{{medication_duration_effective_time}}}
13
- {{/relevantPeriod}}
14
- {{#frequency}}
15
- {{> qrda_templates/template_partials/_medication_frequency}}
16
- {{/frequency}}
17
- {{> qrda_templates/template_partials/_medication_details}}
18
-
19
- <consumable>
20
- <manufacturedProduct classCode="MANU">
21
- <!-- Medication Information (consolidation) template -->
22
- <templateId root="2.16.840.1.113883.10.20.22.4.23" extension="2014-06-09"/>
23
- <id root="{{random_id}}"/>
24
- <manufacturedMaterial>
25
- {{> _codes}}
26
- </manufacturedMaterial>
27
- <manufacturerOrganization>
28
- <name>Medication Factory Inc.</name>
29
- </manufacturerOrganization>
30
- </manufacturedProduct>
31
- </consumable>
32
-
33
- </substanceAdministration>
34
-
35
- </entry>