-
Notifications
You must be signed in to change notification settings - Fork 0
/
health.js
69 lines (46 loc) · 2.12 KB
/
health.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
base url is http://techapis.xyz:4400/
Register a new patient with
baseUrl/register/patientName/patientSurname/patientSurname/patientBdae/patientBdae/patientAddress/patientAddress/patientEmail/patientEmail/patientPhone/patientPhone/patientGender/patientGender/patientPassword/patientPassword/addedBy/addedBy/nextOfKin1/nextOfKin1/nextOfKin2/nextOfKin2
The above request returns the id as the file number on success, returns 0 on failure
Get patient details
baseUrl/getMyDetails/fileNo
The above url returns json data
Get patient medical Records
baseUrl/getMedicalHistory/fileNo
The above url returns json data
//GET all doctors
baseUrl/getAllPractitioners
//returns json data
//get practitioners By city
baseUrl/getPractitionersByCity/specialization/country/country/city/city
//returns json data
//get practitioner By Email
baseUrl/getPractitionerByEmail/emailAddress
//returns json data
//get practitioners By distance
baseUrl/getPractitionersByDistance/specialization/latitude/latitude/longitude/longitude
//returns json data
//setup appointment
baseUrl/setAppointment/fileNo/patientName/patientName/contact/contact/reason/reason/preferredTime/preferredTime/practitionerId/practitionerId
//returns bolean, true for success, false for error
//Login use
baseUrl/patientLogin/patientEmail/patientPassword/patientPassword
//returns json data
//get all my appointments
baseUrl/getMyAppointments/fileNo
//returns json data
//get police posts/warnings
baseUrl/getPolicePosts/latitude/longitude/longitude
//returns json data
//post a tip of to the nearest police... About tip of could be rape, fraud, robbery etc. SendBy police will only be saved on our database but it wont be published to the police
/postTipOf/latitude/longitude/longitude/aboutTipOf/aboutTipOf/details/details/location/location/timeSend/timeSend/sendBy/sendBy
//returns json data
//get all emergency services
/getEmergencyAllServices
// returns json data
//get emergency service by category
/getEmergencyServicesByCategory/subCategory
//return json data
//update emergency service location with this api
/updateLocation/regId/latitude/latitude/longitude/longitude
// returns bolean