class AppPatientSessionTriageComponent
Public Class Methods
Source
# File app/components/app_patient_session_triage_component.rb, line 4 def initialize( patient:, session:, programme:, current_user:, triage_form: nil ) @patient = patient @session = session @programme = programme @current_user = current_user @triage_form = triage_form || default_triage_form @parents = patient.parents @patient_locations = patient.patient_locations.includes( location: [ :location_programme_year_groups, { team_locations: { sessions: :session_programme_year_groups } } ] ) end
Public Instance Methods
Source
# File app/components/app_patient_session_triage_component.rb, line 26 def render? consent_status_generator.status == :given || triage_status_generator.status != :not_required end