{"id":29182775,"url":"https://github.com/maryqu3en/medcab-backend","last_synced_at":"2025-07-01T20:31:07.140Z","repository":{"id":301526908,"uuid":"874913779","full_name":"maryqu3en/MedCab-Backend","owner":"maryqu3en","description":"This is the backend repository for MedCab, a clinc management system tailored for dialysis clinics.","archived":false,"fork":false,"pushed_at":"2025-06-27T09:40:05.000Z","size":921,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-27T10:35:41.185Z","etag":null,"topics":["expressjs","javascript","jwt","nodejs","prisma","showcase","socketio","websocket"],"latest_commit_sha":null,"homepage":"https://medcab-backend.onrender.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maryqu3en.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-10-18T17:37:06.000Z","updated_at":"2025-06-27T09:40:08.000Z","dependencies_parsed_at":"2025-06-27T10:35:44.554Z","dependency_job_id":"e1ffd523-7aa5-4f79-8958-7d6cffeeedab","html_url":"https://github.com/maryqu3en/MedCab-Backend","commit_stats":null,"previous_names":["maryqu3en/medcab-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maryqu3en/MedCab-Backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maryqu3en%2FMedCab-Backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maryqu3en%2FMedCab-Backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maryqu3en%2FMedCab-Backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maryqu3en%2FMedCab-Backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maryqu3en","download_url":"https://codeload.github.com/maryqu3en/MedCab-Backend/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maryqu3en%2FMedCab-Backend/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263032619,"owners_count":23403022,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["expressjs","javascript","jwt","nodejs","prisma","showcase","socketio","websocket"],"created_at":"2025-07-01T20:31:01.653Z","updated_at":"2025-07-01T20:31:06.985Z","avatar_url":"https://github.com/maryqu3en.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 📦 `User`\n\n* **id**: String (PK)\n* name: String\n* email: String `@unique`\n* password: String\n* user\\_type: UserType (enum)\n* createdAt: DateTime\n* updatedAt: DateTime\n* deletedAt: DateTime?\n\n**Relations:**\n\n* 1 → 1: Doctor (`UserDoctor`)\n* 1 → 1: Staff (`UserStaff`)\n* 1 → \\*: Token (`UserTokens`)\n* 1 → \\*: Doctor (`CreatedDoctors`) as creator\n* 1 → \\*: Staff (`CreatedStaff`) as creator\n\n---\n\n### 📦 `Doctor`\n\n* **id**: String (PK)\n* phone: String\n* specialty: String\n* created\\_by: String?\n* status: Status (enum)\n* createdAt: DateTime\n* updatedAt: DateTime\n* deletedAt: DateTime?\n\n**Relations:**\n\n* 1 → 1: User (`UserDoctor`)\n* * → 1: User (as creator, `CreatedDoctors`)\n* 1 → \\*: MedicalRecord (`DoctorMedicalRecords`)\n\n---\n\n### 📦 `Staff`\n\n* **id**: String (PK)\n* phone: String?\n* role: StaffRole (enum)\n* created\\_by: String?\n* status: Status (enum)\n* createdAt: DateTime\n* updatedAt: DateTime\n* deletedAt: DateTime?\n\n**Relations:**\n\n* 1 → 1: User (`UserStaff`)\n* * → 1: User (as creator, `CreatedStaff`)\n\n---\n\n### 📦 `Token`\n\n* **id**: String (PK)\n* user\\_id: String?\n* refresh\\_token: String\n* expires\\_at: DateTime\n\n**Relations:**\n\n* * → 1: User (`UserTokens`)\n\n---\n\n### 📦 `Patient`\n\n* **id**: String (PK)\n* name: String\n* birth\\_date: DateTime?\n* gender: Gender (enum)\n* created\\_at: DateTime\n* updated\\_at: DateTime\n* deleted\\_at: DateTime?\n\n**Relations:**\n\n* 1 → \\*: MedicalRecord (`PatientMedicalRecords`)\n\n---\n\n### 📦 `MedicalRecord`\n\n* **id**: String (PK)\n* patient\\_id: String\n* created\\_by: String\n* createdAt: DateTime\n* updatedAt: DateTime\n\n**Relations:**\n\n* * → 1: Doctor (`DoctorMedicalRecords`)\n* * → 1: Patient (`PatientMedicalRecords`)\n* 1 → \\*: ConsultationSession (`MedicalRecordConsultations`)\n\n---\n\n### 📦 `ConsultationSession`\n\n* **id**: String (PK)\n* medicalRecordId: String\n* antecedentsPersonnels: Json?\n* antecedentsFamiliaux: Json?\n* hdmSymptoms: Json?\n* clinicalExam: Json?\n* diagnosis: String?\n* treatments: String?\n* createdAt: DateTime\n\n**Relations:**\n\n* * → 1: MedicalRecord (`MedicalRecordConsultations`)\n* 1 → \\*: ComplementaryExam (`ConsultationComplementaryExams`)\n\n---\n\n### 📦 `ComplementaryExam`\n\n* **id**: String (PK)\n* consultationSessionId: String\n* type: String\n* exam: String\n* result: Json?\n* createdAt: DateTime\n\n**Relations:**\n\n* * → 1: ConsultationSession (`ConsultationComplementaryExams`)\n\n---\n\n### 🧮 Enums\n\n* **UserType**: `doctor | staff | admin`\n* **Status**: `pending | active | inactive`\n* **StaffRole**: `nurse | receptionist`\n* **Gender**: `male | female`\n* **LogAction**: `CREATE | UPDATE | DELETE`\n* **LogTargetTable**: `User | Doctor | Staff | Token | Patient`\n* **LogTargetId**: `id | user_id | doctor_id | staff_id | token_id | patient_id`\n\n---\n\nWould you like a Mermaid diagram version for documentation or a visual render next?\n\n\n\n\n\n# MedCab Backend\n\nAdmin Panel Features\nAdmin Authentication:\n\nLogin (email, password).\nToken-based session management.\nAdmin Management:\n\nCreate, read, update, delete (CRUD) operations for admin accounts.\nDoctor and Staff Management:\n\nView and manage doctors and staff.\nAssign roles and permissions.\nAnalytics and Logs:\n\nView real-time system logs and usage analytics.\n\nwhy web app\nwhy database choice\ntech stack choice\ndata modeling\ndata seeding\n\n# urgency of patient condition\n\n---\n\n---\n\nnom\nprénom\nddn\n\n# Antécédents\n\n## Antécédents personnels\n\n- médicaux\n- chirurgicaux\n\n## Antécédents familiaux\n\n- père\n- mère\n- frère\n- sœur\n\n# Histoire de la maladie (HDM)\n\n_symptômes_\n\n- fièvre v/f\n- douleurs\n- altération de l’état général\n- anorexie\n- vomissements\n- diarrhée\n- vertiges\n\n---\n\n---\n\n# Examen clinique\n\n- tension artérielle\n- glycémie capillaire\n- œdème des membres inférieurs v/f\n- bouffissure du visage v/f\n- poids\n- Labstix : +/-\n  - pH\n  - glucose\n  - sang\n  - protéines\n  - cétones\n- examen cardiovasculaire (saisie)\n- examen pleuropulmonaire (saisie)\n- examen uronéphrologique (saisie)\n  - contact lombaire +/-\n  - brûlure mictionnelle +/-\n  - hématurie macroscopique +/-\n- examen neurologique\n  - céphalées +/-\n  - vertiges\n  - vomissements\n\n---\n\n---\n\n# Examens complémentaires\n\n## Sang\n\n- numération formule sanguine (NFS)\n- urée / créatininémie\n- Na+ / K+ (rapport)\n- Ca++ / phosphore\n- cholestérol / triglycérides\n- PTH (parathormone)\n- glycémie à jeun + hémoglobine glyquée\n- TGO / TGP\n- bilirubine totale / directe / indirecte\n- sérologie hépatite (B / C / VIH) / syphilis\n- T3 / T4 / TSH\n- protidémie\n- albuminémie\n- autres\n\n## Urines\n\n- chimie des urines\n- examen cytobactériologique des urines (ECBU)\n- protéinurie des 24h\n- autres\n\n---\n\n---\n\n# Diagnostic\n\n(saisie)\n\n# Traitements\n\n## Traitements médicaux\n\n(saisie)\n\n## Traitements supplémentaires\n\n- dialyse péritonéale +/-\n- hémodialyse +/-\n- transplantation rénale +/-\n\n---\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaryqu3en%2Fmedcab-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaryqu3en%2Fmedcab-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaryqu3en%2Fmedcab-backend/lists"}