How would you model patient records, appointments, prescriptions, and diagnostic reports in MongoDB for a healthcare app?

If I’m building a healthcare app using MongoDB, how should I organize and store important data like patients, their doctor appointments, their medicine prescriptions, and their medical reports?

1 Like

I would use 4 collections:

  • patients
  • appointments
  • prescriptions
  • reports

For reports, I would use the attribute pattern.
For appointments, I would TTL indexes.

For more details, please follow up with more detailed questions. Followups on all your threads would also be appreciated. Specially on the ones you got answers like:

2 Likes