hiyaryan / the-cdj

The Cognitive Distortion Journal (CDJ) is a smart journaling tool that helps remedy distorted thinking. It can feel impossible to follow the CBT technique of labeling distorted thinking and finding alternative modes of thought (i.e. reframing) while cognitive distortions are occurring. The CDJ does that work for you. -- The CDJ is in beta testing!!
https://thecdj.app
3 stars 0 forks source link

Implement shared_with in privacy_settings. #100

Open hiyaryan opened 7 months ago

hiyaryan commented 7 months ago

shared_with, a field in the entries model, will allow individuals to share their entries with other people. This will allow patients to share their thoughts with their therapists. This could help the therapist get an idea of the types of thoughts a patient has been struggling with between sessions. It could help them identify treatments and ways to guide the conversation in session. This could allow sessions to become more personalized and effective.

shared_with will work by allowing the patient to share entries, they have chosen, with their therapist. Entries will have a toggle button or checkbox that the patient can select indicating the post may be shared with their therapist. A therapist may search for their patient, in the database by email, then request to be added to the patients shared_with recipients, or vice versa. If a patient adds a user to their shared_with it will be sending a request to the therapist that the patient would like to add the therapist to their shared_with. Anyone added to someone's shared_with may access the individuals entries, provided they are sharing any.

From the therapists view or anyone who is registered on someone's shared_with, they will have access to the entire website plus an additional page maybe called Shared (provided they have someone). This Shared page will list all of the people who have shared their journal with the therapist (or any user). The therapist may then view the patients journal and only see the entries shared to them. They may also choose to generate reports on their patients week or over some duration to retrieve notes on topics to cover during their coming session.