{"id":15476724,"url":"https://github.com/mahammad-mostafa/patient-clinic","last_synced_at":"2026-05-02T09:31:37.914Z","repository":{"id":199584409,"uuid":"703225953","full_name":"mahammad-mostafa/patient-clinic","owner":"mahammad-mostafa","description":"This is the second project in the fourth module of the Microverse program. It is a database for a patient clinic using PostgreSQL.","archived":false,"fork":false,"pushed_at":"2023-10-30T17:22:33.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"development","last_synced_at":"2025-02-02T13:51:19.746Z","etag":null,"topics":["database","database-schema","microverse","microverse-projects","microverse-students","postgresql","queries","rdbms","relational-databases","sql"],"latest_commit_sha":null,"homepage":"","language":null,"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/mahammad-mostafa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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}},"created_at":"2023-10-10T20:49:41.000Z","updated_at":"2023-10-11T23:55:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c5faa25-cc6e-47b3-8eb6-8a80bfbfea01","html_url":"https://github.com/mahammad-mostafa/patient-clinic","commit_stats":null,"previous_names":["mahammad-mostafa/patient-clinic"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahammad-mostafa%2Fpatient-clinic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahammad-mostafa%2Fpatient-clinic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahammad-mostafa%2Fpatient-clinic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahammad-mostafa%2Fpatient-clinic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahammad-mostafa","download_url":"https://codeload.github.com/mahammad-mostafa/patient-clinic/tar.gz/refs/heads/development","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246036558,"owners_count":20713261,"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":["database","database-schema","microverse","microverse-projects","microverse-students","postgresql","queries","rdbms","relational-databases","sql"],"created_at":"2024-10-02T03:40:51.535Z","updated_at":"2026-05-02T09:31:37.844Z","avatar_url":"https://github.com/mahammad-mostafa.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ca name=\"title\"\u003e\u003c/a\u003e\n\n\u003c!-- TITLE --\u003e\n\n# 🏷️ Patient Clinic\n\nThis is the second project of the fourth module in the **Microverse** program.\n\u003cbr/\u003e\nCheck the below contents for further details about this project.\n\n\u003c!-- CONTENTS --\u003e\n\n# 📗 Contents\n\n- [Description](#description)\n- [Instructions](#instructions)\n- [Authors](#authors)\n- [Future](#future)\n- [Contributions](#contributions)\n- [Support](#support)\n- [Acknowledgements](#acknowledgements)\n- [License](#license)\n\n\u003c!-- DESCRIPTION --\u003e\n\n\u003ca name=\"description\"\u003e\u003c/a\u003e\n\n# 📖 Description\n\nThis repository includes a file called `schema_based_on_diagram` with plain `SQL` that can be used to recreate a database\n\n📌 **Tech Stack:**\n- Database built with `PostgreSQL`\n- Queries uses `SQL`\n\n📌 **Key Features:**\n- Table for patients information which include (name / birth date)\n- Each patient is linked with the medical history table through foreign key patient_id\n- Table for medical histories information which include (admission / status)\n- Table for invoices information which include (amount / creation / payment)\n- Each invoice is linked with the medical history table through foreign key invoice_id\n- Table for invoice items information which include (price / quantity / total)\n- Each invoice item is linked with the (medical history / treatment) tables through foreign keys (invoice_id / treatment_id)\n- Table for treatments information which include (type / name)\n- Join table named histories treatments for bridging between dical histories \u0026 treatments tables\n- All foriegn keys are indexed for optimizing queries performance\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e\u003c/p\u003e\n\n\u003c!-- INSTRUCTIONS --\u003e\n\n\u003ca name=\"instructions\"\u003e\u003c/a\u003e\n\n# 🛠️ Instructions\n\nYou can easily download or fork this repository and work on it immadiately!\n\n📌 **Prerequisites:**\n- `PostgreSQL` or any other `SQL` database\n\n📌 **Installation:**\n- Create a new database called `patient_clinic`\n- Run queries in [schema_based_on_diagram.sql](schema_based_on_diagram.sql) for creating all tables\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e\u003c/p\u003e\n\n\u003c!-- AUTHORS --\u003e\n\n\u003ca name=\"authors\"\u003e\u003c/a\u003e\n\n# 👥 Authors\n\n📌 **Mahammad:**\n- [GitHub](https://github.com/mahammad-mostafa)\n- [Twitter](https://twitter.com/mahammad_mostfa)\n- [LinkedIn](https://linkedin.com/in/mahammad-mostafa)\n\n📌 **Carlos:**\n- [GitHub](https://github.com/CarlosZ96)\n\n📌 **Austin:**\n- [GitHub](https://github.com/stino-x)\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e\u003c/p\u003e\n\n\u003c!-- FUTURE --\u003e\n\n\u003ca name=\"future\"\u003e\u003c/a\u003e\n\n# 🔭 Future\n\nSome additional features I may implement in the project:\n- [ ] Using `Binary` data types in tables\n- [ ] Implement stored procedures like `SQL Trigger`\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e\u003c/p\u003e\n\n\u003c!-- CONTRIBUTIONS --\u003e\n\n\u003ca name=\"contributions\"\u003e\u003c/a\u003e\n\n# 🤝🏻 Contributions\n\nWish to contribute to this project?\n\u003cbr/\u003e\nContributions, issues, and feature requests are more than welcome!\n\u003cbr/\u003e\nFeel free to check the [issues](../../issues) page too.\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e\u003c/p\u003e\n\n\u003c!-- SUPPORT --\u003e\n\n\u003ca name=\"support\"\u003e\u003c/a\u003e\n\n# ⭐️ Support\n\nLike this project? Show your support by starring!\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e\u003c/p\u003e\n\n\u003c!-- ACKNOWLEDGEMENTS --\u003e\n\n\u003ca name=\"acknowledgements\"\u003e\u003c/a\u003e\n\n# 🙏🏻 Acknowledgements\n\nI thank everyone at **Microverse** for guiding me through this project.\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e\u003c/p\u003e\n\n\u003c!-- LICENSE --\u003e\n\n\u003ca name=\"license\"\u003e\u003c/a\u003e\n\n# 📝 License\n\nThis project is [MIT](LICENSE.md) licensed.\n\n\u003cp align=\"right\"\u003e\u003ca href=\"#title\"\u003eback to top\u003c/a\u003e\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahammad-mostafa%2Fpatient-clinic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahammad-mostafa%2Fpatient-clinic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahammad-mostafa%2Fpatient-clinic/lists"}