Skip to content

Commit 23fa37c

Browse files
committed
Don't set location when recording already had
When marking a patient as having already had the vaccine, we shouldn't be setting the location of the vaccination to the location of the session as it's unlikely that the vaccination took place in that session.
1 parent bc8a814 commit 23fa37c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/controllers/patient_sessions/programmes_controller.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ def record_already_vaccinated
2020
draft_vaccination_record.reset!
2121
draft_vaccination_record.update!(
2222
first_active_wizard_step: :confirm,
23-
location: @session.location,
24-
location_name: @session.clinic? ? "Unknown" : nil,
23+
location: nil,
24+
location_name: "Unknown",
2525
outcome: :already_had,
2626
patient: @patient,
2727
performed_at: Time.current,

0 commit comments

Comments
 (0)