Skip to content

TheYogMehta/hospital-management-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hospital Management Django - Setup & URL Documentation

Setup Instructions

Clone the repository:

git clone https://github.com/TheYogMehta/hospital-management-django
cd hospital-management-django

Create and activate a virtual environment:

  • Windows :
    python -m venv venv
    venv\Scripts\activate
  • Linux / MacOS:
    python -m venv venv
    source venv/bin/activate

Install dependencies:

pip install -r requirements.txt

Apply database migrations:

python manage.py migrate

Run the development server:

python manage.py runserver

Super User Login

The admin user is pre-created.


URL Documentation

Base URLs

  • Home redirect: / → Redirects to the dashboard based on user role
  • Login page: /login/
  • Logout page: /logout/

API Endpoints

All API endpoints are under /api/:

Resource Endpoint Notes
Receptionists /api/receptionists/ CRUD operations on receptionists
Doctors /api/doctors/ CRUD operations on doctors
Patients /api/patients/ CRUD operations on patients
Appointments /api/appointments/ CRUD operations on appointments
Prescriptions /api/prescriptions/ CRUD operations on prescriptions
Bills /api/bills/ CRUD operations on bills
Utility /api/utility/ Utility functions
Admin /api/admin/ Admin-specific API actions

Dashboards

All dashboards are under /dashboard/:

Role Dashboard URL Notes
Admin /dashboard/admin/ Admin dashboard view
Doctor /dashboard/doctor/ Doctor dashboard view
Receptionist /dashboard/receptionist/ Receptionist dashboard view
Patient /dashboard/patient/ Patient dashboard view
  • Dashboard Redirect: /dashboard/ → Redirects to the correct role dashboard

Notes

  • Dashboard URLs are protected; only authenticated users with the correct role can access them
  • API endpoints use Django REST Framework ViewSets
  • All POST, PUT, PATCH, DELETE requests require authentication
  • Use the provided super user credentials to log in and access dashboards

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors