Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

User will be redirected appropriately from QR code URL #117

Open
francisli opened this issue Sep 18, 2024 · 0 comments · May be fixed by #129
Open

User will be redirected appropriately from QR code URL #117

francisli opened this issue Sep 18, 2024 · 0 comments · May be fixed by #129
Assignees

Comments

@francisli
Copy link
Contributor

The URLs currently generated into QR code are of the form:

[Base URL]/patients/[UUID of Patient]

On our dev environment, that will be something like:

https://dev.sflifeline.app/patients/9218c081-79f4-4649-b7b1-848ab23f14ea

When visiting this URL:

  1. If a user is not logged in, redirect to login for authentication (which will redirect back after successful auth)
  2. If a patient record exists, display the record- all user types, Admin/Staff/Volunteer/First Responder can view a Record
  3. If a patient record does NOT exist, and the user is an Admin/Staff/Volunteer, then redirect to the creation/editing interface (currently /admin/patients/register/[UUID])
  4. If a patient record does NOT exist, and the user is a First Responder, then show an appropriate message.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants