URL of the webapp:https://pharme.herokuapp.com
GitHub Repository: https://github.com/pranavlpin/pharmEasy/
First page of the app (/ or /index.html) is a login form for all the users, i.e. patients, doctors and pharmacists. Here user will login will be taken to their respective pages. Login details are there in the home page only.
Here when user comes, he has the option to view all pending requests, and he can approve them as he likes.
Here when doctor logins, he has an option to first view all patients.
When the doctor clicks on View Prescription, if the user has already approved his existing request, then he will be able to view the prescription. Else he will get the message that user has not approved you request, and the doctor will have a button to send new request to the user.
Models used along with their properties of each model are following:
- username: unique username of user
- password: password of the user
- access: access to identify if he is Doctor, patient or pharmacist
- userId: For authentication, linked to User model
- name
- phone
- address
- age
- gender
- userId: For authentication, linked to User model
- name
- phone
- address
- age
- gender
- userId : For authentication, linked to User model
- name
- phone
- address
- age
- gender
- PatientId: ID of the patient
- Medicines: Name of medicines
- Doses: Dose of medicine
- patientDetail: ID of the patient
- doctorDetail: ID of the doctor
- pharmacistDetail: ID of the pharmacist
- requestApproved: Binary: true if patient has approved request
"/login": API to login into APP
"/users": To Get all users and Post new user
"/users/:user_id": To Get, Put, Post a particular user
"/doctors": To Get all doctors and Post new doctor
"/doctors/:doctor_id": Get, Put, Post a particular Doctor
"/pharmacists": To Get all pharmacists and Post new Pharmacist
"/pharmacists/:pharmacist_id": Get, Put, Post a particular Pharmacist
"/patients": To Get all Patients and Post new Patient
"/patients/:patient_id": Get, Put, Post a particular Patient
"/prescriptions": To Get all Prescriptions and Post new Prescription
"/prescriptions/:prescription_id": Get, Put, Post a particular prescription
"/requests": Get all Requests and Post new Request
"/requests/:request_id": Get, Put, Post a particular Approval request
"/doctorPatientRequest": Post request to get requests from a particular doctor to the particular patient
"/pharmacistPatientRequest": Post request to get requests from a particular pharmacist to the particular patient
"/patientRequests": Post request to get all approval requests sent to the particular patient
"/patientPrescriptions": Post request to get prescriptions of the particular patient