def call
govuk_summary_list do |summary_list|
summary_list.with_row do |row|
row.with_key { "Full name" }
row.with_value { consent_form_or_patient.full_name }
end
summary_list.with_row do |row|
row.with_key { "Date of birth" }
row.with_value { consent_form_or_patient.date_of_birth.to_fs(:long) }
end
if consent_form_or_patient.ethnic_group.present?
summary_list.with_row do |row|
row.with_key { "Ethnicity" }
row.with_value do
format_ethnic_group_and_background(consent_form_or_patient)
end
end
end
unless restricted?
summary_list.with_row do |row|
row.with_key { "Home address" }
row.with_value { format_address_multi_line(consent_form_or_patient) }
end
end
summary_list.with_row do |row|
row.with_key { "School" }
row.with_value { patient_school(consent_form_or_patient) }
end
end
end