Module: AUPSTestKit::SectionNamesMapping
- Included in:
- BasicTest
- Defined in:
- lib/au_ps_inferno/utils/section_names_mapping.rb
Overview
A module to map section codes to names
Instance Method Summary collapse
- #get_section_name(code) ⇒ Object
-
#section_names_mapping ⇒ Object
rubocop:disable Metrics/MethodLength.
Instance Method Details
#get_section_name(code) ⇒ Object
6 7 8 |
# File 'lib/au_ps_inferno/utils/section_names_mapping.rb', line 6 def get_section_name(code) section_names_mapping.key?(code) ? "#{section_names_mapping[code]} (#{code})" : code end |
#section_names_mapping ⇒ Object
rubocop:disable Metrics/MethodLength
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/au_ps_inferno/utils/section_names_mapping.rb', line 10 def section_names_mapping # rubocop:disable Metrics/MethodLength { '11450-4' => 'Patient Summary Problems Section', '48765-2' => 'Patient Summary Allergies and Intolerances Section', '10160-0' => 'Patient Summary Medication Summary Section', '11369-6' => 'Patient Summary Immunizations Section', '30954-2' => 'Patient Summary Results Section', '47519-4' => 'Patient Summary History of Procedures Section', '46264-8' => 'Patient Summary Medical Devices Section', '42348-3' => 'Patient Summary Advance Directives Section', '104605-1' => 'Patient Summary Alerts Section', '47420-5' => 'Patient Summary Functional Status Section', '11348-0' => 'Patient Summary History of Past Illness Section', '10162-6' => 'Patient Summary History of Pregnancy Section', '81338-6' => 'Patient Summary Patient Story Section', '18776-5' => 'Patient Summary Plan of Care Section', '29762-2' => 'Patient Summary Social History Section', '8716-3' => 'Patient Summary Vital Signs Section' } end |