Project

General

Profile

Actions

Task #31

open

Hospital Registration ,login, email

Added by Varsha N about 2 months ago. Updated about 2 months ago.

Status:
Resolved
Priority:
High
Assignee:
Start date:
01/12/2026
Due date:
01/13/2026 (51 days late)
% Done:

0%

Estimated time:

Description

Description

Description:
Develop the Hospital Registration feature as the first entry point of the application. This allows a hospital to register using basic details. On successful registration, the system must automatically create default users (Reception, Doctor, Admin), generate random passwords, and send login credentials to the hospital email.

Layout:
Center-- Hospital Registration Form
Top-right-- Login button

Hospital Registration Form Fields:
Hospital Name
Email
Mobile Number
Register Here button

When “Register Here” is clicked:
Validate hospital details
Create hospital record
Auto-generate 3 system users
Generate random passwords(Randomly between range: 1000 – 10000)(Temporary)
Send credentials to hospital email

Eg mail:
"""
Welcome to DocDesk

Hospital Name: City Care Hospital

Login Credentials:

Reception Login
Username:
Password: 4821

Doctor Login
Username:
Password: 7394

Admin Login
Username:
Password: 1650

Login URL: https://yourdomain.com/login
""""

Hospital Registration Table:
id (PK)
hospital_name
email
mobile
created_at

Users Table:
id (PK)
username
password
hospital_id(FK)
role
created_at


Files

Actions #1

Updated by Varsha N about 2 months ago · Edited

Basic Validations – Hospital Registration
Required Fields:
Hospital Name is required
Email is required
Mobile number is required

Email Validation:
Must be a valid email format
Email must be unique (no duplicate hospital registrations)
❌ “Email already registered”

Mobile Number Validation:
Must contain numbers only
Must be 10 digits
Must be unique
❌ “Enter a valid 10-digit mobile number”

Duplicate Hospital Check:
Same email or mobile cannot register twice
❌ “Hospital already registered”

Auto User Creation Validation:
Reception, Doctor, and Admin users must be created successfully
Random passwords must be generated (1000–10000)
❌ “Failed to create default users”

Email Delivery Validation:
Login credentials email must be sent successfully
Log error if email sending fails
❌ “Registration successful, but email delivery failed”

Actions #2

Updated by Jisen Jaimon about 2 months ago

  • Status changed from New to In Progress
Actions #3

Updated by Varsha N about 2 months ago · Edited

Role-Based Dashboards
Reception Dashboard:
Hospital name

Options:
Registration, Revisit, Today Tokens, Pre-consultation

Doctor Dashboard:
Hospital name

Options:
Today Queue, Consultation, Print

Admin Dashboard:
Hospital name

Options:
Users
Masters
Reports
Settings

Actions #4

Updated by Jisen Jaimon about 2 months ago

  • Status changed from In Progress to Resolved
Actions

Also available in: Atom PDF