cqm-parsers 0.2.3 → 3.1.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 +8 -4
  3. data/README.md +57 -5
  4. data/Rakefile +1 -0
  5. data/lib/{hqmf-parser.rb → cqm-parsers.rb} +13 -45
  6. data/lib/ext/data_element.rb +1 -1
  7. data/lib/hqmf-parser/2.0/document.rb +1 -1
  8. data/lib/hqmf-parser/2.0/population_criteria.rb +1 -1
  9. data/lib/hqmf-parser/cql/document_helpers/doc_population_helper.rb +11 -6
  10. data/lib/measure-loader/cql_loader.rb +165 -0
  11. data/lib/measure-loader/elm_dependency_finder.rb +72 -0
  12. data/lib/measure-loader/elm_parser.rb +67 -0
  13. data/lib/measure-loader/exceptions.rb +10 -0
  14. data/lib/measure-loader/helpers.rb +11 -0
  15. data/lib/measure-loader/hqmf_measure_loader.rb +170 -0
  16. data/lib/measure-loader/mat_measure_files.rb +138 -0
  17. data/lib/measure-loader/source_data_criteria_loader.rb +75 -0
  18. data/lib/measure-loader/value_set_helpers.rb +68 -0
  19. data/lib/measure-loader/vsac_value_set_loader.rb +97 -0
  20. data/lib/tasks/hqmf.rake +1 -1
  21. data/lib/util/util.rb +23 -0
  22. data/lib/util/vsac_api.rb +166 -103
  23. metadata +60 -127
  24. data/lib/ext/code.rb +0 -10
  25. data/lib/qrda-export/catI-r5/_code.mustache +0 -1
  26. data/lib/qrda-export/catI-r5/_codes.mustache +0 -10
  27. data/lib/qrda-export/catI-r5/_header.mustache +0 -28
  28. data/lib/qrda-export/catI-r5/_measure_section.mustache +0 -59
  29. data/lib/qrda-export/catI-r5/_reporting_period.mustache +0 -23
  30. data/lib/qrda-export/catI-r5/_values.mustache +0 -10
  31. data/lib/qrda-export/catI-r5/qrda1_r5.mustache +0 -137
  32. data/lib/qrda-export/catI-r5/qrda1_r5.rb +0 -125
  33. data/lib/qrda-export/catI-r5/qrda_header/_author.mustache +0 -24
  34. data/lib/qrda-export/catI-r5/qrda_header/_custodian.mustache +0 -43
  35. data/lib/qrda-export/catI-r5/qrda_header/_documentation_of_service_event.mustache +0 -82
  36. data/lib/qrda-export/catI-r5/qrda_header/_information_recipient.mustache +0 -7
  37. data/lib/qrda-export/catI-r5/qrda_header/_legal_authenticator.mustache +0 -25
  38. data/lib/qrda-export/catI-r5/qrda_header/_participant.mustache +0 -7
  39. data/lib/qrda-export/catI-r5/qrda_header/_record_target.mustache +0 -28
  40. data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +0 -28
  41. data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +0 -28
  42. data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +0 -25
  43. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_patient_to_provider.mustache +0 -29
  44. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_patient.mustache +0 -24
  45. data/lib/qrda-export/catI-r5/qrda_templates/communication_from_provider_to_provider.mustache +0 -31
  46. data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +0 -32
  47. data/lib/qrda-export/catI-r5/qrda_templates/device_ordered.mustache +0 -31
  48. data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +0 -38
  49. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_ordered.mustache +0 -19
  50. data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +0 -32
  51. data/lib/qrda-export/catI-r5/qrda_templates/encounter_ordered.mustache +0 -24
  52. data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +0 -40
  53. data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +0 -29
  54. data/lib/qrda-export/catI-r5/qrda_templates/insurance_provider.mustache +0 -11
  55. data/lib/qrda-export/catI-r5/qrda_templates/intervention_ordered.mustache +0 -18
  56. data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +0 -25
  57. data/lib/qrda-export/catI-r5/qrda_templates/lab_test_ordered.mustache +0 -18
  58. data/lib/qrda-export/catI-r5/qrda_templates/lab_test_performed.mustache +0 -22
  59. data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +0 -35
  60. data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +0 -31
  61. data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +0 -55
  62. data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +0 -39
  63. data/lib/qrda-export/catI-r5/qrda_templates/medication_ordered.mustache +0 -38
  64. data/lib/qrda-export/catI-r5/qrda_templates/patient_characteristic_expired.mustache +0 -16
  65. data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +0 -25
  66. data/lib/qrda-export/catI-r5/qrda_templates/procedure_ordered.mustache +0 -19
  67. data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +0 -44
  68. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_admission_source.mustache +0 -6
  69. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_anatomical_location_site.mustache +0 -1
  70. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author.mustache +0 -7
  71. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author_participation.mustache +0 -7
  72. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_component.mustache +0 -11
  73. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis.mustache +0 -19
  74. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_facility_location.mustache +0 -16
  75. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_mediation_frequency.mustache +0 -3
  76. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_details.mustache +0 -11
  77. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_ordinality.mustache +0 -1
  78. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_principal_diagnosis.mustache +0 -8
  79. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_reason.mustache +0 -12
  80. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_related_to.mustache +0 -6
  81. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_results.mustache +0 -19
  82. data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_severity.mustache +0 -8
  83. data/lib/qrda-export/helper/cat_1_view_helper.rb +0 -146
  84. data/lib/qrda-export/helper/code_system_helper.rb +0 -77
  85. data/lib/qrda-export/helper/date_helper.rb +0 -89
  86. data/lib/qrda-import/base-importers/demographics_importer.rb +0 -49
  87. data/lib/qrda-import/base-importers/medication_importer.rb +0 -23
  88. data/lib/qrda-import/base-importers/section_importer.rb +0 -196
  89. data/lib/qrda-import/cda_identifier.rb +0 -19
  90. data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +0 -24
  91. data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +0 -22
  92. data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +0 -24
  93. data/lib/qrda-import/data-element-importers/communication_from_patient_to_provider_importer.rb +0 -20
  94. data/lib/qrda-import/data-element-importers/communication_from_provider_to_patient_importer.rb +0 -20
  95. data/lib/qrda-import/data-element-importers/communication_from_provider_to_provider_importer.rb +0 -22
  96. data/lib/qrda-import/data-element-importers/device_applied_importer.rb +0 -24
  97. data/lib/qrda-import/data-element-importers/device_order_importer.rb +0 -19
  98. data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +0 -24
  99. data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +0 -21
  100. data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +0 -31
  101. data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +0 -21
  102. data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +0 -42
  103. data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +0 -18
  104. data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +0 -19
  105. data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +0 -23
  106. data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +0 -21
  107. data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +0 -29
  108. data/lib/qrda-import/data-element-importers/medication_active_importer.rb +0 -17
  109. data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +0 -17
  110. data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +0 -19
  111. data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +0 -19
  112. data/lib/qrda-import/data-element-importers/medication_order_importer.rb +0 -16
  113. data/lib/qrda-import/data-element-importers/patient_characteristic_expired.rb +0 -22
  114. data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +0 -27
  115. data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +0 -27
  116. data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +0 -35
  117. data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +0 -17
  118. data/lib/qrda-import/entry_finder.rb +0 -20
  119. data/lib/qrda-import/entry_package.rb +0 -16
  120. data/lib/qrda-import/narrative_reference_handler.rb +0 -33
  121. data/lib/qrda-import/patient_importer.rb +0 -111
@@ -1,7 +0,0 @@
1
- <participant typeCode="DEV">
2
- <associatedEntity classCode="RGPR">
3
- <!-- CMS EHR Certification Number (formerly known as Office of the
4
- National Coordinator Certification Number) -->
5
- <id extension="123456789" root="2.16.840.1.113883.3.2074.1"/>
6
- </associatedEntity>
7
- </participant>
@@ -1,28 +0,0 @@
1
- <recordTarget>
2
- <patientRole>
3
- <id extension="{{mrn}}" root="1.3.6.1.4.1.115" />
4
- <addr use="HP">
5
- <streetAddressLine>202 Burlington Rd.</streetAddressLine>
6
- <city>Bedford</city>
7
- <state>MA</state>
8
- <postalCode>01730</postalCode>
9
- <country>US</country>
10
- </addr>
11
- <telecom use="WP" value="tel:+1-781-271-3000"/>
12
- <patient>
13
- <name>
14
- <given>{{{given_name}}}</given>
15
- <family>{{family_name}}</family>
16
- </name>
17
- <administrativeGenderCode code="{{{gender}}}" codeSystem="2.16.840.1.113883.5.1" codeSystemName="HL7 AdministrativeGender"/>
18
- <birthTime value="{{{birthdate}}}"/>
19
- <raceCode code="{{{race}}}" codeSystemName="CDC Race and Ethnicity" codeSystem="2.16.840.1.113883.6.238"/>
20
- <ethnicGroupCode code="{{{ethnic_group}}}" codeSystemName="CDC Race and Ethnicity" codeSystem="2.16.840.1.113883.6.238"/>
21
- <languageCommunication>
22
- <templateId root="2.16.840.1.113883.3.88.11.83.2" assigningAuthorityName="HITSP/C83"/>
23
- <templateId root="1.3.6.1.4.1.19376.1.5.3.1.2.1" assigningAuthorityName="IHE/PCC"/>
24
- <languageCode code="eng"/>
25
- </languageCommunication>
26
- </patient>
27
- </patientRole>
28
- </recordTarget>
@@ -1,28 +0,0 @@
1
- <entry>
2
- <observation classCode="OBS" moodCode="EVN">
3
- <!-- Adverse Event -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.146" extension="2017-08-01"/>
5
- <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
- <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
7
- <statusCode code="completed"/>
8
- {{#relevantPeriod}}
9
- {{{relevant_period}}}
10
- {{/relevantPeriod}}
11
- <value xsi:type="CD"
12
- code="281647001"
13
- displayName="Adverse reaction"
14
- codeSystem="2.16.840.1.113883.6.96"
15
- codeSystemName="SNOMED CT"/>
16
- {{#authorDatetime}}
17
- {{> qrda_templates/template_partials/_author}}
18
- {{/authorDatetime}}
19
- <entryRelationship typeCode="CAUS" inversionInd="true">
20
- <observation classCode="OBS" moodCode="EVN">
21
- <templateId root="2.16.840.1.113883.10.20.24.3.148" extension="2017-08-01" />
22
- <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4" />
23
- <statusCode code="completed" />
24
- {{> _values}}
25
- </observation>
26
- </entryRelationship>
27
- </observation>
28
- </entry>
@@ -1,28 +0,0 @@
1
- <entry>
2
- <observation classCode="OBS" moodCode="EVN">
3
- <!-- Conforms to C-CDA R2.1 Substance or Device Allergy - Intolerance Observation (V2) -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.90" extension="2014-06-09"/>
5
- <!-- Allergy Intolerance -->
6
- <templateId root="2.16.840.1.113883.10.20.24.3.147" extension="2017-08-01"/>
7
- <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
8
- <code code="ASSERTION" codeSystem="2.16.840.1.113883.5.4"/>
9
- <statusCode code="completed"/>
10
- {{{prevalence_period}}}
11
- <value xsi:type="CD"
12
- code="419199007"
13
- displayName="Allergy to substance"
14
- codeSystem="2.16.840.1.113883.6.96"
15
- codeSystemName="SNOMED CT"/>
16
- {{#authorDatetime}}
17
- {{> qrda_templates/template_partials/_author}}
18
- {{/authorDatetime}}
19
- <participant typeCode="CSM">
20
- <participantRole classCode="MANU">
21
- <playingEntity classCode="MMAT">
22
- {{> _codes}}
23
- <name>{{description}}</name>
24
- </playingEntity>
25
- </participantRole>
26
- </participant>
27
- </observation>
28
- </entry>
@@ -1,25 +0,0 @@
1
- <entry>
2
- <observation classCode="OBS" moodCode="EVN" {{{negation_ind}}}>
3
- <!-- Assessment Performed -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.144" extension="2017-08-01" />
5
- <id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
6
- {{> _codes}}
7
- <text>{{description}}</text>
8
- <statusCode code="completed"/>
9
- {{#relevantPeriod}}
10
- {{{relevant_period}}}
11
- {{/relevantPeriod}}
12
- {{#result}}
13
- {{{result_value}}}
14
- {{/result}}
15
- {{#authorDatetime}}
16
- {{> qrda_templates/template_partials/_author}}
17
- {{/authorDatetime}}
18
- {{#negationRationale}}
19
- {{> qrda_templates/template_partials/_reason}}
20
- {{/negationRationale}}
21
- {{#components}}
22
- {{> qrda_templates/template_partials/_component}}
23
- {{/components}}
24
- </observation>
25
- </entry>
@@ -1,29 +0,0 @@
1
- <entry>
2
- <act classCode="ACT" moodCode="EVN" {{{negation_ind}}}>
3
- <!-- Communication from patient to provider -->
4
- <templateId root="2.16.840.1.113883.10.20.24.3.2" 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="PAT">
14
- <code code="116154003" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Patient"/>
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
-
24
- {{#negationRationale}}
25
- {{> qrda_templates/template_partials/_reason}}
26
- {{/negationRationale}}
27
-
28
- </act>
29
- </entry>
@@ -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
- {{#negationRationale}}
26
- {{> qrda_templates/template_partials/_reason}}
27
- {{/negationRationale}}
28
- </supply>
29
- </entryRelationship>
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
- {{#negationRationale}}
19
- {{> qrda_templates/template_partials/_reason}}
20
- {{/negationRationale}}
21
- </encounter>
22
- </entryRelationship>
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>