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

Clinic Creation #6

Open
1 task
AEst2002 opened this issue Oct 10, 2023 · 0 comments
Open
1 task

Clinic Creation #6

AEst2002 opened this issue Oct 10, 2023 · 0 comments
Assignees

Comments

@AEst2002
Copy link
Collaborator

AEst2002 commented Oct 10, 2023

Resources

Description
The purpose of Therable is to connect clinicians with patients via their clinics. To do that, we'll need to ensure clinicians can actually set up their clinics! For this deliverable, focus on functionality and don't worry about styling.

Users that are signed in as clinicians and do not own a clinic should be prompted to create one, without access to the rest of the app until they do so.

  • Create the clinic creation form.
    • Create a folder app/create-clinic that presents clinicians with a simple form asking them for their clinic's name. Names should only contain alphabetic characters, though duplicate names are OK.
    • Generate a unique clinic code upon submission of the clinic's name. You can do this via postgres (see https://stackoverflow.com/questions/41970461/how-to-generate-a-random-unique-alphanumeric-id-of-length-n-in-postgres-9-6) or in the component itself. Either way, this code should be displayed to the user after submission. It's important that you ensure the code you generate isn't already assigned to another clinic, as this is what patients will use to register for clinics!
    • Codes should be 16 characters, case sensitive, and allowing for letters, numbers, and special characters (!@#$%^&*()).
    • Returning to the form should display the clinic code, and allow for editing of the clinic's name (doing so should not regenerate the code).
  • Only users logged in as clinicians should be able to access this form. Patients or users who are not logged in should be redirected to the dashboard or login page, respectively.
# 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

2 participants