Doctor hasMany Patient.
That's all no ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
It am working on an application with psychological tests (questionnaires ). I have roles of a doctor, patient and admin.
Patients should be able to answer the questionnaires online, but also on paper. So when the second is true (on paper), the doctor(its secretary) should be able to enter this information to the patient's profile.
How to do I make the connection of doctors and patients, (when they are both users), so that a doctor is able to fill in questionnaires for his patients?
When I associate a questionnaire with the user, then if a doctor would want to register this information it should instead login with the patient credentials (which wouldn't be very practical).
Any ideas of how can I achieve it?
Please or to participate in this conversation.