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
@@ -0,0 +1,71 @@
|
|
1
|
+
<entry>
|
2
|
+
<act classCode="ACT" moodCode="EVN">
|
3
|
+
<!-- Conforms to C-CDA 2.1 Problem Concern Act (V3) -->
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.3" extension="2015-08-01" />
|
5
|
+
<!-- Diagnosis Concern Act -->
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.137" />
|
7
|
+
<id root="<%= UUID.generate %>" />
|
8
|
+
<code code="CONC" codeSystem="2.16.840.1.113883.5.6" displayName="Concern" />
|
9
|
+
<statusCode code="active" />
|
10
|
+
<effectiveTime>
|
11
|
+
<low <%= value_or_null_flavor(entry.start_time) %> />
|
12
|
+
<high <%= value_or_null_flavor(entry.end_time) %> />
|
13
|
+
</effectiveTime>
|
14
|
+
<entryRelationship typeCode="SUBJ">
|
15
|
+
<observation classCode="OBS" moodCode="EVN">
|
16
|
+
<!-- Conforms to C-CDA R2.1 Problem Observation (V3) -->
|
17
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.4" extension="2015-08-01" />
|
18
|
+
<!-- Diagnosis template -->
|
19
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.135" />
|
20
|
+
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>" />
|
21
|
+
<code code="29308-4" codeSystem="2.16.840.1.113883.6.1">
|
22
|
+
<translation code="282291009" codeSystem="2.16.840.1.113883.6.96"/>
|
23
|
+
</code>
|
24
|
+
<statusCode code="completed" />
|
25
|
+
<effectiveTime>
|
26
|
+
<!-- Attribute: onset datetime -->
|
27
|
+
<low <%= value_or_null_flavor(entry.start_time) %> />
|
28
|
+
<!-- Attribute: abatement datetime -->
|
29
|
+
<high <%= value_or_null_flavor(entry.end_time) %> />
|
30
|
+
</effectiveTime>
|
31
|
+
<%== code_display(entry, 'tag_name' => 'value', 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM'],
|
32
|
+
'extra_content' => "xsi:type=\"CD\" sdtc:valueSet=\"#{value_set_oid}\"") %>
|
33
|
+
<% if entry.laterality -%>
|
34
|
+
<targetSiteCode code="<%= entry.laterality['code'] %>"
|
35
|
+
codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.laterality['codeSystem'] || entry.laterality['code_system']) %>"
|
36
|
+
<% if entry.laterality.has_key?('title') -%>
|
37
|
+
displayName="<%=entry.laterality['title']%>"
|
38
|
+
<% end -%>
|
39
|
+
sdtc:valueSet="<%= oid_for_code(entry.severity,field_oids["LATERALITY"] || [], entry.record["bundle_id"]) %>"
|
40
|
+
/>
|
41
|
+
<% end -%>
|
42
|
+
<% if entry.anatomical_location -%>
|
43
|
+
<targetSiteCode code="<%= entry.anatomical_location['code'] %>"
|
44
|
+
codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.anatomical_location['codeSystem'] || entry.anatomical_location['code_system']) %>"
|
45
|
+
<% if entry.anatomical_location.has_key?('title') -%>
|
46
|
+
displayName="<%=entry.anatomical_location['title']%>"
|
47
|
+
<% end -%>
|
48
|
+
sdtc:valueSet="<%= oid_for_code(entry.anatomical_location,field_oids["ANATOMICAL_LOCATION_SITE"] || [], entry.record["bundle_id"]) %>"
|
49
|
+
/>
|
50
|
+
<% end -%>
|
51
|
+
<% if entry.severity -%>
|
52
|
+
<entryRelationship typeCode="REFR">
|
53
|
+
<observation classCode="OBS" moodCode="EVN">
|
54
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.8" extension="2014-06-09" />
|
55
|
+
<code code="SEV" codeSystem="2.16.840.1.113883.5.4" />
|
56
|
+
<statusCode code="completed" />
|
57
|
+
<value xsi:type="CD"
|
58
|
+
code="<%= entry.severity['code'] %>"
|
59
|
+
codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.severity['codeSystem'] || entry.severity['code_system']) %>"
|
60
|
+
<% if entry.severity.has_key?('title') -%>
|
61
|
+
displayName="<%=entry.severity['title']%>"
|
62
|
+
<% end -%>
|
63
|
+
sdtc:valueSet="<%= oid_for_code(entry.severity,field_oids["SEVERITY"] || [], entry.record["bundle_id"]) %>"
|
64
|
+
/>
|
65
|
+
</observation>
|
66
|
+
</entryRelationship>
|
67
|
+
<% end -%>
|
68
|
+
</observation>
|
69
|
+
</entryRelationship>
|
70
|
+
</act>
|
71
|
+
</entry>
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<entry>
|
2
|
+
<act classCode="ACT" moodCode="EVN">
|
3
|
+
<!-- Conforms to C-CDA 2.1 Problem Concern Act (V3) -->
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.3" extension="2015-08-01" />
|
5
|
+
<!-- Symptom Concern Act -->
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.138" />
|
7
|
+
<id root="<%= UUID.generate %>" />
|
8
|
+
<code code="CONC" codeSystem="2.16.840.1.113883.5.6" displayName="Concern" />
|
9
|
+
<statusCode code="active" />
|
10
|
+
<effectiveTime>
|
11
|
+
<low <%= value_or_null_flavor(entry.start_time) %> />
|
12
|
+
</effectiveTime>
|
13
|
+
<entryRelationship typeCode="SUBJ">
|
14
|
+
<observation classCode="OBS" moodCode="EVN">
|
15
|
+
<!-- Conforms to C-CDA R2.1 Problem Observation (V3) -->
|
16
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.4" extension="2015-08-01" />
|
17
|
+
<!-- Symptom template -->
|
18
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.136" />
|
19
|
+
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>" />
|
20
|
+
<code code="75325-1" codeSystem="2.16.840.1.113883.6.1">
|
21
|
+
<translation code="418799008" codeSystem="2.16.840.1.113883.6.96"/>
|
22
|
+
</code>
|
23
|
+
<statusCode code="completed" />
|
24
|
+
<effectiveTime>
|
25
|
+
<!-- Attribute: onset datetime -->
|
26
|
+
<low <%= value_or_null_flavor(entry.start_time) %> />
|
27
|
+
<!-- Attribute: abatement datetime -->
|
28
|
+
<high <%= value_or_null_flavor(entry.end_time) %> />
|
29
|
+
</effectiveTime>
|
30
|
+
<%== code_display(entry, 'tag_name' => 'value', 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['LOINC', 'SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM'],
|
31
|
+
'extra_content' => "xsi:type=\"CD\" sdtc:valueSet=\"#{value_set_oid}\"") %>
|
32
|
+
<% if entry.severity -%>
|
33
|
+
<entryRelationship typeCode="REFR">
|
34
|
+
<observation classCode="OBS" moodCode="EVN">
|
35
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.8" extension="2014-06-09" />
|
36
|
+
<code code="SEV" codeSystem="2.16.840.1.113883.5.4" />
|
37
|
+
<statusCode code="completed" />
|
38
|
+
<value xsi:type="CD"
|
39
|
+
code="<%= entry.severity['code'] %>"
|
40
|
+
codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.severity['codeSystem'] || entry.severity['code_system']) %>"
|
41
|
+
<% if entry.severity.has_key?('title') -%>
|
42
|
+
displayName="<%=entry.severity['title']%>"
|
43
|
+
<% end -%>
|
44
|
+
sdtc:valueSet="<%= oid_for_code(entry.severity,field_oids["SEVERITY"] || [], entry.record["bundle_id"]) %>"
|
45
|
+
/>
|
46
|
+
</observation>
|
47
|
+
</entryRelationship>
|
48
|
+
<% end -%>
|
49
|
+
</observation>
|
50
|
+
</entryRelationship>
|
51
|
+
</act>
|
52
|
+
</entry>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<entry>
|
2
|
+
<act classCode="ACT" moodCode="EVN" <%== negation_indicator(entry) %>>
|
3
|
+
<!-- Immunization, Administered template -->
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.140"/>
|
5
|
+
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
6
|
+
<code code="416118004" codeSystem="2.16.840.1.113883.6.96" codeSystemName="SNOMED CT" displayName="Administration"/>
|
7
|
+
<statusCode code="completed"/>
|
8
|
+
<effectiveTime xsi:type="IVL_TS">
|
9
|
+
<low <%= value_or_null_flavor(entry.start_time) %>/>
|
10
|
+
<high <%= value_or_null_flavor(entry.end_time) %>/>
|
11
|
+
</effectiveTime>
|
12
|
+
<entryRelationship typeCode="COMP">
|
13
|
+
<substanceAdministration classCode="SBADM" moodCode="EVN">
|
14
|
+
<!-- Immunization Activity template -->
|
15
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.52" extension="2014-06-09"/>
|
16
|
+
<id root="<%= UUID.generate %>"/>
|
17
|
+
<text><%= entry.description %></text>
|
18
|
+
<statusCode code="completed"/>
|
19
|
+
<effectiveTime xsi:type="IVL_TS">
|
20
|
+
<low <%= value_or_null_flavor(entry.start_time) %>/>
|
21
|
+
<high <%= value_or_null_flavor(entry.end_time) %>/>
|
22
|
+
</effectiveTime>
|
23
|
+
<%== render(:partial => 'medication_details', :locals => {:entry => entry, :route_oids=>field_oids["ROUTE"]}) %>
|
24
|
+
<consumable>
|
25
|
+
<manufacturedProduct classCode="MANU">
|
26
|
+
<!-- Immunization Information (consolidation) template -->
|
27
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.54" extension="2014-06-09"/>
|
28
|
+
<id root="<%= UUID.generate %>"/>
|
29
|
+
<manufacturedMaterial>
|
30
|
+
<%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['CVX', 'RxNorm'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
31
|
+
<lotNumberText>1</lotNumberText>
|
32
|
+
</manufacturedMaterial>
|
33
|
+
</manufacturedProduct>
|
34
|
+
</consumable>
|
35
|
+
</substanceAdministration>
|
36
|
+
</entryRelationship>
|
37
|
+
<%== render(:partial => 'reason', :locals => {:entry => entry,:reason_oids=>field_oids["REASON"]}) %>
|
38
|
+
</act>
|
39
|
+
</entry>
|
@@ -0,0 +1,23 @@
|
|
1
|
+
<entry>
|
2
|
+
<observation classCode="OBS" moodCode="RQO" <%== negation_indicator(entry) %>>
|
3
|
+
<!-- Consolidated Plan of Care Activity Observation
|
4
|
+
templateId (Implied Template) -->
|
5
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09"/>
|
6
|
+
<!-- Diagnostic Study, Order template -->
|
7
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.17" extension="2016-02-01"/>
|
8
|
+
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
9
|
+
<%== code_display(entry, 'value_set_map' => filtered_vs_map,'preferred_code_sets' => ['LOINC'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
10
|
+
<text><%= entry.description %></text>
|
11
|
+
<statusCode code="active"/>
|
12
|
+
|
13
|
+
<!-- Attribute: datetime -->
|
14
|
+
<author>
|
15
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
|
16
|
+
<time <%= value_or_null_flavor(entry.as_point_in_time) %>/>
|
17
|
+
<assignedAuthor>
|
18
|
+
<id nullFlavor="NA" root="<%= UUID.generate %>"/>
|
19
|
+
</assignedAuthor>
|
20
|
+
</author>
|
21
|
+
<%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"]}) %>
|
22
|
+
</observation>
|
23
|
+
</entry>
|
@@ -5,11 +5,11 @@
|
|
5
5
|
<observation classCode="OBS" moodCode="EVN" <%== negation_indicator(entry) %>>
|
6
6
|
<!-- Consolidated Procedure Activity Observation templateId
|
7
7
|
(Implied Template) -->
|
8
|
-
<templateId root="2.16.840.1.113883.10.20.22.4.13"/>
|
8
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.13" extension="2014-06-09"/>
|
9
9
|
<!-- Diagnostic Study, Performed template -->
|
10
|
-
<templateId root="2.16.840.1.113883.10.20.24.3.18"/>
|
10
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.18" extension="2016-02-01"/>
|
11
11
|
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
12
|
-
<%== code_display(entry,'value_set_map' =>
|
12
|
+
<%== code_display(entry,'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['*'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
13
13
|
<text><%= entry.description %></text>
|
14
14
|
<statusCode code="completed"/>
|
15
15
|
<effectiveTime>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
<entry>
|
2
2
|
<act classCode="ACT" moodCode="EVN" <%== negation_indicator(entry) %>>
|
3
3
|
<!-- Communication from patient to provider -->
|
4
|
-
<templateId root="2.16.840.1.113883.10.20.24.3.2"/>
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.2" extension="2016-02-01"/>
|
5
5
|
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
6
|
-
<%== code_display(entry, 'value_set_map' =>
|
6
|
+
<%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['*'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
7
7
|
<text><%= entry.description %></text>
|
8
8
|
<statusCode code="completed"/>
|
9
9
|
<effectiveTime>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
<entry>
|
2
|
+
<act classCode="ACT" moodCode="RQO" <%== negation_indicator(entry) %>>
|
3
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.132"/>
|
4
|
+
<id root="<%= UUID.generate %>" />
|
5
|
+
<code code="ENC" codeSystem="2.16.840.1.113883.5.6" displayName="Encounter" codeSystemName="ActClass"/>
|
6
|
+
<entryRelationship typeCode="SUBJ">
|
7
|
+
<encounter classCode="ENC" moodCode="RQO">
|
8
|
+
<!-- Plan of Care Activity Encounter template -->
|
9
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.40" extension="2014-06-09"/>
|
10
|
+
<!-- Encounter order template -->
|
11
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.22" extension="2016-02-01"/>
|
12
|
+
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
13
|
+
<%== code_display(entry, 'preferred_code_sets' => ['SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM', 'CPT', 'HCPCS', 'CDT'], 'value_set_map' => filtered_vs_map, 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
14
|
+
<text><%= entry.description %></text>
|
15
|
+
<statusCode code="active"/>
|
16
|
+
|
17
|
+
<!-- Attribute: datetime -->
|
18
|
+
<author>
|
19
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
|
20
|
+
<time <%= value_or_null_flavor(entry.start_time) %>/>
|
21
|
+
<assignedAuthor>
|
22
|
+
<id root="<%= UUID.generate %>"/>
|
23
|
+
</assignedAuthor>
|
24
|
+
</author>
|
25
|
+
|
26
|
+
</encounter>
|
27
|
+
</entryRelationship>
|
28
|
+
<%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"], :r2_compatibility => r2_compatibility}) %>
|
29
|
+
</act>
|
30
|
+
</entry>
|
@@ -0,0 +1,116 @@
|
|
1
|
+
<entry>
|
2
|
+
<act classCode="ACT" moodCode="EVN" <%== negation_indicator(entry) %>>
|
3
|
+
<!--Encounter performed Act -->
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.133"/>
|
5
|
+
<id root="<%= UUID.generate %>" />
|
6
|
+
<code code="ENC" codeSystem="2.16.840.1.113883.5.6" displayName="Encounter" codeSystemName="ActClass"/>
|
7
|
+
<entryRelationship typeCode="SUBJ">
|
8
|
+
<encounter classCode="ENC" moodCode="EVN">
|
9
|
+
<!-- Encounter activities template -->
|
10
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.49" extension="2015-08-01"/>
|
11
|
+
<!-- Encounter performed template -->
|
12
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.23" extension="2016-02-01"/>
|
13
|
+
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
14
|
+
<%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['*'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
15
|
+
<text><%= entry.description %></text>
|
16
|
+
<statusCode code="completed"/>
|
17
|
+
<effectiveTime>
|
18
|
+
<!-- We try to look for the admit/discharge times on the encounter if they are
|
19
|
+
there. If not, we fall back to the typical start/end date. -->
|
20
|
+
<low <%= value_or_null_flavor(entry.admit_time || entry.start_time) %>/>
|
21
|
+
<high <%= value_or_null_flavor(entry.discharge_time || entry.end_time) %>/>
|
22
|
+
</effectiveTime>
|
23
|
+
<% if entry.discharge_disposition.present?
|
24
|
+
vset = oid_for_code(entry.discharge_disposition,field_oids["DISCHARGE_STATUS"], entry.record["bundle_id"])
|
25
|
+
if vset %>
|
26
|
+
<sdtc:dischargeDispositionCode code="<%= entry.discharge_disposition['code'] %>"
|
27
|
+
codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.discharge_disposition['codeSystem'] || entry.discharge_disposition['code_system']) %>" sdtc:valueSet="<%= vset %>"/>
|
28
|
+
<% end %>
|
29
|
+
<% end -%>
|
30
|
+
|
31
|
+
<% if entry.respond_to?(:facility) && entry.facility.present? -%>
|
32
|
+
<participant typeCode="LOC">
|
33
|
+
<!-- Facility Location template -->
|
34
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.100"/>
|
35
|
+
<time>
|
36
|
+
<!-- Attribute: facility location arrival datetime -->
|
37
|
+
<low <%= value_or_null_flavor(entry.facility.start_time) %>/>
|
38
|
+
<!-- Attribute: facility location departure datetime -->
|
39
|
+
<high <%= value_or_null_flavor(entry.facility.end_time) %>/>
|
40
|
+
</time>
|
41
|
+
<participantRole classCode="SDLOC">
|
42
|
+
<% if entry.facility.code.present? -%>
|
43
|
+
<% vset = oid_for_code(entry.facility.code,field_oids["FACILITY_LOCATION"],entry.record["bundle_id"]) %>
|
44
|
+
<% if vset %>
|
45
|
+
<code code="<%= entry.facility.code['code'] %>"
|
46
|
+
codeSystem="<%= HealthDataStandards::Util::CodeSystemHelper.oid_for_code_system(entry.facility.code['codeSystem'] || entry.facility.code['code_system']) %>" sdtc:valueSet="<%= vset %>"/>
|
47
|
+
<% else %>
|
48
|
+
<code nullFlavor="UNK"/>
|
49
|
+
<% end %>
|
50
|
+
<% else -%>
|
51
|
+
<code nullFlavor="UNK"/>
|
52
|
+
<% end -%>
|
53
|
+
<% if entry.facility.addresses.present? -%>
|
54
|
+
<addr>
|
55
|
+
<streetAddressLine><%= entry.facility.addresses.first.street %></streetAddressLine>
|
56
|
+
<city><%= entry.facility.addresses.first.city %></city>
|
57
|
+
<state><%= entry.facility.addresses.first.state %></state>
|
58
|
+
<postalCode><%= entry.facility.addresses.first.zip %></postalCode>
|
59
|
+
<country><%= entry.facility.addresses.first.country %></country>
|
60
|
+
</addr>
|
61
|
+
<% end -%>
|
62
|
+
<telecom nullFlavor="UNK"/>
|
63
|
+
<playingEntity classCode="PLC">
|
64
|
+
<name><%= entry.facility.name %></name>
|
65
|
+
</playingEntity>
|
66
|
+
</participantRole>
|
67
|
+
</participant>
|
68
|
+
<% end -%>
|
69
|
+
<% if entry.reason.present? -%>
|
70
|
+
<%== render(:partial => 'reason', :locals => {:entry => entry,:reason_oids=>field_oids["REASON"]}) %>
|
71
|
+
<% end -%>
|
72
|
+
<% if entry.principalDiagnosis
|
73
|
+
value_set = oid_for_code(entry.principal_diagnosis.preferred_code, field_oids["PRINCIPAL_DIAGNOSIS"], entry.record["bundle_id"])
|
74
|
+
if value_set %>
|
75
|
+
<entryRelationship typeCode="REFR">
|
76
|
+
<observation classCode="OBS" moodCode="EVN">
|
77
|
+
<code code="8319008" codeSystem="2.16.840.1.113883.6.96" displayName="Principal Diagnosis" codeSystemName="SNOMED CT"/>
|
78
|
+
<%== code_display(entry.principal_diagnosis, 'tag_name' => 'value', 'preferred_code_sets' => ['SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM', 'CPT'], 'extra_content' => "xsi:type=\"CD\" sdtc:valueSet=\"#{value_set}\"") %>
|
79
|
+
</observation>
|
80
|
+
</entryRelationship>
|
81
|
+
<% end %>
|
82
|
+
<% end -%>
|
83
|
+
<% if entry.diagnosis
|
84
|
+
value_set = oid_for_code(entry.diagnosis.preferred_code, field_oids["DIAGNOSIS"], entry.record["bundle_id"])
|
85
|
+
if value_set %>
|
86
|
+
<entryRelationship typeCode="REFR">
|
87
|
+
<act classCode="ACT" moodCode="EVN">
|
88
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.80" extension="2015-08-01"/>
|
89
|
+
<code code="29308-4" codeSystem="2.16.840.1.113883.6.1" displayName="Diagnosis" codeSystemName="LOINC"/>
|
90
|
+
<entryRelationship typeCode="SUBJ">
|
91
|
+
<observation classCode="OBS" moodCode="EVN">
|
92
|
+
<!-- Problem observation template -->
|
93
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.4" extension="2015-08-01"/>
|
94
|
+
<id root="1.3.6.1.4.1.115" extension="<%= UUID.generate %>"/>
|
95
|
+
<code code="29308-4" codeSystem="2.16.840.1.113883.6.1">
|
96
|
+
<translation code="282291009" codeSystem="2.16.840.1.113883.6.96"/>
|
97
|
+
</code>
|
98
|
+
<statusCode code="completed"/>
|
99
|
+
<effectiveTime>
|
100
|
+
<!-- Attribute: admission datetime -->
|
101
|
+
<low <%= value_or_null_flavor(entry.start_time) %>/>
|
102
|
+
<!-- Attribute: discharge datetime -->
|
103
|
+
<high <%= value_or_null_flavor(entry.end_time) %>/>
|
104
|
+
</effectiveTime>
|
105
|
+
<%== code_display(entry.diagnosis, 'tag_name' => 'value', 'preferred_code_sets' => ['SNOMED-CT', 'ICD-9-CM', 'ICD-10-CM', 'CPT'], 'extra_content' => "xsi:type=\"CD\" sdtc:valueSet=\"#{value_set}\"") %>
|
106
|
+
</observation>
|
107
|
+
</entryRelationship>
|
108
|
+
</act>
|
109
|
+
</entryRelationship>
|
110
|
+
<% end %>
|
111
|
+
<% end -%>
|
112
|
+
</encounter>
|
113
|
+
</entryRelationship>
|
114
|
+
<%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"], :r2_compatibility => r2_compatibility}) %>
|
115
|
+
</act>
|
116
|
+
</entry>
|
@@ -1,9 +1,11 @@
|
|
1
1
|
<entry>
|
2
2
|
<observation classCode="OBS" moodCode="EVN">
|
3
|
+
<!-- Conforms to C-CDA R2 Procedure Activity Observation (V2) -->
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.13" extension="2014-06-09"/>
|
3
5
|
<!-- Functional Status, Performed template -->
|
4
|
-
<templateId root="2.16.840.1.113883.10.20.24.3.26"/>
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.26" extension="2016-02-01"/>
|
5
7
|
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
6
|
-
<%== code_display(entry, 'value_set_map' =>
|
8
|
+
<%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['*'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
7
9
|
<text><%= entry.description %></text>
|
8
10
|
<statusCode code="completed"/>
|
9
11
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<entry>
|
2
2
|
<act classCode="ACT" moodCode="EVN" <%== negation_indicator(entry) %>>
|
3
|
-
<templateId root="2.16.840.1.113883.10.20.24.3.3"/>
|
3
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.3" extension="2016-02-01"/>
|
4
4
|
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
5
|
-
<%== code_display(entry, 'value_set_map' =>
|
5
|
+
<%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['SNOMED-CT', 'LOINC'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
6
6
|
<text><%= entry.description %></text>
|
7
7
|
<statusCode code="completed"/>
|
8
8
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<entry>
|
2
|
+
<act classCode="ACT" moodCode="RQO" <%== negation_indicator(entry) %>>
|
3
|
+
<!-- Plan of Care Activity Act template -->
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.39" extension="2014-06-09"/>
|
5
|
+
<!-- Intervention Order template -->
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.31" extension="2016-02-01"/>
|
7
|
+
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
8
|
+
<%== code_display(entry,'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['*'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
9
|
+
<text><%= entry.description %></text>
|
10
|
+
<statusCode code="active"/>
|
11
|
+
<effectiveTime>
|
12
|
+
<low <%= value_or_null_flavor(entry.start_time) %>/>
|
13
|
+
<high <%= value_or_null_flavor(entry.end_time) %>/>
|
14
|
+
</effectiveTime>
|
15
|
+
<author>
|
16
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
|
17
|
+
<time <%= value_or_null_flavor(entry.as_point_in_time) %>/>
|
18
|
+
<assignedAuthor>
|
19
|
+
<id root="<%= UUID.generate %>"/>
|
20
|
+
</assignedAuthor>
|
21
|
+
</author>
|
22
|
+
<%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"]}) %>
|
23
|
+
</act>
|
24
|
+
</entry>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<entry>
|
2
|
+
<act classCode="ACT" moodCode="EVN" <%== negation_indicator(entry) %>>
|
3
|
+
<!-- Consolidation CDA: Procedure Activity Act template -->
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.12" extension="2014-06-09"/>
|
5
|
+
<!-- Intervention Performed Template -->
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.32" extension="2016-02-01"/>
|
7
|
+
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
8
|
+
<%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['*'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
9
|
+
<text><%= entry.description %></text>
|
10
|
+
<statusCode code="completed"/>
|
11
|
+
<effectiveTime>
|
12
|
+
<low <%= value_or_null_flavor(entry.start_time) %>/>
|
13
|
+
<high <%= value_or_null_flavor(entry.end_time) %>/>
|
14
|
+
</effectiveTime>
|
15
|
+
<%== render(:partial => 'reason', :locals => {:entry => entry ,:reason_oids=>field_oids["REASON"]}) %>
|
16
|
+
<%if !entry.values.empty? %>
|
17
|
+
<%== render(:partial=> 'result_value', :locals => {:values => entry.values}) %>
|
18
|
+
<% end %>
|
19
|
+
|
20
|
+
</act>
|
21
|
+
</entry>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<entry>
|
2
|
+
<observation classCode="OBS" moodCode="RQO" <%== negation_indicator(entry) %>>
|
3
|
+
<!-- Consolidation Plan of Care Activity Observation -->
|
4
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.44" extension="2014-06-09"/>
|
5
|
+
<!-- Lab Test Order -->
|
6
|
+
<templateId root="2.16.840.1.113883.10.20.24.3.37" extension="2016-02-01"/>
|
7
|
+
<id root="1.3.6.1.4.1.115" extension="<%= entry.id %>"/>
|
8
|
+
<%== code_display(entry, 'value_set_map' => filtered_vs_map, 'preferred_code_sets' => ['*'], 'extra_content' => "sdtc:valueSet=\"#{value_set_oid}\"") %>
|
9
|
+
<text><%= entry.description %></text>
|
10
|
+
<statusCode code="active"/>
|
11
|
+
|
12
|
+
<!-- Attribute: datetime -->
|
13
|
+
<author>
|
14
|
+
<templateId root="2.16.840.1.113883.10.20.22.4.119"/>
|
15
|
+
<time <%= value_or_null_flavor(entry.as_point_in_time) %>/>
|
16
|
+
<assignedAuthor>
|
17
|
+
<id nullFlavor="NA" root="<%= UUID.generate %>"/>
|
18
|
+
</assignedAuthor>
|
19
|
+
</author>
|
20
|
+
<%== render(:partial => 'reason', :locals => {:entry => entry, :reason_oids=>field_oids["REASON"]}) %>
|
21
|
+
</observation>
|
22
|
+
</entry>
|