Real time 🔥 Hospital Management System 🐱‍👤using MongoDB Atlas & Realm
Tags: atlashackathon, node, mongodb, ejs
Published: 2022-01-09 15:51:18

### Overview of My Submission:

🎊The purpose of this project is to have a real time use case hospital management system with data analytics admin dashboard using MongoDB Atlas & Realm there.

---

### Submission Category:📢

**Choose Your Own Adventure** using MongoDB Atlas & MongoDB Realm

---

### Features: ⚙


You can `record patient data, view /search, update and remove it.`

Not only CURD Operation...

`it's have real time Data analyze admin page`

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/de9fsn1pq217f47btqk7.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3tqvcqjanxgrgcege18e.png)


`daily at 7AM send report notification email to doctor/admin `


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o3ax3oyf9htjx86vnyb6.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mjjf5dbbcwhhzvwd34ce.png)

---

### Link to Code:✨

**GitHub**

{% github https://github.com/jacksonkasi0/Hospital-Management-System-with-mongoDB-Realm %}

**Website  Link:** [Hospital Management System](https://hospital-managementsystem.herokuapp.com)

**E-mail:** `dr.samanta@apollo.com`
**Passw0rd:** `samanta@123`


---

### Technologies Used:🛠

- Bootstrap
- JavaScript
- EJS
- NodeJS
- Express JS
- Chart JS
- MongoDB Atlas
- MongoDB Realm
- MongoDB Realm Triggers & Function
- Mongoose
- Heroku
- [nodemailer@6.4.10](https://www.npmjs.com/package/nodemailer/v/6.4.10) is support on MonogoDB Realm
- body-parser
- dotenv
- passport
- passport-local-mongoose

---

##NOTE:👀

Guys, I'm will add a new future.

It is a MongoDB trigger function, `that helps inform the patient of the doctor appointment time at one day ago.` 

And also, `real time Data analyze admin page`...
& `send report to doctor mail`


But the truth is, I'm will be start to learn about **MongoDB  Trigger function and Realm**.😁😅

yeah! I will be finish... 🎯😎

---

I'm done as I said.
Everything is ready as stated above🚀

----

### Video: 🎥

{% youtube https://youtu.be/sZr8Gutagog %}

---

Now new version 2.0 

**part-0:** how to create new `admin/doctor account`

{% youtube https://youtu.be/y9obGyDvYt4 %}

**part-1:**

{% youtube https://youtu.be/dzolJ2qM-rc %}

**part-2:** 

{% youtube https://youtu.be/a4ZJ0iUR-ZE %}


---

### Additional Resources / Info:📙

- [crud](https://docs.mongodb.com/drivers/node/current/fundamentals/crud/read-operations/cursor/)
- [without-passing-schema-in-mongoose](https://stackoverflow.com/questions/21429630/querying-a-collection-without-passing-schema-in-mongoose)
- [$group (aggregation)](https://docs.mongodb.com/manual/reference/operator/aggregation/group/)
- [Scheduled Triggers](https://docs.mongodb.com/realm/triggers/scheduled-triggers/)

- [Trigger Types](https://docs.mongodb.com/realm/triggers/trigger-types/)

- [Gmail for Nodemailer](https://mailtrap.io/blog/nodemailer-gmail/)

---

I made a small mistake at the time, now ok.
 No longer will it work at exactly 7 AM ( Indian time based )…

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mti8grrtmwmehasa5bsr.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8a0oenq2z883sy938mpv.png)

---

There are many thoughts to improve it, I am going to improve it further with React JS…

What is your opinion on this? Can you tell me a little bit! 😁