Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/k3ury99/hospital-api
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.
https://github.com/k3ury99/hospital-api
api-rest entity-framework-core-web-api sql-server
Last synced: 3 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/k3ury99/hospital-api
- Owner: K3ury99
- License: mit
- Created: 2024-07-08T23:10:32.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-19T01:08:14.000Z (5 months ago)
- Last Synced: 2024-10-12T17:04:19.063Z (3 months ago)
- Topics: api-rest, entity-framework-core-web-api, sql-server
- Language: C#
- Homepage:
- Size: 24.4 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](#features)
- [Technologies Used](#technologies-used)
- [Database Structure](#database-structure)
- [Installation](#installation)
- [Usage](#usage)
- [Endpoints](#endpoints)
- [Contributing](#contributing)
- [License](#license)## 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:
```bash
git clone https://github.com/yourusername/hospital-api.git
```2. Navigate to the project directory:
```bash
cd hospital-api
```3. Restore NuGet packages:
```bash
dotnet restore
```4. Configure the connection string to your database in the `appsettings.json` file.
5. Apply migrations to create the database:
```bash
dotnet ef database update
```6. Run the application:
```bash
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](LICENSE.md) file for details.