I can't seem to come up with a way to get this data model structure working:
Two types of users: patient and practice (at the moment they are defined as groups under Security in CMS)
Patient has one practice (has_one), practice has many patients(has_many?)
Patient has four fields: gender, program, progress, data
Practice needs to be able to access its patients and edit their data
How can I link a practice dataobject to a member in the practice security group
and link a patient dataobject to a member in the patients security group?
At the moment I edited sapphire/security/Member.php to add in extra fields for the patient, but thats not a good way at all, and it won't work when I try and implement the practice type of member!!
Hope thats easy enough to understand!
Thanks in advance~