Info
{lang} = id/en
id = indonesian language
en = english language
Authentication
In order to use the API, you should authenticate your request by including your API key as a bearer token value:
Authorization: Bearer API_KEY_HERE
Headers
Make sure you have the following content type headers are set on every request:
Authentication: Bearer API_KEY_HERE
Patient Category
List patient category
Example request:
curl -X GET "http://api.mahircare.com/{lang}/patient/category/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/patient/category/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 4,
"per_page": "1",
"current_page": 1,
"last_page": 4,
"from": 1,
"to": 1,
"data": [
{
"id": 2,
"name": "Gold",
"default": 0
}
],
"error": false
}
HTTP Request
GET {lang}/patient/category/clinic/{id_clinic}
HEAD {lang}/patient/category/clinic/{id_clinic}
Create patient category
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| name | string | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/patient/category" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/patient/category",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/patient/category
Get patient category
Example request:
curl -X GET "http://api.mahircare.com/{lang}/patient/category/{category}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/patient/category/{category}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1,
"error": false
}
HTTP Request
GET {lang}/patient/category/{category}
HEAD {lang}/patient/category/{category}
Update patient category
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | optional | |
| name | string | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/patient/category/{category}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/patient/category/{category}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/patient/category/{category}
PATCH {lang}/patient/category/{category}
Delete patient category
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/patient/category/{category}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/patient/category/{category}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/patient/category/{category}
Service Category
List service category
Example request:
curl -X GET "http://api.mahircare.com/{lang}/service/category/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/category/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 4,
"per_page": "1",
"current_page": 1,
"last_page": 4,
"from": 1,
"to": 1,
"data": [
{
"id": 10,
"name": "00"
}
],
"error": false
}
HTTP Request
GET {lang}/service/category/clinic/{id_clinic}
HEAD {lang}/service/category/clinic/{id_clinic}
Create service category
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| name | string | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/service/category" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/category",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/service/category
Get service category
Example request:
curl -X GET "http://api.mahircare.com/{lang}/service/category/{category}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/category/{category}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_clinic": 1,
"name": "General",
"error": false
}
HTTP Request
GET {lang}/service/category/{category}
HEAD {lang}/service/category/{category}
Update service category
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | optional | |
| name | string | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/service/category/{category}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/category/{category}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/service/category/{category}
PATCH {lang}/service/category/{category}
Delete service category
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/service/category/{category}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/category/{category}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/service/category/{category}
Clinic
List clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 2,
"per_page": "1",
"current_page": 1,
"last_page": 2,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"province": "Jawa Timur",
"country": "Indonesia",
"postal_code": "67153",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null,
"poly": [
{
"id": 6,
"name": "Poliklinik Bedah Tulang",
"english_name": "Bone Surgical Polyclinic",
"indonesian_name": "Poliklinik Bedah Tulang"
},
{
"id": 13,
"name": "Poliklinik Fisioterapi",
"english_name": "Physiotherapy Polyclinic",
"indonesian_name": "Poliklinik Fisioterapi"
},
{
"id": 3,
"name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic",
"indonesian_name": "Poliklinik Gigi"
},
{
"id": 9,
"name": "Poliklinik Kulit dan Kelamin",
"english_name": "Skin and Sex Polyclinic",
"indonesian_name": "Poliklinik Kulit dan Kelamin"
},
{
"id": 14,
"name": "yyyyy",
"english_name": "yyyyy",
"indonesian_name": "yyyyy"
}
],
"user": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"photo": null,
"email_verification": 1
},
"suspended": false
}
],
"error": false
}
HTTP Request
GET {lang}/clinic
HEAD {lang}/clinic
Create clinic
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_user | integer | required | |
| name | string | required | |
| string | required | email type, unique | |
| phone | integer | required | |
| address | string | optional | |
| districts | string | optional | |
| city | string | optional | |
| province | string | optional | |
| postal_code | string | optional | |
| country | string | optional | |
| latitude | integer | optional | map latitude |
| longitude | integer | optional | map loingitude |
| logo | image | optional | maximum: 500kb, image (jpeg, jpg, bmp, png) |
| banner | image | optional | maximum: 500kb, image (jpeg, jpg, bmp, png) |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/clinic" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/clinic
Get clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic/{clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null,
"user": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"photo": null,
"email_verification": 1
},
"poly": [
{
"id": 6,
"name": "Bone Surgical Polyclinic",
"english_name": "Bone Surgical Polyclinic",
"indonesian_name": "Poliklinik Bedah Tulang"
},
{
"id": 3,
"name": "Dental Polyclinic",
"english_name": "Dental Polyclinic",
"indonesian_name": "Poliklinik Gigi"
},
{
"id": 13,
"name": "Physiotherapy Polyclinic",
"english_name": "Physiotherapy Polyclinic",
"indonesian_name": "Poliklinik Fisioterapi"
},
{
"id": 9,
"name": "Skin and Sex Polyclinic",
"english_name": "Skin and Sex Polyclinic",
"indonesian_name": "Poliklinik Kulit dan Kelamin"
},
{
"id": 14,
"name": "yyyyy",
"english_name": "yyyyy",
"indonesian_name": "yyyyy"
}
],
"setting": {
"id": 1,
"id_clinic": 1,
"setup": "",
"help_setup": 0,
"help_price": 0,
"help_hospitalization": 0,
"help_action_hospitalization": 0
},
"suspended": false,
"error": false
}
HTTP Request
GET {lang}/clinic/{clinic}
HEAD {lang}/clinic/{clinic}
Update clinic
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| name | string | optional | |
| string | optional | email type | |
| phone | integer | optional | |
| address | string | optional | |
| districts | string | optional | |
| city | string | optional | |
| province | string | optional | |
| postal_code | string | optional | |
| country | string | optional | |
| latitude | integer | optional | map latitude |
| longitude | integer | optional | map loingitude |
| logo | image | optional | maximum: 500kb, image (jpeg, jpg, bmp, png) |
| banner | image | optional | maximum: 500kb, image (jpeg, jpg, bmp, png) |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/clinic/{clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{clinic}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/clinic/{clinic}
PATCH {lang}/clinic/{clinic}
List clinic doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic/doctor/{id_doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/doctor/{id_doctor}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 1,
"per_page": "1",
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"province": "Jawa Timur",
"country": "Indonesia",
"postal_code": "67153",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null,
"poly": {
"id": 3,
"indonesian_name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic",
"name": "Dental Polyclinic"
},
"user": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"photo": null,
"email_verification": 1
},
"suspended": false,
"schedule_doctor": null,
"time_schedule_doctor": null
}
],
"error": false
}
HTTP Request
GET {lang}/clinic/doctor/{id_doctor}
HEAD {lang}/clinic/doctor/{id_doctor}
Reset logo clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic/{id}/logo/reset" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id}/logo/reset",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/clinic/{id}/logo/reset
HEAD {lang}/clinic/{id}/logo/reset
Reset banner clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic/{id}/banner/reset" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id}/banner/reset",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/clinic/{id}/banner/reset
HEAD {lang}/clinic/{id}/banner/reset
Setting clinic
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| setup | boolean | optional | |
| help_setup | boolean | optional | |
| help_price | boolean | optional | |
| help_hospitalization | boolean | optional | |
| help_action_hospitalization | boolean | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/clinic/{id}/setting" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id}/setting",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/clinic/{id}/setting
Commission doctor
List commission doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/commission/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/commission/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 2,
"per_page": "1",
"current_page": 1,
"last_page": 2,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"id_clinic": 1,
"name": "Komisi 1",
"id_poly": 9,
"type": "$",
"commission": 100,
"poly": {
"id": 9,
"indonesian_name": "Poliklinik Kulit dan Kelamin",
"english_name": "Skin and Sex Polyclinic",
"name": "Skin and Sex Polyclinic"
},
"service": [
{
"id": 1,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 1",
"code": "L01",
"cost": 100,
"admin_cost": 100,
"implementer": 1,
"note": "a<br \/>\r\n<br \/>\r\nb"
},
{
"id": 2,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 2",
"code": "L002",
"cost": 1000,
"admin_cost": 0,
"implementer": 0,
"note": ""
}
],
"doctor": [
{
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
}
],
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
}
}
],
"error": false
}
HTTP Request
GET {lang}/commission/clinic/{id_clinic}
HEAD {lang}/commission/clinic/{id_clinic}
Create commission doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| id_poly | integer | required | |
| name | string | required | |
| service | array | required | |
| doctor | array | required | |
| type | string | required | $ or % |
| commission | integer | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/commission" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/commission",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/commission
Get commission doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/commission/{commission}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/commission/{commission}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_clinic": 1,
"id_poly": 9,
"name": "Komisi 1",
"type": "$",
"commission": 100,
"poly": {
"id": 9,
"indonesian_name": "Poliklinik Kulit dan Kelamin",
"english_name": "Skin and Sex Polyclinic",
"name": "Skin and Sex Polyclinic"
},
"service": [
{
"id": 1,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 1",
"code": "L01",
"cost": 100,
"admin_cost": 100,
"implementer": 1,
"note": "a<br \/>\r\n<br \/>\r\nb"
},
{
"id": 2,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 2",
"code": "L002",
"cost": 1000,
"admin_cost": 0,
"implementer": 0,
"note": ""
}
],
"doctor": [
{
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
}
],
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"error": false
}
HTTP Request
GET {lang}/commission/{commission}
HEAD {lang}/commission/{commission}
Update commission doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | optional | |
| id_poly | integer | optional | |
| name | string | optional | |
| service | array | optional | |
| doctor | array | optional | |
| type | string | optional | $ or % |
| commission | integer | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/commission/{commission}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/commission/{commission}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/commission/{commission}
PATCH {lang}/commission/{commission}
Delete commission doctor
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/commission/{commission}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/commission/{commission}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/commission/{commission}
Dashboard
Dashboard patient hospitalization clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient_hospitalization" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient_hospitalization",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"patient_hospitalization_before": null,
"patient_hospitalization_now": 1
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/patient_hospitalization
HEAD {lang}/dashboard/clinic/{id_clinic}/patient_hospitalization
Dashboard patient hospitalization unconfimed clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient_hospitalization_unconfirmed" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient_hospitalization_unconfirmed",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"total": 4
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/patient_hospitalization_unconfirmed
HEAD {lang}/dashboard/clinic/{id_clinic}/patient_hospitalization_unconfirmed
Dashboard patient medical records clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient_medical" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient_medical",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"patient_medical_before": null,
"patient_medical_now": null
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/patient_medical
HEAD {lang}/dashboard/clinic/{id_clinic}/patient_medical
Dashboard doctor practice clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/doctor_practice" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/doctor_practice",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"doctor_practice_before": 2,
"doctor_practice_now": 3
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/doctor_practice
HEAD {lang}/dashboard/clinic/{id_clinic}/doctor_practice
Dashboard doctor leave clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/doctor_leave" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/doctor_leave",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"doctor_leave_before": 0,
"doctor_leave_now": 0
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/doctor_leave
HEAD {lang}/dashboard/clinic/{id_clinic}/doctor_leave
Dashboard all patient hospitalization clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient_all_hospitalization_medical" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient_all_hospitalization_medical",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"patient_hospitalization": 4,
"patient_medical": null,
"date": "2017-07-12"
},
{
"patient_hospitalization": 1,
"patient_medical": null,
"date": "2017-07-17"
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/patient_all_hospitalization_medical
HEAD {lang}/dashboard/clinic/{id_clinic}/patient_all_hospitalization_medical
Dashboard income clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/income" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/income",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"income": "9128",
"income_now": null
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/income
HEAD {lang}/dashboard/clinic/{id_clinic}/income
Dashboard service clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/service" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/service",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/service
HEAD {lang}/dashboard/clinic/{id_clinic}/service
Dashboard icd clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/icd" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/icd",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"category": "A00",
"subcategory": "0",
"english_name": "Cholera due to Vibrio cholerae 01, biovar cholerae",
"indonesian_name": "Kolera yang disebabkan oleh Vibrio cholerae 01, biovar cholerae",
"total": 1
},
{
"category": "A01",
"subcategory": "",
"english_name": "Typhoid and paratyphoid fevers",
"indonesian_name": "Demam tifoid dan paratifoid",
"total": 1
},
{
"category": "A00",
"subcategory": "",
"english_name": "Cholera",
"indonesian_name": "Kolera",
"total": 1
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/icd
HEAD {lang}/dashboard/clinic/{id_clinic}/icd
Dashboard doctor clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/doctor" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/doctor",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"doctor": {
"id": 12,
"name": "Dokter",
"email": "moh.chilman2@gmail.com",
"password": "e10adc3949ba59abbe56e057f20f883e",
"phone_code": "62",
"phone": "878567672972",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1,
"last_login": null,
"remember_token": null,
"created_at": "2017-06-04 09:14:38",
"updated_at": "2017-06-05 10:27:45"
},
"poly": null,
"schedule": [
{
"start_time": "14:54:00",
"end_time": "20:54:00"
}
]
},
{
"doctor": {
"id": 13,
"name": "aaa",
"email": "aku@mail.com",
"password": "9af0e2a08ab1a0fc10c963ce97fdbe01",
"phone_code": "62",
"phone": "654657657657567",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 0,
"last_login": null,
"remember_token": null,
"created_at": "2017-06-06 15:04:13",
"updated_at": "2017-06-06 15:04:13"
},
"poly": null,
"schedule": [
{
"start_time": "06:19:00",
"end_time": "07:19:00"
}
]
},
{
"doctor": {
"id": 16,
"name": "Chilman",
"email": "moh.chilman@gmail.com",
"password": "$2y$10$pb\/OQKTlzUsDtnrqXhjxfOJnEerXzD.KTfTJZ3NHCXGb1ehN8cs7K",
"phone_code": "62",
"phone": "87856767297",
"address": "sda",
"districts": null,
"city": null,
"province": null,
"country": null,
"postal_code": null,
"note": "a<br \/>\r\n<br \/>\r\nb",
"photo": null,
"change_password": 1,
"last_login": "2017-07-17 15:33:41",
"remember_token": null,
"created_at": "2017-07-05 18:12:17",
"updated_at": "2017-07-17 15:33:41"
},
"poly": null,
"schedule": [
{
"start_time": "21:25:00",
"end_time": "22:25:00"
}
]
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/doctor
HEAD {lang}/dashboard/clinic/{id_clinic}/doctor
Dashboard patient clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/clinic/{id_clinic}/patient",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"patient": {
"id": 11,
"name": "ChilChan2",
"email": "moh.chilman@gmail.com",
"password": "$2y$10$Sy9vnHg\/AAa64kZJI008JuDGA9LNkS\/re4h8k\/Ah82WPA4eAZzyl2",
"phone_code": "62",
"phone": "87856767297",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": null,
"id_type": null,
"identity": null,
"address": null,
"districts": null,
"city": null,
"province": null,
"country": null,
"postal_code": null,
"photo": "20170716185342.png",
"last_login": null,
"remember_token": null,
"created_at": "2017-07-06 05:07:16",
"updated_at": "2017-07-16 18:53:44"
},
"poly": {
"id": 3,
"indonesian_name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic",
"created_at": "2017-03-03 14:11:47",
"updated_at": "2017-03-03 14:11:47",
"name": null
},
"doctor": {
"id": 16,
"name": "Chilman",
"email": "moh.chilman@gmail.com",
"password": "$2y$10$pb\/OQKTlzUsDtnrqXhjxfOJnEerXzD.KTfTJZ3NHCXGb1ehN8cs7K",
"phone_code": "62",
"phone": "87856767297",
"address": "sda",
"districts": null,
"city": null,
"province": null,
"country": null,
"postal_code": null,
"note": "a<br \/>\r\n<br \/>\r\nb",
"photo": null,
"change_password": 1,
"last_login": "2017-07-17 15:33:41",
"remember_token": null,
"created_at": "2017-07-05 18:12:17",
"updated_at": "2017-07-17 15:33:41"
},
"start_time": "21:30:00",
"end_time": "22:25:00",
"appointment": "21:30:00",
"number": null
}
]
HTTP Request
GET {lang}/dashboard/clinic/{id_clinic}/patient
HEAD {lang}/dashboard/clinic/{id_clinic}/patient
Dashboard patient hospitalization doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/doctor/{id_doctor}/patient_hospitalization" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/doctor/{id_doctor}/patient_hospitalization",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"patient_hospitalization_before": null,
"patient_hospitalization_now": null
}
]
HTTP Request
GET {lang}/dashboard/doctor/{id_doctor}/patient_hospitalization
HEAD {lang}/dashboard/doctor/{id_doctor}/patient_hospitalization
Dashboard patient hospitalization unconfimed doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/doctor/{id_doctor}/patient_hospitalization_unconfirmed" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/doctor/{id_doctor}/patient_hospitalization_unconfirmed",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"total": 0
}
]
HTTP Request
GET {lang}/dashboard/doctor/{id_doctor}/patient_hospitalization_unconfirmed
HEAD {lang}/dashboard/doctor/{id_doctor}/patient_hospitalization_unconfirmed
Dashboard patient medical doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/doctor/{id_doctor}/patient_medical" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/doctor/{id_doctor}/patient_medical",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"patient_medical_before": null,
"patient_medical_now": null
}
]
HTTP Request
GET {lang}/dashboard/doctor/{id_doctor}/patient_medical
HEAD {lang}/dashboard/doctor/{id_doctor}/patient_medical
Dashboard patient doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/dashboard/doctor/{id_doctor}/patient" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/dashboard/doctor/{id_doctor}/patient",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[]
HTTP Request
GET {lang}/dashboard/doctor/{id_doctor}/patient
HEAD {lang}/dashboard/doctor/{id_doctor}/patient
Doctor
List doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/doctor" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 6,
"per_page": "1",
"current_page": 1,
"last_page": 6,
"from": 1,
"to": 1,
"data": [
{
"id": 13,
"name": "aaa",
"email": "aku@mail.com",
"phone_code": "62",
"phone": "654657657657567",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 0,
"poly": [
{
"id": 13,
"name": "Poliklinik Fisioterapi",
"english_name": "Physiotherapy Polyclinic",
"indonesian_name": "Poliklinik Fisioterapi"
}
]
}
],
"error": false
}
HTTP Request
GET {lang}/doctor
HEAD {lang}/doctor
Get doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/doctor/{doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{doctor}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1,
"poly": [
{
"id": 3,
"name": "Dental Polyclinic",
"english_name": "Dental Polyclinic",
"indonesian_name": "Poliklinik Gigi"
}
],
"setting": {
"id": 2,
"id_doctor": 1,
"help_action_hospitalization": 0
},
"error": false
}
HTTP Request
GET {lang}/doctor/{doctor}
HEAD {lang}/doctor/{doctor}
Update doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| name | string | optional | |
| string | optional | email type, unique | |
| password | string | optional | minimum: 6 |
| password_confirmation | string | optional | minimum: 6 |
| phone_code | integer | optional | |
| phone | integer | optional | unique |
| address | string | optional | |
| districts | string | optional | |
| city | string | optional | |
| province | string | optional | |
| postal_code | string | optional | |
| country | string | optional | |
| note | string | optional | |
| photo | image | optional | maximum: 500kb, image (jpeg, jpg, bmp, png) |
| change_password | boolean | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/doctor/{doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{doctor}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/doctor/{doctor}
PATCH {lang}/doctor/{doctor}
Login doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| string | required | email/phone | |
| password | string | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/doctor/login" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/login",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/doctor/login
Search doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| string | optional | ||
| phone | integer | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/doctor/search" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/search",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/doctor/search
Forgot password doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| string | required | email type |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/doctor/password/forgot" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/password/forgot",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/doctor/password/forgot
Get reset password doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/doctor/password/reset/{token}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/password/reset/{token}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/doctor/password/reset/{token}
HEAD {lang}/doctor/password/reset/{token}
Reset password doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| password | string | required | Minimum: 6 |
| password_confirmation | required | required | Minimum: 6 |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/doctor/password/reset/{token}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/password/reset/{token}",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/doctor/password/reset/{token}
Check password doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| password | string | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/doctor/{id}/password" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id}/password",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/doctor/{id}/password
Reset photo doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/doctor/{id}/photo/reset" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id}/photo/reset",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/doctor/{id}/photo/reset
HEAD {lang}/doctor/{id}/photo/reset
List doctor clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 6,
"per_page": "1",
"current_page": 1,
"last_page": 6,
"from": 1,
"to": 1,
"data": [
{
"id": 17,
"id_doctor": 13,
"id_clinic": 1,
"id_poly": 13,
"name": "aaa",
"email": "aku@mail.com",
"phone_code": "62",
"phone": "654657657657567",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"poly": {
"id": 13,
"indonesian_name": "Poliklinik Fisioterapi",
"english_name": "Physiotherapy Polyclinic",
"name": "Physiotherapy Polyclinic"
},
"schedule_doctor": {
"id": 6,
"id_doctor": 13,
"id_clinic": 1,
"start_date_active": "2017-06-09",
"end_date_active": "9999-12-31",
"start_date_leave": "0000-00-00",
"end_date_leave": "0000-00-00"
},
"time_schedule_doctor": [
{
"id": 13,
"id_schedule_doctor": 6,
"day": 1,
"start_time": "06:19:00",
"end_time": "07:19:00",
"appointment": 0,
"max_register": 5,
"estimate": 30
}
]
}
],
"error": false
}
HTTP Request
GET {lang}/clinic/{id_clinic}/doctor
HEAD {lang}/clinic/{id_clinic}/doctor
Create doctor clinic
Parameters create new doctor
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_poly | integer | ||
| name | string | required | |
| string | required | email type, unique | |
| phone_code | integer | required | |
| phone | integer | required | unique |
| address | string | optional | |
| districts | string | optional | |
| city | string | optional | |
| province | string | optional | |
| postal_code | string | optional | |
| country | string | optional | |
| note | string | optional |
Parameters create doctor clinic
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_doctor | integer | required | |
| id_poly | integer | required | |
| name | string | optional | |
| string | optional | email type, unique | |
| phone_code | integer | optional | |
| phone | integer | optional | unique |
| address | string | optional | |
| districts | string | optional | |
| city | string | optional | |
| province | string | optional | |
| postal_code | string | optional | |
| country | string | optional | |
| note | string | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/clinic/{id_clinic}/doctor
Get doctor clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor/{doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor/{doctor}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null,
"user": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"photo": null,
"email_verification": 1
},
"poly": [
{
"id": 6,
"name": "Bone Surgical Polyclinic",
"english_name": "Bone Surgical Polyclinic",
"indonesian_name": "Poliklinik Bedah Tulang"
},
{
"id": 3,
"name": "Dental Polyclinic",
"english_name": "Dental Polyclinic",
"indonesian_name": "Poliklinik Gigi"
},
{
"id": 13,
"name": "Physiotherapy Polyclinic",
"english_name": "Physiotherapy Polyclinic",
"indonesian_name": "Poliklinik Fisioterapi"
},
{
"id": 9,
"name": "Skin and Sex Polyclinic",
"english_name": "Skin and Sex Polyclinic",
"indonesian_name": "Poliklinik Kulit dan Kelamin"
},
{
"id": 14,
"name": "yyyyy",
"english_name": "yyyyy",
"indonesian_name": "yyyyy"
}
],
"setting": {
"id": 1,
"id_clinic": 1,
"setup": "",
"help_setup": 0,
"help_price": 0,
"help_hospitalization": 0,
"help_action_hospitalization": 0
},
"suspended": false,
"error": false
}
HTTP Request
GET {lang}/clinic/{id_clinic}/doctor/{doctor}
HEAD {lang}/clinic/{id_clinic}/doctor/{doctor}
Update doctor clinic
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_poly | integer | optional | |
| name | string | optional | |
| string | optional | email type, unique | |
| phone_code | integer | optional | |
| phone | integer | optional | unique |
| address | string | optional | |
| districts | string | optional | |
| city | string | optional | |
| province | string | optional | |
| postal_code | string | optional | |
| country | string | optional | |
| note | string | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor/{doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor/{doctor}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/clinic/{id_clinic}/doctor/{doctor}
PATCH {lang}/clinic/{id_clinic}/doctor/{doctor}
Delete doctor clinic
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor/{doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/doctor/{doctor}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/clinic/{id_clinic}/doctor/{doctor}
List schedule doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 1,
"per_page": "1",
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 1,
"data": [
{
"id": 4,
"id_schedule_doctor": 2,
"id_doctor": 1,
"id_clinic": 2,
"id_poly": null,
"doctor": {
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
},
"clinic": {
"id": 2,
"id_user": 2,
"name": "Klinik Demo",
"email": "chilman.fachrudik@gmail.com",
"phone": "08563274611",
"address": "Jl Soekarno Hatta",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9361558586532,
"longitude": 112.62547514288,
"logo": null,
"banner": null
},
"poly": {
"name": null
},
"schedule_doctor": {
"id": 2,
"id_doctor": 1,
"id_clinic": 2,
"start_date_active": "2017-05-29",
"end_date_active": "9999-12-31",
"start_date_leave": "0000-00-00",
"end_date_leave": "0000-00-00"
},
"day": 3,
"start_time": "15:40:00",
"end_time": "17:40:00",
"appointment": 1,
"max_register": 2,
"estimate": 30
}
],
"error": false
}
HTTP Request
GET {lang}/doctor/{id_doctor}/schedule
HEAD {lang}/doctor/{id_doctor}/schedule
Create schedule doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| start_date_active | date | required | |
| end_date_active | date | optional | |
| schedule | array | required | [ ][0] = day (required) [ ][1] = start_time (required) [ ][2] = end_time (required) [ ][3] = appointment (optional) [ ][4] = estimate (required) [ ][5] = max_register (optional) |
| start_date_leave | date | optional | |
| end_date_leave | date | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/doctor/{id_doctor}/schedule
Update schedule doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| start_date_active | date | required | |
| end_date_active | date | optional | |
| schedule | array | required | [ ][0] = id_time_schedule_doctor (required) [ ][1] = day (required) [ ][2] = start_time (required) [ ][3] = end_time (required) [ ][4] = appointment (optional) [ ][5] = estimate (required) [ ][6] = max_register (optional) |
| start_date_leave | date | optional | |
| end_date_leave | date | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule/{schedule}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule/{schedule}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/doctor/{id_doctor}/schedule/{schedule}
PATCH {lang}/doctor/{id_doctor}/schedule/{schedule}
Delete schedule doctor
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule/{schedule}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule/{schedule}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/doctor/{id_doctor}/schedule/{schedule}
List calendar schedule doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule/calendar" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule/calendar",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 1,
"per_page": "1",
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 1,
"data": [
{
"id": 7,
"id_doctor": 1,
"id_clinic": 1,
"id_poly": 3,
"doctor": {
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
},
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"poly": {
"id": 3,
"indonesian_name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic",
"name": "Dental Polyclinic"
},
"schedule_doctor": null,
"time_schedule_doctor": null
}
],
"error": false
}
HTTP Request
GET {lang}/doctor/{id_doctor}/schedule/calendar
HEAD {lang}/doctor/{id_doctor}/schedule/calendar
Broadcast schedule
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| id_time_schedule_doctor | integer | required | |
| date | date | required | |
| message | string | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule/broadcast" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id_doctor}/schedule/broadcast",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/doctor/{id_doctor}/schedule/broadcast
Setting doctor
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| help_action_hospitalization | boolean | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/doctor/{id}/setting" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id}/setting",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/doctor/{id}/setting
Hospitalization
List hospitalization clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/hospitalization/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/hospitalization/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 47,
"per_page": "1",
"current_page": 1,
"last_page": 47,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"id_clinic": 1,
"clinic_name": "Klinik Chil",
"id_patient": 3,
"patient_name": "Ciiiiil2",
"id_poly": 3,
"poly_name": "Poliklinik Gigi",
"id_doctor": 4,
"doctor_name": "Dr. Chilman",
"id_time_schedule_doctor": 6,
"type": "outpatient",
"date": "2017-06-02",
"start_time": "17:38:00",
"end_time": "18:38:00",
"appointment": "07:00:00",
"number": 1,
"status": 2,
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"patient": {
"id": 3,
"name": "Ciiiiil2",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "2011-12-27",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"mrn": "100000002",
"id_patient_category": 3,
"financing": "insurance"
},
"poly": {
"id": 3,
"indonesian_name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic",
"name": "Dental Polyclinic"
},
"doctor": {
"id": 4,
"name": "Dr. Chilman",
"email": "moh.chilman3@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "Chilman",
"districts": "",
"city": "Malang",
"province": "Jawa Timur",
"country": "Indonesia",
"postal_code": "67153",
"note": "a<br \/>\r\n<br \/>\r\nb",
"photo": null,
"change_password": 0
},
"schedule_doctor": {
"id": 3,
"id_doctor": 4,
"id_clinic": 1,
"start_date_active": "2017-06-02",
"end_date_active": "9999-12-31",
"start_date_leave": "0000-00-00",
"end_date_leave": "0000-00-00"
},
"time_schedule_doctor": {
"id": 6,
"id_schedule_doctor": 3,
"day": 5,
"start_time": "17:38:00",
"end_time": "18:38:00",
"appointment": 0,
"max_register": 0,
"estimate": 30
},
"id_medical_records": null,
"estimate": "07:00:00",
"group_patient": 1,
"group_clinic": 1,
"group_doctor": 1
}
],
"error": false
}
HTTP Request
GET {lang}/hospitalization/clinic/{id_clinic}
HEAD {lang}/hospitalization/clinic/{id_clinic}
List hospitalization doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/hospitalization/doctor/{id_doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/hospitalization/doctor/{id_doctor}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 1,
"per_page": "1",
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 1,
"data": [
{
"id": 22,
"id_clinic": 2,
"clinic_name": "Klinik Demo",
"id_patient": 1,
"patient_name": "Chilman",
"id_poly": 3,
"poly_name": "Poliklinik Gigi",
"id_doctor": 1,
"doctor_name": "Dr. Chil",
"id_time_schedule_doctor": 4,
"type": "outpatient",
"date": "2017-06-14",
"start_time": "16:36:00",
"end_time": "17:40:00",
"appointment": "16:36:00",
"number": null,
"status": 1,
"clinic": {
"id": 2,
"id_user": 2,
"name": "Klinik Demo",
"email": "chilman.fachrudik@gmail.com",
"phone": "08563274611",
"address": "Jl Soekarno Hatta",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9361558586532,
"longitude": 112.62547514288,
"logo": null,
"banner": null
},
"patient": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"mrn": "200000001",
"id_patient_category": 6,
"financing": "personal"
},
"poly": {
"id": 3,
"indonesian_name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic",
"name": "Dental Polyclinic"
},
"doctor": {
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
},
"schedule_doctor": {
"id": 2,
"id_doctor": 1,
"id_clinic": 2,
"start_date_active": "2017-05-29",
"end_date_active": "9999-12-31",
"start_date_leave": "0000-00-00",
"end_date_leave": "0000-00-00"
},
"time_schedule_doctor": {
"id": 4,
"id_schedule_doctor": 2,
"day": 3,
"start_time": "15:40:00",
"end_time": "17:40:00",
"appointment": 1,
"max_register": 2,
"estimate": 30
},
"id_medical_records": null,
"estimate": "16:36:00",
"group_patient": 1,
"group_clinic": 1,
"group_doctor": 1
}
],
"error": false
}
HTTP Request
GET {lang}/hospitalization/doctor/{id_doctor}
HEAD {lang}/hospitalization/doctor/{id_doctor}
Create hospitalization
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| id_patient | integer | required | |
| id_clinic | integer | required | |
| id_poly | integer | required | |
| id_doctor | iinteger | required | |
| id_time_schedule_doctor | integer | required | |
| type | string | required | inpatient, outpatient |
| date | date | required | |
| appointment | time | optional |
Parameters new patient
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| name | string | required | |
| string | optional | email type, unique | |
| phone_code | integer | required | |
| phone | integer | required | unique |
| birth_date | date | required | |
| gender | boolean | required | male = false, female = true |
| id_clinic | integer | required | |
| id_poly | integer | required | |
| id_doctor | iinteger | required | |
| id_time_schedule_doctor | integer | required | |
| type | string | required | inpatient, outpatient |
| date | date | required | |
| appointment | time | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/hospitalization" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/hospitalization",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/hospitalization
Get hospitalization
Example request:
curl -X GET "http://api.mahircare.com/{lang}/hospitalization/{hospitalization}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/hospitalization/{hospitalization}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_clinic": 1,
"clinic_name": "Klinik Chil",
"id_patient": 3,
"patient_name": "Ciiiiil2",
"id_poly": 3,
"poly_name": "Poliklinik Gigi",
"id_doctor": 4,
"doctor_name": "Dr. Chilman",
"id_time_schedule_doctor": 6,
"type": "outpatient",
"date": "2017-06-02",
"start_time": "17:38:00",
"end_time": "18:38:00",
"appointment": "07:00:00",
"number": 1,
"status": 2,
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"patient": {
"id": 3,
"name": "Ciiiiil2",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "2011-12-27",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"mrn": "100000002",
"id_patient_category": 3,
"financing": "insurance",
"patient_category": {
"id": 3,
"id_clinic": 1,
"name": "Platinum",
"default": 0
}
},
"poly": {
"id": 3,
"indonesian_name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic",
"name": "Dental Polyclinic"
},
"doctor": {
"id": 4,
"name": "Dr. Chilman",
"email": "moh.chilman3@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "Chilman",
"districts": "",
"city": "Malang",
"province": "Jawa Timur",
"country": "Indonesia",
"postal_code": "67153",
"note": "a<br \/>\r\n<br \/>\r\nb",
"photo": null,
"change_password": 0
},
"schedule_doctor": {
"id": 3,
"id_doctor": 4,
"id_clinic": 1,
"start_date_active": "2017-06-02",
"end_date_active": "9999-12-31",
"start_date_leave": "0000-00-00",
"end_date_leave": "0000-00-00"
},
"time_schedule_doctor": {
"id": 6,
"id_schedule_doctor": 3,
"day": 5,
"start_time": "17:38:00",
"end_time": "18:38:00",
"appointment": 0,
"max_register": 0,
"estimate": 30
},
"id_medical_records": null,
"estimate": "07:00:00",
"error": false
}
HTTP Request
GET {lang}/hospitalization/{hospitalization}
HEAD {lang}/hospitalization/{hospitalization}
Update hospitalization
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | optional | |
| id_patient | integer | optional | |
| id_poly | integer | optional | |
| id_doctor | iinteger | optional | |
| id_time_schedule_doctor | integer | optional | |
| type | string | optional | inpatient, outpatient |
| date | date | optional | |
| appointment | time | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/hospitalization/{hospitalization}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/hospitalization/{hospitalization}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/hospitalization/{hospitalization}
PATCH {lang}/hospitalization/{hospitalization}
Delete hospitalization
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/hospitalization/{hospitalization}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/hospitalization/{hospitalization}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/hospitalization/{hospitalization}
Update status hospitalization
Status : -1 = decline 2 = accept
Example request:
curl -X GET "http://api.mahircare.com/{lang}/hospitalization/{id}/status/{status}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/hospitalization/{id}/status/{status}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_clinic": 1,
"clinic_name": "Klinik Chil",
"id_patient": 3,
"patient_name": "Ciiiiil2",
"id_poly": 3,
"poly_name": "Poliklinik Gigi",
"id_doctor": 4,
"doctor_name": "Dr. Chilman",
"id_time_schedule_doctor": 6,
"type": "outpatient",
"date": "2017-06-02",
"start_time": "17:38:00",
"end_time": "18:38:00",
"appointment": "07:00:00",
"number": 1,
"status": 2,
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"patient": {
"id": 3,
"name": "Ciiiiil2",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "2011-12-27",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"mrn": "100000002",
"id_patient_category": 3,
"financing": "insurance",
"patient_category": {
"id": 3,
"id_clinic": 1,
"name": "Platinum",
"default": 0
}
},
"poly": {
"id": 3,
"indonesian_name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic",
"name": "Dental Polyclinic"
},
"doctor": {
"id": 4,
"name": "Dr. Chilman",
"email": "moh.chilman3@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "Chilman",
"districts": "",
"city": "Malang",
"province": "Jawa Timur",
"country": "Indonesia",
"postal_code": "67153",
"note": "a<br \/>\r\n<br \/>\r\nb",
"photo": null,
"change_password": 0
},
"schedule_doctor": {
"id": 3,
"id_doctor": 4,
"id_clinic": 1,
"start_date_active": "2017-06-02",
"end_date_active": "9999-12-31",
"start_date_leave": "0000-00-00",
"end_date_leave": "0000-00-00"
},
"time_schedule_doctor": {
"id": 6,
"id_schedule_doctor": 3,
"day": 5,
"start_time": "17:38:00",
"end_time": "18:38:00",
"appointment": 0,
"max_register": 0,
"estimate": 30
},
"id_medical_records": null,
"estimate": "07:00:00",
"error": false
}
HTTP Request
GET {lang}/hospitalization/{id}/status/{status}
HEAD {lang}/hospitalization/{id}/status/{status}
ICD
List ICD
Example request:
curl -X GET "http://api.mahircare.com/{lang}/icd" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/icd",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 9514,
"per_page": "1",
"current_page": 1,
"last_page": 9514,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"category": "A00",
"subcategory": "",
"code": "A00",
"name": "Kolera",
"english_name": "Cholera",
"indonesian_name": "Kolera"
}
],
"error": false
}
HTTP Request
GET {lang}/icd
HEAD {lang}/icd
Invoice
List invoice clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/invoice/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/invoice/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 5,
"per_page": "1",
"current_page": 1,
"last_page": 5,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"id_clinic": 1,
"clinic_name": "Klinik Chil",
"id_patient": 11,
"patient_name": "ChilChan2",
"number": "706085940072017",
"discount": null,
"discount_type": null,
"subtotal": 1000,
"total": 1000,
"prepayment": 0,
"cash": 0,
"credit_card": 0,
"note": null,
"date": "2017-07-06",
"status": 0,
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"patient": {
"id": 11,
"name": "ChilChan2",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": null,
"id_type": null,
"identity": null,
"address": null,
"districts": null,
"city": null,
"province": null,
"country": null,
"postal_code": null,
"photo": "20170716185342.png",
"mrn": "100000010",
"id_patient_category": 2,
"financing": "personal"
},
"invoice_service": [
{
"id": 1,
"id_invoice": 1,
"id_service": 2,
"service_name": "Layanan 2",
"cost": 1000,
"quantity": 1,
"discount": null,
"discount_type": null,
"tax": null,
"tax_type": null,
"total": 1000,
"note": null,
"service": {
"id": 2,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 2",
"code": "L002",
"cost": 1000,
"admin_cost": 0,
"implementer": 0,
"note": ""
},
"invoice_doctor": null
}
],
"invoice_medicine": []
}
],
"error": false
}
HTTP Request
GET {lang}/invoice/clinic/{id_clinic}
HEAD {lang}/invoice/clinic/{id_clinic}
List invoice doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/invoice/doctor/{id_doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/invoice/doctor/{id_doctor}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 0,
"per_page": "1",
"current_page": 1,
"last_page": 0,
"from": null,
"to": null,
"data": [],
"error": false
}
HTTP Request
GET {lang}/invoice/doctor/{id_doctor}
HEAD {lang}/invoice/doctor/{id_doctor}
Create invoice
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| id_patient | integer | required | |
| number | string | required | unique |
| service | array | required | [ ][0] = id_service [ ][1] = quantity [ ][2] = cost [ ][3] = total [ ][4] = discount [ ][5] = discount_type [ ][6] = admin_cost [ ][7] = note [ ][8] = id_doctor (optional) |
| medicine | array | optional | [ ][0] = id_medicine [ ][1] = price [ ][2] = quantity [ ][3] = total |
| note | string | optional | |
| discount | integer | optional | |
| discount_type | string | optional | $ or % |
| cash | integer | optional | |
| credit_card | integer | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/invoice" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/invoice",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/invoice
Get invoice
Example request:
curl -X GET "http://api.mahircare.com/{lang}/invoice/{invoice}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/invoice/{invoice}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_clinic": 1,
"clinic_name": "Klinik Chil",
"id_patient": 11,
"patient_name": "ChilChan2",
"number": "706085940072017",
"discount": null,
"discount_type": null,
"subtotal": 1000,
"total": 1000,
"prepayment": 0,
"cash": 0,
"credit_card": 0,
"note": null,
"date": "2017-07-06",
"status": 0,
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"patient": {
"id": 11,
"name": "ChilChan2",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": null,
"id_type": null,
"identity": null,
"address": null,
"districts": null,
"city": null,
"province": null,
"country": null,
"postal_code": null,
"photo": "20170716185342.png",
"mrn": "100000010",
"id_patient_category": 2,
"financing": "personal",
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
},
"invoice_service": [
{
"id": 1,
"id_invoice": 1,
"id_service": 2,
"service_name": "Layanan 2",
"cost": 1000,
"quantity": 1,
"discount": null,
"discount_type": null,
"tax": null,
"tax_type": null,
"admin_cost": null,
"doctor_cost": null,
"total": 1000,
"note": null,
"service": {
"id": 2,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 2",
"code": "L002",
"cost": 1000,
"admin_cost": 0,
"implementer": 0,
"note": ""
},
"invoice_doctor": null
}
],
"invoice_medicine": [],
"error": false
}
HTTP Request
GET {lang}/invoice/{invoice}
HEAD {lang}/invoice/{invoice}
Update invoice
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| cash | integer | optional | |
| credit_card | integer | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/invoice/{invoice}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/invoice/{invoice}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/invoice/{invoice}
PATCH {lang}/invoice/{invoice}
Send receipt
type : sms Parameters sms
| Parameter | Type | Status | Description |
|---|---|---|---|
| phone | integer | required |
type : email Parameters email
| Parameter | Type | Status | Description |
|---|---|---|---|
| string | required | email type |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/invoice/receipt/{type}/{id}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/invoice/receipt/{type}/{id}",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/invoice/receipt/{type}/{id}
Get invoice number
Example request:
curl -X GET "http://api.mahircare.com/{lang}/invoice/number/{number}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/invoice/number/{number}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": null,
"id_clinic": null,
"clinic_name": null,
"id_patient": null,
"patient_name": null,
"number": null,
"discount": null,
"discount_type": null,
"subtotal": null,
"total": null,
"prepayment": null,
"cash": null,
"credit_card": null,
"note": null,
"date": null,
"status": null,
"clinic": null,
"patient": {
"mrn": null,
"id_patient_category": null,
"financing": null,
"patient_category": null
},
"invoice_service": [],
"invoice_medicine": [],
"error": false
}
HTTP Request
GET {lang}/invoice/number/{number}
HEAD {lang}/invoice/number/{number}
Medical records
List medical records clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/medical/records/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medical/records/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 15,
"per_page": "1",
"current_page": 1,
"last_page": 15,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"id_clinic": 1,
"clinic_name": "Klinik Chil",
"id_poly": 9,
"poly_name": "Poliklinik Kulit dan Kelamin",
"id_doctor": 1,
"doctor__name": "Dr. Chil",
"id_patient": 1,
"patient_name": "Chilman",
"anamnese": "",
"diagnosis": "a<br \/>\r\n<br \/>\r\nb",
"date": "2017-05-29",
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"poly": {
"id": 9,
"indonesian_name": "Poliklinik Kulit dan Kelamin",
"english_name": "Skin and Sex Polyclinic",
"name": "Skin and Sex Polyclinic"
},
"doctor": {
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
},
"patient": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"mrn": "100000003",
"id_patient_category": 1,
"financing": "personal"
},
"icd": [],
"service_medical_records": [
{
"id": 1,
"id_medical_records": 1,
"id_service": 1,
"service_name": "Layanan 1",
"quantity": 2,
"service": {
"id": 1,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 1",
"code": "L01",
"cost": 100,
"admin_cost": 100,
"implementer": 1,
"note": "a<br \/>\r\n<br \/>\r\nb",
"service_cost": [
{
"id": 1,
"id_service": 1,
"id_patient_category": 1,
"cost": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_service": 1,
"id_patient_category": 2,
"cost": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
]
}
},
{
"id": 2,
"id_medical_records": 1,
"id_service": 2,
"service_name": "Layanan 2",
"quantity": 1,
"service": {
"id": 2,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 2",
"code": "L002",
"cost": 1000,
"admin_cost": 0,
"implementer": 0,
"note": "",
"service_cost": [
{
"id": 3,
"id_service": 2,
"id_patient_category": 1,
"cost": 1000,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
}
]
}
}
],
"medicine_medical_records": [
{
"id": 1,
"id_medical_records": 1,
"id_medicine": 2,
"medicine_name": "2-4 Zalf",
"dose": "a<br \/>\r\n<br \/>\r\nb",
"quantity": 2,
"medicine": {
"id": 2,
"id_clinic": 1,
"code": "2-4 z",
"name": "2-4 Zalf",
"company": "Nufarindo",
"price": 1000,
"medicine_price": [
{
"id": 3,
"id_medicine": 2,
"id_patient_category": 1,
"price": 1000,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
}
]
}
},
{
"id": 2,
"id_medical_records": 1,
"id_medicine": 1,
"medicine_name": "Obat 1",
"dose": "3dasd",
"quantity": 2,
"medicine": {
"id": 1,
"id_clinic": 1,
"code": "OB1",
"name": "Obat 1",
"company": "",
"price": 100,
"medicine_price": [
{
"id": 1,
"id_medicine": 1,
"id_patient_category": 1,
"price": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_medicine": 1,
"id_patient_category": 2,
"price": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
]
}
}
],
"file_medical_records": [],
"vital_sign": null,
"payment": false
}
],
"error": false
}
HTTP Request
GET {lang}/medical/records/clinic/{id_clinic}
HEAD {lang}/medical/records/clinic/{id_clinic}
List medical records doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/medical/records/doctor/{id_doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medical/records/doctor/{id_doctor}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 3,
"per_page": "1",
"current_page": 1,
"last_page": 3,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"id_clinic": 1,
"clinic_name": "Klinik Chil",
"id_poly": 9,
"poly_name": "Poliklinik Kulit dan Kelamin",
"id_doctor": 1,
"doctor__name": "Dr. Chil",
"id_patient": 1,
"patient_name": "Chilman",
"anamnese": "",
"diagnosis": "a<br \/>\r\n<br \/>\r\nb",
"date": "2017-05-29",
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"poly": {
"id": 9,
"indonesian_name": "Poliklinik Kulit dan Kelamin",
"english_name": "Skin and Sex Polyclinic",
"name": "Skin and Sex Polyclinic"
},
"doctor": {
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
},
"patient": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"mrn": "100000003",
"id_patient_category": 1,
"financing": "personal"
},
"icd": [],
"service_medical_records": [
{
"id": 1,
"id_medical_records": 1,
"id_service": 1,
"service_name": "Layanan 1",
"quantity": 2,
"service": {
"id": 1,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 1",
"code": "L01",
"cost": 100,
"admin_cost": 100,
"implementer": 1,
"note": "a<br \/>\r\n<br \/>\r\nb",
"service_cost": [
{
"id": 1,
"id_service": 1,
"id_patient_category": 1,
"cost": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_service": 1,
"id_patient_category": 2,
"cost": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
]
}
},
{
"id": 2,
"id_medical_records": 1,
"id_service": 2,
"service_name": "Layanan 2",
"quantity": 1,
"service": {
"id": 2,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 2",
"code": "L002",
"cost": 1000,
"admin_cost": 0,
"implementer": 0,
"note": "",
"service_cost": [
{
"id": 3,
"id_service": 2,
"id_patient_category": 1,
"cost": 1000,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
}
]
}
}
],
"medicine_medical_records": [
{
"id": 1,
"id_medical_records": 1,
"id_medicine": 2,
"medicine_name": "2-4 Zalf",
"dose": "a<br \/>\r\n<br \/>\r\nb",
"quantity": 2,
"medicine": {
"id": 2,
"id_clinic": 1,
"code": "2-4 z",
"name": "2-4 Zalf",
"company": "Nufarindo",
"price": 1000,
"medicine_price": [
{
"id": 3,
"id_medicine": 2,
"id_patient_category": 1,
"price": 1000,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
}
]
}
},
{
"id": 2,
"id_medical_records": 1,
"id_medicine": 1,
"medicine_name": "Obat 1",
"dose": "3dasd",
"quantity": 2,
"medicine": {
"id": 1,
"id_clinic": 1,
"code": "OB1",
"name": "Obat 1",
"company": "",
"price": 100,
"medicine_price": [
{
"id": 1,
"id_medicine": 1,
"id_patient_category": 1,
"price": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_medicine": 1,
"id_patient_category": 2,
"price": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
]
}
}
],
"file_medical_records": [],
"vital_sign": null,
"payment": false
}
],
"error": false
}
HTTP Request
GET {lang}/medical/records/doctor/{id_doctor}
HEAD {lang}/medical/records/doctor/{id_doctor}
List medical records patient
Example request:
curl -X GET "http://api.mahircare.com/{lang}/medical/records/patient/{id_patient}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medical/records/patient/{id_patient}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 5,
"per_page": "1",
"current_page": 1,
"last_page": 5,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"id_clinic": 1,
"clinic_name": "Klinik Chil",
"id_poly": 9,
"poly_name": "Poliklinik Kulit dan Kelamin",
"id_doctor": 1,
"doctor__name": "Dr. Chil",
"id_patient": 1,
"patient_name": "Chilman",
"anamnese": "",
"diagnosis": "a<br \/>\r\n<br \/>\r\nb",
"date": "2017-05-29",
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"poly": {
"id": 9,
"indonesian_name": "Poliklinik Kulit dan Kelamin",
"english_name": "Skin and Sex Polyclinic",
"name": "Skin and Sex Polyclinic"
},
"doctor": {
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
},
"patient": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"mrn": "100000003",
"id_patient_category": 1,
"financing": "personal"
},
"icd": [],
"service_medical_records": [
{
"id": 1,
"id_medical_records": 1,
"id_service": 1,
"service_name": "Layanan 1",
"quantity": 2,
"service": {
"id": 1,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 1",
"code": "L01",
"cost": 100,
"admin_cost": 100,
"implementer": 1,
"note": "a<br \/>\r\n<br \/>\r\nb",
"service_cost": [
{
"id": 1,
"id_service": 1,
"id_patient_category": 1,
"cost": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_service": 1,
"id_patient_category": 2,
"cost": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
]
}
},
{
"id": 2,
"id_medical_records": 1,
"id_service": 2,
"service_name": "Layanan 2",
"quantity": 1,
"service": {
"id": 2,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 2",
"code": "L002",
"cost": 1000,
"admin_cost": 0,
"implementer": 0,
"note": "",
"service_cost": [
{
"id": 3,
"id_service": 2,
"id_patient_category": 1,
"cost": 1000,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
}
]
}
}
],
"medicine_medical_records": [
{
"id": 1,
"id_medical_records": 1,
"id_medicine": 2,
"medicine_name": "2-4 Zalf",
"dose": "a<br \/>\r\n<br \/>\r\nb",
"quantity": 2,
"medicine": {
"id": 2,
"id_clinic": 1,
"code": "2-4 z",
"name": "2-4 Zalf",
"company": "Nufarindo",
"price": 1000,
"medicine_price": [
{
"id": 3,
"id_medicine": 2,
"id_patient_category": 1,
"price": 1000,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
}
]
}
},
{
"id": 2,
"id_medical_records": 1,
"id_medicine": 1,
"medicine_name": "Obat 1",
"dose": "3dasd",
"quantity": 2,
"medicine": {
"id": 1,
"id_clinic": 1,
"code": "OB1",
"name": "Obat 1",
"company": "",
"price": 100,
"medicine_price": [
{
"id": 1,
"id_medicine": 1,
"id_patient_category": 1,
"price": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_medicine": 1,
"id_patient_category": 2,
"price": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
]
}
}
],
"file_medical_records": [],
"vital_sign": null,
"payment": false
}
],
"error": false
}
HTTP Request
GET {lang}/medical/records/patient/{id_patient}
HEAD {lang}/medical/records/patient/{id_patient}
Create medical records
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| id_poly | integer | required | |
| id_doctor | integer | required | |
| id_patient | integer | required | |
| blood_pressure | integer | optional | |
| pulse | integer | optional | |
| respiratory_frequency | integer | optional | |
| body_temperature | integer | optional | |
| height | integer | optional | |
| weight | integer | optional | |
| icd | array | optional | |
| anamnese | string | optional | |
| diagnosis | string | required | |
| service | array | optional | [ ][0] = id_service [ ][1] = quantity |
| medicine | array | optional | [ ][0] = id_medicine [ ][1] = dose [2] = quantity |
| file | array | optional | file |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/medical/records" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medical/records",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/medical/records
Get medical records
Example request:
curl -X GET "http://api.mahircare.com/{lang}/medical/records/{record}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medical/records/{record}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_clinic": 1,
"clinic_name": "Klinik Chil",
"id_poly": 9,
"poly_name": "Poliklinik Kulit dan Kelamin",
"id_doctor": 1,
"doctor_name": "Dr. Chil",
"id_patient": 1,
"patient_name": "Chilman",
"anamnese": "",
"diagnosis": "a<br \/>\r\n<br \/>\r\nb",
"date": "2017-05-29",
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"poly": {
"id": 9,
"indonesian_name": "Poliklinik Kulit dan Kelamin",
"english_name": "Skin and Sex Polyclinic",
"name": "Skin and Sex Polyclinic"
},
"doctor": {
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
},
"patient": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"mrn": "100000003",
"id_patient_category": 1,
"financing": "personal",
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
"icd": [],
"service_medical_records": [
{
"id": 1,
"id_medical_records": 1,
"id_service": 1,
"service_name": "Layanan 1",
"quantity": 2,
"service": {
"id": 1,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 1",
"code": "L01",
"cost": 100,
"admin_cost": 100,
"implementer": 1,
"note": "a<br \/>\r\n<br \/>\r\nb",
"service_cost": [
{
"id": 1,
"id_service": 1,
"id_patient_category": 1,
"cost": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_service": 1,
"id_patient_category": 2,
"cost": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
]
}
},
{
"id": 2,
"id_medical_records": 1,
"id_service": 2,
"service_name": "Layanan 2",
"quantity": 1,
"service": {
"id": 2,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 2",
"code": "L002",
"cost": 1000,
"admin_cost": 0,
"implementer": 0,
"note": "",
"service_cost": [
{
"id": 3,
"id_service": 2,
"id_patient_category": 1,
"cost": 1000,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
}
]
}
}
],
"medicine_medical_records": [
{
"id": 1,
"id_medical_records": 1,
"id_medicine": 2,
"medicine_name": "2-4 Zalf",
"dose": "a<br \/>\r\n<br \/>\r\nb",
"quantity": 2,
"medicine": {
"id": 2,
"id_clinic": 1,
"code": "2-4 z",
"name": "2-4 Zalf",
"company": "Nufarindo",
"price": 1000,
"medicine_price": [
{
"id": 3,
"id_medicine": 2,
"id_patient_category": 1,
"price": 1000,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
}
]
}
},
{
"id": 2,
"id_medical_records": 1,
"id_medicine": 1,
"medicine_name": "Obat 1",
"dose": "3dasd",
"quantity": 2,
"medicine": {
"id": 1,
"id_clinic": 1,
"code": "OB1",
"name": "Obat 1",
"company": "",
"price": 100,
"medicine_price": [
{
"id": 1,
"id_medicine": 1,
"id_patient_category": 1,
"price": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_medicine": 1,
"id_patient_category": 2,
"price": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
]
}
}
],
"file_medical_records": [],
"vital_sign": null,
"payment": false,
"error": false
}
HTTP Request
GET {lang}/medical/records/{record}
HEAD {lang}/medical/records/{record}
List medical records patient
Example request:
curl -X GET "http://api.mahircare.com/{lang}/medical/records/history/patient/{id_patient}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medical/records/history/patient/{id_patient}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"data": [
{
"id": 23,
"id_clinic": 2,
"clinic_name": "Klinik Demo",
"id_poly": 3,
"poly_name": "Poliklinik Gigi",
"id_doctor": 1,
"doctor__name": "Dr. Chil",
"id_patient": 1,
"patient_name": "Chilman",
"anamnese": "",
"diagnosis": "a<br \/>\r\n<br \/>\r\nb<br \/>\r\n",
"date": "2017-06-09",
"clinic": {
"id": 2,
"id_user": 2,
"name": "Klinik Demo",
"email": "chilman.fachrudik@gmail.com",
"phone": "08563274611",
"address": "Jl Soekarno Hatta",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9361558586532,
"longitude": 112.62547514288,
"logo": null,
"banner": null
},
"poly": {
"id": 3,
"indonesian_name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic",
"name": "Dental Polyclinic"
},
"doctor": {
"id": 1,
"name": "Chil",
"email": "moh.chilman2@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"note": "",
"photo": null,
"change_password": 1
},
"patient": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"mrn": "200000001",
"id_patient_category": 6,
"financing": "personal"
},
"icd": [
{
"id": 2,
"category": "A00",
"subcategory": "0",
"code": "A00.0",
"name": "Cholera due to Vibrio cholerae 01, biovar cholerae",
"english_name": "Cholera due to Vibrio cholerae 01, biovar cholerae",
"indonesian_name": "Kolera yang disebabkan oleh Vibrio cholerae 01, biovar cholerae"
},
{
"id": 4,
"category": "A00",
"subcategory": "9",
"code": "A00.9",
"name": "Cholera, unspecified",
"english_name": "Cholera, unspecified",
"indonesian_name": "Kolera, tidak terspesifikasi"
}
],
"service_medical_records": [],
"medicine_medical_records": [],
"file_medical_records": [],
"vital_sign": null,
"payment": false
}
],
"error": false
}
HTTP Request
GET {lang}/medical/records/history/patient/{id_patient}
HEAD {lang}/medical/records/history/patient/{id_patient}
Medicine
List default medicine
Example request:
curl -X GET "http://api.mahircare.com/{lang}/medicine/default" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medicine/default",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 107,
"per_page": "1",
"current_page": 1,
"last_page": 107,
"from": 1,
"to": 1,
"data": [
{
"id": 3,
"code": "3TC-H",
"name": " 3TC-HBV",
"company": "GlaxoSmithKline Indonesia"
}
],
"error": false
}
HTTP Request
GET {lang}/medicine/default
HEAD {lang}/medicine/default
List medicine
Example request:
curl -X GET "http://api.mahircare.com/{lang}/medicine/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medicine/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 2,
"per_page": "1",
"current_page": 1,
"last_page": 2,
"from": 1,
"to": 1,
"data": [
{
"id": 2,
"id_clinic": 1,
"code": "2-4 z",
"name": "2-4 Zalf",
"company": "Nufarindo",
"price": 1000,
"medicine_price": [
{
"id": 3,
"id_medicine": 2,
"id_patient_category": 1,
"price": 1000,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
}
],
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
}
}
],
"error": false
}
HTTP Request
GET {lang}/medicine/clinic/{id_clinic}
HEAD {lang}/medicine/clinic/{id_clinic}
Create medicine
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| name | string | required | |
| code | string | required | |
| company | string | optional | |
| price | array | required | [ ][0] = id_patient_category [ ][1] = price |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/medicine" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medicine",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/medicine
Get medicine
Example request:
curl -X GET "http://api.mahircare.com/{lang}/medicine/{medicine}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medicine/{medicine}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_clinic": 1,
"code": "OB1",
"name": "Obat 1",
"company": "",
"price": 100,
"medicine_price": [
{
"id": 1,
"id_medicine": 1,
"id_patient_category": 1,
"price": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_medicine": 1,
"id_patient_category": 2,
"price": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
],
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"error": false
}
HTTP Request
GET {lang}/medicine/{medicine}
HEAD {lang}/medicine/{medicine}
Update medicine
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | optional | |
| name | string | optional | |
| code | string | optional | |
| company | string | optional | |
| price | array | required | [ ][0] = id_patient_category [ ][1] = price |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/medicine/{medicine}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medicine/{medicine}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/medicine/{medicine}
PATCH {lang}/medicine/{medicine}
Delete medicine
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/medicine/{medicine}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/medicine/{medicine}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/medicine/{medicine}
Notification
List notification
Example request:
curl -X GET "http://api.mahircare.com/{lang}/notification" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/notification",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 23,
"per_page": "1",
"current_page": 1,
"last_page": 23,
"from": 1,
"to": 1,
"data": [
{
"id": "2aa540fb-40b1-4636-ae47-232669d1dba0",
"type": "App\\Notifications\\HospitalizationNotification",
"notifiable_id": 1,
"notifiable_type": "App\\User",
"data": {
"type": "clinic_hospitalization",
"notification": "notification_clinic_hospitalization",
"id": 60
},
"read_at": {
"date": "2017-07-16 08:18:43.000000",
"timezone_type": 3,
"timezone": "Asia\/Jakarta"
},
"created_at": {
"date": "2017-07-15 18:28:34.000000",
"timezone_type": 3,
"timezone": "Asia\/Jakarta"
},
"notification": {
"message": "Mendaftar rawat jalan ke Poliklinik Gigi - <b>Chilman<\/b>, pada Senin, 14 Agustus 2017 (21:28).<br \/><br \/>Status: Menunggu konfirmasi",
"name": "ChilChan2",
"photo": "20170716185342.png"
}
}
],
"error": false
}
HTTP Request
GET {lang}/notification
HEAD {lang}/notification
Delete notification
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/notification/{notification}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/notification/{notification}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/notification/{notification}
Update read notification
Parameters read notification
| Parameter | Type | Status | Description |
|---|---|---|---|
| id | array | required |
Parameters read all notification
| Parameter | Type | Status | Description |
|---|---|---|---|
| all | boolean | required | true |
Example request:
curl -X GET "http://api.mahircare.com/{lang}/notification/read" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/notification/read",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/notification/read
HEAD {lang}/notification/read
Patient
List patient
Example request:
curl -X GET "http://api.mahircare.com/{lang}/patient" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/patient",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 4,
"per_page": "1",
"current_page": 1,
"last_page": 4,
"from": 1,
"to": 1,
"data": [
{
"id": 11,
"name": "ChilChan2",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": null,
"id_type": null,
"identity": null,
"address": null,
"districts": null,
"city": null,
"province": null,
"country": null,
"postal_code": null,
"photo": "20170716185342.png"
}
],
"error": false
}
HTTP Request
GET {lang}/patient
HEAD {lang}/patient
Get patient
Example request:
curl -X GET "http://api.mahircare.com/{lang}/patient/{patient}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/patient/{patient}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"name": "Chilman",
"email": "moh.chilman22@gmail.com",
"phone_code": "62",
"phone": "878567672971",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": "",
"id_type": "",
"identity": "",
"address": "",
"districts": "",
"city": "",
"province": "",
"country": "",
"postal_code": "",
"photo": null,
"error": false
}
HTTP Request
GET {lang}/patient/{patient}
HEAD {lang}/patient/{patient}
Search patient
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| string | optional | ||
| phone | integer | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/patient/search" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/patient/search",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/patient/search
Reset photo doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/patient/{id}/photo/reset" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/patient/{id}/photo/reset",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/patient/{id}/photo/reset
HEAD {lang}/patient/{id}/photo/reset
List patient clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 3,
"per_page": "1",
"current_page": 1,
"last_page": 3,
"from": 1,
"to": 1,
"data": [
{
"id": 15,
"id_patient": 11,
"id_clinic": 1,
"id_patient_category": 2,
"mrn": "100000010",
"financing": "personal",
"active": 1,
"name": "ChilChan2",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": null,
"id_type": null,
"identity": null,
"address": null,
"districts": null,
"city": null,
"province": null,
"country": null,
"postal_code": null,
"photo": "20170716185342.png",
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
},
"error": false
}
],
"error": false
}
HTTP Request
GET {lang}/clinic/{id_clinic}/patient
HEAD {lang}/clinic/{id_clinic}/patient
Create patient clinic
Parameters create new patient
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_patient_category | integer | required | |
| name | string | required | |
| string | optionl | email type, unique | |
| phone_code | integer | required | |
| phone | integer | required | unique |
| birth_date | date | required | |
| gender | boolean | required | male = false, female = true |
| smoke | boolean | optional | |
| blood_type | string | optional | A, B, AB, O |
| id_type | string | optional | |
| identity | string | optional | |
| address | string | optional | |
| districts | string | optional | |
| city | string | optional | |
| province | string | optional | |
| postal_code | string | optional | |
| country | string | optional | |
| financing | string | required | insurance, agency, personal |
Parameters create patient clinic
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_patient | integer | required | |
| id_patient_category | integer | required | |
| name | string | optional | |
| string | optional | email type, unique | |
| phone_code | integer | optional | |
| phone | integer | optional | unique |
| birth_date | date | optional | |
| gender | boolean | optional | male = false, female = true |
| smoke | boolean | optional | |
| blood_type | string | optional | A, B, AB, O |
| id_type | string | optional | |
| identity | string | optional | |
| address | string | optional | |
| districts | string | optional | |
| city | string | optional | |
| province | string | optional | |
| postal_code | string | optional | |
| country | string | optional | |
| financing | string | required | insurance, agency, personal |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/clinic/{id_clinic}/patient
Get patient clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/{patient}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/{patient}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null,
"user": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"photo": null,
"email_verification": 1
},
"poly": [
{
"id": 6,
"name": "Bone Surgical Polyclinic",
"english_name": "Bone Surgical Polyclinic",
"indonesian_name": "Poliklinik Bedah Tulang"
},
{
"id": 3,
"name": "Dental Polyclinic",
"english_name": "Dental Polyclinic",
"indonesian_name": "Poliklinik Gigi"
},
{
"id": 13,
"name": "Physiotherapy Polyclinic",
"english_name": "Physiotherapy Polyclinic",
"indonesian_name": "Poliklinik Fisioterapi"
},
{
"id": 9,
"name": "Skin and Sex Polyclinic",
"english_name": "Skin and Sex Polyclinic",
"indonesian_name": "Poliklinik Kulit dan Kelamin"
},
{
"id": 14,
"name": "yyyyy",
"english_name": "yyyyy",
"indonesian_name": "yyyyy"
}
],
"setting": {
"id": 1,
"id_clinic": 1,
"setup": "",
"help_setup": 0,
"help_price": 0,
"help_hospitalization": 0,
"help_action_hospitalization": 0
},
"suspended": false,
"error": false
}
HTTP Request
GET {lang}/clinic/{id_clinic}/patient/{patient}
HEAD {lang}/clinic/{id_clinic}/patient/{patient}
Update patient clinic
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_patient_category | integer | optional | |
| name | string | optional | |
| string | optional | email type, unique | |
| phone_code | integer | optional | |
| phone | integer | optional | unique |
| birth_date | date | optional | |
| gender | boolean | optional | male = false, female = true |
| smoke | boolean | optional | |
| blood_type | string | optional | A, B, AB, O |
| id_type | string | optional | |
| identity | string | optional | |
| address | string | optional | |
| districts | string | optional | |
| city | string | optional | |
| province | string | optional | |
| postal_code | string | optional | |
| country | string | optional | |
| financing | string | optional | insurance, agency, personal |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/{patient}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/{patient}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/clinic/{id_clinic}/patient/{patient}
PATCH {lang}/clinic/{id_clinic}/patient/{patient}
Delete patient clinic
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/{patient}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/{patient}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/clinic/{id_clinic}/patient/{patient}
Update status patient clinic
Status : 1 = active 0 = nonactive
Example request:
curl -X GET "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/{id}/status/{status}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/{id}/status/{status}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null,
"user": {
"id": 1,
"name": "Chilman",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"photo": null,
"email_verification": 1
},
"poly": [
{
"id": 6,
"name": "Bone Surgical Polyclinic",
"english_name": "Bone Surgical Polyclinic",
"indonesian_name": "Poliklinik Bedah Tulang"
},
{
"id": 3,
"name": "Dental Polyclinic",
"english_name": "Dental Polyclinic",
"indonesian_name": "Poliklinik Gigi"
},
{
"id": 13,
"name": "Physiotherapy Polyclinic",
"english_name": "Physiotherapy Polyclinic",
"indonesian_name": "Poliklinik Fisioterapi"
},
{
"id": 9,
"name": "Skin and Sex Polyclinic",
"english_name": "Skin and Sex Polyclinic",
"indonesian_name": "Poliklinik Kulit dan Kelamin"
},
{
"id": 14,
"name": "yyyyy",
"english_name": "yyyyy",
"indonesian_name": "yyyyy"
}
],
"setting": {
"id": 1,
"id_clinic": 1,
"setup": "",
"help_setup": 0,
"help_price": 0,
"help_hospitalization": 0,
"help_action_hospitalization": 0
},
"suspended": false,
"error": false
}
HTTP Request
GET {lang}/clinic/{id_clinic}/patient/{id}/status/{status}
HEAD {lang}/clinic/{id_clinic}/patient/{id}/status/{status}
Search patient clinic
Example request:
curl -X POST "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/search" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/clinic/{id_clinic}/patient/search",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/clinic/{id_clinic}/patient/search
List patient doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/doctor/{id_doctor}/patient" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/doctor/{id_doctor}/patient",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 3,
"per_page": "1",
"current_page": 1,
"last_page": 3,
"from": 1,
"to": 1,
"data": [
{
"id": 11,
"name": "ChilChan2",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"birth_date": "1994-04-02",
"gender": 0,
"smoke": 0,
"blood_type": null,
"id_type": null,
"identity": null,
"address": null,
"districts": null,
"city": null,
"province": null,
"country": null,
"postal_code": null,
"photo": "20170716185342.png",
"clinic": [
{
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"province": "Jawa Timur",
"country": "Indonesia",
"postal_code": "67153",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null,
"mrn": "100000010",
"status": 1
}
],
"error": false
}
],
"error": false
}
HTTP Request
GET {lang}/doctor/{id_doctor}/patient
HEAD {lang}/doctor/{id_doctor}/patient
Poly
List poly
Example request:
curl -X GET "http://api.mahircare.com/{lang}/poly" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/poly",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 16,
"per_page": "1",
"current_page": 1,
"last_page": 16,
"from": 1,
"to": 1,
"data": [
{
"id": 5,
"name": "Poliklinik Anak",
"indonesian_name": "Poliklinik Anak",
"english_name": "Child Polyclinic"
}
],
"error": false
}
HTTP Request
GET {lang}/poly
HEAD {lang}/poly
Create poly
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| indonesian_name | string | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/poly" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/poly",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/poly
Get poly
Example request:
curl -X GET "http://api.mahircare.com/{lang}/poly/{poly}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/poly/{poly}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"indonesian_name": "Poliklinik Umum",
"english_name": "General Polyclinic",
"name": "General Polyclinic",
"error": false
}
HTTP Request
GET {lang}/poly/{poly}
HEAD {lang}/poly/{poly}
Update poly
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| indonesian_name | string | required |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/poly/{poly}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/poly/{poly}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/poly/{poly}
PATCH {lang}/poly/{poly}
Delete poly
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/poly/{poly}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/poly/{poly}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/poly/{poly}
List poly clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/poly/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/poly/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 5,
"per_page": "1",
"current_page": 1,
"last_page": 5,
"from": 1,
"to": 1,
"data": [
{
"id": 6,
"name": "Bone Surgical Polyclinic",
"indonesian_name": "Poliklinik Bedah Tulang",
"english_name": "Bone Surgical Polyclinic"
}
],
"error": false
}
HTTP Request
GET {lang}/poly/clinic/{id_clinic}
HEAD {lang}/poly/clinic/{id_clinic}
Update poly clinic
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| poly | array | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/poly/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/poly/clinic/{id_clinic}",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/poly/clinic/{id_clinic}
List poly doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/poly/doctor/{id_doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/poly/doctor/{id_doctor}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 1,
"per_page": "1",
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 1,
"data": [
{
"id": 3,
"name": "Dental Polyclinic",
"indonesian_name": "Poliklinik Gigi",
"english_name": "Dental Polyclinic"
}
],
"error": false
}
HTTP Request
GET {lang}/poly/doctor/{id_doctor}
HEAD {lang}/poly/doctor/{id_doctor}
Report
List report income clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/report/income/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/report/income/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"date": "2017-07-06",
"income": "5088",
"history": [
{
"id": 1,
"number": "706085940072017",
"id_patient": 11,
"patient_name": "ChilChan2",
"total": 1000,
"date": "2017-07-06"
},
{
"id": 2,
"number": "706090059072017",
"id_patient": 11,
"patient_name": "ChilChan2",
"total": 2988,
"date": "2017-07-06"
},
{
"id": 3,
"number": "706091751072017",
"id_patient": 11,
"patient_name": "ChilChan2",
"total": 1100,
"date": "2017-07-06"
}
]
},
{
"date": "2017-07-09",
"income": "4040",
"history": [
{
"id": 4,
"number": "709090128\/07-2017",
"id_patient": 11,
"patient_name": "ChilChan2",
"total": 2600,
"date": "2017-07-09"
},
{
"id": 5,
"number": "709090445072017",
"id_patient": 11,
"patient_name": "ChilChan2",
"total": 1440,
"date": "2017-07-09"
}
]
}
]
HTTP Request
GET {lang}/report/income/clinic/{id_clinic}
HEAD {lang}/report/income/clinic/{id_clinic}
List report commission clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/report/commission/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/report/commission/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[]
HTTP Request
GET {lang}/report/commission/clinic/{id_clinic}
HEAD {lang}/report/commission/clinic/{id_clinic}
List report service clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/report/service/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/report/service/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"id_service": 1,
"service_name": "Layanan 1",
"quantity": "6",
"total": "1730"
},
{
"id_service": 2,
"service_name": "Layanan 2",
"quantity": "3",
"total": "3000"
}
]
HTTP Request
GET {lang}/report/service/clinic/{id_clinic}
HEAD {lang}/report/service/clinic/{id_clinic}
List report medicine clinic
Example request:
curl -X GET "http://api.mahircare.com/{lang}/report/medicine/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/report/medicine/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
[
{
"id_medicine": 2,
"medicine_name": "2-4 Zalf",
"quantity": "4",
"total": "4000"
},
{
"id_medicine": 1,
"medicine_name": "Obat 1",
"quantity": "3",
"total": "500"
}
]
HTTP Request
GET {lang}/report/medicine/clinic/{id_clinic}
HEAD {lang}/report/medicine/clinic/{id_clinic}
List report invoice doctor
Example request:
curl -X GET "http://api.mahircare.com/{lang}/report/invoice/doctor/{id_doctor}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/report/invoice/doctor/{id_doctor}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 0,
"per_page": "1",
"current_page": 1,
"last_page": 0,
"from": null,
"to": null,
"data": [],
"total_commission": null,
"error": false
}
HTTP Request
GET {lang}/report/invoice/doctor/{id_doctor}
HEAD {lang}/report/invoice/doctor/{id_doctor}
Service
List default service
Example request:
curl -X GET "http://api.mahircare.com/{lang}/service/default" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/default",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 1,
"per_page": "1",
"current_page": 1,
"last_page": 1,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"name": "Layanan 1",
"code": "L01",
"poly": "Poliklinik Gigi",
"service_category": "General"
}
],
"error": false
}
HTTP Request
GET {lang}/service/default
HEAD {lang}/service/default
List service
Example request:
curl -X GET "http://api.mahircare.com/{lang}/service/clinic/{id_clinic}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/clinic/{id_clinic}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"total": 2,
"per_page": "1",
"current_page": 1,
"last_page": 2,
"from": 1,
"to": 1,
"data": [
{
"id": 1,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 1",
"code": "L01",
"cost": 100,
"admin_cost": 100,
"implementer": 1,
"note": "a<br \/>\r\n<br \/>\r\nb",
"service_cost": [
{
"id": 1,
"id_service": 1,
"id_patient_category": 1,
"cost": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_service": 1,
"id_patient_category": 2,
"cost": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
],
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"poly": {
"id": 9,
"indonesian_name": "Poliklinik Kulit dan Kelamin",
"english_name": "Skin and Sex Polyclinic",
"name": "Skin and Sex Polyclinic"
},
"service_category": {
"id": 1,
"id_clinic": 1,
"name": "General"
}
}
],
"error": false
}
HTTP Request
GET {lang}/service/clinic/{id_clinic}
HEAD {lang}/service/clinic/{id_clinic}
Create service
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | required | |
| id_poly | integer | required | |
| id_service_category | integer | required | |
| name | string | required | |
| code | string | required | |
| cost | array | required | [ ][0] = id_patient_category [ ][1] = price |
| admin_cost | integer | optional | |
| implementer | boolean | optional | |
| note | string | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/service" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/service
Get service
Example request:
curl -X GET "http://api.mahircare.com/{lang}/service/{service}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/{service}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"id_clinic": 1,
"id_poly": 9,
"id_service_category": 1,
"name": "Layanan 1",
"code": "L01",
"cost": 100,
"admin_cost": 100,
"implementer": 1,
"note": "a<br \/>\r\n<br \/>\r\nb",
"service_cost": [
{
"id": 1,
"id_service": 1,
"id_patient_category": 1,
"cost": 100,
"patient_category": {
"id": 1,
"id_clinic": 1,
"name": "Regular",
"default": 1
}
},
{
"id": 2,
"id_service": 1,
"id_patient_category": 2,
"cost": 200,
"patient_category": {
"id": 2,
"id_clinic": 1,
"name": "Gold",
"default": 0
}
}
],
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"poly": {
"id": 9,
"indonesian_name": "Poliklinik Kulit dan Kelamin",
"english_name": "Skin and Sex Polyclinic",
"name": "Skin and Sex Polyclinic"
},
"service_category": {
"id": 1,
"id_clinic": 1,
"name": "General"
},
"error": false
}
HTTP Request
GET {lang}/service/{service}
HEAD {lang}/service/{service}
Update service
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_clinic | integer | optional | |
| id_poly | integer | optional | |
| id_service_category | integer | optional | |
| name | string | optional | |
| code | string | optional | |
| cost | array | optional | [ ][0] = id_patient_category [ ][1] = price |
| admin_cost | integer | optional | |
| implementer | boolean | optional | |
| note | string | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/service/{service}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/{service}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/service/{service}
PATCH {lang}/service/{service}
Delete service
Example request:
curl -X DELETE "http://api.mahircare.com/{lang}/service/{service}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/service/{service}",
"method": "DELETE",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
DELETE {lang}/service/{service}
User
Login user
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| string | required | ||
| password | string | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/user/login" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/login",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/user/login
Register user
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| name | string | required | |
| string | required | email type, Unique | |
| password | string | required | minimum: 6 |
| password_confirmation | string | required | minimum: 6 |
| phone_code | integer | required | |
| phone | interger | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/user/register" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/register",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/user/register
Get user
Example request:
curl -X GET "http://api.mahircare.com/{lang}/user/{user}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/{user}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"id": 1,
"name": "Chilman",
"email": "moh.chilman@gmail.com",
"phone_code": "62",
"phone": "87856767297",
"photo": null,
"email_verification": 1,
"clinic": {
"id": 1,
"id_user": 1,
"name": "Klinik Chil",
"email": "moh.chilman@gmail.com",
"phone": "087856767297",
"address": "Malang",
"districts": "",
"city": "Malang",
"postal_code": "67153",
"province": "Jawa Timur",
"country": "Indonesia",
"latitude": -7.9666204,
"longitude": 112.6326321,
"logo": null,
"banner": null
},
"error": false
}
HTTP Request
GET {lang}/user/{user}
HEAD {lang}/user/{user}
Update user
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| name | string | optional | |
| string | optional | email type, unique | |
| password | string | optional | minimum: 6 |
| password_confirmation | optional | required | minimum: 6 |
| phone_code | integer | optional | |
| phone | interger | optional | |
| photo | image | optional | maximum: 500kb, image (jpeg, jpg, bmp, png) |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/user/{user}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/{user}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/user/{user}
PATCH {lang}/user/{user}
Forgot password user
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| string | required | email type |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/user/password/forgot" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/password/forgot",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/user/password/forgot
Get reset password user
Example request:
curl -X GET "http://api.mahircare.com/{lang}/user/password/reset/{token}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/password/reset/{token}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/user/password/reset/{token}
HEAD {lang}/user/password/reset/{token}
Reset password user
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| password | string | required | Minimum: 6 |
| password_confirmation | required | required | Minimum: 6 |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/user/password/reset/{token}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/password/reset/{token}",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/user/password/reset/{token}
Resend email verification user
Example request:
curl -X GET "http://api.mahircare.com/{lang}/user/{id}/email/resend" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/{id}/email/resend",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/user/{id}/email/resend
HEAD {lang}/user/{id}/email/resend
Email verification user
Example request:
curl -X GET "http://api.mahircare.com/{lang}/user/email/verification/{token}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/email/verification/{token}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/user/email/verification/{token}
HEAD {lang}/user/email/verification/{token}
Check password user
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| password | string | required |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/user/{id}/password" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/{id}/password",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/user/{id}/password
Reset photo user
Example request:
curl -X GET "http://api.mahircare.com/{lang}/user/{id}/photo/reset" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/user/{id}/photo/reset",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
null
HTTP Request
GET {lang}/user/{id}/photo/reset
HEAD {lang}/user/{id}/photo/reset
Vital sign
List vital sign patient
Example request:
curl -X GET "http://api.mahircare.com/{lang}/vital/sign/patient/{id_patient}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/vital/sign/patient/{id_patient}",
"method": "GET",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Example response:
{
"data": [],
"error": false
}
HTTP Request
GET {lang}/vital/sign/patient/{id_patient}
HEAD {lang}/vital/sign/patient/{id_patient}
Create vital sign
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_patient | integer | required | |
| blood_pressure | integer | optional | |
| pulse | integer | optional | |
| respiratory_frequency | integer | optional | |
| body_temperature | integer | optional | |
| height | integer | optional | |
| weight | integer | optional |
Example request:
curl -X POST "http://api.mahircare.com/{lang}/vital/sign" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/vital/sign",
"method": "POST",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
POST {lang}/vital/sign
Update vital sign
Parameters
| Parameter | Type | Status | Description |
|---|---|---|---|
| id_patient | integer | optional | |
| blood_pressure | integer | optional | |
| pulse | integer | optional | |
| respiratory_frequency | integer | optional | |
| body_temperature | integer | optional | |
| height | integer | optional | |
| weight | integer | optional |
Example request:
curl -X PUT "http://api.mahircare.com/{lang}/vital/sign/{sign}" \
-H "Accept: application/json"
var settings = {
"async": true,
"crossDomain": true,
"url": "http://api.mahircare.com/{lang}/vital/sign/{sign}",
"method": "PUT",
"headers": {
"accept": "application/json"
}
}
$.ajax(settings).done(function (response) {
console.log(response);
});
HTTP Request
PUT {lang}/vital/sign/{sign}
PATCH {lang}/vital/sign/{sign}