Professional Documents
Culture Documents
Fast Ambulance Database
Fast Ambulance Database
Login : GOR0096
1- Project specification:
Motivation:
In a world that is over populated and there’s no city that doesn’t suffer
from a traffic jams ,heart attacks and other accidents kills more and more
people and this can be solved by simply providing fast aiding to the
patients but how ?
Roles:
The role with the highest privileges will be the system admin, who’s
responsible of management the system and monitor user activities
(Monitoring malicious activities especially from the paramedics) also upload
video tutorials for the paramedics . Furthermore, the system will be used by
paramedics and they will be the ones whom responses for emergencies and
finally Patient (or the case) the system will monitor their vitals and alarm the
paramedics when needed so basically the Patient will send emergency calls
when needed to the paramedics this is their only role in the system.
Inputs:
The system will mainly deal with patients who have emergencies and the
paramedic should response to these cases.
3. In case of registering a new user we will need his (age, name, email ,
password).
The system will show the list of cases after being saved in the cases table for
the paramedics with in 10 KM ,The cases table will save the GeoLocation for
the case and the system will compare this GeoLocation with the live
GeoLocation of the paramedic.
The system will to the case which paramedic is coming to save him after the
acceptance and also show the same result to the system admin.
The system will show the list of tutorials mandatory for the paramedic to
watch so he can be verified as a paramedic and each tutorial will have list of
videos which the paramedic will have to finish before get his certificate .
Finally a full data representation will be shown to the system admin like the
list of cases and the list of paramedics and certifications of paramedics and
etc..
Functions:
The main task of the system is provide free services and save cases life
through giving a quick assistance through a trained paramedic therefore we
will make sure that they’ve the proper training and they watched the right
tutorials through a cronjob which will update the paramedics table and
change is authorized to true if he posses the right courses and tutorials.
2- Data Analysis
Conceptual Data Model:
Relational Data Model
Data Dictionary:
Table Admins
Table Certifications
Table Paramedics
Table Users
Table Paramedics_Tutorials
Table Cases
Table Tutorials
Table Videos
Integrity restrictions:
location_lat : must follow latitude specific format 8 digits before the point and 6 digits after the point.
location_long : must follow longitude specific format 9 digits before the point and 6 digits after the point.
finished_percentage : must have max value of 100.
Functional Analysis:
1. User Management:
Responsibility: User
• 1.A: Registering a new user: The system should allow users to register by providing their name, age,
email, and password.
• 1.B: User login: The system should allow registered users to log in using their email and password.
• 1.C: Send SOS signal: The User should be able to send an SOS signal to the nearby Paramedics with
longitude and latitude.
• 1.D: Get user data : The System should return the user data after login.
2. Paramedic Management:
Responsibility: Paramedic.
• 2.A: Registering a new paramedic: The system should allow the admin to register new paramedics by
providing their name, age, email, and password and assign all of the tutorials available to the
paramedics.
• 2.B: Paramedic login: The system should allow registered paramedics to log in using their email and
password.
• 2.C: Watching Video Tutorial: The system should allow the paramedic to see video tutorials and
complete them.
• 2.E: Calculating the percentage of tutorial: The system should provide the percentage of completion of
the tutorial.
• 2.F: Get list of video tutorials for each tutorial: The system should provide list of tutorial per each
tutorial with progress to the paramedic.
• 2.G: Get list of tutorials: The system should provide list of tutorials combined with progress of each
tutorial
• 2.H: Get Paramedic data: The system should return paramedic data after login.
• 2.L: Accept Case : The system should allow the paramedic to accept the cases if still not accepted and
also disable auto accept if it’s on.
• 2.M: Get list of Active Cases: The system should allow the paramedic to get list of active cases within
10km from his position.
• 2.N: Update Auto Accept: The system should update the auto update to YES or NO
3. Tutorial Management:
Responsibility: Paramedic and Admin.
• 3.A: Creating a new tutorial: The system should allow the admin to create new tutorials by providing a
name and description and assign this video tutorial to all of the paramedics. Responsibility: Admin only.
• 3.B: Adding videos to a tutorial: The system should allow the admin to add videos to a tutorial by
providing a URL and tutorial ID. Responsibility: Admin only
• 3.C: Paramedic tutorial registration: The system should allow paramedics to register for tutorials by
providing their ID and tutorial ID. Responsibility: Paramedic
4. System Administration:
Responsibility: Admin.
4.A: The System should show the statistics of cases compared to the paramedics per year and show it
inside of a Graph in side of the main page.
4.B: The System should show the list of paramedics with their tutorial which is finished and videos and
when the tutorial is finished and when they got the certification of complication of the tutorial and this
query have some filters like happened in and paramedic name and case name and case description and
all of these filters are optional.
4.C: Getting the paramedics with their tutorials and video tutorials associated with these tutorials and
also check if it’s finished or not and get with finished or not and with tutorial name and paramedic
name and finished at but all of these filters are optional.
This function should simply get statistics of the paramedics compared to the number of cases
per each year.
4.B-Get List of the paramedics with tutorials:
Inputs:
• #paramedicName – Name of paramedic – not mandatory can be null
This function should simply get list of paramedics with their tutorials and video .
4.C-Get Cases with paramedics :
Inputs:
• #paramedicName – Name of paramedic – not mandatory can be null
The function should get the list of cases along side with the paramedic saved
the case and the date of the case.
3.A-Create new tutorial:
Inputs:
• #name – Name of the tutorial – mandatory.
The Function should create tutorials and create videos and associate it with
them and finally assign the tutorials to the paramedics
2.A: Registering a new paramedic
Inputs:
• #password – password of the paramedic
• #email – email of the paramedic
• #date_of_birth – date of birth of the paramedic
• #name – name of the paramedic
Inputs:
• #lat – the latitude of case
• #long – the longitude of case
• #description – description for the case.
• #name – name of the user
The function should send A SOS signal to the paramedics but also the transaction
will search the database of the nearest by paramedic that have is accepting = 1
if found assign the case should be assigned on the paramedic immediately.