From b0a119a3fda0998b07ebab28c0cf43fc68baf0f6 Mon Sep 17 00:00:00 2001 From: Alistair White-Horne Date: Tue, 4 Mar 2025 13:25:05 +0000 Subject: [PATCH] Change careplus_exporter.rb to redact patient address if patient is restricted. This now matches programme_vaccinations_exporter.rb --- app/lib/reports/careplus_exporter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/reports/careplus_exporter.rb b/app/lib/reports/careplus_exporter.rb index 49f71764a..864d5b302 100644 --- a/app/lib/reports/careplus_exporter.rb +++ b/app/lib/reports/careplus_exporter.rb @@ -138,7 +138,7 @@ def existing_row(patient:, patient_session:, vaccination_records:) patient.family_name, patient.given_name, patient.date_of_birth.strftime("%d/%m/%Y"), - patient.address_line_1, + patient.restricted? ? "" : patient.address_line_1, patient_session.latest_consents(programme:).first&.name || "", 99, # Ethnicity, 99 is "Not known" first_vaccination.performed_at.strftime("%d/%m/%Y"),