Module: ThinkFeelDoEngine::PhqAssessmentHelper
- Defined in:
- app/helpers/think_feel_do_engine/phq_assessment_helper.rb
Overview
Used to display a warning message to clinicians if a user scores a 3 on a the PHQ-9
Instance Method Summary collapse
Instance Method Details
#phq_warning(score) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/helpers/think_feel_do_engine/phq_assessment_helper.rb', line 6 def phq_warning(score) if score == 3 "<div class='label label-danger'>PHQ-9 WARNING: #{score}</div>" .html_safe else score end end |