cqm-reports 3.1.10 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/cqm-reports.rb +1 -2
- data/lib/html-export/qdm-patient/data_element/_data_element_other_fields.mustache +10 -0
- data/lib/html-export/qdm-patient/qdm_patient.rb +7 -7
- data/lib/qrda-export/catI-r5/_header.mustache +2 -1
- data/lib/qrda-export/catI-r5/qrda1_r5.mustache +2 -5
- data/lib/qrda-export/catI-r5/qrda_templates/adverse_event.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/allergy_intolerance.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/assessment_order.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/assessment_performed.mustache +7 -3
- data/lib/qrda-export/catI-r5/qrda_templates/assessment_recommended.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/communication_performed.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/device_order.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/device_recommended.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/diagnosis.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_order.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_performed.mustache +9 -1
- data/lib/qrda-export/catI-r5/qrda_templates/diagnostic_study_recommended.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/encounter_order.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/encounter_performed.mustache +11 -7
- data/lib/qrda-export/catI-r5/qrda_templates/encounter_recommended.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/family_history.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/immunization_administered.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/immunization_order.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/intervention_order.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/intervention_performed.mustache +5 -1
- data/lib/qrda-export/catI-r5/qrda_templates/intervention_recommended.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_order.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_performed.mustache +3 -3
- data/lib/qrda-export/catI-r5/qrda_templates/laboratory_test_recommended.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/medication_active.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/medication_administered.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/medication_discharge.mustache +2 -4
- data/lib/qrda-export/catI-r5/qrda_templates/medication_dispensed.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/medication_order.mustache +5 -1
- data/lib/qrda-export/catI-r5/qrda_templates/patient_care_experience.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_order.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_performed.mustache +3 -3
- data/lib/qrda-export/catI-r5/qrda_templates/physical_exam_recommended.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/procedure_order.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/procedure_performed.mustache +5 -1
- data/lib/qrda-export/catI-r5/qrda_templates/procedure_recommended.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/program_participation.mustache +1 -7
- data/lib/qrda-export/catI-r5/qrda_templates/provider_care_experience.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/substance_recommended.mustache +1 -1
- data/lib/qrda-export/catI-r5/qrda_templates/symptom.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_class.mustache +6 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_encounter_diagnosis_qdm.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity.mustache +3 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_location.mustache +11 -0
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_entity_organization.mustache +2 -2
- data/lib/qrda-export/catI-r5/qrda_templates/template_partials/_interpretation.mustache +1 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/_continuous_variable_value.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/_header.mustache +1 -5
- data/lib/qrda-export/{catIII-r2-1 → catIII}/_measure_data.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/_measure_section.mustache +3 -3
- data/lib/qrda-export/{catIII-r2-1 → catIII}/_reporting_period.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/_stratification.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/_supplemental_data.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1/qrda3_r21.mustache → catIII/qrda3.mustache} +0 -0
- data/lib/qrda-export/{catIII-r2-1/qrda3_r21.rb → catIII/qrda3.rb} +1 -1
- data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_author.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_custodian.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_documentation_of_service_event.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_information_recipient.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_legal_authenticator.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_participant_ehr.mustache +0 -0
- data/lib/qrda-export/{catIII-r2-1 → catIII}/qrda_header/_participant_location.mustache +0 -0
- data/lib/qrda-import/base-importers/section_importer.rb +53 -35
- 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 +2 -1
- data/lib/qrda-import/data-element-importers/assessment_performed_importer.rb +6 -1
- data/lib/qrda-import/data-element-importers/assessment_recommended_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/communication_performed_importer.rb +4 -2
- data/lib/qrda-import/data-element-importers/device_order_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/device_recommended_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/diagnosis_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/diagnostic_study_order_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/diagnostic_study_performed_importer.rb +6 -1
- data/lib/qrda-import/data-element-importers/diagnostic_study_recommended_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/encounter_order_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/encounter_performed_importer.rb +6 -1
- data/lib/qrda-import/data-element-importers/encounter_recommended_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/family_history_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/immunization_administered_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/immunization_order_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/intervention_order_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/intervention_performed_importer.rb +4 -1
- data/lib/qrda-import/data-element-importers/intervention_recommended_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/laboratory_test_order_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/laboratory_test_performed_importer.rb +4 -1
- data/lib/qrda-import/data-element-importers/laboratory_test_recommended_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/medication_active_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/medication_administered_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/medication_discharge_importer.rb +5 -3
- data/lib/qrda-import/data-element-importers/medication_dispensed_importer.rb +4 -2
- data/lib/qrda-import/data-element-importers/medication_order_importer.rb +4 -1
- data/lib/qrda-import/data-element-importers/patient_care_experience_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/physical_exam_order_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/physical_exam_performed_importer.rb +4 -1
- data/lib/qrda-import/data-element-importers/physical_exam_recommended_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/procedure_order_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/procedure_performed_importer.rb +4 -1
- data/lib/qrda-import/data-element-importers/procedure_recommended_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/program_participation_importer.rb +0 -1
- data/lib/qrda-import/data-element-importers/provider_care_experience_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/substance_administered_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/substance_recommended_importer.rb +2 -1
- data/lib/qrda-import/data-element-importers/symptom_importer.rb +2 -1
- data/lib/qrda-import/patient_importer.rb +0 -1
- data/lib/util/entity_helper.rb +4 -0
- metadata +28 -27
- data/lib/qrda-export/catI-r5/qrda_templates/device_applied.mustache +0 -44
- data/lib/qrda-import/data-element-importers/device_applied_importer.rb +0 -26
@@ -1,26 +0,0 @@
|
|
1
|
-
module QRDA
|
2
|
-
module Cat1
|
3
|
-
class DeviceAppliedImporter < SectionImporter
|
4
|
-
def initialize(entry_finder = QRDA::Cat1::EntryFinder.new("./cda:entry/cda:procedure[cda:templateId/@root = '2.16.840.1.113883.10.20.24.3.7']"))
|
5
|
-
super(entry_finder)
|
6
|
-
@id_xpath = './cda:id'
|
7
|
-
@code_xpath = './cda:participant/cda:participantRole/cda:playingDevice/cda:code'
|
8
|
-
@author_datetime_xpath = "./cda:author[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.155']/cda:time"
|
9
|
-
@relevant_period_xpath = "./cda:effectiveTime"
|
10
|
-
@relevant_date_time_xpath = './cda:effectiveTime[@value]'
|
11
|
-
@anatomical_location_site_xpath = "./cda:targetSiteCode"
|
12
|
-
@reason_xpath = "./cda:entryRelationship[@typeCode='RSON']/cda:observation[cda:templateId/@root='2.16.840.1.113883.10.20.24.3.88']/cda:value"
|
13
|
-
@entry_class = QDM::DeviceApplied
|
14
|
-
end
|
15
|
-
|
16
|
-
def create_entry(entry_element, nrh = NarrativeReferenceHandler.new)
|
17
|
-
device_applied = super
|
18
|
-
device_applied.anatomicalLocationSite = code_if_present(entry_element.at_xpath(@anatomical_location_site_xpath))
|
19
|
-
device_applied.reason = extract_reason(entry_element)
|
20
|
-
device_applied.performer = extract_entity(entry_element, "./cda:participant[@typeCode='PRF']")
|
21
|
-
device_applied
|
22
|
-
end
|
23
|
-
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|