cqm-reports 3.0.0.pre.alpha.2 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +2 -1
- data/README.md +26 -0
- data/lib/cqm-reports.rb +3 -2
- data/lib/html-export/qdm-patient/data_element/_data_element_other_fields.mustache +129 -5
- data/lib/html-export/qdm-patient/data_element/_data_element_times.mustache +36 -1
- data/lib/html-export/qdm-patient/qdm_patient.rb +39 -5
- data/lib/qrda-export/catI-r5/_header.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda1_r5.mustache +10 -2
- data/lib/qrda-export/catI-r5/qrda1_r5.rb +33 -2
- data/lib/qrda-export/catI-r5/qrda_header/_record_target.mustache +24 -9
- data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +8 -2
- data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +8 -8
- data/lib/qrda-export/catI-r5/qrda_templates/assessment_order.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +17 -1
- data/lib/qrda-export/catI-r5/qrda_templates/assessment_recommended.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/communication_performed.mustache +12 -13
- data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +17 -5
- data/lib/qrda-export/catI-r5/qrda_templates/device_order.mustache +8 -2
- data/lib/qrda-export/catI-r5/qrda_templates/device_recommended.mustache +8 -2
- data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +9 -9
- data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_order.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +17 -5
- data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_recommended.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/encounter_order.mustache +11 -2
- data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +9 -3
- data/lib/qrda-export/catI-r5/qrda_templates/encounter_recommended.mustache +8 -2
- data/lib/qrda-export/catI-r5/qrda_templates/family_history.mustache +8 -2
- data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +22 -7
- data/lib/qrda-export/catI-r5/qrda_templates/immunization_order.mustache +8 -2
- data/lib/qrda-export/catI-r5/qrda_templates/intervention_order.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +17 -5
- data/lib/qrda-export/catI-r5/qrda_templates/intervention_recommended.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_order.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_performed.mustache +17 -5
- data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_recommended.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +17 -7
- data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +17 -5
- data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +14 -2
- data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +27 -16
- data/lib/qrda-export/catI-r5/qrda_templates/medication_order.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/patient_care_experience.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_order.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +17 -5
- data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_recommended.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/procedure_order.mustache +11 -1
- data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +21 -5
- data/lib/qrda-export/catI-r5/qrda_templates/procedure_recommended.mustache +11 -1
- data/lib/qrda-export/catI-r5/qrda_templates/program_participation.mustache +21 -0
- data/lib/qrda-export/catI-r5/qrda_templates/provider_care_experience.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/related_person.mustache +18 -0
- data/lib/qrda-export/catI-r5/qrda_templates/substance_recommended.mustache +7 -1
- data/lib/qrda-export/catI-r5/qrda_templates/symptom.mustache +10 -8
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_author.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis_qdm.mustache +24 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity.mustache +12 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_care_partner.mustache +11 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_organization.mustache +11 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_patient.mustache +6 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_practitioner.mustache +19 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_immunization_supply_request.mustache +29 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_medication_supply_request.mustache +12 -1
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_rank.mustache +7 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_related_to.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_results.mustache +8 -1
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_status.mustache +1 -1
- data/lib/qrda-export/helper/cat1_view_helper.rb +2 -0
- data/lib/qrda-export/helper/date_helper.rb +27 -4
- data/lib/qrda-import/base-importers/demographics_importer.rb +3 -3
- data/lib/qrda-import/base-importers/section_importer.rb +48 -5
- data/lib/qrda-import/data-element-importers/adverse_event_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/allergy_intolerance_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/assessment_order_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +3 -0
- data/lib/qrda-import/data-element-importers/assessment_recommended_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/communication_performed_importer.rb +7 -6
- data/lib/qrda-import/data-element-importers/device_applied_importer.rb +2 -0
- data/lib/qrda-import/data-element-importers/device_order_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/device_recommended_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +2 -0
- data/lib/qrda-import/data-element-importers/diagnostic_study_recommended_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +3 -0
- data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +7 -3
- data/lib/qrda-import/data-element-importers/encounter_recommended_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/family_history_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +3 -1
- data/lib/qrda-import/data-element-importers/immunization_order_importer.rb +4 -3
- data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +2 -0
- data/lib/qrda-import/data-element-importers/intervention_recommended_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +2 -0
- data/lib/qrda-import/data-element-importers/laboratory_test_recommended_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/medication_active_importer.rb +2 -0
- data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +2 -0
- data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +2 -0
- data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +3 -4
- data/lib/qrda-import/data-element-importers/medication_order_importer.rb +2 -2
- data/lib/qrda-import/data-element-importers/patient_care_experience_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/physical_exam_order_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +2 -0
- data/lib/qrda-import/data-element-importers/physical_exam_recommended_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +3 -0
- data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +4 -0
- data/lib/qrda-import/data-element-importers/procedure_recommended_importer.rb +3 -0
- data/lib/qrda-import/data-element-importers/program_participation_importer.rb +21 -0
- data/lib/qrda-import/data-element-importers/provider_care_experience_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/related_person_importer.rb +19 -0
- data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +2 -0
- data/lib/qrda-import/data-element-importers/substance_order_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/substance_recommended_importer.rb +1 -0
- data/lib/qrda-import/data-element-importers/symptom_importer.rb +1 -0
- data/lib/qrda-import/patient_importer.rb +31 -11
- data/lib/util/entity_helper.rb +22 -0
- metadata +19 -9
- data/lib/ext/code.rb +0 -11
- data/lib/ext/data_element.rb +0 -24
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis.mustache +0 -23
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_principal_diagnosis.mustache +0 -8
@@ -5,6 +5,7 @@ class Qrda1R5 < Mustache
|
|
5
5
|
include Qrda::Export::Helper::Cat1ViewHelper
|
6
6
|
include Qrda::Export::Helper::PatientViewHelper
|
7
7
|
include Qrda::Export::Helper::FrequencyHelper
|
8
|
+
include HQMF::Util::EntityHelper
|
8
9
|
|
9
10
|
self.template_path = __dir__
|
10
11
|
|
@@ -13,11 +14,33 @@ class Qrda1R5 < Mustache
|
|
13
14
|
@qdmPatient = patient.qdmPatient
|
14
15
|
@measures = measures
|
15
16
|
@provider = options[:provider]
|
17
|
+
@patient_address_option = options[:patient_addresses]
|
18
|
+
@patient_telecom_option = options[:patient_telecoms]
|
16
19
|
@performance_period_start = options[:start_time]
|
17
20
|
@performance_period_end = options[:end_time]
|
18
21
|
@submission_program = options[:submission_program]
|
19
22
|
end
|
20
23
|
|
24
|
+
def patient_addresses
|
25
|
+
@patient_address_option ||= [CQM::Address.new(
|
26
|
+
use: 'HP',
|
27
|
+
street: ['202 Burlington Rd.'],
|
28
|
+
city: 'Bedford',
|
29
|
+
state: 'MA',
|
30
|
+
zip: '01730',
|
31
|
+
country: 'US'
|
32
|
+
)]
|
33
|
+
JSON.parse(@patient_address_option.to_json)
|
34
|
+
end
|
35
|
+
|
36
|
+
def patient_telecoms
|
37
|
+
@patient_telecom_option ||= [CQM::Telecom.new(
|
38
|
+
use: 'HP',
|
39
|
+
value: '555-555-2003'
|
40
|
+
)]
|
41
|
+
JSON.parse(@patient_telecom_option.to_json)
|
42
|
+
end
|
43
|
+
|
21
44
|
def patient_characteristic_payer
|
22
45
|
JSON.parse(@qdmPatient.get_data_elements('patient_characteristic', 'payer').to_json)
|
23
46
|
end
|
@@ -173,7 +196,7 @@ class Qrda1R5 < Mustache
|
|
173
196
|
def physical_exam_order
|
174
197
|
JSON.parse(@qdmPatient.get_data_elements('physical_exam', 'order').to_json)
|
175
198
|
end
|
176
|
-
|
199
|
+
|
177
200
|
def physical_exam_performed
|
178
201
|
JSON.parse(@qdmPatient.get_data_elements('physical_exam', 'performed').to_json)
|
179
202
|
end
|
@@ -194,10 +217,18 @@ class Qrda1R5 < Mustache
|
|
194
217
|
JSON.parse(@qdmPatient.get_data_elements('procedure', 'recommended').to_json)
|
195
218
|
end
|
196
219
|
|
220
|
+
def program_participation
|
221
|
+
JSON.parse(@qdmPatient.get_data_elements('participation', nil).to_json)
|
222
|
+
end
|
223
|
+
|
197
224
|
def provider_care_experience
|
198
225
|
JSON.parse(@qdmPatient.dataElements.where(hqmfOid: { '$in' => HQMF::Util::HQMFTemplateHelper.get_all_hqmf_oids('provider_care_experience', '') }).to_json)
|
199
226
|
end
|
200
227
|
|
228
|
+
def related_person
|
229
|
+
JSON.parse(@qdmPatient.get_data_elements('related_person', nil).to_json)
|
230
|
+
end
|
231
|
+
|
201
232
|
def substance_administered
|
202
233
|
JSON.parse(@qdmPatient.get_data_elements('substance', 'administered').to_json)
|
203
234
|
end
|
@@ -209,7 +240,7 @@ class Qrda1R5 < Mustache
|
|
209
240
|
def substance_recommended
|
210
241
|
JSON.parse(@qdmPatient.get_data_elements('substance', 'recommended').to_json)
|
211
242
|
end
|
212
|
-
|
243
|
+
|
213
244
|
def symptom
|
214
245
|
JSON.parse(@qdmPatient.get_data_elements('symptom', nil).to_json)
|
215
246
|
end
|
@@ -1,14 +1,20 @@
|
|
1
1
|
<recordTarget>
|
2
2
|
<patientRole>
|
3
3
|
<id extension="{{mrn}}" root="1.3.6.1.4.1.115" />
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
4
|
+
{{#patient_addresses}}
|
5
|
+
<addr use="{{use}}">
|
6
|
+
{{#street}}
|
7
|
+
<streetAddressLine>{{.}}</streetAddressLine>
|
8
|
+
{{/street}}
|
9
|
+
<city>{{city}}</city>
|
10
|
+
<state>{{state}}</state>
|
11
|
+
<postalCode>{{zip}}</postalCode>
|
12
|
+
<country>{{country}}</country>
|
13
|
+
</addr>
|
14
|
+
{{/patient_addresses}}
|
15
|
+
{{#patient_telecoms}}
|
16
|
+
<telecom use="{{use}}" value="tel:{{value}}"/>
|
17
|
+
{{/patient_telecoms}}
|
12
18
|
<patient>
|
13
19
|
{{#patient}}
|
14
20
|
<name>
|
@@ -21,6 +27,9 @@
|
|
21
27
|
<administrativeGenderCode {{> _code}}/>
|
22
28
|
{{/dataElementCodes}}
|
23
29
|
{{/patient_characteristic_sex}}
|
30
|
+
{{^patient_characteristic_sex}}
|
31
|
+
<administrativeGenderCode nullFlavor="UNK"/>
|
32
|
+
{{/patient_characteristic_sex}}
|
24
33
|
{{#patient_characteristic_birthdate}}
|
25
34
|
{{{birth_date_time}}}
|
26
35
|
{{/patient_characteristic_birthdate}}
|
@@ -29,11 +38,17 @@
|
|
29
38
|
<raceCode {{> _code}}/>
|
30
39
|
{{/dataElementCodes}}
|
31
40
|
{{/patient_characteristic_race}}
|
41
|
+
{{^patient_characteristic_race}}
|
42
|
+
<raceCode nullFlavor="UNK"/>
|
43
|
+
{{/patient_characteristic_race}}
|
32
44
|
{{#patient_characteristic_ethnicity}}
|
33
45
|
{{#dataElementCodes}}
|
34
46
|
<ethnicGroupCode {{> _code}}/>
|
35
47
|
{{/dataElementCodes}}
|
36
48
|
{{/patient_characteristic_ethnicity}}
|
49
|
+
{{^patient_characteristic_ethnicity}}
|
50
|
+
<ethnicGroupCode nullFlavor="UNK"/>
|
51
|
+
{{/patient_characteristic_ethnicity}}
|
37
52
|
<languageCommunication>
|
38
53
|
<templateId root="2.16.840.1.113883.3.88.11.83.2" assigningAuthorityName="HITSP/C83"/>
|
39
54
|
<templateId root="1.3.6.1.4.1.19376.1.5.3.1.2.1" assigningAuthorityName="IHE/PCC"/>
|
@@ -41,4 +56,4 @@
|
|
41
56
|
</languageCommunication>
|
42
57
|
</patient>
|
43
58
|
</patientRole>
|
44
|
-
</recordTarget>
|
59
|
+
</recordTarget>
|
@@ -1,13 +1,13 @@
|
|
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="
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.146" extension="2019-12-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"/>
|
8
8
|
{{#relevantDatetime}}
|
9
9
|
<!-- QDM Attribute: Relevant dateTime -->
|
10
|
-
{{{
|
10
|
+
{{{relevant_date_time_value}}}
|
11
11
|
{{/relevantDatetime}}
|
12
12
|
<value xsi:type="CD" code="281647001" displayName="Adverse reaction" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT"/>
|
13
13
|
{{#authorDatetime}}
|
@@ -18,6 +18,12 @@
|
|
18
18
|
<!-- QDM Attribute: Facility Location -->
|
19
19
|
{{> qrda_templates/template_partials/_facility_location}}
|
20
20
|
{{/facilityLocation}}
|
21
|
+
{{#recorder}}
|
22
|
+
<!-- QDM Attribute: Recorder -->
|
23
|
+
<participant typeCode="PRF">
|
24
|
+
{{> qrda_templates/template_partials/_entity}}
|
25
|
+
</participant>
|
26
|
+
{{/recorder}}
|
21
27
|
<!-- QDM Attribute: Code -->
|
22
28
|
<entryRelationship typeCode="CAUS" inversionInd="true">
|
23
29
|
<!-- Adverse Event Cause Assertion Observation -->
|
@@ -3,17 +3,11 @@
|
|
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="
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.147" extension="2019-12-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
|
-
{{#prevalencePeriod}}
|
10
|
-
{{#completed_prevalence_period}}
|
11
9
|
<statusCode code="completed" />
|
12
|
-
{{
|
13
|
-
{{^completed_prevalence_period}}
|
14
|
-
<statusCode code="active" />
|
15
|
-
{{/completed_prevalence_period}}
|
16
|
-
<!-- QDM Attribute: Prevalence Period -->
|
10
|
+
{{#prevalencePeriod}}
|
17
11
|
{{{prevalence_period}}}
|
18
12
|
{{/prevalencePeriod}}
|
19
13
|
<value xsi:type="CD" code="419199007" displayName="Allergy to substance" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT"/>
|
@@ -30,6 +24,12 @@
|
|
30
24
|
</playingEntity>
|
31
25
|
</participantRole>
|
32
26
|
</participant>
|
27
|
+
{{#recorder}}
|
28
|
+
<!-- QDM Attribute: Recorder -->
|
29
|
+
<participant typeCode="PRF">
|
30
|
+
{{> qrda_templates/template_partials/_entity}}
|
31
|
+
</participant>
|
32
|
+
{{/recorder}}
|
33
33
|
{{#type}}
|
34
34
|
<!-- QDM Attribute: Type -->
|
35
35
|
{{> qrda_templates/template_partials/_reaction_observation}}
|
@@ -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="
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.158" extension="2019-12-01" />
|
7
7
|
<id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
|
8
8
|
<!-- QDM Attribute: Code -->
|
9
9
|
{{> _codes}}
|
@@ -13,6 +13,12 @@
|
|
13
13
|
<!-- QDM Attribute: Author dateTime -->
|
14
14
|
{{> qrda_templates/template_partials/_author}}
|
15
15
|
{{/authorDatetime}}
|
16
|
+
{{#requester}}
|
17
|
+
<!-- QDM Attribute: Requester -->
|
18
|
+
<participant typeCode="PRF">
|
19
|
+
{{> qrda_templates/template_partials/_entity}}
|
20
|
+
</participant>
|
21
|
+
{{/requester}}
|
16
22
|
{{#reason}}
|
17
23
|
<!-- QDM Attribute: Reason -->
|
18
24
|
{{> qrda_templates/template_partials/_reason}}
|
@@ -1,11 +1,21 @@
|
|
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="
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.144" extension="2019-12-01" />
|
5
5
|
<id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
|
6
6
|
{{> _codes}}
|
7
7
|
<text>{{description}}</text>
|
8
8
|
<statusCode code="completed"/>
|
9
|
+
{{#relevantDatetime}}
|
10
|
+
<!-- QDM Attribute: Relevant dateTime -->
|
11
|
+
{{{relevant_date_time_value}}}
|
12
|
+
{{/relevantDatetime}}
|
13
|
+
{{^relevantDatetime}}
|
14
|
+
{{#relevantPeriod}}
|
15
|
+
<!-- QDM Attribute: Relevant Period -->
|
16
|
+
{{{relevant_period}}}
|
17
|
+
{{/relevantPeriod}}
|
18
|
+
{{/relevantDatetime}}
|
9
19
|
{{#result}}
|
10
20
|
<!-- QDM Attribute: Result -->
|
11
21
|
{{{result_value}}}
|
@@ -18,6 +28,12 @@
|
|
18
28
|
<!-- QDM Attribute: Author dateTime -->
|
19
29
|
{{> qrda_templates/template_partials/_author}}
|
20
30
|
{{/authorDatetime}}
|
31
|
+
{{#performer}}
|
32
|
+
<!-- QDM Attribute: Performer -->
|
33
|
+
<participant typeCode="PRF">
|
34
|
+
{{> qrda_templates/template_partials/_entity}}
|
35
|
+
</participant>
|
36
|
+
{{/performer}}
|
21
37
|
{{#reason}}
|
22
38
|
<!-- QDM Attribute: Reason -->
|
23
39
|
{{> qrda_templates/template_partials/_reason}}
|
@@ -3,7 +3,7 @@
|
|
3
3
|
<!-- Conforms to C-CDA R2.1 Planned Observation (V2) -->
|
4
4
|
<templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09" />
|
5
5
|
<!-- Assessment Recommended (V2) -->
|
6
|
-
<templateId root="2.16.840.1.113883.10.20.24.3.145" extension="
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.145" extension="2019-12-01"/>
|
7
7
|
<id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
|
8
8
|
<!-- QDM Attribute: Code -->
|
9
9
|
{{> _codes}}
|
@@ -13,6 +13,12 @@
|
|
13
13
|
<!-- QDM Attribute: Author dateTime -->
|
14
14
|
{{> qrda_templates/template_partials/_author}}
|
15
15
|
{{/authorDatetime}}
|
16
|
+
{{#requester}}
|
17
|
+
<!-- QDM Attribute: Requester -->
|
18
|
+
<participant typeCode="PRF">
|
19
|
+
{{> qrda_templates/template_partials/_entity}}
|
20
|
+
</participant>
|
21
|
+
{{/requester}}
|
16
22
|
{{#reason}}
|
17
23
|
<!-- QDM Attribute: Reason -->
|
18
24
|
{{> qrda_templates/template_partials/_reason}}
|
@@ -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="
|
3
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.156" extension="2019-12-01"/>
|
4
4
|
<id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
|
5
5
|
{{#category}}
|
6
6
|
<!-- QDM Attribute: Category -->
|
@@ -11,27 +11,26 @@
|
|
11
11
|
<code nullFlavor="UNK"/>
|
12
12
|
{{/category}}
|
13
13
|
<statusCode code="completed"/>
|
14
|
-
|
15
|
-
<!-- QDM Attribute:
|
16
|
-
{{{
|
17
|
-
|
14
|
+
<effectiveTime>
|
15
|
+
<!-- QDM Attribute: Sent dateTime -->
|
16
|
+
{{{sent_date_time}}}
|
17
|
+
<!-- QDM Attribute: Received dateTime -->
|
18
|
+
{{{received_date_time}}}
|
19
|
+
</effectiveTime>
|
18
20
|
{{#authorDatetime}}
|
19
21
|
<!-- QDM Attribute: Author dateTime -->
|
20
22
|
{{> qrda_templates/template_partials/_author}}
|
21
23
|
{{/authorDatetime}}
|
22
24
|
{{#recipient}}
|
23
25
|
<participant typeCode="IRCP">
|
24
|
-
|
25
|
-
|
26
|
-
<code code="158965000" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Medical Practitioner"/>
|
27
|
-
</participantRole>
|
26
|
+
<!-- QDM Attribute: Recipient -->
|
27
|
+
{{> qrda_templates/template_partials/_entity}}
|
28
28
|
</participant>
|
29
29
|
{{/recipient}}
|
30
30
|
{{#sender}}
|
31
31
|
<participant typeCode="AUT">
|
32
|
-
|
33
|
-
|
34
|
-
</participantRole>
|
32
|
+
<!-- QDM Attribute: Sender -->
|
33
|
+
{{> qrda_templates/template_partials/_entity}}
|
35
34
|
</participant>
|
36
35
|
{{/sender}}
|
37
36
|
{{#medium}}
|
@@ -48,7 +47,7 @@
|
|
48
47
|
{{/negationRationale}}
|
49
48
|
<entryRelationship typeCode="REFR">
|
50
49
|
<observation classCode="OBS" moodCode="EVN">
|
51
|
-
<templateId root="2.16.840.1.113883.10.20.24.3.88" extension="
|
50
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.88" extension="2017-08-01"/>
|
52
51
|
<id root="1.3.6.1.4.1.115" extension="{{object_id}}" />
|
53
52
|
<code code="77301-0" codeSystem="2.16.840.1.113883.6.1" displayName="reason" codeSystemName="LOINC"/>
|
54
53
|
<statusCode code="completed"/>
|
@@ -3,15 +3,21 @@
|
|
3
3
|
<!-- Procedure Activity Procedure -->
|
4
4
|
<templateId root="2.16.840.1.113883.10.20.22.4.14" extension="2014-06-09"/>
|
5
5
|
<!-- Device Applied -->
|
6
|
-
<templateId root="2.16.840.1.113883.10.20.24.3.7" extension="
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.7" extension="2019-12-01"/>
|
7
7
|
<id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
|
8
8
|
<code code="360030002" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="application of device"/>
|
9
9
|
<text>{{description}}</text>
|
10
10
|
<statusCode code="completed"/>
|
11
|
-
{{#
|
12
|
-
<!-- QDM Attribute: Relevant
|
13
|
-
{{{
|
14
|
-
{{/
|
11
|
+
{{#relevantDatetime}}
|
12
|
+
<!-- QDM Attribute: Relevant dateTime -->
|
13
|
+
{{{relevant_date_time_value}}}
|
14
|
+
{{/relevantDatetime}}
|
15
|
+
{{^relevantDatetime}}
|
16
|
+
{{#relevantPeriod}}
|
17
|
+
<!-- QDM Attribute: Relevant Period -->
|
18
|
+
{{{relevant_period}}}
|
19
|
+
{{/relevantPeriod}}
|
20
|
+
{{/relevantDatetime}}
|
15
21
|
{{#anatomicalLocationSite}}
|
16
22
|
<!-- QDM Attribute: Anatomical Location Site -->
|
17
23
|
{{> qrda_templates/template_partials/_anatomical_location_site}}
|
@@ -28,6 +34,12 @@
|
|
28
34
|
</playingDevice>
|
29
35
|
</participantRole>
|
30
36
|
</participant>
|
37
|
+
{{#performer}}
|
38
|
+
<!-- QDM Attribute: Performer -->
|
39
|
+
<participant typeCode="PRF">
|
40
|
+
{{> qrda_templates/template_partials/_entity}}
|
41
|
+
</participant>
|
42
|
+
{{/performer}}
|
31
43
|
{{#reason}}
|
32
44
|
<!-- QDM Attribute: Reason -->
|
33
45
|
{{> qrda_templates/template_partials/_reason}}
|
@@ -1,6 +1,6 @@
|
|
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="
|
3
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.130" extension="2019-12-01"/>
|
4
4
|
<id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
|
5
5
|
<code code="SPLY" codeSystem="2.16.840.1.113883.5.6" displayName="Supply" codeSystemName="ActClass"/>
|
6
6
|
<entryRelationship typeCode="SUBJ">
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<!-- Plan of Care Activity Supply -->
|
9
9
|
<templateId root="2.16.840.1.113883.10.20.22.4.43" extension="2014-06-09"/>
|
10
10
|
<!-- Device, Order -->
|
11
|
-
<templateId root="2.16.840.1.113883.10.20.24.3.9" extension="
|
11
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.9" extension="2019-12-01"/>
|
12
12
|
<id root="1.3.6.1.4.1.115" extension="{{object_id}}"/>
|
13
13
|
<text>{{description}}</text>
|
14
14
|
<statusCode code="active"/>
|
@@ -24,6 +24,12 @@
|
|
24
24
|
</playingDevice>
|
25
25
|
</participantRole>
|
26
26
|
</participant>
|
27
|
+
{{#requester}}
|
28
|
+
<!-- QDM Attribute: Requester -->
|
29
|
+
<participant typeCode="PRF">
|
30
|
+
{{> qrda_templates/template_partials/_entity}}
|
31
|
+
</participant>
|
32
|
+
{{/requester}}
|
27
33
|
{{#reason}}
|
28
34
|
<!-- QDM Attribute: Reason -->
|
29
35
|
{{> qrda_templates/template_partials/_reason}}
|
@@ -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="
|
3
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.131" extension="2019-12-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="
|
10
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.10" extension="2019-12-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"/>
|
@@ -23,6 +23,12 @@
|
|
23
23
|
</playingDevice>
|
24
24
|
</participantRole>
|
25
25
|
</participant>
|
26
|
+
{{#requester}}
|
27
|
+
<!-- QDM Attribute: Requester -->
|
28
|
+
<participant typeCode="PRF">
|
29
|
+
{{> qrda_templates/template_partials/_entity}}
|
30
|
+
</participant>
|
31
|
+
{{/requester}}
|
26
32
|
{{#reason}}
|
27
33
|
<!-- QDM Attribute: Reason -->
|
28
34
|
{{> qrda_templates/template_partials/_reason}}
|
@@ -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="
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.137" extension="2019-12-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,19 +20,13 @@
|
|
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="
|
23
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.135" extension="2019-12-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"/>
|
27
27
|
</code>
|
28
|
-
{{#prevalencePeriod}}
|
29
|
-
{{#completed_prevalence_period}}
|
30
28
|
<statusCode code="completed" />
|
31
|
-
{{
|
32
|
-
{{^completed_prevalence_period}}
|
33
|
-
<statusCode code="active" />
|
34
|
-
{{/completed_prevalence_period}}
|
35
|
-
<!-- QDM Attribute: Prevalence Period -->
|
29
|
+
{{#prevalencePeriod}}
|
36
30
|
{{{prevalence_period}}}
|
37
31
|
{{/prevalencePeriod}}
|
38
32
|
<!-- QDM Attribute: Code -->
|
@@ -45,6 +39,12 @@
|
|
45
39
|
<!-- QDM Attribute: Author dateTime -->
|
46
40
|
{{> qrda_templates/template_partials/_author}}
|
47
41
|
{{/authorDatetime}}
|
42
|
+
{{#recorder}}
|
43
|
+
<!-- QDM Attribute: Recorder -->
|
44
|
+
<participant typeCode="PRF">
|
45
|
+
{{> qrda_templates/template_partials/_entity}}
|
46
|
+
</participant>
|
47
|
+
{{/recorder}}
|
48
48
|
{{#severity}}
|
49
49
|
<!-- QDM Attribute: Severity -->
|
50
50
|
{{> qrda_templates/template_partials/_severity}}
|