module HasHealthAnswers
Public Instance Methods
Source
# File app/models/concerns/has_health_answers.rb, line 12 def health_answers_require_triage? health_answers.any? do it.response_yes? && it.would_require_triage?(team_id:) end end
Source
# File app/models/concerns/has_health_answers.rb, line 18 def who_responded if via_self_consent? "Child (Gillick competent)" elsif parent_relationship_type == "other" && parent_relationship_other_name.present? "Other – #{parent_relationship_other_name}" elsif parent_relationship_type.present? ParentRelationship.human_enum_name( :type, parent_relationship_type ).capitalize else (parent_relationship || parent).label end end