def initialize(
patient:,
session:,
programmes: [],
return_to: nil,
show_notes: false,
show_patient_specific_direction_status: false,
show_programme_status: false,
show_registration_status: false,
show_vaccine_type: false,
heading_level: 4
)
@patient = patient
@session = session
@programmes =
if programmes.present?
session.programmes_for(patient:).select { it.in?(programmes) }
else
session.programmes_for(patient:)
end
@return_to = return_to
@show_notes = show_notes
@show_patient_specific_direction_status =
show_patient_specific_direction_status
@show_programme_status = show_programme_status
@show_registration_status = show_registration_status
@show_vaccine_type = show_vaccine_type
@heading_level = heading_level
end