https://github.com/tahaaa22/backend-3alegny
An EMR application that connects various EHR and PHR systems, allowing users to view personal health data and choose hospitals or departments that fit their budget.
https://github.com/tahaaa22/backend-3alegny
azure-devops dotnet entity-framework-core linq
Last synced: 4 months ago
JSON representation
An EMR application that connects various EHR and PHR systems, allowing users to view personal health data and choose hospitals or departments that fit their budget.
- Host: GitHub
- URL: https://github.com/tahaaa22/backend-3alegny
- Owner: tahaaa22
- Created: 2024-12-25T20:58:23.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-04-21T17:53:57.000Z (about 1 year ago)
- Last Synced: 2025-10-10T12:03:38.827Z (8 months ago)
- Topics: azure-devops, dotnet, entity-framework-core, linq
- Language: C#
- Homepage: https://backend-3alegny-hpgag2fkg4hrb9c0.canadacentral-01.azurewebsites.net/index.html
- Size: 190 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Backend-3alegny
# API Endpoints Documentation
This document outlines the API endpoints for various user roles in the system.
---
## Authentication Endpoints
### POST
- **/signup**
Endpoint for user signup.
### POST
- **/login**
Endpoint for user login.
---
## Common EndPoints
### GET
- **/top-Hospitals/**
Get the top 4 hospitals in the system.
- **/top-Pharmacies/**
Get the top 4 pharmacies in the system.
- **/top-Doctors/**
Get the top 4 doctors in the system.
---
## Admin Endpoints
### POST
- **/create-business**
Create a business entity with three associated objects.
### GET
- **/admin/user/id**
get user by ID.
- **/admin/allHospitals/{location}, {departments}..../**
Get all hospitals by different filters
- **/admin/allpharmacies/{location}, {departments}..../**
Get all pharmacies by different filters
- **/patient-statistics**
Retrieve statistics about patients.
- **/hospital-statistics**
Retrieve a list of hospitals with their statistics.
- **/pharmacies-statistics**
Retrieve pharmacy-related statistics.
- **/revenue-statistics**
Retrieve revenue-related statistics.
- **/appointments-statistics**
Retrieve statistics on appointments.
- **/order-statistics**
Retrieve order-related statistics.
- **/patients-reviews**
Retrieve reviews from patients.
### UPDATE
- **/update-ehr-from-phr**
Update EHR data using PHR if needed.
### DELETE
- **/delete-business**
Delete an existing business.
---
## Hospital Endpoints
### POST
- **/post-departments**
Add new departments to the hospital.
- **/post-doctors**
Add new doctors to the hospital.
- **/post-ehr**
Create EHR for a patient for the first time.
- **/add-offers**
Add new offers for hospital departments.
### GET
- **/Hospital/CurrentHospital/{ID}/**
Get currentHospital by ID.
- **/current-patient-ehr**
Retrieve the current patient's EHR using their ID.
- **/detailed-bill**
Retrieve a detailed bill for the current appointment (before confirmation).
### UPDATE
- **/update-ehr-and-phr**
Update both EHR and PHR after coding.
- **/update-departments**
Update department details.
- **/update-doctors**
Update doctor information.
- **/update-offers**
Update offers for specific departments.
### DELETE
- **/delete-old-doctors**
Remove old doctors from the hospital.
- **/delete-offers**
Remove offers from specific departments.
---
## Patient Endpoints
### POST
- **/create-phr**
Create a personal health record (PHR).
- **/create-order**
Place an order.
- **/create-appointment**
Book a new appointment.
### GET
- **/suggested-drugs**
Retrieve a list of suggested drugs for the patient.
- **/order-history**
Retrieve a patient's order history.
- **/appointment-history**
Retrieve a patient's appointment history.
- **/phr**
Retrieve the patient's PHR.
- **/current-location**
Retrieve the patient's current location.
### UPDATE
- **/update-phr**
Update the patient's PHR.
- **/update-current-location**
Update the patient's current location.
### DELETE
- **/cancel-appointment**
Cancel an appointment.
- **/cancel-order**
Cancel an order.
---
## Pharmacy Endpoints
### POST
- **/add-drugs**
Add new drugs to the pharmacy inventory.
- **/add-offers**
Add new offers for the pharmacy.
### GET
- **/detailed-bill**
Retrieve a detailed bill for the current order (before confirmation).
### UPDATE
- **/new-drugs**
Update the list of drugs in the pharmacy.
- **/new-offers**
Update the pharmacy offers.
### DELETE
- **/expired-drugs**
Remove expired drugs from inventory.
- **/delete-offers**
Remove specific offers.