health-data-standards 3.6.1 → 3.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +7 -2
- data/Rakefile +2 -1
- data/lib/health-data-standards.rb +22 -1
- data/lib/health-data-standards/export/cat_1.rb +25 -6
- data/lib/health-data-standards/export/cat_1_r2.rb +8 -2
- data/lib/health-data-standards/export/cat_3.rb +8 -7
- data/lib/health-data-standards/export/exceptions.rb +13 -0
- data/lib/health-data-standards/export/helper/cat1_view_helper.rb +17 -11
- data/lib/health-data-standards/export/helper/html_view_helper.rb +13 -7
- data/lib/health-data-standards/export/helper/scooped_view_helper.rb +68 -25
- data/lib/health-data-standards/export/html.rb +9 -4
- data/lib/health-data-standards/export/qrda/entry_template_resolver.rb +29 -11
- data/lib/health-data-standards/export/qrda/hqmf-qrda-oids.json +89 -5
- data/lib/health-data-standards/export/rendering_context.rb +2 -2
- data/lib/health-data-standards/export/template_helper.rb +7 -2
- data/lib/health-data-standards/export/view_helper.rb +107 -39
- data/lib/health-data-standards/import/bulk_record_importer.rb +8 -5
- data/lib/health-data-standards/import/bundle/importer.rb +21 -14
- data/lib/health-data-standards/import/c32/care_goal_importer.rb +1 -1
- data/lib/health-data-standards/import/c32/immunization_importer.rb +1 -1
- data/lib/health-data-standards/import/cat1/clinical_trial_participant_importer.rb +20 -0
- data/lib/health-data-standards/import/cat1/device_order_importer.rb +20 -0
- data/lib/health-data-standards/import/cat1/diagnosis_active_importer.rb +4 -9
- data/lib/health-data-standards/import/cat1/diagnosis_importer.rb +15 -0
- data/lib/health-data-standards/import/cat1/diagnosis_inactive_importer.rb +1 -1
- data/lib/health-data-standards/import/cat1/diagnostic_study_order_importer.rb +6 -0
- data/lib/health-data-standards/import/cat1/encounter_order_act_importer.rb +19 -0
- data/lib/health-data-standards/import/cat1/encounter_performed_act_importer.rb +19 -0
- data/lib/health-data-standards/import/cat1/encounter_performed_importer.rb +16 -0
- data/lib/health-data-standards/import/cat1/immunization_administered_importer.rb +14 -0
- data/lib/health-data-standards/import/cat1/medication_dispensed_act_importer.rb +18 -0
- data/lib/health-data-standards/import/cat1/patient_importer.rb +44 -17
- data/lib/health-data-standards/import/cat1/procedure_order_importer.rb +4 -4
- data/lib/health-data-standards/import/cat1/procedure_performed_importer.rb +1 -0
- data/lib/health-data-standards/import/cat1/transfer_from_act_importer.rb +18 -0
- data/lib/health-data-standards/import/cat1/transfer_from_importer.rb +24 -0
- data/lib/health-data-standards/import/cat1/transfer_to_act_importer.rb +18 -0
- data/lib/health-data-standards/import/cat1/transfer_to_importer.rb +23 -0
- data/lib/health-data-standards/import/cda/allergy_importer.rb +1 -1
- data/lib/health-data-standards/import/cda/communication_importer.rb +55 -0
- data/lib/health-data-standards/import/cda/condition_importer.rb +17 -1
- data/lib/health-data-standards/import/cda/encounter_importer.rb +23 -21
- data/lib/health-data-standards/import/cda/medical_equipment_importer.rb +1 -0
- data/lib/health-data-standards/import/cda/medication_importer.rb +14 -4
- data/lib/health-data-standards/import/cda/procedure_importer.rb +4 -4
- data/lib/health-data-standards/import/cda/result_importer.rb +1 -1
- data/lib/health-data-standards/import/cda/section_importer.rb +59 -18
- data/lib/health-data-standards/models/assessment.rb +3 -0
- data/lib/health-data-standards/models/care_experience.rb +2 -0
- data/lib/health-data-standards/models/care_goal.rb +4 -0
- data/lib/health-data-standards/models/communication.rb +3 -0
- data/lib/health-data-standards/models/condition.rb +12 -9
- data/lib/health-data-standards/models/cqm/bundle.rb +2 -1
- data/lib/health-data-standards/models/cqm/measure.rb +2 -1
- data/lib/health-data-standards/models/cqm/patient_cache.rb +7 -3
- data/lib/health-data-standards/models/cqm/query_cache.rb +2 -0
- data/lib/health-data-standards/models/encounter.rb +14 -1
- data/lib/health-data-standards/models/encounter_principal_diagnosis.rb +36 -0
- data/lib/health-data-standards/models/entry.rb +5 -1
- data/lib/health-data-standards/models/family_history.rb +4 -0
- data/lib/health-data-standards/models/immunization.rb +1 -0
- data/lib/health-data-standards/models/lab_result.rb +10 -1
- data/lib/health-data-standards/models/medical_equipment.rb +2 -1
- data/lib/health-data-standards/models/medication.rb +19 -2
- data/lib/health-data-standards/models/patient_preference.rb +5 -0
- data/lib/health-data-standards/models/procedure.rb +16 -3
- data/lib/health-data-standards/models/provider.rb +17 -1
- data/lib/health-data-standards/models/provider_preference.rb +5 -0
- data/lib/health-data-standards/models/record.rb +8 -9
- data/lib/health-data-standards/models/reference.rb +1 -1
- data/lib/health-data-standards/models/svs/value_set.rb +28 -10
- data/lib/health-data-standards/models/transfer.rb +6 -1
- data/lib/health-data-standards/tasks/bundle.rake +5 -3
- data/lib/health-data-standards/util/hqmf_template_helper.rb +20 -14
- data/lib/health-data-standards/util/hqmfr2_template_oid_map.json +382 -0
- data/lib/health-data-standards/util/nlm_helper.rb +14 -0
- data/lib/health-data-standards/util/vs_api.rb +72 -54
- data/lib/health-data-standards/validate/measure_validator.rb +8 -3
- data/lib/health-data-standards/validate/performance_rate_validator.rb +1 -1
- data/lib/health-data-standards/validate/qrda_qdm_template_validator.rb +253 -0
- data/lib/health-data-standards/validate/reported_result_extractor.rb +5 -1
- data/lib/health-data-standards/validate/schematron_validator.rb +6 -0
- data/lib/health-data-standards/validate/validators.rb +49 -1
- data/lib/hqmf-generator/document.xml.erb +6 -5
- data/lib/hqmf-generator/field.xml.erb +1 -0
- data/lib/hqmf-generator/hqmf-generator.rb +85 -41
- data/lib/hqmf-generator/subset.xml.erb +15 -0
- data/lib/hqmf-generator/temporal_relationship.xml.erb +8 -3
- data/lib/hqmf-generator/temporal_relationship_attribute.xml.erb +10 -0
- data/lib/hqmf-generator/value.xml.erb +2 -2
- data/lib/hqmf-model/data_criteria.json +88 -17
- data/lib/hqmf-model/data_criteria.rb +144 -72
- data/lib/hqmf-model/population_criteria.rb +20 -18
- data/lib/hqmf-model/precondition.rb +6 -3
- data/lib/hqmf-model/types.rb +1 -1
- data/lib/hqmf-parser.rb +9 -0
- data/lib/hqmf-parser/1.0/utilities.rb +1 -1
- data/lib/hqmf-parser/2.0/data_criteria.rb +293 -319
- data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_base_extract.rb +80 -0
- data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_definition_from_template_or_type_extract.rb +201 -0
- data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_post_processing.rb +85 -0
- data/lib/hqmf-parser/2.0/data_criteria_helpers/dc_specific_occurrences_and_source_data_criteria_extract.rb +117 -0
- data/lib/hqmf-parser/2.0/document.rb +246 -222
- data/lib/hqmf-parser/2.0/document_helpers/doc_population_helper.rb +175 -0
- data/lib/hqmf-parser/2.0/document_helpers/doc_utilities.rb +131 -0
- data/lib/hqmf-parser/2.0/field_value_helper.rb +251 -0
- data/lib/hqmf-parser/2.0/population_criteria.rb +101 -32
- data/lib/hqmf-parser/2.0/precondition.rb +61 -35
- data/lib/hqmf-parser/2.0/source_data_criteria_helper.rb +112 -0
- data/lib/hqmf-parser/2.0/types.rb +253 -73
- data/lib/hqmf-parser/2.0/utilities.rb +27 -12
- data/lib/hqmf-parser/2.0/value_set_helper.rb +101 -0
- data/lib/hqmf-parser/converter/pass1/data_criteria_converter.rb +6 -1
- data/lib/hqmf-parser/converter/pass1/population_criteria_converter.rb +34 -30
- data/lib/hqmf-parser/parser.rb +5 -5
- data/resources/schematron/qrda/cat_1/{CDAR2_QRDA_I_R1_D3_2015MAY_Schematron.sch → HL7_CDAR2_QRDA_Category_I_2_12_16.sch} +4692 -4675
- data/resources/schematron/qrda/cat_1_r3_1/HL7 QRDA Category I STU 3.1.sch +3573 -0
- data/resources/schematron/qrda/cat_1_r3_1/HL7 QRDA Category III STU 1.1.sch +464 -0
- data/resources/schematron/qrda/cat_1_r3_1/QRDA Category I STU Release 3.1.sch +5394 -0
- data/resources/schematron/qrda/cat_1_r3_1/voc.xml +1229 -0
- data/resources/schematron/qrda/cat_1_r4/HL7 QRDA Category I STU 4.sch +3526 -0
- data/resources/schematron/qrda/cat_1_r4/voc.xml +1186 -0
- data/resources/schematron/qrda/cat_3_r1_1/HL7 QRDA Category III STU 1.1.sch +528 -0
- data/resources/schematron/qrda/cat_3_r1_1/voc.xml +8 -0
- data/resources/schematron/qrda/cat_3_r2/HL7 QRDA Category III STU 2.sch +677 -0
- data/resources/schematron/qrda/cat_3_r2/voc.xml +1186 -0
- data/resources/schematron/qrda/cat_3_r2_1/HL7 QRDA Category III STU 2.1.sch +678 -0
- data/resources/schematron/qrda/cat_3_r2_1/voc.xml +1186 -0
- data/templates/c32/_medical_equipment.c32.erb +1 -1
- data/templates/c32/_vital_signs.c32.erb +1 -1
- data/templates/cat1/{_2.16.840.1.113883.10.20.22.4.85.cat1.erb → r2/_2.16.840.1.113883.10.20.22.4.85.cat1.erb} +1 -1
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.1.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.1.cat1.erb} +3 -3
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.101.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.101.cat1.erb} +1 -1
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.103.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.103.cat1.erb} +9 -5
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.105.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.105.cat1.erb} +18 -10
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.11.cat1.erb +88 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.12.cat1.erb +50 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.13.cat1.erb +54 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.135.cat1.erb +70 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.136.cat1.erb +52 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.14.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.14.cat1.erb} +24 -6
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.140.cat1.erb +39 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +23 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.18.cat1.erb +25 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.2.cat1.erb +29 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.20.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.20.cat1.erb} +4 -4
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.22.cat1.erb +22 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.23.cat1.erb +114 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.26.cat1.erb +20 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.28.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.28.cat1.erb} +2 -2
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.3.cat1.erb +25 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +23 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.32.cat1.erb +20 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.34.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.34.cat1.erb} +6 -6
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +22 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.38.cat1.erb +20 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.4.cat1.erb +29 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.40.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.40.cat1.erb} +3 -3
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.41.cat1.erb +46 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.42.cat1.erb +38 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.43.cat1.erb +24 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.44.cat1.erb +25 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.45.cat1.erb +26 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.46.cat1.erb +30 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +47 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +14 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.54.cat1.erb +32 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.55.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.55.cat1.erb} +0 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.57.cat1.erb +23 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.59.cat1.erb +22 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.62.cat1.erb +36 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.63.cat1.erb +21 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.64.cat1.erb +52 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.66.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.66.cat1.erb} +6 -6
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.69.cat1.erb +23 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.7.cat1.erb +33 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.76.cat1.erb → r2/_2.16.840.1.113883.10.20.24.3.76.cat1.erb} +5 -3
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.81.cat1.erb +23 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.82.cat1.erb +23 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.24.3.9.cat1.erb +64 -0
- data/templates/cat1/r2/_2.16.840.1.113883.10.20.28.3.6.cat1.erb +17 -0
- data/templates/cat1/{_address.cat1.erb → r2/_address.cat1.erb} +0 -0
- data/templates/cat1/{_author.cat1.erb → r2/_author.cat1.erb} +0 -0
- data/templates/cat1/r2/_fulfills.cat1.erb +14 -0
- data/templates/cat1/{_id.cat1.erb → r2/_id.cat1.erb} +0 -0
- data/templates/cat1/{_measures.cat1.erb → r2/_measures.cat1.erb} +1 -1
- data/templates/cat1/{_medication_details.cat1.erb → r2/_medication_details.cat1.erb} +3 -2
- data/templates/cat1/r2/_medication_dispense.cat1.erb +22 -0
- data/templates/cat1/{_ordinality.cat1.erb → r2/_ordinality.cat1.erb} +0 -0
- data/templates/cat1/{_organization.cat1.erb → r2/_organization.cat1.erb} +0 -0
- data/templates/cat1/{_patient_data.cat1.erb → r2/_patient_data.cat1.erb} +4 -1
- data/templates/cat1/r2/_patient_data_r3_1.cat1.erb +17 -0
- data/templates/cat1/r2/_providers.cat1.erb +76 -0
- data/templates/cat1/r2/_reason.cat1.erb +45 -0
- data/templates/cat1/{_record_target.cat1.erb → r2/_record_target.cat1.erb} +3 -0
- data/templates/cat1/r2/_reporting_parameters.cat1.erb +31 -0
- data/templates/cat1/{_result_value.cat1.erb → r2/_result_value.cat1.erb} +1 -1
- data/templates/cat1/{_telecom.cat1.erb → r2/_telecom.cat1.erb} +0 -0
- data/templates/cat1/{show.cat1.erb → r2/show.cat1.erb} +52 -5
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.1.cat1.erb +14 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.103.cat1.erb +17 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.105.cat1.erb +68 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.11.cat1.erb +58 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.12.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.12.cat1.erb} +4 -5
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.13.cat1.erb +39 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.14.cat1.erb +39 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +23 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.18.cat1.erb +25 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.2.cat1.erb +29 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.22.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.22.cat1.erb} +6 -5
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.23.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.23.cat1.erb} +26 -30
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.26.cat1.erb +20 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.3.cat1.erb +25 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +23 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.32.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.32.cat1.erb} +4 -4
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +22 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.38.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.38.cat1.erb} +3 -3
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.4.cat1.erb +29 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.41.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.41.cat1.erb} +8 -10
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.42.cat1.erb +38 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.43.cat1.erb +24 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.44.cat1.erb +25 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.45.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.45.cat1.erb} +5 -5
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.46.cat1.erb +30 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +47 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +14 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.54.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.54.cat1.erb} +4 -4
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.55.cat1.erb +18 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.57.cat1.erb +23 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.59.cat1.erb +22 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.62.cat1.erb +36 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.63.cat1.erb → r3/_2.16.840.1.113883.10.20.24.3.63.cat1.erb} +6 -8
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.64.cat1.erb +51 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.69.cat1.erb +23 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.7.cat1.erb +33 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.76.cat1.erb +19 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.81.cat1.erb +24 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.82.cat1.erb +24 -0
- data/templates/cat1/r3/_2.16.840.1.113883.10.20.24.3.9.cat1.erb +57 -0
- data/templates/cat1/r3/_address.cat1.erb +9 -0
- data/templates/{cat3/_author.cat3.erb → cat1/r3/_author.cat1.erb} +0 -0
- data/templates/cat1/{_fulfills.cat1.erb → r3/_fulfills.cat1.erb} +0 -0
- data/templates/{cat3/_id.cat3.erb → cat1/r3/_id.cat1.erb} +0 -0
- data/templates/cat1/r3/_measures.cat1.erb +93 -0
- data/templates/cat1/r3/_medication_details.cat1.erb +16 -0
- data/templates/cat1/{_medication_dispense.cat1.erb → r3/_medication_dispense.cat1.erb} +3 -3
- data/templates/cat1/r3/_ordinality.cat1.erb +10 -0
- data/templates/cat1/r3/_organization.cat1.erb +9 -0
- data/templates/cat1/r3/_patient_data.cat1.erb +17 -0
- data/templates/cat1/r3/_providers.cat1.erb +76 -0
- data/templates/cat1/r3/_reason.cat1.erb +34 -0
- data/templates/cat1/r3/_record_target.cat1.erb +56 -0
- data/templates/cat1/r3/_reporting_parameters.cat1.erb +31 -0
- data/templates/cat1/r3/_result_value.cat1.erb +28 -0
- data/templates/{cat3/_telecom.cat3.erb → cat1/r3/_telecom.cat1.erb} +0 -0
- data/templates/cat1/r3/show.cat1.erb +183 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.1.cat1.erb +14 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.103.cat1.erb +17 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.105.cat1.erb +68 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.12.cat1.erb +53 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.135.cat1.erb +71 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.136.cat1.erb +52 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.140.cat1.erb +39 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +23 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.18.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.18.cat1.erb} +3 -3
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.2.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.2.cat1.erb} +2 -2
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.22.cat1.erb +30 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.23.cat1.erb +116 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.26.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.26.cat1.erb} +4 -2
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.3.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.3.cat1.erb} +2 -2
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +24 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.32.cat1.erb +21 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +22 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.38.cat1.erb +21 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.4.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.4.cat1.erb} +2 -2
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.41.cat1.erb +45 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.42.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.42.cat1.erb} +4 -4
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.43.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.43.cat1.erb} +3 -3
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.44.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.44.cat1.erb} +3 -3
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.45.cat1.erb +35 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.46.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.46.cat1.erb} +4 -4
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +47 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +14 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.54.cat1.erb +32 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.55.cat1.erb +18 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.57.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.57.cat1.erb} +3 -3
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.59.cat1.erb +22 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.62.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.62.cat1.erb} +5 -5
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.63.cat1.erb +21 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.64.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.64.cat1.erb} +7 -7
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.69.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.69.cat1.erb} +2 -2
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.7.cat1.erb → r3_1/_2.16.840.1.113883.10.20.24.3.7.cat1.erb} +12 -9
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.81.cat1.erb +33 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.82.cat1.erb +33 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.24.3.9.cat1.erb +41 -0
- data/templates/cat1/r3_1/_2.16.840.1.113883.10.20.28.3.6.cat1.erb +17 -0
- data/templates/cat1/r3_1/_address.cat1.erb +9 -0
- data/templates/cat1/r3_1/_author.cat1.erb +28 -0
- data/templates/cat1/r3_1/_fulfills.cat1.erb +14 -0
- data/templates/cat1/r3_1/_id.cat1.erb +1 -0
- data/templates/cat1/r3_1/_measures.cat1.erb +93 -0
- data/templates/cat1/r3_1/_medication_details.cat1.erb +16 -0
- data/templates/cat1/r3_1/_medication_dispense.cat1.erb +22 -0
- data/templates/cat1/r3_1/_ordinality.cat1.erb +10 -0
- data/templates/cat1/r3_1/_organization.cat1.erb +9 -0
- data/templates/cat1/r3_1/_patient_data.cat1.erb +17 -0
- data/templates/cat1/r3_1/_providers.cat1.erb +76 -0
- data/templates/cat1/r3_1/_reason.cat1.erb +34 -0
- data/templates/cat1/r3_1/_record_target.cat1.erb +56 -0
- data/templates/cat1/r3_1/_reporting_parameters.cat1.erb +31 -0
- data/templates/cat1/r3_1/_result_value.cat1.erb +28 -0
- data/templates/cat1/r3_1/_telecom.cat1.erb +1 -0
- data/templates/cat1/r3_1/show.cat1.erb +183 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.1.cat1.erb +14 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.103.cat1.erb +17 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.105.cat1.erb +68 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.12.cat1.erb +53 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.135.cat1.erb +75 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.136.cat1.erb +52 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.140.cat1.erb +39 -0
- data/templates/cat1/{_2.16.840.1.113883.10.20.24.3.59.cat1.erb → r4/_2.16.840.1.113883.10.20.24.3.144.cat1.erb} +6 -6
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.145.cat1.erb +24 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +23 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.18.cat1.erb +25 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.2.cat1.erb +29 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.22.cat1.erb +30 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.23.cat1.erb +116 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.3.cat1.erb +25 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +24 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.32.cat1.erb +21 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +22 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.38.cat1.erb +21 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.4.cat1.erb +29 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.41.cat1.erb +45 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.42.cat1.erb +38 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.43.cat1.erb +24 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.44.cat1.erb +25 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.45.cat1.erb +35 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.46.cat1.erb +30 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +47 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +14 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.54.cat1.erb +32 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.55.cat1.erb +18 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.57.cat1.erb +23 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.59.cat1.erb +22 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.62.cat1.erb +36 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.63.cat1.erb +21 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.64.cat1.erb +52 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.7.cat1.erb +33 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.81.cat1.erb +33 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.82.cat1.erb +33 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.24.3.9.cat1.erb +41 -0
- data/templates/cat1/r4/_2.16.840.1.113883.10.20.28.3.6.cat1.erb +17 -0
- data/templates/cat1/r4/_address.cat1.erb +7 -0
- data/templates/cat1/r4/_author.cat1.erb +28 -0
- data/templates/cat1/r4/_fulfills.cat1.erb +14 -0
- data/templates/cat1/r4/_id.cat1.erb +1 -0
- data/templates/cat1/r4/_measures.cat1.erb +93 -0
- data/templates/cat1/r4/_medication_details.cat1.erb +16 -0
- data/templates/cat1/r4/_medication_dispense.cat1.erb +22 -0
- data/templates/cat1/r4/_ordinality.cat1.erb +10 -0
- data/templates/cat1/r4/_organization.cat1.erb +9 -0
- data/templates/cat1/r4/_patient_data.cat1.erb +17 -0
- data/templates/cat1/r4/_providers.cat1.erb +76 -0
- data/templates/cat1/r4/_reason.cat1.erb +34 -0
- data/templates/cat1/r4/_record_target.cat1.erb +54 -0
- data/templates/cat1/r4/_reporting_parameters.cat1.erb +31 -0
- data/templates/cat1/r4/_result_value.cat1.erb +28 -0
- data/templates/cat1/r4/_telecom.cat1.erb +1 -0
- data/templates/cat1/r4/show.cat1.erb +192 -0
- data/templates/cat3/{_address.cat3.erb → r1/_address.cat3.erb} +0 -0
- data/templates/cat3/r1/_author.cat3.erb +28 -0
- data/templates/cat3/{_continuous_variable_value.cat3.erb → r1/_continuous_variable_value.cat3.erb} +0 -0
- data/templates/cat3/r1/_id.cat3.erb +1 -0
- data/templates/cat3/{_measure_data.cat3.erb → r1/_measure_data.cat3.erb} +7 -6
- data/templates/cat3/{_organization.cat3.erb → r1/_organization.cat3.erb} +0 -0
- data/templates/cat3/{_performance_rate.cat3.erb → r1/_performance_rate.cat3.erb} +1 -3
- data/templates/cat3/{_providers.cat3.erb → r1/_providers.cat3.erb} +0 -0
- data/templates/cat3/{_reporting_parameters.cat3.erb → r1/_reporting_parameters.cat3.erb} +0 -0
- data/templates/cat3/{_supplemental_data.cat3.erb → r1/_supplemental_data.cat3.erb} +2 -0
- data/templates/cat3/r1/_telecom.cat3.erb +1 -0
- data/templates/cat3/{show.cat3.erb → r1/show.cat3.erb} +5 -5
- data/templates/cat3/r1_1/_address.cat3.erb +9 -0
- data/templates/cat3/r1_1/_author.cat3.erb +28 -0
- data/templates/cat3/r1_1/_continuous_variable_value.cat3.erb +20 -0
- data/templates/cat3/r1_1/_id.cat3.erb +1 -0
- data/templates/cat3/r1_1/_measure_data.cat3.erb +136 -0
- data/templates/cat3/r1_1/_organization.cat3.erb +6 -0
- data/templates/cat3/r1_1/_performance_rate.cat3.erb +18 -0
- data/templates/{cat1/_providers.cat1.erb → cat3/r1_1/_providers.cat3.erb} +18 -18
- data/templates/{cat1/_reporting_parameters.cat1.erb → cat3/r1_1/_reporting_parameters.cat3.erb} +5 -1
- data/templates/cat3/r1_1/_supplemental_data.cat3.erb +38 -0
- data/templates/cat3/r1_1/_telecom.cat3.erb +1 -0
- data/templates/cat3/r1_1/show.cat3.erb +150 -0
- data/templates/cat3/r2/_address.cat3.erb +9 -0
- data/templates/cat3/r2/_author.cat3.erb +28 -0
- data/templates/cat3/r2/_continuous_variable_value.cat3.erb +20 -0
- data/templates/cat3/r2/_id.cat3.erb +1 -0
- data/templates/cat3/r2/_measure_data.cat3.erb +136 -0
- data/templates/cat3/r2/_organization.cat3.erb +6 -0
- data/templates/cat3/r2/_performance_rate.cat3.erb +19 -0
- data/templates/cat3/r2/_providers.cat3.erb +57 -0
- data/templates/cat3/r2/_reporting_parameters.cat3.erb +29 -0
- data/templates/cat3/r2/_supplemental_data.cat3.erb +38 -0
- data/templates/cat3/r2/_telecom.cat3.erb +1 -0
- data/templates/cat3/r2/show.cat3.erb +150 -0
- data/templates/cat3/r2_1/_address.cat3.erb +9 -0
- data/templates/cat3/r2_1/_author.cat3.erb +28 -0
- data/templates/cat3/r2_1/_continuous_variable_value.cat3.erb +20 -0
- data/templates/cat3/r2_1/_id.cat3.erb +1 -0
- data/templates/cat3/r2_1/_measure_data.cat3.erb +136 -0
- data/templates/cat3/r2_1/_organization.cat3.erb +6 -0
- data/templates/cat3/r2_1/_performance_rate.cat3.erb +19 -0
- data/templates/cat3/r2_1/_providers.cat3.erb +57 -0
- data/templates/cat3/r2_1/_reporting_parameters.cat3.erb +20 -0
- data/templates/cat3/r2_1/_reporting_parameters_act.cat3.erb +10 -0
- data/templates/cat3/r2_1/_supplemental_data.cat3.erb +38 -0
- data/templates/cat3/r2_1/_telecom.cat3.erb +1 -0
- data/templates/cat3/r2_1/show.cat3.erb +153 -0
- data/templates/ccda/_medical_equipment.ccda.erb +1 -1
- data/templates/ccda/_social_history.ccda.erb +2 -2
- data/templates/ccda/_vital_signs.ccda.erb +1 -1
- data/templates/html/_entries_by_section.html.erb +1 -1
- metadata +425 -153
- data/lib/health-data-standards/import/cat1/procedure_importer.rb +0 -42
- data/templates/cat1/_2.16.840.1.113883.10.20.24.3.11.cat1.erb +0 -55
- data/templates/cat1/_2.16.840.1.113883.10.20.24.3.13.cat1.erb +0 -38
- data/templates/cat1/_2.16.840.1.113883.10.20.24.3.17.cat1.erb +0 -22
- data/templates/cat1/_2.16.840.1.113883.10.20.24.3.31.cat1.erb +0 -22
- data/templates/cat1/_2.16.840.1.113883.10.20.24.3.37.cat1.erb +0 -20
- data/templates/cat1/_2.16.840.1.113883.10.20.24.3.47.cat1.erb +0 -27
- data/templates/cat1/_2.16.840.1.113883.10.20.24.3.51.cat1.erb +0 -13
- data/templates/cat1/_reason.cat1.erb +0 -23
File without changes
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<!-- SHALL have 1..* author. MAY be device or person.
|
2
|
+
The author of the CDA document in this example is a device at a data submission vendor/registry. -->
|
3
|
+
<author>
|
4
|
+
<time value="<%= author.time.to_formatted_s(:number) %>"/>
|
5
|
+
<assignedAuthor>
|
6
|
+
<!-- Registry author ID -->
|
7
|
+
<%== render :partial=>"id", :collection=>author.ids, :id=>"identifier" %>
|
8
|
+
<%== render :partial=>"address" , :collection=>author.addresses %>
|
9
|
+
<%== render :partial=>"telecom" , :collection=>author.telecoms %>
|
10
|
+
|
11
|
+
<% if author.person %>
|
12
|
+
<assignedPerson>
|
13
|
+
<name>
|
14
|
+
<given><%= author.person.given %></given>
|
15
|
+
<family><%= author.person.family %></family>
|
16
|
+
</name>
|
17
|
+
</assignedPerson>
|
18
|
+
<% elsif author.device %>
|
19
|
+
<assignedAuthoringDevice>
|
20
|
+
<manufacturerModelName><%= author.device.model %></manufacturerModelName>
|
21
|
+
<softwareName><%= author.device.name %></softwareName>
|
22
|
+
</assignedAuthoringDevice>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
<%== render :partial=>"organization", :locals=>{organization: author.organization, tag_name: "representedOrganization"} %>
|
26
|
+
|
27
|
+
</assignedAuthor>
|
28
|
+
</author>
|
data/templates/cat3/{_continuous_variable_value.cat3.erb → r1/_continuous_variable_value.cat3.erb}
RENAMED
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
<id <%== identifier.root.nil? ? "" : "root='#{identifier.root}'" -%> extension="<%= identifier.extension %>"/>
|
@@ -84,7 +84,7 @@
|
|
84
84
|
<%== render :partial => 'supplemental_data', :locals => {:template_name => 'Sex Supplemental Data',
|
85
85
|
:template_ids => ['2.16.840.1.113883.10.20.27.3.6'], :supplemental_data_code => '184100006',
|
86
86
|
:supplemental_data_code_system => '2.16.840.1.113883.6.96', :supplemental_data_value_code => sex,
|
87
|
-
:supplemental_data_value_code_system => '2.16.840.1.113883.5.1', :count => count} %>
|
87
|
+
:supplemental_data_value_code_system => '2.16.840.1.113883.5.1', :count => count, :qrda3_version => qrda3_version} %>
|
88
88
|
<% end -%>
|
89
89
|
<% end -%>
|
90
90
|
<% ethnicity_supplimental_data = population.supplemental_data["ETHNICITY"]
|
@@ -96,7 +96,7 @@
|
|
96
96
|
<%== render :partial => 'supplemental_data', :locals => {:template_name => 'Ethnicity Supplemental Data',
|
97
97
|
:template_ids => ['2.16.840.1.113883.10.20.27.3.7'], :supplemental_data_code => '364699009',
|
98
98
|
:supplemental_data_code_system => '2.16.840.1.113883.6.96', :supplemental_data_value_code => ethnicity,
|
99
|
-
:supplemental_data_value_code_system => '2.16.840.1.113883.6.238', :count => count} %>
|
99
|
+
:supplemental_data_value_code_system => '2.16.840.1.113883.6.238', :count => count, :qrda3_version => qrda3_version} %>
|
100
100
|
<% end -%>
|
101
101
|
<% end -%>
|
102
102
|
<% race_supplimental_data = population.supplemental_data["RACE"]
|
@@ -108,18 +108,19 @@
|
|
108
108
|
<%== render :partial => 'supplemental_data', :locals => {:template_name => 'Race Supplemental Data',
|
109
109
|
:template_ids => ['2.16.840.1.113883.10.20.27.3.8'], :supplemental_data_code => '103579009',
|
110
110
|
:supplemental_data_code_system => '2.16.840.1.113883.6.96', :supplemental_data_value_code => race,
|
111
|
-
:supplemental_data_value_code_system => '2.16.840.1.113883.6.238', :count => count} %>
|
111
|
+
:supplemental_data_value_code_system => '2.16.840.1.113883.6.238', :count => count, :qrda3_version => qrda3_version} %>
|
112
112
|
<% end -%>
|
113
113
|
<% end -%>
|
114
114
|
<% payer_supplimental_data = population.supplemental_data["PAYER"]
|
115
115
|
if payer_supplimental_data.present?
|
116
116
|
payer_supplimental_data.each do |payer, count| -%>
|
117
117
|
|
118
|
-
<!-- PAYER Supplemental Data Reporting for<%= population.type %> <%= population.id %> -->
|
118
|
+
<!-- PAYER Supplemental Data Reporting for<%= population.type %> <%= population.id %> -->
|
119
|
+
<% payer_templates_ids = ['2.16.840.1.113883.10.20.27.3.9', '2.16.840.1.113883.10.20.24.3.55'] %>
|
119
120
|
<%== render :partial => 'supplemental_data', :locals => {:template_name => 'Payer Supplemental Data',
|
120
|
-
:template_ids =>
|
121
|
+
:template_ids => payer_templates_ids, :supplemental_data_code => '48768-6',
|
121
122
|
:supplemental_data_code_system => '2.16.840.1.113883.6.1', :supplemental_data_value_code => payer,
|
122
|
-
:supplemental_data_value_code_system => '2.16.840.1.113883.3.221.5', :count => count} %>
|
123
|
+
:supplemental_data_value_code_system => '2.16.840.1.113883.3.221.5', :count => count, :qrda3_version => qrda3_version} %>
|
123
124
|
<% end -%>
|
124
125
|
<% end -%>
|
125
126
|
<% end -%>
|
File without changes
|
@@ -12,9 +12,7 @@
|
|
12
12
|
<reference typeCode="REFR">
|
13
13
|
<externalObservation classCode="OBS" moodCode="EVN">
|
14
14
|
<id root="<%= population_group.numerator.id %>"/>
|
15
|
-
<code code="NUMER" displayName="Numerator"
|
16
|
-
codeSystem="2.16.840.1.113883.5.1063"
|
17
|
-
codeSystemName="ObservationValue"/>
|
15
|
+
<code code="NUMER" displayName="Numerator" codeSystem="2.16.840.1.113883.5.1063" codeSystemName="ObservationValue"/>
|
18
16
|
</externalObservation>
|
19
17
|
</reference>
|
20
18
|
</observation>
|
File without changes
|
File without changes
|
@@ -10,10 +10,12 @@
|
|
10
10
|
<code code="<%= supplemental_data_code %>"
|
11
11
|
codeSystem="<%= supplemental_data_code_system %>"/>
|
12
12
|
<statusCode code="completed"/>
|
13
|
+
<% if template_name == 'Payer Supplemental Data' %>
|
13
14
|
<effectiveTime>
|
14
15
|
<low nullFlavor="NA"/>
|
15
16
|
<high nullFlavor="NA"/>
|
16
17
|
</effectiveTime>
|
18
|
+
<% end %>
|
17
19
|
<% if supplemental_data_value_code == "" || supplemental_data_value_code == "UNK" -%>
|
18
20
|
<value xsi:type="CD"
|
19
21
|
nullFlavor="UNK" />
|
@@ -0,0 +1 @@
|
|
1
|
+
<telecom use="<%=telecom.use%>" value="tel:+<%=telecom.value%>" />
|
@@ -10,7 +10,7 @@
|
|
10
10
|
-->
|
11
11
|
<realmCode code="US"/>
|
12
12
|
<typeId root="2.16.840.1.113883.1.3" extension="POCD_HD000040"/>
|
13
|
-
<!-- QRDA Category III
|
13
|
+
<!-- QRDA Category III template ID (this template ID differs from QRDA III comment only template ID). -->
|
14
14
|
<templateId root="2.16.840.1.113883.10.20.27.1.1"/>
|
15
15
|
<%== render :partial=>"id", :locals=>{identifier: header.identifier} %>
|
16
16
|
|
@@ -94,7 +94,7 @@ Measure Section
|
|
94
94
|
<templateId root="2.16.840.1.113883.10.20.24.2.2"/>
|
95
95
|
<!-- In this case the query is using an eMeasure -->
|
96
96
|
<!-- QRDA Category III Measure Section template -->
|
97
|
-
<templateId root="2.16.840.1.113883.10.20.27.2.1"/>
|
97
|
+
<templateId root="2.16.840.1.113883.10.20.27.2.1" />
|
98
98
|
<code code="55186-1" codeSystem="2.16.840.1.113883.6.1"/>
|
99
99
|
<title>Measure Section</title>
|
100
100
|
<text>
|
@@ -106,7 +106,7 @@ Measure Section
|
|
106
106
|
<!-- Implied template Measure Reference templateId -->
|
107
107
|
<templateId root="2.16.840.1.113883.10.20.24.3.98"/>
|
108
108
|
<!-- SHALL 1..* (one for each referenced measure) Measure Reference and Results template -->
|
109
|
-
<templateId root="2.16.840.1.113883.10.20.27.3.1"/>
|
109
|
+
<templateId root="2.16.840.1.113883.10.20.27.3.1" />
|
110
110
|
<id extension="<%= measure['id'] || UUID.generate %>"/>
|
111
111
|
<statusCode code="completed"/>
|
112
112
|
<reference typeCode="REFR">
|
@@ -129,14 +129,14 @@ Measure Section
|
|
129
129
|
result.population_groups.each do |pg|
|
130
130
|
-%>
|
131
131
|
<component>
|
132
|
-
<%== render :partial => 'performance_rate', :locals => {:population_group => pg} %>
|
132
|
+
<%== render :partial => 'performance_rate', :locals => {:population_group => pg, :qrda3_version => qrda3_version} %>
|
133
133
|
</component>
|
134
134
|
<% end
|
135
135
|
end -%>
|
136
136
|
<% result.populations.each do |pop|
|
137
137
|
unless pop.type == 'OBSERV' -%>
|
138
138
|
<component>
|
139
|
-
<%== render :partial => 'measure_data', :locals => {:aggregate_count => result, :population => pop} %>
|
139
|
+
<%== render :partial => 'measure_data', :locals => {:aggregate_count => result, :population => pop, :qrda3_version => qrda3_version} %>
|
140
140
|
</component>
|
141
141
|
<% end
|
142
142
|
end -%>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<addr use="<%= address.use %>">
|
2
|
+
<% address.street.each do |street| %>
|
3
|
+
<streetAddressLine><%= street %></streetAddressLine>
|
4
|
+
<% end %>
|
5
|
+
<city><%= address.city %></city>
|
6
|
+
<state><%= address.state %></state>
|
7
|
+
<postalCode><%= address.zip %></postalCode>
|
8
|
+
<country><%= address.country %></country>
|
9
|
+
</addr>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<!-- SHALL have 1..* author. MAY be device or person.
|
2
|
+
The author of the CDA document in this example is a device at a data submission vendor/registry. -->
|
3
|
+
<author>
|
4
|
+
<time value="<%= author.time.to_formatted_s(:number) %>"/>
|
5
|
+
<assignedAuthor>
|
6
|
+
<!-- Registry author ID -->
|
7
|
+
<%== render :partial=>"id", :collection=>author.ids, :id=>"identifier" %>
|
8
|
+
<%== render :partial=>"address" , :collection=>author.addresses %>
|
9
|
+
<%== render :partial=>"telecom" , :collection=>author.telecoms %>
|
10
|
+
|
11
|
+
<% if author.person %>
|
12
|
+
<assignedPerson>
|
13
|
+
<name>
|
14
|
+
<given><%= author.person.given %></given>
|
15
|
+
<family><%= author.person.family %></family>
|
16
|
+
</name>
|
17
|
+
</assignedPerson>
|
18
|
+
<% elsif author.device %>
|
19
|
+
<assignedAuthoringDevice>
|
20
|
+
<manufacturerModelName><%= author.device.model %></manufacturerModelName>
|
21
|
+
<softwareName><%= author.device.name %></softwareName>
|
22
|
+
</assignedAuthoringDevice>
|
23
|
+
<% end %>
|
24
|
+
|
25
|
+
<%== render :partial=>"organization", :locals=>{organization: author.organization, tag_name: "representedOrganization"} %>
|
26
|
+
|
27
|
+
</assignedAuthor>
|
28
|
+
</author>
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<entryRelationship typeCode="COMP">
|
2
|
+
<observation classCode="OBS" moodCode="EVN">
|
3
|
+
<templateId root="2.16.840.1.113883.10.20.27.3.2"/>
|
4
|
+
<code nullFlavor="OTH">
|
5
|
+
<originalText>Time Difference</originalText>
|
6
|
+
</code>
|
7
|
+
<statusCode code="completed"/>
|
8
|
+
<value xsi:type="PQ" value="<%= value %>" unit="min"/>
|
9
|
+
<methodCode code="MEDIAN"
|
10
|
+
displayName="Median"
|
11
|
+
codeSystem="2.16.840.1.113883.5.84"
|
12
|
+
codeSystemName="ObservationMethod"/>
|
13
|
+
<reference typeCode="REFR">
|
14
|
+
<!-- reference to the relevant measure observation in the eMeasure -->
|
15
|
+
<externalObservation classCode="OBS" moodCode="EVN">
|
16
|
+
<id root="<%= id %>"/>
|
17
|
+
</externalObservation>
|
18
|
+
</reference>
|
19
|
+
</observation>
|
20
|
+
</entryRelationship>
|
@@ -0,0 +1 @@
|
|
1
|
+
<id <%== identifier.root.nil? ? "" : "root='#{identifier.root}'" -%> extension="<%= identifier.extension %>"/>
|
@@ -0,0 +1,136 @@
|
|
1
|
+
|
2
|
+
<!-- MEASURE DATA REPORTING FOR <%= population.type %> <%= population.id %> -->
|
3
|
+
<observation classCode="OBS" moodCode="EVN">
|
4
|
+
<!-- Measure Data template -->
|
5
|
+
<templateId root="2.16.840.1.113883.10.20.27.3.5" extension="2016-02-01"/>
|
6
|
+
<code code="ASSERTION"
|
7
|
+
codeSystem="2.16.840.1.113883.5.4"
|
8
|
+
displayName="Assertion"
|
9
|
+
codeSystemName="ActCode"/>
|
10
|
+
<statusCode code="completed"/>
|
11
|
+
<value xsi:type="CD" code="<%= population.type == 'IPP' ? 'IPOP' : population.type %>"
|
12
|
+
codeSystem="2.16.840.1.113883.5.4"
|
13
|
+
codeSystemName="ActCode"/>
|
14
|
+
<!-- Aggregate Count -->
|
15
|
+
<entryRelationship typeCode="SUBJ" inversionInd="true">
|
16
|
+
<observation classCode="OBS" moodCode="EVN">
|
17
|
+
<templateId root="2.16.840.1.113883.10.20.27.3.3"/>
|
18
|
+
<code code="MSRAGG"
|
19
|
+
displayName="rate aggregation"
|
20
|
+
codeSystem="2.16.840.1.113883.5.4"
|
21
|
+
codeSystemName="ActCode"/>
|
22
|
+
<value xsi:type="INT" value="<%= population.value.round %>"/>
|
23
|
+
<methodCode code="COUNT"
|
24
|
+
displayName="Count"
|
25
|
+
codeSystem="2.16.840.1.113883.5.84"
|
26
|
+
codeSystemName="ObservationMethod"/>
|
27
|
+
</observation>
|
28
|
+
</entryRelationship>
|
29
|
+
<% population.stratifications.each do |strat| -%>
|
30
|
+
|
31
|
+
<!-- Startification Reporting Template for <%= population.type %> <%= population.id %> Stratification <%= strat.id %> -->
|
32
|
+
|
33
|
+
<entryRelationship typeCode="COMP">
|
34
|
+
<observation classCode="OBS" moodCode="EVN">
|
35
|
+
<templateId root="2.16.840.1.113883.10.20.27.3.4"/>
|
36
|
+
<code code="ASSERTION"
|
37
|
+
codeSystem="2.16.840.1.113883.5.4"
|
38
|
+
displayName="Assertion"
|
39
|
+
codeSystemName="ActCode"/>
|
40
|
+
<statusCode code="completed"/>
|
41
|
+
<value xsi:type="CD" nullFlavor="OTH">
|
42
|
+
<originalText>Stratum</originalText>
|
43
|
+
</value>
|
44
|
+
<entryRelationship typeCode="SUBJ" inversionInd="true">
|
45
|
+
<observation classCode="OBS" moodCode="EVN">
|
46
|
+
<templateId root="2.16.840.1.113883.10.20.27.3.3"/>
|
47
|
+
<code code="MSRAGG"
|
48
|
+
displayName="rate aggregation"
|
49
|
+
codeSystem="2.16.840.1.113883.5.4"
|
50
|
+
codeSystemName="ActCode"/>
|
51
|
+
<value xsi:type="INT" value="<%= strat.value.round %>"/>
|
52
|
+
<methodCode code="COUNT"
|
53
|
+
displayName="Count"
|
54
|
+
codeSystem="2.16.840.1.113883.5.84"
|
55
|
+
codeSystemName="ObservationMethod"/>
|
56
|
+
</observation>
|
57
|
+
</entryRelationship>
|
58
|
+
<% if population.type == 'MSRPOPL' -%>
|
59
|
+
<%
|
60
|
+
#need to lookup the observation population entry and then find the stratification entry for it
|
61
|
+
observ = aggregate_count.populations.find{|p| p.type == "OBSERV"}
|
62
|
+
obs_strat = observ.stratifications.find{|s| s.id == strat.id}
|
63
|
+
if obs_strat
|
64
|
+
%>
|
65
|
+
<%== render :partial => 'continuous_variable_value', :locals => {:id => observ.id, :value=>obs_strat.value } %>
|
66
|
+
<%
|
67
|
+
end
|
68
|
+
end -%>
|
69
|
+
<reference typeCode="REFR">
|
70
|
+
<externalObservation classCode="OBS" moodCode="EVN">
|
71
|
+
<id root="<%= strat.id %>"/>
|
72
|
+
</externalObservation>
|
73
|
+
</reference>
|
74
|
+
</observation>
|
75
|
+
</entryRelationship>
|
76
|
+
<% end -%>
|
77
|
+
<% if population.supplemental_data.present? -%>
|
78
|
+
<% sex_supplimental_data = population.supplemental_data["SEX"]
|
79
|
+
if sex_supplimental_data.present?
|
80
|
+
sex_supplimental_data.each do |sex, count| -%>
|
81
|
+
|
82
|
+
<!-- SEX Supplemental Data Reporting for <%= population.type %> <%= population.id %> -->
|
83
|
+
|
84
|
+
<%== render :partial => 'supplemental_data', :locals => {:template_name => 'Sex Supplemental Data',
|
85
|
+
:template_ids => ['2.16.840.1.113883.10.20.27.3.6'], :supplemental_data_code => '184100006',
|
86
|
+
:supplemental_data_code_system => '2.16.840.1.113883.6.96', :supplemental_data_value_code => sex,
|
87
|
+
:supplemental_data_value_code_system => '2.16.840.1.113883.5.1', :count => count, :qrda3_version => qrda3_version} %>
|
88
|
+
<% end -%>
|
89
|
+
<% end -%>
|
90
|
+
<% ethnicity_supplimental_data = population.supplemental_data["ETHNICITY"]
|
91
|
+
if ethnicity_supplimental_data.present?
|
92
|
+
ethnicity_supplimental_data.each do |ethnicity, count| -%>
|
93
|
+
|
94
|
+
<!-- ETHNICITY Supplemental Data Reporting for <%= population.type %> <%= population.id %> -->
|
95
|
+
|
96
|
+
<%== render :partial => 'supplemental_data', :locals => {:template_name => 'Ethnicity Supplemental Data',
|
97
|
+
:template_ids => ['2.16.840.1.113883.10.20.27.3.7'], :supplemental_data_code => '364699009',
|
98
|
+
:supplemental_data_code_system => '2.16.840.1.113883.6.96', :supplemental_data_value_code => ethnicity,
|
99
|
+
:supplemental_data_value_code_system => '2.16.840.1.113883.6.238', :count => count, :qrda3_version => qrda3_version} %>
|
100
|
+
<% end -%>
|
101
|
+
<% end -%>
|
102
|
+
<% race_supplimental_data = population.supplemental_data["RACE"]
|
103
|
+
if race_supplimental_data.present?
|
104
|
+
race_supplimental_data.each do |race, count| -%>
|
105
|
+
|
106
|
+
<!-- RACE Supplemental Data Reporting for <%= population.type %> <%= population.id %> -->
|
107
|
+
|
108
|
+
<%== render :partial => 'supplemental_data', :locals => {:template_name => 'Race Supplemental Data',
|
109
|
+
:template_ids => ['2.16.840.1.113883.10.20.27.3.8'], :supplemental_data_code => '103579009',
|
110
|
+
:supplemental_data_code_system => '2.16.840.1.113883.6.96', :supplemental_data_value_code => race,
|
111
|
+
:supplemental_data_value_code_system => '2.16.840.1.113883.6.238', :count => count, :qrda3_version => qrda3_version} %>
|
112
|
+
<% end -%>
|
113
|
+
<% end -%>
|
114
|
+
<% payer_supplimental_data = population.supplemental_data["PAYER"]
|
115
|
+
if payer_supplimental_data.present?
|
116
|
+
payer_supplimental_data.each do |payer, count| -%>
|
117
|
+
|
118
|
+
<!-- PAYER Supplemental Data Reporting for<%= population.type %> <%= population.id %> -->
|
119
|
+
<% payer_templates_ids = ['2.16.840.1.113883.10.20.27.3.9'] %>
|
120
|
+
<%== render :partial => 'supplemental_data', :locals => {:template_name => 'Payer Supplemental Data',
|
121
|
+
:template_ids => payer_templates_ids, :supplemental_data_code => '48768-6',
|
122
|
+
:supplemental_data_code_system => '2.16.840.1.113883.6.1', :supplemental_data_value_code => payer,
|
123
|
+
:supplemental_data_value_code_system => '2.16.840.1.113883.3.221.5', :count => count, :qrda3_version => qrda3_version} %>
|
124
|
+
<% end -%>
|
125
|
+
<% end -%>
|
126
|
+
<% end -%>
|
127
|
+
<% if population.type == 'MSRPOPL' -%>
|
128
|
+
<% observ = aggregate_count.populations.find{|p| p.type == "OBSERV"} %>
|
129
|
+
<%== render :partial => 'continuous_variable_value', :locals => {:id => observ.id, :value=>observ.value}%>
|
130
|
+
<% end -%>
|
131
|
+
<reference typeCode="REFR">
|
132
|
+
<externalObservation classCode="OBS" moodCode="EVN">
|
133
|
+
<id root="<%= population.id %>"/>
|
134
|
+
</externalObservation>
|
135
|
+
</reference>
|
136
|
+
</observation>
|
@@ -0,0 +1,6 @@
|
|
1
|
+
<<%=tag_name %>>
|
2
|
+
<!-- Represents unique registry organization TIN -->
|
3
|
+
<%== render :partial=>"id", :collection=>organization.ids, :id=> "identifier" %>
|
4
|
+
<!-- Contains name - specific registry not required-->
|
5
|
+
<name><%= organization.name %></name>
|
6
|
+
</<%=tag_name %>>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<observation classCode="OBS" moodCode="EVN">
|
2
|
+
<templateId root="2.16.840.1.113883.10.20.27.3.14"/>
|
3
|
+
<code code="72510-1" codeSystem="2.16.840.1.113883.6.1"
|
4
|
+
displayName="Performance Rate"
|
5
|
+
codeSystemName="2.16.840.1.113883.6.1"/>
|
6
|
+
<statusCode code="completed"/>
|
7
|
+
<% if population_group.performance_rate_denominator > 0 %>
|
8
|
+
<value xsi:type="REAL" value="<%= population_group.performance_rate.round(6) %>"/>
|
9
|
+
<% else %>
|
10
|
+
<value xsi:type="REAL" nullFlavor="NA"/>
|
11
|
+
<% end %>
|
12
|
+
<reference typeCode="REFR">
|
13
|
+
<externalObservation classCode="OBS" moodCode="EVN">
|
14
|
+
<id root="<%= population_group.numerator.id %>"/>
|
15
|
+
<code code="NUMER" displayName="Numerator" codeSystem="2.16.840.1.113883.5.4" codeSystemName="ObservationValue"/>
|
16
|
+
</externalObservation>
|
17
|
+
</reference>
|
18
|
+
</observation>
|
@@ -1,6 +1,6 @@
|
|
1
1
|
<documentationOf typeCode="DOC">
|
2
2
|
<serviceEvent classCode="PCPR"> <!-- care provision -->
|
3
|
-
<% if
|
3
|
+
<% if providers.empty? -%>
|
4
4
|
<!-- No provider data found in the patient record
|
5
5
|
putting in a fake provider -->
|
6
6
|
<effectiveTime>
|
@@ -8,45 +8,45 @@
|
|
8
8
|
<high value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
|
9
9
|
</effectiveTime>
|
10
10
|
<!-- You can include multiple performers, each with an NPI, TIN, CCN. -->
|
11
|
-
<performer typeCode="PRF">
|
11
|
+
<performer typeCode="PRF">
|
12
12
|
<time>
|
13
13
|
<low value="20020716"/>
|
14
14
|
<high value="<%= Time.now.utc.to_formatted_s(:number) %>"/>
|
15
15
|
</time>
|
16
16
|
<assignedEntity>
|
17
17
|
<!-- This is the provider NPI -->
|
18
|
-
<id root="2.16.840.1.113883.4.6" extension="111111111" />
|
18
|
+
<id root="2.16.840.1.113883.4.6" extension="111111111" />
|
19
19
|
<representedOrganization>
|
20
20
|
<!-- This is the organization TIN -->
|
21
|
-
<id root="2.16.840.1.113883.4.2" extension="1234567" />
|
21
|
+
<id root="2.16.840.1.113883.4.2" extension="1234567" />
|
22
22
|
<!-- This is the organization CCN -->
|
23
|
-
<id root="2.16.840.1.113883.4.336" extension="54321" />
|
23
|
+
<id root="2.16.840.1.113883.4.336" extension="54321" />
|
24
24
|
</representedOrganization>
|
25
25
|
</assignedEntity>
|
26
26
|
</performer>
|
27
27
|
<% else -%>
|
28
|
-
<%
|
28
|
+
<% providers.each do |prov| -%>
|
29
29
|
<effectiveTime>
|
30
|
-
<low <%=
|
31
|
-
<high <%=
|
30
|
+
<low value= "<%= start_date.utc.to_formatted_s(:number) %>" />
|
31
|
+
<high value= "<%= end_date.utc.to_formatted_s(:number) %>" />
|
32
32
|
</effectiveTime>
|
33
33
|
<!-- You can include multiple performers, each with an NPI, TIN, CCN. -->
|
34
|
-
<performer typeCode="PRF">
|
34
|
+
<performer typeCode="PRF">
|
35
35
|
<time>
|
36
|
-
<low <%=
|
37
|
-
<high <%=
|
36
|
+
<low value="<%= start_date.utc.to_formatted_s(:number) %>" />
|
37
|
+
<high value="<%= end_date.utc.to_formatted_s(:number) %>" />
|
38
38
|
</time>
|
39
39
|
<assignedEntity>
|
40
|
-
<%
|
40
|
+
<% prov.cda_identifiers.each do |cda_id| -%>
|
41
41
|
<% unless cda_id.root.eql? '2.16.840.1.113883.4.2' -%>
|
42
|
-
<id root="<%= cda_id.root %>" extension="<%= cda_id.extension %>" />
|
42
|
+
<id root="<%= cda_id.root %>" extension="<%= cda_id.extension %>" />
|
43
43
|
<% end -%>
|
44
44
|
<% end -%>
|
45
45
|
<representedOrganization>
|
46
|
-
<%
|
47
|
-
|
48
|
-
|
49
|
-
|
46
|
+
<% prov.cda_identifiers.each do |cda_id| -%>
|
47
|
+
<% if cda_id.root.eql?('2.16.840.1.113883.4.2') -%>
|
48
|
+
<id root="2.16.840.1.113883.4.2" extension="<%= cda_id.extension %>" />
|
49
|
+
<% end -%>
|
50
50
|
<% end -%>
|
51
51
|
</representedOrganization>
|
52
52
|
</assignedEntity>
|
@@ -54,4 +54,4 @@
|
|
54
54
|
<% end -%>
|
55
55
|
<% end -%>
|
56
56
|
</serviceEvent>
|
57
|
-
</documentationOf>
|
57
|
+
</documentationOf>
|