cqm-parsers 0.2.2 → 3.0.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 +7 -3
  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 +49 -116
  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 -29
  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 -21
  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 -142
  84. data/lib/qrda-export/helper/code_system_helper.rb +0 -77
  85. data/lib/qrda-export/helper/date_helper.rb +0 -85
  86. data/lib/qrda-import/base-importers/demographics_importer.rb +0 -43
  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 -19
  94. data/lib/qrda-import/data-element-importers/communication_from_provider_to_patient_importer.rb +0 -19
  95. data/lib/qrda-import/data-element-importers/communication_from_provider_to_provider_importer.rb +0 -21
  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 -16
  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,125 +0,0 @@
1
- require 'mustache'
2
- class Qrda1R5 < Mustache
3
- include Qrda::Export::Helper::DateHelper
4
- include Qrda::Export::Helper::Cat1ViewHelper
5
-
6
- self.template_path = __dir__
7
-
8
- def initialize(patient, measures, options = {})
9
- @patient = patient
10
- @measures = measures
11
- @provider = options[:provider]
12
- @performance_period_start = options[:start_time]
13
- @performance_period_end = options[:end_time]
14
- @submission_program = options[:submission_program]
15
- @insurance_provider = JSON.parse(@patient.extendedData.insurance_providers) if @patient.extendedData && @patient.extendedData['insurance_providers']
16
- end
17
-
18
- def adverse_event
19
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('adverse_event', '') }).to_json)
20
- end
21
-
22
- def allergy_intolerance
23
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('allergy_intolerance', '') }).to_json)
24
- end
25
-
26
- def assessment_performed
27
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('assessment', 'performed') }).to_json)
28
- end
29
-
30
- def communication_from_patient_to_provider
31
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('communication_from_patient_to_provider', '') }).to_json)
32
- end
33
-
34
- def communication_from_provider_to_patient
35
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('communication_from_provider_to_patient', '') }).to_json)
36
- end
37
-
38
- def communication_from_provider_to_provider
39
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('communication_from_provider_to_provider', '') }).to_json)
40
- end
41
-
42
- def diagnosis
43
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('diagnosis', '') }).to_json)
44
- end
45
-
46
- def device_ordered
47
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('device', 'ordered') }).to_json)
48
- end
49
-
50
- def device_applied
51
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('device', 'applied') }).to_json)
52
- end
53
-
54
- def diagnostic_study_ordered
55
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('diagnostic_study', 'ordered') }).to_json)
56
- end
57
-
58
- def diagnostic_study_performed
59
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('diagnostic_study', 'performed') }).to_json)
60
- end
61
-
62
- def encounter_ordered
63
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('encounter', 'ordered') }).to_json)
64
- end
65
-
66
- def encounter_performed
67
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('encounter', 'performed') }).to_json)
68
- end
69
-
70
- def immunization_administered
71
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('immunization', 'administered') }).to_json)
72
- end
73
-
74
- def intervention_ordered
75
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('intervention', 'ordered') }).to_json)
76
- end
77
-
78
- def intervention_performed
79
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('intervention', 'performed') }).to_json)
80
- end
81
-
82
- def lab_test_performed
83
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('laboratory_test', 'performed') }).to_json)
84
- end
85
-
86
- def lab_test_ordered
87
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('laboratory_test', 'ordered') }).to_json)
88
- end
89
-
90
- def medication_active
91
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('medication', 'active') }).to_json)
92
- end
93
-
94
- def medication_administered
95
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('medication', 'administered') + HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('substance', 'administered') }).to_json)
96
- end
97
-
98
- def medication_discharge
99
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('medication', 'discharge') }).to_json)
100
- end
101
-
102
- def medication_dispensed
103
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('medication', 'dispensed') }).to_json)
104
- end
105
-
106
- def medication_ordered
107
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('medication', 'ordered') }).to_json)
108
- end
109
-
110
- def patient_characteristic_expired
111
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('patient_characteristic_expired', '') }).to_json)
112
- end
113
-
114
- def physical_exam_performed
115
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('physical_exam', 'performed') }).to_json)
116
- end
117
-
118
- def procedure_ordered
119
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('procedure', 'ordered') }).to_json)
120
- end
121
-
122
- def procedure_performed
123
- JSON.parse(@patient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('procedure', 'performed') }).to_json)
124
- end
125
- end
@@ -1,24 +0,0 @@
1
- <author>
2
- <time value="{{{current_time}}}"/>
3
- <assignedAuthor>
4
- <!-- NPI -->
5
- {{#provider}}
6
- <id extension="{{{provider_npi}}}" root="2.16.840.1.113883.4.6"/>
7
- {{/provider}}
8
- {{^provider}}
9
- <id extension="1982671962" root="2.16.840.1.113883.4.6"/>
10
- {{/provider}}
11
- <addr>
12
- <streetAddressLine>202 Burlington Rd.</streetAddressLine>
13
- <city>Bedford</city>
14
- <state>MA</state>
15
- <postalCode>01730</postalCode>
16
- <country>US</country>
17
- </addr>
18
- <telecom use="WP" value="tel:(781)271-3000"/>
19
- <assignedAuthoringDevice>
20
- <manufacturerModelName>Cypress</manufacturerModelName>
21
- <softwareName>Cypress</softwareName>
22
- </assignedAuthoringDevice>
23
- </assignedAuthor>
24
- </author>
@@ -1,43 +0,0 @@
1
- {{#provider}}
2
- <custodian>
3
- <assignedCustodian>
4
- <representedCustodianOrganization>
5
- {{#provider_ccn}}
6
- <id extension="{{{provider_ccn}}}" root="2.16.840.1.113883.4.336"/>
7
- {{/provider_ccn}}
8
- {{^provider_ccn}}
9
- <id extension="800890" root="2.16.840.1.113883.4.336"/>
10
- {{/provider_ccn}}
11
- <name>Cypress Test Deck</name>
12
- <telecom use="WP" value="tel:(781)271-3000"/>
13
- {{#provider_addresses}}
14
- <addr use="HP">
15
- <streetAddressLine>{{{provider_street}}}</streetAddressLine>
16
- <city>{{{city}}}</city>
17
- <state>{{{state}}}</state>
18
- <postalCode>{{{zip}}}</postalCode>
19
- <country>{{{country}}}</country>
20
- </addr>
21
- {{/provider_addresses}}
22
- </representedCustodianOrganization>
23
- </assignedCustodian>
24
- </custodian>
25
- {{/provider}}
26
- {{^provider}}
27
- <custodian>
28
- <assignedCustodian>
29
- <representedCustodianOrganization>
30
- <id extension="800890" root="2.16.840.1.113883.4.336"/>
31
- <name>Cypress Test Deck</name>
32
- <telecom use="WP" value="tel:(781)271-3000"/>
33
- <addr>
34
- <streetAddressLine>202 Burlington Rd.</streetAddressLine>
35
- <city>Bedford</city>
36
- <state>MA</state>
37
- <postalCode>01730</postalCode>
38
- <country>US</country>
39
- </addr>
40
- </representedCustodianOrganization>
41
- </assignedCustodian>
42
- </custodian>
43
- {{/provider}}
@@ -1,82 +0,0 @@
1
- <documentationOf typeCode="DOC">
2
- <serviceEvent classCode="PCPR">
3
- <!-- care provision -->
4
- <effectiveTime>
5
- <low nullFlavor="UNK"/>
6
- <high nullFlavor="UNK"/>
7
- </effectiveTime>
8
- <!-- You can include multiple performers, each with an NPI, TIN, CCN. -->
9
- <performer typeCode="PRF">
10
- <time>
11
- <low nullFlavor="UNK"/>
12
- <high nullFlavor="UNK"/>
13
- </time>
14
- {{#provider}}
15
- <assignedEntity>
16
- <id extension="{{{provider_npi}}}" root="2.16.840.1.113883.4.6"/>
17
- {{#provider_ccn}}
18
- <id extension="{{{provider_ccn}}}" root="2.16.840.1.113883.4.336"/>
19
- {{/provider_ccn}}
20
- <code code="{{{provider_type_code}}}" codeSystem="2.16.840.1.113883.6.101" codeSystemName="Healthcare Provider Taxonomy (HIPAA)"/>
21
- {{#provider_addresses}}
22
- <addr use="HP">
23
- <streetAddressLine>{{{provider_street}}}</streetAddressLine>
24
- <city>{{{city}}}</city>
25
- <state>{{{state}}}</state>
26
- <postalCode>{{{zip}}}</postalCode>
27
- <country>{{{country}}}</country>
28
- </addr>
29
- {{/provider_addresses}}
30
- <assignedPerson>
31
- <name>
32
- <given>{{{given_name}}}</given>
33
- <family>{{{family_name}}}</family>
34
- </name>
35
- </assignedPerson>
36
- <representedOrganization>
37
- <id extension="{{{provider_tin}}}" root="2.16.840.1.113883.4.2"/>
38
- {{#provider_addresses}}
39
- <addr use="HP">
40
- <streetAddressLine>{{{provider_street}}}</streetAddressLine>
41
- <city>{{{city}}}</city>
42
- <state>{{{state}}}</state>
43
- <postalCode>{{{zip}}}</postalCode>
44
- <country>{{{country}}}</country>
45
- </addr>
46
- {{/provider_addresses}}
47
- </representedOrganization>
48
- </assignedEntity>
49
- {{/provider}}
50
- {{^provider}}
51
- <assignedEntity>
52
- <id extension="1982671962" root="2.16.840.1.113883.4.6"/>
53
- <id extension="463132" root="2.16.840.1.113883.4.336"/>
54
- <code code="282N00000X" codeSystem="2.16.840.1.113883.6.101" codeSystemName="Healthcare Provider Taxonomy (HIPAA)"/>
55
- <addr use="HP">
56
- <streetAddressLine>16432 Jayme Viaduct Manor</streetAddressLine>
57
- <city>Clairland</city>
58
- <state>MS</state>
59
- <postalCode>38796</postalCode>
60
- <country>US</country>
61
- </addr>
62
- <assignedPerson>
63
- <name>
64
- <given>Daryl</given>
65
- <family>Carroll</family>
66
- </name>
67
- </assignedPerson>
68
- <representedOrganization>
69
- <id extension="695939209" root="2.16.840.1.113883.4.2"/>
70
- <addr use="HP">
71
- <streetAddressLine>16432 Jayme Viaduct Manor</streetAddressLine>
72
- <city>Clairland</city>
73
- <state>MS</state>
74
- <postalCode>38796</postalCode>
75
- <country>US</country>
76
- </addr>
77
- </representedOrganization>
78
- </assignedEntity>
79
- {{/provider}}
80
- </performer>
81
- </serviceEvent>
82
- </documentationOf>
@@ -1,7 +0,0 @@
1
- {{#submission_program}}
2
- <informationRecipient>
3
- <intendedRecipient>
4
- <id extension="{{submission_program}}" root="2.16.840.1.113883.3.249.7"/>
5
- </intendedRecipient>
6
- </informationRecipient>
7
- {{/submission_program}}
@@ -1,25 +0,0 @@
1
- <legalAuthenticator>
2
- <time value="{{{current_time}}}"/>
3
- <signatureCode code="S"/>
4
- <assignedEntity>
5
- <id root="bc01a5d1-3a34-4286-82cc-43eb04c972a7"/>
6
- <addr>
7
- <streetAddressLine>202 Burlington Rd.</streetAddressLine>
8
- <city>Bedford</city>
9
- <state>MA</state>
10
- <postalCode>01730</postalCode>
11
- <country>US</country>
12
- </addr>
13
- <telecom use="WP" value="tel:(781)271-3000"/>
14
- <assignedPerson>
15
- <name>
16
- <given>Henry</given>
17
- <family>Seven</family>
18
- </name>
19
- </assignedPerson>
20
- <representedOrganization>
21
- <id root="2.16.840.1.113883.19.5"/>
22
- <name>Cypress</name>
23
- </representedOrganization>
24
- </assignedEntity>
25
- </legalAuthenticator>
@@ -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>