faisitalia / OpenMed-PoC

PoC Version - The project stems from the experience of FAIS gained in Smart Ostomy Support with the aim of creating a platform that technologically supports the patient associations participating in the project.
1 stars 5 forks source link

Fixed the List of appointments in `app/calendar` #41

Closed lucavenir closed 2 years ago

lucavenir commented 2 years ago

Solves #40.

Saving all the user's info in our DB when scheduling an appointment makes sense: it allows the reading all of its properties in other pages (e.g. name, surname, ssn, phone, email, etc.).

Since now we're saving the whole patient into the database, the app/calendar page now needs to read the object properties such as name and surname.

Since our dev DB contains older documents without a full patient object, I've implemented a null safe version of this page. This could be a common practice in the near future.