Yes, you need to encrypt all the data (name, email address, phone number, address) associated with the patient and doctors if you want your Rails application to comply with HIPAA requirements.
Here below 2 Ruby gems are very useful for you.
attr_encrypted: https://github.com/shuber/attr_encrypted
paper_trail: https://github.com/airblade/paper_trail
HIPAA is an unusual law in which it contains many recommendations (address elements) and several statements (required elements), but in the end, each organization must determine what they need to do in order to be. This creates more flexibility, as well as great uncertainty. In general, in order to be compatible with HIPAA, a website should at a minimum ensure that all protected health information (ePHI) is lower:
Transport Encryption: Always encrypted as it is transmitted over the Internet
Backup: Never lost, i.e. must be copied and can be restored
Authorization: Available only to authorized personnel using unique, trusted access controls
Integrity: Not Forged or Not Modified
Storage Encryption: Must be encrypted when it is stored or archived
Disposal: Can be permanently removed when no longer required
Omnibus / HITECH: Hosted on the web servers of the company with which you have a HIPAA Associated Business Agreement (or it is hosted in the home and these servers are properly protected in accordance with the HIPAA security rule requirements).
source share