Thanks to visit codestin.com
Credit goes to github.com

Skip to content

API for hospital management using Entity Framework and C#, to manage departments, patients, doctors, laboratories, employees, treatments, medications, appointments, invoices, hospitalizations, surgeries, lab results, prescriptions, and payments.

License

Notifications You must be signed in to change notification settings

K3ury99/Hospital-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hospital API 🏥

Note

API for hospital management using Entity Framework and C#, to manage departments, patients, doctors, laboratories, employees, treatments, medications, appointments, invoices, hospitalizations, surgeries, lab results, prescriptions, and payments.

Table of Contents 📔

Features ✨

  • Comprehensive management of hospitals and medical staff.
  • Detailed registration and tracking of patients.
  • Efficient administration of appointments and treatments.
  • Integration with laboratory systems and medical results.
  • Automated billing and payment management.

Technologies Used ♟

  • C#
  • .NET
  • Entity Framework Core
  • SQL Server
  • ASP.NET Core

Database Structure 💎

The database includes the following tables:

  1. Departments
  2. Patients
  3. Doctors
  4. Laboratories
  5. Employees
  6. Treatments
  7. Medications
  8. Appointments
  9. Invoices
  10. Hospitalizations
  11. Surgeries
  12. LabResults
  13. Prescriptions
  14. Payments

Installation 🛠

To install and run this project on your local machine, follow these steps:

  1. Clone the repository:

    git clone https://github.com/yourusername/hospital-api.git
  2. Navigate to the project directory:

    cd hospital-api
  3. Restore NuGet packages:

    dotnet restore
  4. Configure the connection string to your database in the appsettings.json file.

  5. Apply migrations to create the database:

    dotnet ef database update
  6. Run the application:

    dotnet run

Usage 🐱‍👤

Once the application is running, you can access the API via http://localhost:5000 (or the port configured in your project).

Endpoints

Below are some of the available endpoints:

  • Departments

    • GET /api/departments
    • POST /api/departments
    • GET /api/departments/{id}
    • PUT /api/departments/{id}
    • DELETE /api/departments/{id}
  • Patients

    • GET /api/patients
    • POST /api/patients
    • GET /api/patients/{id}
    • PUT /api/patients/{id}
    • DELETE /api/patients/{id}
  • Doctors

    • GET /api/doctors
    • POST /api/doctors
    • GET /api/doctors/{id}
    • PUT /api/doctors/{id}
    • DELETE /api/doctors/{id}

Contributing 🏆

Contributions are welcome. Please follow these steps to contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/new-feature).
  3. Make your changes and commit them (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/new-feature).
  5. Open a pull request.

License 📏

This project is licensed under the [MIT] License - see the LICENSE.md file for details.

About

API for hospital management using Entity Framework and C#, to manage departments, patients, doctors, laboratories, employees, treatments, medications, appointments, invoices, hospitalizations, surgeries, lab results, prescriptions, and payments.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages