-
Notifications
You must be signed in to change notification settings - Fork 1
OutPatient
Syarif Ubaidillah edited this page Jul 12, 2022
·
2 revisions
Setiap fitur yang memiliki header
Authorizationberarti harus login untuk mendapatkanaccess_tokendanrefresh_token.
Setiap fitur yang memiliki
Query Paramdapat digunakan seperti ini/api/example?paramA=12¶mB=331.
Fitur terbatas pada role Administrator
| Method | Path |
|---|---|
| POST | /api/outpatient |
| Header | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <access_token> |
{
"patient_code": "RM00001",
"complaint": "sakit perut",
"date_check": "2022-06-24",
"facility_id": 1,
"session_id": 1
"doctor_code": "DR00002",
}{
"message": "Medic Record Created",
}| Method | Path |
|---|---|
| GET | /api/outpatient |
| Header | Value |
|---|---|
| Authorization | Bearer <access_token> |
| Query Param | Data Type | Format |
|---|---|---|
| date_start | String | yyyy-mm-dd |
| date_end | String | yyyy-mm-dd |
{
"data": [
{
"id": 1,
"serial_number": "RM/748/2022/001",
"patient_code": "RM0001",
"full_name": "Faizur Ramadhan",
"complaint": "sakit perut",
"date_check": "2022-06-22",
"doctor": "Alsyad Ahmad",
"nurse": "Priscilla Halim",
"session": "08:00",
"queue": 1
}
],
"message": "Medic Record Fetched"
}| Method | Path |
|---|---|
| GET | /api/outpatient/{id} |
| Header | Value |
|---|---|
| Authorization | Bearer <access_token> |
{
"data": {
"id": 1,
"serial_number": "RM/748/2022/001",
"patient_code": "RM0001",
"full_name": "Faizur Ramadhan",
"complaint": "sakit perut",
"date_check": "2022-06-22",
"doctor": "Alsyad Ahmad",
"session": "08:00",
"queue": 1,
"medic_check": {
"blood_tension": 120,
"height": 50,
"weight": 150,
"body_temp": 35,
"nurse": "Priscilla Halim"
}
},
"message": "Medic Record Fetched"
}Fitur terbatas pada role Dokter dan Perawat
| Method | Path |
|---|---|
| POST | /api/outpatient/{id}/process |
| Header | Value |
|---|---|
| Content-Type | application/json |
| Authorization | Bearer <access_token> |
- Dokter
{ "diagnose": "Migrain", "prescription": "Mixagrip Migrain", } - Perawat
{ "body_temp": 36, "weight": 55, "height": 165, "blood_tension": 122, }
{
"message": "Medic Record Processed"
}Fitur terbatas pada role Dokter dan Perawat
| Method | Path |
|---|---|
| GET | /api/outpatient/log |
| Header | Value |
|---|---|
| Authorization | Bearer <access_token> |
{
"message": "Log Fetched"
"data": [
{
"serial_number": "RM/754/22/0001"
}
]
}Fitur terbatas pada role Administrator
| Method | Path |
|---|---|
| GET | /api/outpatient/report |
| Header | Value |
|---|---|
| Authorization | Bearer <access_token> |
{
"data": [
{
"id": 1,
"serial_number": "RM/748/2022/001",
"code": "RM0001",
"full_name": "Faizur Ramadhan",
"complaint": "sakit perut",
"date_check": "2022-06-22",
"doctor": "Alsyad Ahmad",
"session": "08:00",
"queue": 1
}
],
"message": "Report Fetched"
}