Changes between Initial Version and Version 1 of UseCase01


Ignore:
Timestamp:
06/12/26 16:19:48 (8 days ago)
Author:
236021
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase01

    v1 v1  
     1= UseCase01 - Patient LoginAuthentication =
     2
     3== Initiating Actor - `Patient` ==
     4
     5
     6== Description ==
     7A patient logs into the Medora healthcare system using their username and password. The system verifies the credentials and then it checks if the account is active, and grants access to the patient portal.
     8
     9== Scenario ==
     10
     111. Patient navigates to the Medora login page.
     12
     132. Patient enters their username and password and submits the login form.
     14
     15{{{
     16#!sql
     17SELECT
     18  u.user_id,
     19  u.username,
     20  u.password,
     21  u.role,
     22  u.first_name,
     23  u.last_name,
     24  u.is_active
     25FROM users u
     26WHERE u.username = 'maja.veljanova';
     27}}}
     28
     293. System verifies if the account is active and the password matches.
     30
     31{{{
     32#!sql
     33SELECT u.user_id
     34FROM users u
     35WHERE u.username = 'maja.veljanova'
     36  AND u.is_active = TRUE;
     37}}}
     38
     394. System retrieves the linked patient profile.
     40
     41{{{
     42#!sql
     43SELECT
     44  p.patient_id,
     45  p.date_of_birth,
     46  p.gender,
     47  p.phone_number,
     48  p.embg
     49FROM patients p
     50WHERE p.user_id = (SELECT user_id FROM users WHERE username = 'maja.veljanova');
     51}}}
     52
     535. Patient is authenticated and then redirected to their profile dashboard.