---
# System prepended metadata

title: Enrollment feature - last touches

---

# Enrollment feature - last touches

## TODO 

### Today

1. Migration: for any patients NOT having a user, copy `phone_number` to `phone_number_old`

2. On Booking details view,  in a list patient partial, if patient does not have `phone_number`, display `phone_number_old` with a tag `UNVERIFIED`


### Tomorrow

~~3. user.rb -> find_or_create instead of create a new record. If existing~~

4. OTP_sessions_controller -> get rid of Merger service call

5. Instead of creating patient after_save new user, create_or_tie exting patient on user being verified (1st log in)

verification is indicated by `users.last_sign_in_at` not being NULL