{"id":29085208,"url":"https://github.com/tahaaa22/backend-3alegny","last_synced_at":"2026-02-18T22:01:19.759Z","repository":{"id":289136976,"uuid":"908355067","full_name":"tahaaa22/Backend-3alegny","owner":"tahaaa22","description":"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.","archived":false,"fork":false,"pushed_at":"2025-04-21T17:53:57.000Z","size":195,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-10T12:03:38.827Z","etag":null,"topics":["azure-devops","dotnet","entity-framework-core","linq"],"latest_commit_sha":null,"homepage":"https://backend-3alegny-hpgag2fkg4hrb9c0.canadacentral-01.azurewebsites.net/index.html","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tahaaa22.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-12-25T20:58:23.000Z","updated_at":"2025-04-21T17:54:01.000Z","dependencies_parsed_at":"2025-04-21T18:44:12.866Z","dependency_job_id":null,"html_url":"https://github.com/tahaaa22/Backend-3alegny","commit_stats":null,"previous_names":["tahaaa22/backend-3alegny"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tahaaa22/Backend-3alegny","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahaaa22%2FBackend-3alegny","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahaaa22%2FBackend-3alegny/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahaaa22%2FBackend-3alegny/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahaaa22%2FBackend-3alegny/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tahaaa22","download_url":"https://codeload.github.com/tahaaa22/Backend-3alegny/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tahaaa22%2FBackend-3alegny/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29596329,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T20:59:56.587Z","status":"ssl_error","status_checked_at":"2026-02-18T20:58:41.434Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-devops","dotnet","entity-framework-core","linq"],"created_at":"2025-06-27T22:39:26.633Z","updated_at":"2026-02-18T22:01:19.718Z","avatar_url":"https://github.com/tahaaa22.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Backend-3alegny\n# API Endpoints Documentation\n\nThis document outlines the API endpoints for various user roles in the system.\n\n---\n\n## Authentication Endpoints\n\n### POST\n- **/signup**  \n  Endpoint for user signup.\n\n### POST\n- **/login**  \n  Endpoint for user login.\n\n---\n## Common EndPoints\n### GET\n- **/top-Hospitals/**  \n  Get the top 4 hospitals in the system.\n- **/top-Pharmacies/**  \n  Get the top 4 pharmacies in the system.\n- **/top-Doctors/**  \n  Get the top 4 doctors in the system.\n\n---\n\n## Admin Endpoints\n\n### POST\n- **/create-business**  \n  Create a business entity with three associated objects.\n\n### GET\n- **/admin/user/id**  \n  get user by ID.\n- **/admin/allHospitals/{location}, {departments}..../**  \n  Get all hospitals by different filters\n- **/admin/allpharmacies/{location}, {departments}..../**  \n  Get all pharmacies by different filters\n- **/patient-statistics**  \n  Retrieve statistics about patients.  \n- **/hospital-statistics**  \n  Retrieve a list of hospitals with their statistics.  \n- **/pharmacies-statistics**  \n  Retrieve pharmacy-related statistics.  \n- **/revenue-statistics**  \n  Retrieve revenue-related statistics.  \n- **/appointments-statistics**  \n  Retrieve statistics on appointments.  \n- **/order-statistics**  \n  Retrieve order-related statistics.  \n- **/patients-reviews**  \n  Retrieve reviews from patients.\n\n### UPDATE\n- **/update-ehr-from-phr**  \n  Update EHR data using PHR if needed.\n\n### DELETE\n- **/delete-business**  \n  Delete an existing business.\n\n---\n\n## Hospital Endpoints\n\n### POST\n- **/post-departments**  \n  Add new departments to the hospital.  \n- **/post-doctors**  \n  Add new doctors to the hospital.  \n- **/post-ehr**  \n  Create EHR for a patient for the first time.  \n- **/add-offers**  \n  Add new offers for hospital departments.\n\n### GET\n- **/Hospital/CurrentHospital/{ID}/**  \n  Get currentHospital by ID.\n- **/current-patient-ehr**  \n  Retrieve the current patient's EHR using their ID.  \n- **/detailed-bill**  \n  Retrieve a detailed bill for the current appointment (before confirmation).\n\n### UPDATE\n- **/update-ehr-and-phr**  \n  Update both EHR and PHR after coding.  \n- **/update-departments**  \n  Update department details.  \n- **/update-doctors**  \n  Update doctor information.  \n- **/update-offers**  \n  Update offers for specific departments.\n\n### DELETE\n- **/delete-old-doctors**  \n  Remove old doctors from the hospital.  \n- **/delete-offers**  \n  Remove offers from specific departments.\n\n---\n\n## Patient Endpoints\n\n### POST\n- **/create-phr**  \n  Create a personal health record (PHR).  \n- **/create-order**  \n  Place an order.  \n- **/create-appointment**  \n  Book a new appointment.\n\n### GET\n- **/suggested-drugs**  \n  Retrieve a list of suggested drugs for the patient.  \n- **/order-history**  \n  Retrieve a patient's order history.  \n- **/appointment-history**  \n  Retrieve a patient's appointment history.  \n- **/phr**  \n  Retrieve the patient's PHR.  \n- **/current-location**  \n  Retrieve the patient's current location.\n\n### UPDATE\n- **/update-phr**  \n  Update the patient's PHR.  \n- **/update-current-location**  \n  Update the patient's current location.\n\n### DELETE\n- **/cancel-appointment**  \n  Cancel an appointment.  \n- **/cancel-order**  \n  Cancel an order.\n\n---\n\n## Pharmacy Endpoints\n\n### POST\n- **/add-drugs**  \n  Add new drugs to the pharmacy inventory.  \n- **/add-offers**  \n  Add new offers for the pharmacy.\n\n### GET\n- **/detailed-bill**  \n  Retrieve a detailed bill for the current order (before confirmation).\n\n### UPDATE\n- **/new-drugs**  \n  Update the list of drugs in the pharmacy.  \n- **/new-offers**  \n  Update the pharmacy offers.\n\n### DELETE\n- **/expired-drugs**  \n  Remove expired drugs from inventory.  \n- **/delete-offers**  \n  Remove specific offers.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahaaa22%2Fbackend-3alegny","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftahaaa22%2Fbackend-3alegny","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftahaaa22%2Fbackend-3alegny/lists"}