Skip to content

Latest commit

 

History

History
264 lines (191 loc) · 6.7 KB

File metadata and controls

264 lines (191 loc) · 6.7 KB

User Stories Documentation

Admin User Stories

Title: Log in

As an admin, I want to log into the portal using my username and password, so that I can manage the platform securely.

Acceptance Criteria:

  1. Admin can enter a valid username and password.
  2. Admin is authenticated and redirected to the admin dashboard.
  3. Invalid credentials display an appropriate error message.

Priority: High
Story Points: 3
Notes:

  • Passwords should be securely stored and validated.

Title: Log out

As an admin, I want to log out of the portal, so that system access is protected.

Acceptance Criteria:

  1. Admin can log out from any page.
  2. Session is terminated after logout.
  3. Admin is redirected to the login page.

Priority: Medium
Story Points: 2
Notes:

  • Ensure session tokens are invalidated.

Title: Add Doctors

As an admin, I want to add doctors to the portal, so that they can offer services to patients.

Acceptance Criteria:

  1. Admin can enter doctor details (name, specialization, contact).
  2. Doctor profile is saved successfully.
  3. Newly added doctor appears in the doctor list.

Priority: High
Story Points: 5
Notes:

  • Validate required fields before saving.

Title: Delete Doctors

As an admin, I want to delete a doctor’s profile, so that outdated or inactive accounts are removed.

Acceptance Criteria:

  1. Admin can select a doctor profile.
  2. Admin can confirm deletion.
  3. Doctor profile is permanently removed from the system.

Priority: Medium
Story Points: 3
Notes:

  • Check for existing appointments before deletion.

Title: Run Stored Procedure

As an admin, I want to run a stored procedure in MySQL CLI to view the number of appointments per month, so that I can track usage statistics.

Acceptance Criteria:

  1. Stored procedure executes successfully.
  2. Monthly appointment count is returned accurately.
  3. Results can be used for reporting purposes.

Priority: Low
Story Points: 5
Notes:

  • Requires database access permissions.

Patient User Stories

Title: View List of Doctors as a Patient

As a patient, I want to view a list of doctors without logging in, so that I can explore options before registering.

Acceptance Criteria:

  1. Doctor list is publicly accessible.
  2. Doctor names and specializations are visible.
  3. No login is required to view the list.

Priority: Medium
Story Points: 3
Notes:

  • Limit visible information to non-sensitive data.

Title: Wants to Sign Up

As a patient, I want to sign up using my email and password, so that I can book appointments.

Acceptance Criteria:

  1. Patient can register with a valid email and password.
  2. Account is created successfully.
  3. Patient can log in after registration.

Priority: High
Story Points: 5
Notes:

  • Email should be unique.

Title: Log into the Portal

As a patient, I want to log into the portal, so that I can manage my bookings.

Acceptance Criteria:

  1. Patient can enter valid credentials.
  2. Login redirects to patient dashboard.
  3. Invalid credentials show an error message.

Priority: High
Story Points: 3
Notes:

  • Support password reset.

Title: Log Out

As a patient, I want to log out of the portal, so that my account remains secure.

Acceptance Criteria:

  1. Patient can log out successfully.
  2. Session is ended.
  3. Patient is redirected to the home page.

Priority: Medium
Story Points: 2
Notes:

  • Auto logout after inactivity is recommended.

Title: Book an Hour Long Appointment with the Doctor

As a patient, I want to log in and book an hour-long appointment, so that I can consult with a doctor.

Acceptance Criteria:

  1. Patient can select a doctor.
  2. Available one-hour time slots are displayed.
  3. Appointment is confirmed and saved.

Priority: High
Story Points: 8
Notes:

  • Prevent double booking.

Title: View Upcoming Appointments

As a patient, I want to view my upcoming appointments, so that I can prepare accordingly.

Acceptance Criteria:

  1. Patient can view a list of upcoming appointments.
  2. Appointment details include date, time, and doctor.
  3. Appointments are sorted chronologically.

Priority: Medium
Story Points: 3
Notes:

  • Past appointments should be archived separately.

Doctor User Stories

Title: Doctor Log in

As a doctor, I want to log into the portal, so that I can manage my appointments.

Acceptance Criteria:

  1. Doctor can log in with valid credentials.
  2. Doctor dashboard is displayed upon login.
  3. Invalid login attempts show an error.

Priority: High
Story Points: 3
Notes:

  • Two-factor authentication is optional.

Title: Doctor Log out

As a doctor, I want to log out of the portal, so that my data is protected.

Acceptance Criteria:

  1. Doctor can log out from the system.
  2. Session is terminated.
  3. Doctor is redirected to the login page.

Priority: Medium
Story Points: 2
Notes:

  • Clear cached session data.

Title: View Appointments Placed by Patients

As a doctor, I want to view my appointment calendar, so that I stay organized.

Acceptance Criteria:

  1. Calendar displays all upcoming appointments.
  2. Appointments show patient name and time.
  3. Calendar updates in real time.

Priority: High
Story Points: 5
Notes:

  • Support daily and weekly views.

Title: Indicate Unavailability.

As a doctor, I want to mark my unavailability, so that patients only see available slots.

Acceptance Criteria:

  1. Doctor can select unavailable dates or times.
  2. Unavailable slots are hidden from patients.
  3. Changes are saved immediately.

Priority: High
Story Points: 5
Notes:

  • Allow recurring unavailability.

Title: Update Profile

As a doctor, I want to update my profile with specialization and contact information, so that patients have up-to-date information.

Acceptance Criteria:

  1. Doctor can edit profile details.
  2. Updated information is saved successfully.
  3. Patients can view the updated profile.

Priority: Medium
Story Points: 3
Notes:

  • Validate contact information format.

Title: View Patient Details for Upcoming Appointments

As a doctor, I want to view patient details for upcoming appointments, so that I can be prepared.

Acceptance Criteria: Doctor to View Patient's name and Appoinment Reason

  1. Doctor can view patient name and appointment reason.
  2. Details are accessible only for scheduled appointments.
  3. Data is displayed securely.

Priority: High
Story Points: 5
Notes:

  • Follow data privacy and access control rules.