https://github.com/mahammad-mostafa/patient-clinic
This is the second project in the fourth module of the Microverse program. It is a database for a patient clinic using PostgreSQL.
https://github.com/mahammad-mostafa/patient-clinic
database database-schema microverse microverse-projects microverse-students postgresql queries rdbms relational-databases sql
Last synced: 2 months ago
JSON representation
This is the second project in the fourth module of the Microverse program. It is a database for a patient clinic using PostgreSQL.
- Host: GitHub
- URL: https://github.com/mahammad-mostafa/patient-clinic
- Owner: mahammad-mostafa
- License: mit
- Created: 2023-10-10T20:49:41.000Z (over 2 years ago)
- Default Branch: development
- Last Pushed: 2023-10-30T17:22:33.000Z (over 2 years ago)
- Last Synced: 2025-02-02T13:51:19.746Z (over 1 year ago)
- Topics: database, database-schema, microverse, microverse-projects, microverse-students, postgresql, queries, rdbms, relational-databases, sql
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 🏷️ Patient Clinic
This is the second project of the fourth module in the **Microverse** program.
Check the below contents for further details about this project.
# 📗 Contents
- [Description](#description)
- [Instructions](#instructions)
- [Authors](#authors)
- [Future](#future)
- [Contributions](#contributions)
- [Support](#support)
- [Acknowledgements](#acknowledgements)
- [License](#license)
# 📖 Description
This repository includes a file called `schema_based_on_diagram` with plain `SQL` that can be used to recreate a database
📌 **Tech Stack:**
- Database built with `PostgreSQL`
- Queries uses `SQL`
📌 **Key Features:**
- Table for patients information which include (name / birth date)
- Each patient is linked with the medical history table through foreign key patient_id
- Table for medical histories information which include (admission / status)
- Table for invoices information which include (amount / creation / payment)
- Each invoice is linked with the medical history table through foreign key invoice_id
- Table for invoice items information which include (price / quantity / total)
- Each invoice item is linked with the (medical history / treatment) tables through foreign keys (invoice_id / treatment_id)
- Table for treatments information which include (type / name)
- Join table named histories treatments for bridging between dical histories & treatments tables
- All foriegn keys are indexed for optimizing queries performance
# 🛠️ Instructions
You can easily download or fork this repository and work on it immadiately!
📌 **Prerequisites:**
- `PostgreSQL` or any other `SQL` database
📌 **Installation:**
- Create a new database called `patient_clinic`
- Run queries in [schema_based_on_diagram.sql](schema_based_on_diagram.sql) for creating all tables
# 👥 Authors
📌 **Mahammad:**
- [GitHub](https://github.com/mahammad-mostafa)
- [Twitter](https://twitter.com/mahammad_mostfa)
- [LinkedIn](https://linkedin.com/in/mahammad-mostafa)
📌 **Carlos:**
- [GitHub](https://github.com/CarlosZ96)
📌 **Austin:**
- [GitHub](https://github.com/stino-x)
# 🔭 Future
Some additional features I may implement in the project:
- [ ] Using `Binary` data types in tables
- [ ] Implement stored procedures like `SQL Trigger`
# 🤝🏻 Contributions
Wish to contribute to this project?
Contributions, issues, and feature requests are more than welcome!
Feel free to check the [issues](../../issues) page too.
# ⭐️ Support
Like this project? Show your support by starring!
# 🙏🏻 Acknowledgements
I thank everyone at **Microverse** for guiding me through this project.
# 📝 License
This project is [MIT](LICENSE.md) licensed.