Skip to content

Repository files navigation

Medimanage - Hospital Management API

🚑 Medimanage is the backend API for a Hospital Management System built with Laravel. This repository contains only the backend API, while an example frontend implementation can be found at: Hospital Management System Frontend.

📌 Features

  • User authentication (Login, Signup, Google OAuth)
  • Patient, Staff, and Department management
  • Appointment scheduling
  • Medication and Prescription tracking
  • Laboratory test and order management
  • Billing system

🛠️ Installation

  1. Clone the repository:
    git clone https://github.com/your-username/Medimanage.git
    cd Medimanage
  2. Install dependencies:
    composer install
  3. Set up environment file:
    cp .env.example .env
    Configure your database and other settings inside the .env file.
  4. Generate application key:
    php artisan key:generate
  5. Run migrations and seed data:
    php artisan migrate --seed
  6. Start the server:
    php artisan serve

📡 API Endpoints

Authentication

  • POST api/login - User login
  • POST api/signup - User registration
  • GET api/auth/info - Get authenticated user info
  • GET api/auth/google/redirect - Google OAuth redirect
  • GET api/auth/google/callback - Google OAuth callback

User Management

  • GET api/user - Get all users
  • GET api/user/{id} - Get a specific user
  • POST api/user - Create a new user
  • PATCH api/user/{id} - Update a user
  • DELETE api/user/{id} - Delete a user

Department Management

  • GET api/department
  • GET api/department/{id}
  • POST api/department
  • PATCH api/department/{id}
  • DELETE api/department/{id}

Staff Management

  • GET api/staff
  • GET api/staff/{id}
  • POST api/staff
  • PATCH api/staff/{id}
  • DELETE api/staff/{id}

Patient Management

  • GET api/patient
  • GET api/patient/{id}
  • POST api/patient
  • PATCH api/patient/{id}
  • DELETE api/patient/{id}

Appointment Management

  • GET api/appointment
  • GET api/appointment/{id}
  • POST api/appointment
  • PATCH api/appointment/{id}
  • DELETE api/appointment/{id}

Medication & Prescription

  • GET api/category/medication
  • GET api/category/medication/{id}
  • POST api/category/medication
  • PATCH api/category/medication/{id}
  • DELETE api/category/medication/{id}
  • GET api/medication
  • GET api/medication/{id}
  • POST api/medication
  • PATCH api/medication/{id}
  • DELETE api/medication/{id}
  • GET api/prescription
  • GET api/prescription/{id}
  • POST api/prescription
  • PATCH api/prescription/{id}
  • DELETE api/prescription/{id}
  • GET api/detail/prescription
  • GET api/detail/prescription/{id}
  • POST api/detail/prescription
  • PATCH api/detail/prescription/{id}
  • DELETE api/detail/prescription/{id}

Lab Tests & Orders

  • GET api/labtest
  • GET api/labtest/{id}
  • POST api/labtest
  • PATCH api/labtest/{id}
  • DELETE api/labtest/{id}
  • GET api/laborder
  • GET api/laborder/{id}
  • POST api/laborder
  • PATCH api/laborder/{id}
  • DELETE api/laborder/{id}
  • GET api/detail/laborder
  • GET api/detail/laborder/{id}
  • POST api/detail/laborder
  • PATCH api/detail/laborder/{id}
  • DELETE api/detail/laborder/{id}

Billing System

  • GET api/bill
  • GET api/bill/{id}
  • POST api/bill
  • PATCH api/bill/{id}
  • DELETE api/bill/{id}
  • GET api/item/bill
  • GET api/item/bill/{id}
  • POST api/item/bill
  • PATCH api/item/bill/{id}
  • DELETE api/item/bill/{id}

🔑 Authentication

This API uses Laravel Sanctum for authentication. Ensure you send the authorization token with requests that require authentication.

Example:

Authorization: Bearer {your_token}

🛠️ Technologies Used

  • Laravel (PHP Framework)
  • MySQL (Database)
  • Sanctum (Authentication)

📄 License

This project is open-source and available under the MIT License.

👨‍💻 Author

Developed by Apil Khadka.

About

A College project on Hospital Management System

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages