You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Define all models in the models present in the server folder.
Create a new folder called diabeticsModule similar to other modules. Inside that folder create sub folders indicating routes, controller and helpers. All routes has to be mentioned in routes file and we will be calling only the functions here. Controller function will be written in controller file.
Use camelCase for all the fields. Add createdAt and UpdatedAt in all tables.
In dailydose and sickday tables, all fields except patientId are nested fields. Meaning when the new entry for a particular patient comes it gets updated as a inner object which will reduce time in searching.
The text was updated successfully, but these errors were encountered:
Define all models in the models present in the server folder.
Create a new folder called diabeticsModule similar to other modules. Inside that folder create sub folders indicating routes, controller and helpers. All routes has to be mentioned in routes file and we will be calling only the functions here. Controller function will be written in controller file.
Use camelCase for all the fields. Add createdAt and UpdatedAt in all tables.
Hospitals:
Name:
Location:
Phone:
doctors: [array]
patients: [array]
Patients:
Name:
Age:
Weight:
Height:
history:
family:
hospital: link to objectId
DailyDosage:
date:
patientId:
Session: pre-breakfast, pre-lunch, pre-dinner, night
bloodsugar:
CarboLevel:
Insulin:
LonglastingInsulin:
Physicalactivity:
createdAt:
updatedAt:
Sickday:
PatientId:
date:
time:
bloodSugar:
Carbolevel:
Insulin:
LonglastingInsulin:
Gamification:
patientId:
date:
progress:
Entrytime:
badge count:
starCount:
TotalStars:
TotalBadges:
In dailydose and sickday tables, all fields except patientId are nested fields. Meaning when the new entry for a particular patient comes it gets updated as a inner object which will reduce time in searching.
The text was updated successfully, but these errors were encountered: