Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Patients: Journaling #27

Open
3 tasks
AEst2002 opened this issue Nov 28, 2023 · 0 comments
Open
3 tasks

Patients: Journaling #27

AEst2002 opened this issue Nov 28, 2023 · 0 comments
Assignees

Comments

@AEst2002
Copy link
Collaborator

AEst2002 commented Nov 28, 2023

MERGED WITH DASHBOARD SCREENS DELIVERABLE

Resources
Figma
Supabase (Credentials pinned in Slack)

Description
Implement patient journaling, including the addition of a database table to store journal entries, and corresponding frontend funcitonality.

  • Create a database table journals to store patients' journal entries. Don't worry about RLS for now.
    • Table name: journals
    • Columns:
      • id - uuid (non-nullable, autogenerated)
      • patient_id - user_id (non-nullable, foreign key to patients table)
      • clinic_id - clinic_id (non-nullable, foreign key to clinics table)
      • body_parts - text (array)
      • description - text (non-nullable)
      • media - text (this will be a link or may otherwise change later)
      • timestamp - TIMESTAMPTZ (non-nullable, autogenerated)
  • Implement the 'Today's Logs' component as seen on Figma
    • The "Add affected body part" button should bring up a modal input for users to input a body part and how it feels
    • Don't worry about Todos or other elements of the dashboard.
  • Allow users to view their journal history
    • This can be left minimally styled for now, but you should present the affected body parts (if any) and date of the journal entry in the list view.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants