module HealthDataStandards::Export::Helper::HTMLViewHelper
Public Instance Methods
decode_hqmf_description(description, oid)
click to toggle source
# File lib/health-data-standards/export/helper/html_view_helper.rb, line 27 def decode_hqmf_description(description, oid) if oid definition = HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid) definition ||= HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid, 'r2') definition_text = definition['definition'] status_text = definition['status'] unless status.blank? "#{definition_text.titleize}, #{status_text.titleize}".to_sym else "#{definition_text.titleize}".to_sym end else description end end
decode_hqmf_section(section, oid)
click to toggle source
# File lib/health-data-standards/export/helper/html_view_helper.rb, line 7 def decode_hqmf_section(section, oid) if oid definition = HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid) definition ||= HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid, 'r2') definition['definition'].pluralize.to_sym else section end end
decode_hqmf_status(status, oid)
click to toggle source
# File lib/health-data-standards/export/helper/html_view_helper.rb, line 17 def decode_hqmf_status(status, oid) if oid definition = HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid) definition ||= HealthDataStandards::Util::HQMFTemplateHelper.definition_for_template_id(oid, 'r2') definition['status'] else status end end