@@ -234,17 +234,15 @@ def call
234234 end
235235 end
236236
237- if @vaccination_record . performed_by . present?
238- summary_list . with_row do |row |
239- row . with_key { "Vaccinator" }
240- row . with_value { vaccinator_value }
241- if ( href = @change_links [ :vaccinator ] )
242- row . with_action (
243- text : "Change" ,
244- visually_hidden_text : "vaccinator" ,
245- href :
246- )
247- end
237+ summary_list . with_row do |row |
238+ row . with_key { "Vaccinator" }
239+ row . with_value { vaccinator_value }
240+ if ( href = @change_links [ :vaccinator ] )
241+ row . with_action (
242+ text : "Change" ,
243+ visually_hidden_text : "vaccinator" ,
244+ href :
245+ )
248246 end
249247 end
250248
@@ -293,6 +291,20 @@ def call
293291 end
294292 end
295293
294+ if @vaccination_record . reported_by . present?
295+ summary_list . with_row do |row |
296+ row . with_key { "Reported by" }
297+ row . with_value { @vaccination_record . reported_by &.full_name }
298+ end
299+ end
300+
301+ if @vaccination_record . reported_at . present?
302+ summary_list . with_row do |row |
303+ row . with_key { "Reported on" }
304+ row . with_value { @vaccination_record . reported_at . to_fs ( :long ) }
305+ end
306+ end
307+
296308 correct_feature_flags_enabled =
297309 Programme . all . any? { Flipper . enabled? ( :imms_api_sync_job , it ) } &&
298310 Flipper . enabled? ( :imms_api_integration )
@@ -327,10 +339,13 @@ def source_value
327339 end
328340
329341 def outcome_value
330- highlight_if (
331- VaccinationRecord . human_enum_name ( :outcome , @vaccination_record . outcome ) ,
332- @vaccination_record . outcome_changed?
333- )
342+ outcome = VaccinationRecord . human_enum_name ( :outcome , @vaccination_record . outcome )
343+
344+ if @vaccination_record . already_had? && @vaccination_record . reported_as_already_vaccinated?
345+ outcome = VaccinationRecord . human_enum_name ( :outcome , "administered" )
346+ end
347+
348+ highlight_if ( outcome , @vaccination_record . outcome_changed? )
334349 end
335350
336351 def programme_value
@@ -418,8 +433,10 @@ def vaccinator_value
418433 value =
419434 if @vaccination_record . performed_by == @current_user
420435 "You (#{ @current_user . full_name } )"
421- else
436+ elsif @vaccination_record . performed_by
422437 @vaccination_record . performed_by &.full_name
438+ else
439+ "Unknown"
423440 end
424441
425442 highlight_if (
0 commit comments