I hope everyone's doing great!
I was dabbling with BuddyPress xProfile and realized that the way it stores data will not be scalable for my project. Hence, I decided to look into CustomPress as an alternative.
I will have 2 different user types. Doctors and patients. Each patient (doctors too since they're patients as well) will have their own record. I don't think xProfile will be a good idea since there will be easily more than 20 types of custom fields needed. Also, capabilities are as follows:
Doctors - can VIEW + EDIT patient records
Patients - can VIEW only their OWN records, cannot EDIT
So, my idea is to use a Custom Post Type called records to store this information. However, my questions are below:
1. How do assign a single post (record) to a single patient in such where they will be able to view them and doctors will be able to edit them (they will of course have to search for the profile based on query of details such as full name or ID)? I was thinking maybe a page after activation which will take them through a custom post creation process? Or maybe an empty custom post automatically created upon signup which auto fills their name + ID into it?
2. How do I restrict an individual record access to ONE specific user and ALL doctors?
Thank you for your time, guys. The support on this forum is amazing :slight_smile: