How to archive patient data record?

How to archive patient data record?

Hello,

I have created a medical database that handles patients.
Every patient has a ID created like balasankar Unique ID example.

I would like to create a button that would close the patient records, removing him from the "Patient View",
and archive his data on a "Archive View".
But if the patient comes back I would like the ability to reactivate him back to the "Patient View".

Thank you.