this project help the user as a patient get a medical record realtime, help the user to make an appointment with doctor, and help the doctor organize the data
Doctor
Feature Doctor | Endpoint | Query Param | Request Body | JWT Token | Utility |
---|---|---|---|---|---|
POST | /login | - | indentity & password | NO | login user with indentity & passwords |
POST | /doctor | - | _ | NO | register doctor |
PUT | /doctor | - | - | YES | update current doctor profile |
DELETE | /doctor | - | - | YES | delete current doctor account |
GET | /doctor/profile | _ | - | YES | get current doctor profile |
GET | /doctor/all | - | - | YES | get all doctor |
Patient
Feature Patient | Endpoint | Query Param | Request Body | JWT Token | Utility |
---|---|---|---|---|---|
POST | /login | - | indentity & password | NO | login user with indentity & passwords |
POST | /patient | - | _ | NO | register patient |
DELETE | /patient | - | - | YES | delete current patient account |
PUT | /patient | - | - | YES | update current patient profile |
GET | /patient/profile | patient_uid | - | YES | get current patient profile |
Visit
Feature Visit | Endpoint | Query Param | Request Body | JWT Token | Utility |
---|---|---|---|---|---|
POST | /Visit | - | _ | NO | add visit |
PUT | /Visit/:visit_uid | - | - | YES | update visit detail |
DELETE | /Visit/:visit_uid | - | - | YES | delete current visit |
GET | /Visit | kind, uid, status, date, grouped | - | YES | get visit |
git clone https://github.com/MR-Clinic/be.git
touch .env
nano .env
PORT=8080
DB=mysql
DB_Name=<database name>
DB_PORT=3306
DB_HOST=localhot
DB_USERNAME=<username>/root
DB_PASSWORD=<password>
DB_LOC=Local
S3_REGION=<reqion AWS S3>/ap-southeast-1
S3_ID=<KEY ID AWS S3>
S3_SECRET=<SECRETKEY AWS S3>
mkdir credential
place credential.json for access google calendar API
here the reference link
Click Here!
mkdir credential
place token.json for access google calendar API
here the reference link
Click Here!
go run main.go