Skip to content
GJHanna edited this page May 17, 2020 · 8 revisions

Welcome to the MAPS wiki!

MAPS allows the user to sign-in, sign-up, reset-password, and verify email through Firebase. Firebase is a development platform, owned by Google, that allows developers to store data online. This platform offers a real-time database where it has its own backend service. The service provides application developers an API that allows application data to be synchronized across clients and stored on Firebase. This service also provides libraries that enable integration with Android, iOS, Java, and many more. This database is accessible using a key, which allows connecting using a secure https connection by using server-side-enforced security rules.
This online database is a NoSQL database data store where data is stored in a tree manner where every parent has a child and every child can have its own children.

Features of MAPS include:

- Adding a doctor
- Deleting a doctor
- Chatting with doctor
- View sensor values AM and PM
- User’s location
- View doctor’s notes and prescriptions

Firebase configuration has been changed in order to protect the data securely. No one who isn’t authenticated can change the database data. Only authenticated users can change the database. In order to change Firebase’s configuration in the “Database” page press on “Rule” after that change it to look like the figure below.

{
“rules”: {
“.read”: “auth != null”,
“.write”: “auth != null”
}
}

The structure of the database divided into the following: three main children “cKeys”, “patients”, and “doctors”. The “cKeys” child will store the messages from chats. The “patients” child will store the patient’s personal information, medical information, his/her notes and prescription, and his/her doctors. The “doctors” child will store the doctor’s personal information, his/her notes and prescription to the respective patient, and his/her patients. The three children’s models are down below. It should be noted that every timestamp uses UNIX since 1970-time interval.

Clone this wiki locally