Module: HealthDataStandards::Export::Helper::HTMLViewHelper
- Includes:
- ScoopedViewHelper
- Defined in:
- lib/health-data-standards/export/helper/html_view_helper.rb
Constant Summary
Constants included from ScoopedViewHelper
Instance Method Summary collapse
- #decode_hqmf_description(description, oid) ⇒ Object
- #decode_hqmf_section(section, oid) ⇒ Object
- #decode_hqmf_status(status, oid) ⇒ Object
Methods included from ScoopedViewHelper
#entries_for_data_criteria, #entry_matches_criteria, #handle_clinical_trial_participant, #handle_patient_expired, #handle_payer_information, #unique_data_criteria, #value_set_map
Instance Method Details
#decode_hqmf_description(description, oid) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/health-data-standards/export/helper/html_view_helper.rb', line 23 def decode_hqmf_description(description, oid) if oid definition = HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid)['definition'] status = HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid)['status'] unless status.blank? "#{definition.titleize}, #{status.titleize}".to_sym else "#{definition.titleize}".to_sym end else description end end |
#decode_hqmf_section(section, oid) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/health-data-standards/export/helper/html_view_helper.rb', line 7 def decode_hqmf_section(section, oid) if oid HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid)['definition'].pluralize.to_sym else section end end |
#decode_hqmf_status(status, oid) ⇒ Object
15 16 17 18 19 20 21 |
# File 'lib/health-data-standards/export/helper/html_view_helper.rb', line 15 def decode_hqmf_status(status, oid) if oid HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid)['status'] else status end end |