def update
authorize @vaccination_record,
@vaccination_record.new_record? ? :create? : :update?
@draft_vaccination_record.assign_attributes(update_params)
case current_step
when :date_and_time
handle_date_and_time
when :outcome
handle_outcome
when :location
handle_location
when :batch
handle_batch
when :dose_sequence
handle_dose_sequence
when :mmr_or_mmrv
handle_mmr_or_mmrv
when :confirm
handle_confirm
end
if @draft_vaccination_record.editing? && current_step != :confirm
jump_to("confirm")
end
reload_steps
render_wizard @draft_vaccination_record
end