NAV
bash javascript

Info

Welcome to the generated API reference.

Attachments

Create a new Attachment

Example request:

curl -X POST \
    "https://api.embioth.net/v1/attachments/create/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"attachment":"molestiae"}'
const url = new URL(
    "https://api.embioth.net/v1/attachments/create/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "attachment": "molestiae"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 14,
        "model_type": "App\\User",
        "model_id": 2,
        "uuid": "699e660f-bb13-4230-b681-938c314d9c1a",
        "collection_name": "attachments",
        "name": "15-in-1 Mega Collection (J) [b1]",
        "file_name": "15-in-1-mega-collection-j-b1pce-qTE4Rsiu.pce",
        "mime_type": "application\/octet-stream",
        "disk": "gcs",
        "conversions_disk": "gcs",
        "size": 12288,
        "manipulations": [],
        "custom_properties": [],
        "responsive_images": [],
        "order_column": 14,
        "created_at": "2020-06-20T19:11:11.000000Z",
        "updated_at": "2020-06-20T19:11:11.000000Z",
        "url": "https:\/\/storage.googleapis.com\/embioth-dev\/patients\/attachments\/15-in-1-mega-collection-j-b1pce-qTE4Rsiu.pce"
    },
    {
        "id": 15,
        "model_type": "App\\User",
        "model_id": 2,
        "uuid": "493fc49d-3762-462d-af30-dd61e7512a9c",
        "collection_name": "attachments",
        "name": "15-in-1 Mega Collection (J) [b1]",
        "file_name": "15-in-1-mega-collection-j-b1pce-tNgffuMa.pce",
        "mime_type": "application\/octet-stream",
        "disk": "gcs",
        "conversions_disk": "gcs",
        "size": 12288,
        "manipulations": [],
        "custom_properties": [],
        "responsive_images": [],
        "order_column": 15,
        "created_at": "2020-06-20T19:14:19.000000Z",
        "updated_at": "2020-06-20T19:14:19.000000Z",
        "url": "https:\/\/storage.googleapis.com\/embioth-dev\/patients\/attachments\/15-in-1-mega-collection-j-b1pce-tNgffuMa.pce"
    }
]

HTTP Request

POST v1/attachments/create/{id_user?}

URL Parameters

Parameter Status Description
id_user optional The id_user of the User.

Body Parameters

Parameter Type Status Description
attachment File optional attachment

Get Attachments

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/attachments/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/attachments/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id": 14,
        "model_type": "App\\User",
        "model_id": 2,
        "uuid": "699e660f-bb13-4230-b681-938c314d9c1a",
        "collection_name": "attachments",
        "name": "15-in-1 Mega Collection (J) [b1]",
        "file_name": "15-in-1-mega-collection-j-b1pce-qTE4Rsiu.pce",
        "mime_type": "application\/octet-stream",
        "disk": "gcs",
        "conversions_disk": "gcs",
        "size": 12288,
        "manipulations": [],
        "custom_properties": [],
        "responsive_images": [],
        "order_column": 14,
        "created_at": "2020-06-20T19:11:11.000000Z",
        "updated_at": "2020-06-20T19:11:11.000000Z",
        "url": "https:\/\/storage.googleapis.com\/embioth-dev\/patients\/attachments\/15-in-1-mega-collection-j-b1pce-qTE4Rsiu.pce"
    },
    {
        "id": 15,
        "model_type": "App\\User",
        "model_id": 2,
        "uuid": "493fc49d-3762-462d-af30-dd61e7512a9c",
        "collection_name": "attachments",
        "name": "15-in-1 Mega Collection (J) [b1]",
        "file_name": "15-in-1-mega-collection-j-b1pce-tNgffuMa.pce",
        "mime_type": "application\/octet-stream",
        "disk": "gcs",
        "conversions_disk": "gcs",
        "size": 12288,
        "manipulations": [],
        "custom_properties": [],
        "responsive_images": [],
        "order_column": 15,
        "created_at": "2020-06-20T19:14:19.000000Z",
        "updated_at": "2020-06-20T19:14:19.000000Z",
        "url": "https:\/\/storage.googleapis.com\/embioth-dev\/patients\/attachments\/15-in-1-mega-collection-j-b1pce-tNgffuMa.pce"
    }
]

HTTP Request

GET v1/attachments/{id_user?}

URL Parameters

Parameter Status Description
id_user optional The id_user of the User.

Comments

Default comments

[List of comments templates]

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/readings/default-comments?id_team=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/readings/default-comments"
);

let params = {
    "id_team": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_template": 1,
        "id_user_staff": null,
        "id_team": 1,
        "type": "COMMENT",
        "name": null,
        "content": "Esta todo bien. Deberia tomar algo dulce y activarse y repetir la prueba ?",
        "created_at": "2020-05-22T20:32:28.000000Z",
        "updated_at": "2020-05-22T20:32:28.000000Z"
    }
]

HTTP Request

GET v1/readings/default-comments

Query Parameters

Parameter Status Description
id_team optional Show only team default comments

Create or Edit

[Create a default comment templates]

Example request:

curl -X POST \
    "https://api.embioth.net/v1/readings/default-comments" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"id_team":3,"id_template":"sed","name":"sit","content":"et"}'
const url = new URL(
    "https://api.embioth.net/v1/readings/default-comments"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "id_team": 3,
    "id_template": "sed",
    "name": "sit",
    "content": "et"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_template": 1,
        "id_user_staff": null,
        "id_team": 1,
        "type": "COMMENT",
        "name": null,
        "content": "Esta todo bien. Deberia tomar algo dulce y activarse y repetir la prueba ?",
        "created_at": "2020-05-22T20:32:28.000000Z",
        "updated_at": "2020-05-22T20:32:28.000000Z"
    }
]

HTTP Request

POST v1/readings/default-comments

Body Parameters

Parameter Type Status Description
id_team integer optional If is set comment template will be avaible for all the team members. If not set only for current user staff.
id_template string optional Template to be edited.
name string required Comment template name.
content string required Comment template content.

Delete

[Delete default comment]

Example request:

curl -X DELETE \
    "https://api.embioth.net/v1/readings/default-comments/1?id_template=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/readings/default-comments/1"
);

let params = {
    "id_template": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_template": 1,
        "id_user_staff": null,
        "id_team": 1,
        "type": "COMMENT",
        "name": null,
        "content": "Esta todo bien. Deberia tomar algo dulce y activarse y repetir la prueba ?",
        "created_at": "2020-05-22T20:32:28.000000Z",
        "updated_at": "2020-05-22T20:32:28.000000Z"
    }
]

HTTP Request

DELETE v1/readings/default-comments/{id_template}

Query Parameters

Parameter Status Description
id_template optional Template to be removed

Delegations

Create

[Delegate all patients to another staff]

Example request:

curl -X POST \
    "https://api.embioth.net/v1/delegations/create/1?id_user_staff_delegated=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"start":"2015-10-21 04:29","end":"2015-10-21 04:29","notifications":true,"delegation":true}'
const url = new URL(
    "https://api.embioth.net/v1/delegations/create/1"
);

let params = {
    "id_user_staff_delegated": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "start": "2015-10-21 04:29",
    "end": "2015-10-21 04:29",
    "notifications": true,
    "delegation": true
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 1,
        "id_team": 1,
        "notifications": 1,
        "start": "2020-07-20T18:46:02.000000Z",
        "end": null,
        "created_at": "2020-07-20T18:46:02.000000Z",
        "updated_at": "2020-07-20T18:46:02.000000Z",
        "delegation": 1,
        "staff_delegated": {
            "id_user": 1,
            "id_patient": null,
            "id_staff": 1,
            "email": "oriolgenover@gmail.com",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004104.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 1,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "31355318Q",
                "name": "Oriol",
                "last_name": "Genover",
                "gender": 1,
                "address": "Praza Herrera, 70, Bajo 1º, 82216, Los Villalba",
                "postal_code": "68198",
                "city": "La Esteban",
                "province": "Navarra",
                "region": "León",
                "country": "España",
                "birthdate": "1981-11-21T14:29:43.000000Z",
                "phone_mobile": "905-771748",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 2,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 2,
            "id_patient": null,
            "id_staff": 2,
            "email": "ericsala@onionly.com",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/storage.googleapis.com\/embioth-dev\/users\/avatars\/2-ki72qjni.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-20T19:55:41.000000Z",
            "staff": {
                "id_staff": 2,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "41327448J",
                "name": "Eric",
                "last_name": "Sala i Marin",
                "gender": 1,
                "address": "Calle Aaron, 92, 86º B, 50612, L' Canales",
                "postal_code": "26321",
                "city": "L' Otero",
                "province": "Illes Balears",
                "region": "Tarragona",
                "country": "España",
                "birthdate": "1980-07-11T04:37:23.000000Z",
                "phone_mobile": "949-40-2282",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 3,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 3,
            "id_patient": null,
            "id_staff": 3,
            "email": "lauranadal@embioth.care",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/006351.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 3,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "95215242A",
                "name": "Laura",
                "last_name": "Nadal",
                "gender": 0,
                "address": "Rúa Pastor, 62, 17º E, 58458, Villa Téllez Alta",
                "postal_code": "10539",
                "city": "Benito de Lemos",
                "province": "Girona",
                "region": "Girona",
                "country": "España",
                "birthdate": "1990-01-26T09:27:50.000000Z",
                "phone_mobile": "+34 904 352555",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 4,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 4,
            "id_patient": null,
            "id_staff": 4,
            "email": "eugeniescrig@embioth.care",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004890.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 4,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "14262360Z",
                "name": "Eugeni",
                "last_name": "Escrig",
                "gender": 1,
                "address": "Avinguda Marcos, 230, Bajo 8º, 62871, As Laboy del Bages",
                "postal_code": "82849",
                "city": "Galván del Puerto",
                "province": "Cádiz",
                "region": "A Coruña",
                "country": "España",
                "birthdate": "1993-03-04T13:20:32.000000Z",
                "phone_mobile": "948-155748",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 5,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 5,
            "id_patient": null,
            "id_staff": 5,
            "email": "pau@santandreu.net",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/007849.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 5,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "69438844G",
                "name": "Pau",
                "last_name": "Granell",
                "gender": 1,
                "address": "Plaça Monroy, 77, 15º F, 63892, Tejeda de las Torres",
                "postal_code": "05167",
                "city": "Os Cabello",
                "province": "Cádiz",
                "region": "Ourense",
                "country": "España",
                "birthdate": "1981-08-30T15:47:26.000000Z",
                "phone_mobile": "+34 959-82-7314",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    }
]

HTTP Request

POST v1/delegations/create/{id_user_staff_delegated}

Query Parameters

Parameter Status Description
id_user_staff_delegated optional int required Staff member to receive the delegation.

Body Parameters

Parameter Type Status Description
start datetime optional optional Date and time when the delegation start.
end datetime optional optional Date and time when the delegation ends.
notifications boolean optional optional This staff receive notifications (1 or 0).
delegation boolean optional optional Create or delete the delegation (1 or 0).

Remove

[Remove a patient delegation]

Example request:

curl -X DELETE \
    "https://api.embioth.net/v1/delegations/delete/1?id_user_staff_delegated=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/delegations/delete/1"
);

let params = {
    "id_user_staff_delegated": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "DELETE",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 1,
        "id_team": 1,
        "notifications": 1,
        "start": "2020-07-20T18:46:02.000000Z",
        "end": null,
        "created_at": "2020-07-20T18:46:02.000000Z",
        "updated_at": "2020-07-20T18:46:02.000000Z",
        "delegation": 1,
        "staff_delegated": {
            "id_user": 1,
            "id_patient": null,
            "id_staff": 1,
            "email": "oriolgenover@gmail.com",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004104.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 1,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "31355318Q",
                "name": "Oriol",
                "last_name": "Genover",
                "gender": 1,
                "address": "Praza Herrera, 70, Bajo 1º, 82216, Los Villalba",
                "postal_code": "68198",
                "city": "La Esteban",
                "province": "Navarra",
                "region": "León",
                "country": "España",
                "birthdate": "1981-11-21T14:29:43.000000Z",
                "phone_mobile": "905-771748",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 2,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 2,
            "id_patient": null,
            "id_staff": 2,
            "email": "ericsala@onionly.com",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/storage.googleapis.com\/embioth-dev\/users\/avatars\/2-ki72qjni.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-20T19:55:41.000000Z",
            "staff": {
                "id_staff": 2,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "41327448J",
                "name": "Eric",
                "last_name": "Sala i Marin",
                "gender": 1,
                "address": "Calle Aaron, 92, 86º B, 50612, L' Canales",
                "postal_code": "26321",
                "city": "L' Otero",
                "province": "Illes Balears",
                "region": "Tarragona",
                "country": "España",
                "birthdate": "1980-07-11T04:37:23.000000Z",
                "phone_mobile": "949-40-2282",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 3,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 3,
            "id_patient": null,
            "id_staff": 3,
            "email": "lauranadal@embioth.care",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/006351.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 3,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "95215242A",
                "name": "Laura",
                "last_name": "Nadal",
                "gender": 0,
                "address": "Rúa Pastor, 62, 17º E, 58458, Villa Téllez Alta",
                "postal_code": "10539",
                "city": "Benito de Lemos",
                "province": "Girona",
                "region": "Girona",
                "country": "España",
                "birthdate": "1990-01-26T09:27:50.000000Z",
                "phone_mobile": "+34 904 352555",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 4,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 4,
            "id_patient": null,
            "id_staff": 4,
            "email": "eugeniescrig@embioth.care",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004890.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 4,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "14262360Z",
                "name": "Eugeni",
                "last_name": "Escrig",
                "gender": 1,
                "address": "Avinguda Marcos, 230, Bajo 8º, 62871, As Laboy del Bages",
                "postal_code": "82849",
                "city": "Galván del Puerto",
                "province": "Cádiz",
                "region": "A Coruña",
                "country": "España",
                "birthdate": "1993-03-04T13:20:32.000000Z",
                "phone_mobile": "948-155748",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 5,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 5,
            "id_patient": null,
            "id_staff": 5,
            "email": "pau@santandreu.net",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/007849.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 5,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "69438844G",
                "name": "Pau",
                "last_name": "Granell",
                "gender": 1,
                "address": "Plaça Monroy, 77, 15º F, 63892, Tejeda de las Torres",
                "postal_code": "05167",
                "city": "Os Cabello",
                "province": "Cádiz",
                "region": "Ourense",
                "country": "España",
                "birthdate": "1981-08-30T15:47:26.000000Z",
                "phone_mobile": "+34 959-82-7314",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    }
]

HTTP Request

DELETE v1/delegations/delete/{id_user_staff_delegated}

Query Parameters

Parameter Status Description
id_user_staff_delegated optional int required Staff member to receive all delegations.

List

[List my current active delegations]

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/delegations/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/delegations/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 1,
        "id_team": 1,
        "notifications": 1,
        "start": "2020-07-20T18:46:02.000000Z",
        "end": null,
        "created_at": "2020-07-20T18:46:02.000000Z",
        "updated_at": "2020-07-20T18:46:02.000000Z",
        "staff_delegated": {
            "id_user": 1,
            "id_patient": null,
            "id_staff": 1,
            "email": "oriolgenover@gmail.com",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004104.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 1,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "31355318Q",
                "name": "Oriol",
                "last_name": "Genover",
                "gender": 1,
                "address": "Praza Herrera, 70, Bajo 1º, 82216, Los Villalba",
                "postal_code": "68198",
                "city": "La Esteban",
                "province": "Navarra",
                "region": "León",
                "country": "España",
                "birthdate": "1981-11-21T14:29:43.000000Z",
                "phone_mobile": "905-771748",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    }
]

HTTP Request

GET v1/delegations/list

Staff

[List all my teams staff and check if there is any active delegation]

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/delegations/staff" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/delegations/staff"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 1,
        "id_team": 1,
        "notifications": 1,
        "start": "2020-07-20T18:46:02.000000Z",
        "end": null,
        "created_at": "2020-07-20T18:46:02.000000Z",
        "updated_at": "2020-07-20T18:46:02.000000Z",
        "delegation": 1,
        "staff_delegated": {
            "id_user": 1,
            "id_patient": null,
            "id_staff": 1,
            "email": "oriolgenover@gmail.com",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004104.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 1,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "31355318Q",
                "name": "Oriol",
                "last_name": "Genover",
                "gender": 1,
                "address": "Praza Herrera, 70, Bajo 1º, 82216, Los Villalba",
                "postal_code": "68198",
                "city": "La Esteban",
                "province": "Navarra",
                "region": "León",
                "country": "España",
                "birthdate": "1981-11-21T14:29:43.000000Z",
                "phone_mobile": "905-771748",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 2,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 2,
            "id_patient": null,
            "id_staff": 2,
            "email": "ericsala@onionly.com",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/storage.googleapis.com\/embioth-dev\/users\/avatars\/2-ki72qjni.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-20T19:55:41.000000Z",
            "staff": {
                "id_staff": 2,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "41327448J",
                "name": "Eric",
                "last_name": "Sala i Marin",
                "gender": 1,
                "address": "Calle Aaron, 92, 86º B, 50612, L' Canales",
                "postal_code": "26321",
                "city": "L' Otero",
                "province": "Illes Balears",
                "region": "Tarragona",
                "country": "España",
                "birthdate": "1980-07-11T04:37:23.000000Z",
                "phone_mobile": "949-40-2282",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 3,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 3,
            "id_patient": null,
            "id_staff": 3,
            "email": "lauranadal@embioth.care",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/006351.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 3,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "95215242A",
                "name": "Laura",
                "last_name": "Nadal",
                "gender": 0,
                "address": "Rúa Pastor, 62, 17º E, 58458, Villa Téllez Alta",
                "postal_code": "10539",
                "city": "Benito de Lemos",
                "province": "Girona",
                "region": "Girona",
                "country": "España",
                "birthdate": "1990-01-26T09:27:50.000000Z",
                "phone_mobile": "+34 904 352555",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 4,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 4,
            "id_patient": null,
            "id_staff": 4,
            "email": "eugeniescrig@embioth.care",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004890.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 4,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "14262360Z",
                "name": "Eugeni",
                "last_name": "Escrig",
                "gender": 1,
                "address": "Avinguda Marcos, 230, Bajo 8º, 62871, As Laboy del Bages",
                "postal_code": "82849",
                "city": "Galván del Puerto",
                "province": "Cádiz",
                "region": "A Coruña",
                "country": "España",
                "birthdate": "1993-03-04T13:20:32.000000Z",
                "phone_mobile": "948-155748",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    },
    {
        "id_user_staff_owner": 2,
        "id_user_staff_delegated": 5,
        "id_team": 1,
        "notifications": 0,
        "delegation": 0,
        "staff_delegated": {
            "id_user": 5,
            "id_patient": null,
            "id_staff": 5,
            "email": "pau@santandreu.net",
            "email_verified_at": "2020-06-09T17:09:09.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/007849.jpg",
            "lang": "es",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "staff": {
                "id_staff": 5,
                "id_team_default": 1,
                "type": "DOCTOR",
                "membership_number": "69438844G",
                "name": "Pau",
                "last_name": "Granell",
                "gender": 1,
                "address": "Plaça Monroy, 77, 15º F, 63892, Tejeda de las Torres",
                "postal_code": "05167",
                "city": "Os Cabello",
                "province": "Cádiz",
                "region": "Ourense",
                "country": "España",
                "birthdate": "1981-08-30T15:47:26.000000Z",
                "phone_mobile": "+34 959-82-7314",
                "created_at": "2020-06-09T17:09:09.000000Z",
                "updated_at": "2020-06-09T17:09:09.000000Z"
            }
        }
    }
]

HTTP Request

GET v1/delegations/staff

Login

Get login token

Example request:

curl -X POST \
    "https://api.embioth.net/v1/token/login" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"username":"libero","password":"recusandae"}'
const url = new URL(
    "https://api.embioth.net/v1/token/login"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "username": "libero",
    "password": "recusandae"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST v1/token/login

Body Parameters

Parameter Type Status Description
username string required E-mail
password string required Password

Refresh login token

Example request:

curl -X POST \
    "https://api.embioth.net/v1/token/refresh" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"refresh_token":"dignissimos"}'
const url = new URL(
    "https://api.embioth.net/v1/token/refresh"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "refresh_token": "dignissimos"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST v1/token/refresh

Body Parameters

Parameter Type Status Description
refresh_token string required Refresh token

Patients

Get a list of patients

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/patients/list?id_team=1&search=Aurora" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/patients/list"
);

let params = {
    "id_team": "1",
    "search": "Aurora",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_user": 25,
        "id_patient": 1,
        "id_staff": null,
        "email": "pichardo.nil@hotmail.com",
        "email_verified_at": "2020-06-09T17:09:10.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/005180.jpg",
        "lang": "es",
        "created_at": "2020-05-24T12:51:59.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 2,
        "name": "Aurora",
        "last_name": "Pacheco",
        "national_id": "52370601S",
        "address": "Praza Loya, 130, 97º 2º, 59609, Fierro Alta",
        "postal_code": "37432",
        "city": "San Alcántar de Lemos",
        "province": "Huelva",
        "region": "Málaga",
        "country": "España",
        "birthdate": "1983-01-16",
        "phone_mobile": "904210366",
        "phone_emergency": "+34 906 326684",
        "name_emergency": "Paula Quintana",
        "tpal": "3,2,3,3",
        "alergies": "Ea qui voluptate et et quibusdam quis cupiditate.",
        "rh_blood": "AB-",
        "risk_level": 1,
        "last_menstruation_at": "2019-10-03T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-09T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:19.000000Z"
    },
    {
        "id_user": 26,
        "id_patient": 2,
        "id_staff": null,
        "email": "biel88@jaime.net",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/006058.jpg",
        "lang": "es",
        "created_at": "2020-04-27T01:48:19.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 4,
        "name": "Carla",
        "last_name": "Vidal",
        "national_id": "59236370P",
        "address": "Avenida Carrasco, 64, Entre suelo 8º, 68514, El Miramontes",
        "postal_code": "49849",
        "city": "O Betancourt del Mirador",
        "province": "Albacete",
        "region": "Segovia",
        "country": "España",
        "birthdate": "1988-07-12",
        "phone_mobile": "+34 967 05 4898",
        "phone_emergency": "+34 931-614158",
        "name_emergency": "Mara Mondragón",
        "tpal": "1,0,0,4",
        "alergies": null,
        "rh_blood": "A-",
        "risk_level": 4,
        "last_menstruation_at": "2019-10-16T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-22T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:19.000000Z"
    },
    {
        "id_user": 27,
        "id_patient": 3,
        "id_staff": null,
        "email": "zsanabria@plaza.org",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/008024.jpg",
        "lang": "es",
        "created_at": "2020-04-18T21:10:57.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Nerea",
        "last_name": "Domenech",
        "national_id": "36226054L",
        "address": "Plaça Jiménez, 3, Bajo 9º, 87762, Trujillo Baja",
        "postal_code": "87684",
        "city": "Los Carrera Medio",
        "province": "Cádiz",
        "region": "Melilla",
        "country": "España",
        "birthdate": "1997-06-13",
        "phone_mobile": "+34 911-872612",
        "phone_emergency": "955307283",
        "name_emergency": "Adrián Lira",
        "tpal": "1,0,0,1",
        "alergies": null,
        "rh_blood": "0+",
        "risk_level": 4,
        "last_menstruation_at": "2019-10-04T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-10T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:19.000000Z"
    },
    {
        "id_user": 28,
        "id_patient": 4,
        "id_staff": null,
        "email": "rosa.andres@hispavista.com",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004447.jpg",
        "lang": "es",
        "created_at": "2020-04-29T13:06:50.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 4,
        "name": "Rosario",
        "last_name": "Ros",
        "national_id": "65188548Q",
        "address": "Travesía Sevilla, 27, 4º 4º, 46885, Os Córdoba",
        "postal_code": "49971",
        "city": "O Villegas",
        "province": "Ávila",
        "region": "Álava",
        "country": "España",
        "birthdate": "1985-05-17",
        "phone_mobile": "989-200741",
        "phone_emergency": "959850413",
        "name_emergency": "Ángela Vanegas",
        "tpal": "4,2,1,2",
        "alergies": null,
        "rh_blood": "A-",
        "risk_level": 0,
        "last_menstruation_at": "2019-10-05T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-11T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:20.000000Z"
    },
    {
        "id_user": 29,
        "id_patient": 5,
        "id_staff": null,
        "email": "marina.tejada@hotmail.es",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009854.jpg",
        "lang": "es",
        "created_at": "2020-06-08T11:23:25.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 1,
        "name": "Andrea",
        "last_name": "Reyna",
        "national_id": "36522626Y",
        "address": "Avinguda Esther, 952, Entre suelo 6º, 35426, Pagan de la Sierra",
        "postal_code": "29926",
        "city": "A Mateo del Puerto",
        "province": "Cantabria",
        "region": "Zamora",
        "country": "España",
        "birthdate": "1993-06-09",
        "phone_mobile": "+34 946035453",
        "phone_emergency": "+34 999-793840",
        "name_emergency": "Carmen Henríquez",
        "tpal": "2,1,2,0",
        "alergies": null,
        "rh_blood": "0+",
        "risk_level": 2,
        "last_menstruation_at": "2019-09-14T00:00:00.000000Z",
        "childbirth_expected_at": "2020-06-20T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:20.000000Z"
    },
    {
        "id_user": 30,
        "id_patient": 6,
        "id_staff": null,
        "email": "rosario.godinez@terrazas.org",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/003177.jpg",
        "lang": "es",
        "created_at": "2020-05-24T19:54:37.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 2,
        "name": "Adriana",
        "last_name": "Guillen",
        "national_id": "14075604H",
        "address": "Paseo Barraza, 383, 25º E, 24661, O Pacheco de San Pedro",
        "postal_code": "23441",
        "city": "Los Orosco Alta",
        "province": "Pontevedra",
        "region": "Ceuta",
        "country": "España",
        "birthdate": "1999-10-31",
        "phone_mobile": "+34 900-64-2103",
        "phone_emergency": "980660898",
        "name_emergency": "Julia Abrego",
        "tpal": "4,3,1,3",
        "alergies": null,
        "rh_blood": "B-",
        "risk_level": 3,
        "last_menstruation_at": "2019-11-08T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-14T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:20.000000Z"
    },
    {
        "id_user": 31,
        "id_patient": 7,
        "id_staff": null,
        "email": "fsolis@tovar.es",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/008566.jpg",
        "lang": "es",
        "created_at": "2020-05-16T10:42:17.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Diana",
        "last_name": "Pedraza",
        "national_id": "55893351Q",
        "address": "Camino Venegas, 642, 7º D, 68100, Gallegos del Puerto",
        "postal_code": "54661",
        "city": "Salinas de Lemos",
        "province": "León",
        "region": "Zaragoza",
        "country": "España",
        "birthdate": "2000-05-12",
        "phone_mobile": "+34 964419234",
        "phone_emergency": "+34 992 47 6392",
        "name_emergency": "Ismael Otero",
        "tpal": "1,0,0,3",
        "alergies": null,
        "rh_blood": "A-",
        "risk_level": 1,
        "last_menstruation_at": "2019-10-01T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-07T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:20.000000Z"
    },
    {
        "id_user": 32,
        "id_patient": 8,
        "id_staff": null,
        "email": "ehernando@aguirre.com",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009397.jpg",
        "lang": "es",
        "created_at": "2020-05-06T20:21:53.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Clara",
        "last_name": "Montaño",
        "national_id": "27713306P",
        "address": "Avenida Jan, 7, 73º E, 34839, Chávez del Vallès",
        "postal_code": "89161",
        "city": "L' Lovato",
        "province": "Segovia",
        "region": "Illes Balears",
        "country": "España",
        "birthdate": "1987-10-25",
        "phone_mobile": "+34 985 01 3029",
        "phone_emergency": "930 629698",
        "name_emergency": "Luna Cortez",
        "tpal": "3,2,4,0",
        "alergies": null,
        "rh_blood": "0-",
        "risk_level": 3,
        "last_menstruation_at": "2019-10-22T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-28T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:20.000000Z"
    },
    {
        "id_user": 33,
        "id_patient": 9,
        "id_staff": null,
        "email": "ana33@alcantar.es",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009499.jpg",
        "lang": "es",
        "created_at": "2020-04-27T15:34:19.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Claudia",
        "last_name": "Delagarza",
        "national_id": "46068468C",
        "address": "Ruela Sánchez, 20, 78º B, 84354, Os Navas",
        "postal_code": "04678",
        "city": "Caldera Baja",
        "province": "Santa Cruz de Tenerife",
        "region": "Tarragona",
        "country": "España",
        "birthdate": "1981-10-08",
        "phone_mobile": "960-713499",
        "phone_emergency": "999-75-1678",
        "name_emergency": "José Antonio Verdugo",
        "tpal": "0,4,0,0",
        "alergies": "Laborum dolores id blanditiis qui ipsum.",
        "rh_blood": "0-",
        "risk_level": 4,
        "last_menstruation_at": "2019-10-31T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-06T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:20.000000Z"
    },
    {
        "id_user": 34,
        "id_patient": 10,
        "id_staff": null,
        "email": "francisco99@barrios.com",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009885.jpg",
        "lang": "es",
        "created_at": "2020-04-30T21:10:27.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 3,
        "name": "María Dolores",
        "last_name": "Fonseca",
        "national_id": "50558012X",
        "address": "Plaza Arnau, 7, 8º D, 06694, Rangel Baja",
        "postal_code": "51913",
        "city": "Vall Villar",
        "province": "Burgos",
        "region": "Valladolid",
        "country": "España",
        "birthdate": "1985-06-21",
        "phone_mobile": "926-844557",
        "phone_emergency": "+34 957-134223",
        "name_emergency": "Andrea Costa",
        "tpal": "4,4,0,2",
        "alergies": null,
        "rh_blood": "AB-",
        "risk_level": 4,
        "last_menstruation_at": "2019-09-24T00:00:00.000000Z",
        "childbirth_expected_at": "2020-06-30T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:20.000000Z"
    },
    {
        "id_user": 35,
        "id_patient": 11,
        "id_staff": null,
        "email": "nora.plaza@gaitan.es",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009506.jpg",
        "lang": "es",
        "created_at": "2020-05-12T02:34:03.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 4,
        "name": "Nora",
        "last_name": "Segovia",
        "national_id": "02148383E",
        "address": "Travessera Andrés, 9, 3º B, 59926, El Batista del Penedès",
        "postal_code": "59950",
        "city": "Villa Frías de Ulla",
        "province": "Lugo",
        "region": "Navarra",
        "country": "España",
        "birthdate": "2001-09-15",
        "phone_mobile": "+34 952-51-1329",
        "phone_emergency": "+34 937-16-7700",
        "name_emergency": "Silvia Salvador",
        "tpal": "2,1,2,4",
        "alergies": null,
        "rh_blood": "0+",
        "risk_level": 4,
        "last_menstruation_at": "2019-11-06T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-12T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 36,
        "id_patient": 12,
        "id_staff": null,
        "email": "vidal.izan@hotmail.es",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/005616.jpg",
        "lang": "es",
        "created_at": "2020-06-05T02:05:40.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 2,
        "name": "Yolanda",
        "last_name": "Arenas",
        "national_id": "54684959K",
        "address": "Avinguda Naiara, 0, 3º F, 79806, Velázquez del Barco",
        "postal_code": "87678",
        "city": "La Viera",
        "province": "Badajoz",
        "region": "Valencia",
        "country": "España",
        "birthdate": "1986-07-11",
        "phone_mobile": "998 39 9883",
        "phone_emergency": "+34 964-71-0110",
        "name_emergency": "Beatriz Córdoba",
        "tpal": "4,3,4,1",
        "alergies": null,
        "rh_blood": "0+",
        "risk_level": 0,
        "last_menstruation_at": "2019-09-30T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-06T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 37,
        "id_patient": 13,
        "id_staff": null,
        "email": "elsa12@gmail.com",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009495.jpg",
        "lang": "es",
        "created_at": "2020-05-30T09:56:04.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Yolanda",
        "last_name": "Lira",
        "national_id": "19126775K",
        "address": "Avinguda Riera, 3, 99º B, 63239, La Toro",
        "postal_code": "22708",
        "city": "Villa Suárez",
        "province": "Teruel",
        "region": "Murcia",
        "country": "España",
        "birthdate": "1993-03-11",
        "phone_mobile": "978104406",
        "phone_emergency": "960343889",
        "name_emergency": "Pilar Solorio",
        "tpal": "0,1,0,4",
        "alergies": null,
        "rh_blood": "A+",
        "risk_level": 1,
        "last_menstruation_at": "2019-09-10T00:00:00.000000Z",
        "childbirth_expected_at": "2020-06-16T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 38,
        "id_patient": 14,
        "id_staff": null,
        "email": "miriam.duran@terra.com",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/001874.jpg",
        "lang": "es",
        "created_at": "2020-05-31T11:05:14.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 4,
        "name": "Olivia",
        "last_name": "Haro",
        "national_id": "77285587K",
        "address": "Avinguda Úrsula, 4, 1º D, 11170, El Nieves",
        "postal_code": "51888",
        "city": "Medrano Alta",
        "province": "Salamanca",
        "region": "Granada",
        "country": "España",
        "birthdate": "2000-02-02",
        "phone_mobile": "926 219812",
        "phone_emergency": "+34 937325995",
        "name_emergency": "Isaac Limón",
        "tpal": "4,1,1,1",
        "alergies": null,
        "rh_blood": "AB+",
        "risk_level": 3,
        "last_menstruation_at": "2019-11-07T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-13T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 39,
        "id_patient": 15,
        "id_staff": null,
        "email": "upagan@hispavista.com",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/002600.jpg",
        "lang": "es",
        "created_at": "2020-05-25T03:12:42.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Elena",
        "last_name": "Quiroz",
        "national_id": "03872670E",
        "address": "Camiño Jon, 254, 0º C, 00848, El Alaniz",
        "postal_code": "27631",
        "city": "Villa Carbonell",
        "province": "Guadalajara",
        "region": "Madrid",
        "country": "España",
        "birthdate": "1983-07-10",
        "phone_mobile": "940674778",
        "phone_emergency": "+34 967 19 1279",
        "name_emergency": "Rodrigo Pedroza",
        "tpal": "2,0,1,1",
        "alergies": null,
        "rh_blood": "0+",
        "risk_level": 1,
        "last_menstruation_at": "2019-10-30T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-05T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 40,
        "id_patient": 16,
        "id_staff": null,
        "email": "coronado.vega@gmail.com",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/007870.jpg",
        "lang": "es",
        "created_at": "2020-04-26T11:24:22.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "id_team": 1,
        "id_user_staff": 1,
        "name": "Francisca",
        "last_name": "Girón",
        "national_id": "98592671C",
        "address": "Avinguda Arroyo, 982, 8º E, 48839, Matos Medio",
        "postal_code": "23466",
        "city": "O Tijerina",
        "province": "Murcia",
        "region": "Segovia",
        "country": "España",
        "birthdate": "1983-11-11",
        "phone_mobile": "+34 995987648",
        "phone_emergency": "951-573583",
        "name_emergency": "Francisco Javier Alicea",
        "tpal": "4,0,2,3",
        "alergies": "Laudantium animi exercitationem aliquid omnis.",
        "rh_blood": "0-",
        "risk_level": 1,
        "last_menstruation_at": "2019-10-15T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-21T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 41,
        "id_patient": 17,
        "id_staff": null,
        "email": "marcos50@hispavista.com",
        "email_verified_at": "2020-06-09T17:09:11.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004346.jpg",
        "lang": "es",
        "created_at": "2020-05-05T11:46:51.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 4,
        "name": "Beatriz",
        "last_name": "Gallardo",
        "national_id": "29605275C",
        "address": "Passeig Ferrer, 34, 4º A, 18752, Os García",
        "postal_code": "46494",
        "city": "Aguilar de las Torres",
        "province": "Albacete",
        "region": "Navarra",
        "country": "España",
        "birthdate": "1992-05-31",
        "phone_mobile": "+34 952-83-5368",
        "phone_emergency": "918-29-6467",
        "name_emergency": "Nerea Casanova",
        "tpal": "0,3,1,1",
        "alergies": null,
        "rh_blood": "A-",
        "risk_level": 0,
        "last_menstruation_at": "2019-10-01T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-07T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 42,
        "id_patient": 18,
        "id_staff": null,
        "email": "alba39@latinmail.com",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009043.jpg",
        "lang": "es",
        "created_at": "2020-05-19T10:17:19.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 2,
        "name": "Noa",
        "last_name": "Sepúlveda",
        "national_id": "88283575F",
        "address": "Travessera Trejo, 04, 3º D, 52277, Véliz de San Pedro",
        "postal_code": "00798",
        "city": "El Quintero Baja",
        "province": "Toledo",
        "region": "Ourense",
        "country": "España",
        "birthdate": "1996-11-18",
        "phone_mobile": "916-803340",
        "phone_emergency": "+34 922-878460",
        "name_emergency": "Pilar Mojica",
        "tpal": "0,0,2,1",
        "alergies": null,
        "rh_blood": "B+",
        "risk_level": 3,
        "last_menstruation_at": "2019-09-16T00:00:00.000000Z",
        "childbirth_expected_at": "2020-06-22T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 43,
        "id_patient": 19,
        "id_staff": null,
        "email": "emilia82@delgadillo.com",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/005801.jpg",
        "lang": "es",
        "created_at": "2020-05-09T16:05:13.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 4,
        "name": "Margarita",
        "last_name": "Villalba",
        "national_id": "99027029T",
        "address": "Ruela María Ángeles, 604, 66º C, 64099, Zapata del Barco",
        "postal_code": "24269",
        "city": "La Campos de San Pedro",
        "province": "Murcia",
        "region": "Sevilla",
        "country": "España",
        "birthdate": "1996-05-06",
        "phone_mobile": "+34 955 405721",
        "phone_emergency": "903-48-6157",
        "name_emergency": "Amparo Lara",
        "tpal": "0,2,1,2",
        "alergies": null,
        "rh_blood": "0-",
        "risk_level": 4,
        "last_menstruation_at": "2019-10-08T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-14T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 44,
        "id_patient": 20,
        "id_staff": null,
        "email": "laia20@duran.es",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/002659.jpg",
        "lang": "es",
        "created_at": "2020-06-02T00:14:53.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 3,
        "name": "Cristina",
        "last_name": "Huerta",
        "national_id": "21754136T",
        "address": "Camino Sara, 04, Ático 7º, 60573, Sisneros de Arriba",
        "postal_code": "46305",
        "city": "Arevalo del Puerto",
        "province": "Pontevedra",
        "region": "Illes Balears",
        "country": "España",
        "birthdate": "1981-12-09",
        "phone_mobile": "+34 957-14-3713",
        "phone_emergency": "953996294",
        "name_emergency": "Marcos Pineda",
        "tpal": "1,0,0,4",
        "alergies": null,
        "rh_blood": "0+",
        "risk_level": 0,
        "last_menstruation_at": "2019-11-06T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-12T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 45,
        "id_patient": 21,
        "id_staff": null,
        "email": "lmanzanares@lira.es",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/000693.jpg",
        "lang": "es",
        "created_at": "2020-05-08T09:04:48.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Martina",
        "last_name": "Serna",
        "national_id": "17498753P",
        "address": "Avinguda Ian, 9, 22º 3º, 70536, A Zayas del Pozo",
        "postal_code": "57092",
        "city": "Pastor de Lemos",
        "province": "La Rioja",
        "region": "Ceuta",
        "country": "España",
        "birthdate": "1996-05-08",
        "phone_mobile": "+34 939-514342",
        "phone_emergency": "974 31 1893",
        "name_emergency": "Carlos Arce",
        "tpal": "2,2,1,3",
        "alergies": null,
        "rh_blood": "B+",
        "risk_level": 3,
        "last_menstruation_at": "2019-10-05T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-11T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 46,
        "id_patient": 22,
        "id_staff": null,
        "email": "arenas.veronica@hotmail.com",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/003297.jpg",
        "lang": "es",
        "created_at": "2020-05-26T19:21:44.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Paula",
        "last_name": "Soria",
        "national_id": "07264602Y",
        "address": "Calle Lucas, 413, 94º B, 33001, El Gámez",
        "postal_code": "88786",
        "city": "Las Nájera",
        "province": "Alicante",
        "region": "Las Palmas",
        "country": "España",
        "birthdate": "1982-01-21",
        "phone_mobile": "+34 962 668907",
        "phone_emergency": "+34 909-243064",
        "name_emergency": "Nahia Carrero",
        "tpal": "0,1,2,4",
        "alergies": null,
        "rh_blood": "B-",
        "risk_level": 0,
        "last_menstruation_at": "2019-10-11T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-17T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 47,
        "id_patient": 23,
        "id_staff": null,
        "email": "barrera.angel@curiel.org",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/000938.jpg",
        "lang": "es",
        "created_at": "2020-04-23T09:59:51.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 4,
        "name": "Inés",
        "last_name": "Abeyta",
        "national_id": "17333318N",
        "address": "Avinguda Beatriz, 10, 47º B, 56514, Lira del Pozo",
        "postal_code": "40114",
        "city": "Los Valle",
        "province": "Ourense",
        "region": "Málaga",
        "country": "España",
        "birthdate": "1980-07-05",
        "phone_mobile": "+34 998-892807",
        "phone_emergency": "+34 983-87-2454",
        "name_emergency": "Martín González",
        "tpal": "1,4,2,2",
        "alergies": null,
        "rh_blood": "0-",
        "risk_level": 0,
        "last_menstruation_at": "2019-10-27T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-02T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 48,
        "id_patient": 24,
        "id_staff": null,
        "email": "zhernandez@requena.com",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/008967.jpg",
        "lang": "es",
        "created_at": "2020-06-04T16:06:42.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Lorena",
        "last_name": "Almaráz",
        "national_id": "85298613P",
        "address": "Calle Santana, 732, 63º C, 42771, Las Arroyo del Vallès",
        "postal_code": "51394",
        "city": "El Varela de las Torres",
        "province": "Murcia",
        "region": "Zaragoza",
        "country": "España",
        "birthdate": "1985-08-05",
        "phone_mobile": "992726027",
        "phone_emergency": "+34 974-27-8724",
        "name_emergency": "Miguel Ángel Quintero",
        "tpal": "1,2,4,1",
        "alergies": null,
        "rh_blood": "A-",
        "risk_level": 0,
        "last_menstruation_at": "2019-10-12T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-18T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 49,
        "id_patient": 25,
        "id_staff": null,
        "email": "roberto70@peres.net",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/004814.jpg",
        "lang": "es",
        "created_at": "2020-06-02T17:31:05.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 1,
        "name": "Rosa María",
        "last_name": "Guajardo",
        "national_id": "73470372T",
        "address": "Plaza Regalado, 353, 04º F, 04261, Los Leiva",
        "postal_code": "85906",
        "city": "Los Sepúlveda Alta",
        "province": "Jaén",
        "region": "Navarra",
        "country": "España",
        "birthdate": "1983-05-16",
        "phone_mobile": "951-727966",
        "phone_emergency": "+34 998 149785",
        "name_emergency": "Yeray Sola",
        "tpal": "1,2,3,1",
        "alergies": "Sit dolores tempora aut sunt.",
        "rh_blood": "A+",
        "risk_level": 2,
        "last_menstruation_at": "2019-10-28T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-03T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 50,
        "id_patient": 26,
        "id_staff": null,
        "email": "sara26@hispavista.com",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/000697.jpg",
        "lang": "es",
        "created_at": "2020-05-14T18:20:45.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 4,
        "name": "Lara",
        "last_name": "Arribas",
        "national_id": "14849458Z",
        "address": "Travesía Natalia, 0, 7º B, 50611, Cervantes del Barco",
        "postal_code": "06598",
        "city": "Los Arguello",
        "province": "Salamanca",
        "region": "Almería",
        "country": "España",
        "birthdate": "1985-08-04",
        "phone_mobile": "+34 966-42-9386",
        "phone_emergency": "+34 979 03 3778",
        "name_emergency": "Rubén Ferrer",
        "tpal": "2,2,0,1",
        "alergies": null,
        "rh_blood": "A-",
        "risk_level": 1,
        "last_menstruation_at": "2019-10-03T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-09T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 51,
        "id_patient": 27,
        "id_staff": null,
        "email": "josefa23@latinmail.com",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/003068.jpg",
        "lang": "es",
        "created_at": "2020-04-10T20:13:25.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 1,
        "name": "Naiara",
        "last_name": "Saiz",
        "national_id": "07928506S",
        "address": "Ronda Rosa, 592, 49º F, 99150, Vall Delarosa",
        "postal_code": "39066",
        "city": "Vall Villaseñor Medio",
        "province": "Sevilla",
        "region": "Santa Cruz de Tenerife",
        "country": "España",
        "birthdate": "1989-04-23",
        "phone_mobile": "+34 903 753017",
        "phone_emergency": "+34 998 943337",
        "name_emergency": "Oliver Roig",
        "tpal": "3,1,1,0",
        "alergies": null,
        "rh_blood": "AB+",
        "risk_level": 0,
        "last_menstruation_at": "2019-09-19T00:00:00.000000Z",
        "childbirth_expected_at": "2020-06-25T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:21.000000Z"
    },
    {
        "id_user": 52,
        "id_patient": 28,
        "id_staff": null,
        "email": "carbajal.marco@hotmail.es",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009509.jpg",
        "lang": "es",
        "created_at": "2020-05-31T20:39:02.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 5,
        "name": "Salma",
        "last_name": "Melgar",
        "national_id": "64798797T",
        "address": "Carrer Valenzuela, 455, 1º A, 87229, Os Gaitán de Arriba",
        "postal_code": "30839",
        "city": "Los Cazares",
        "province": "Huelva",
        "region": "Illes Balears",
        "country": "España",
        "birthdate": "1995-03-19",
        "phone_mobile": "+34 977304475",
        "phone_emergency": "978-93-6990",
        "name_emergency": "Aaron Rolón",
        "tpal": "3,1,0,3",
        "alergies": null,
        "rh_blood": "AB-",
        "risk_level": 4,
        "last_menstruation_at": "2019-10-10T00:00:00.000000Z",
        "childbirth_expected_at": "2020-07-16T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:22.000000Z"
    },
    {
        "id_user": 53,
        "id_patient": 29,
        "id_staff": null,
        "email": "jon73@haro.es",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/005172.jpg",
        "lang": "es",
        "created_at": "2020-05-24T09:15:05.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 1,
        "name": "Valeria",
        "last_name": "Galindo",
        "national_id": "06451058H",
        "address": "Carrer Luján, 99, 51º B, 43604, Antón Medio",
        "postal_code": "97360",
        "city": "Vall Rosas",
        "province": "Teruel",
        "region": "A Coruña",
        "country": "España",
        "birthdate": "1983-04-18",
        "phone_mobile": "991-246984",
        "phone_emergency": "944-01-5624",
        "name_emergency": "Raúl Bustos",
        "tpal": "3,3,3,3",
        "alergies": null,
        "rh_blood": "0+",
        "risk_level": 3,
        "last_menstruation_at": "2019-10-28T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-03T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:22.000000Z"
    },
    {
        "id_user": 54,
        "id_patient": 30,
        "id_staff": null,
        "email": "ruiz.jordi@yahoo.es",
        "email_verified_at": "2020-06-09T17:09:12.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/000278.jpg",
        "lang": "es",
        "created_at": "2020-05-26T14:55:11.000000Z",
        "updated_at": "2020-06-09T17:09:12.000000Z",
        "id_team": 1,
        "id_user_staff": 2,
        "name": "Claudia",
        "last_name": "Zarate",
        "national_id": "98835211W",
        "address": "Carrer Pons, 85, 0º B, 62335, A Vásquez de Ulla",
        "postal_code": "17054",
        "city": "Las Becerra",
        "province": "Salamanca",
        "region": "Navarra",
        "country": "España",
        "birthdate": "1996-04-02",
        "phone_mobile": "938 829941",
        "phone_emergency": "+34 925 58 4004",
        "name_emergency": "Gloria Bautista",
        "tpal": "2,1,3,3",
        "alergies": null,
        "rh_blood": "AB-",
        "risk_level": 0,
        "last_menstruation_at": "2019-10-30T00:00:00.000000Z",
        "childbirth_expected_at": "2020-08-05T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:22.000000Z"
    }
]

HTTP Request

GET v1/patients/list

Query Parameters

Parameter Status Description
id_team optional Filters teams.
search optional Filter patients.

Readings

List all readings.

[If Staff: list all readings of my teams. If Patient: only read my readings]

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/readings/list/3?id_team=2&reviewed=false&include_patient_info=true" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/readings/list/3"
);

let params = {
    "id_team": "2",
    "reviewed": "false",
    "include_patient_info": "true",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_reading": 1,
        "id_device": 2,
        "id_team": 2,
        "id_user_patient": 3,
        "id_user_staff_reviewed": null,
        "reviewed_at": null,
        "created_at": "2020-05-18T12:59:48.000000Z",
        "updated_at": "2020-05-18T12:59:48.000000Z"
    }
]

HTTP Request

GET v1/readings/list/{id_patient?}

URL Parameters

Parameter Status Description
id_patient optional The id_user of the patient.

Query Parameters

Parameter Status Description
id_team optional Filters teams (only for staff and if you list all users).
reviewed optional Filters reviewed readings.
include_patient_info optional Include user and patient object for each reading.

Get a reading

[If Staff: can get all readings of my teams. If Patient: only get my readings]

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/readings/read/3?include_patient_info=true" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/readings/read/3"
);

let params = {
    "include_patient_info": "true",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id_reading": 3705,
    "id_device": 1,
    "id_team": 1,
    "id_user_patient": 25,
    "fhr": "150,149,147,145,142,139,135,134,132,130,130,130,129,129,127,125,128,129,132,134,134,132,...",
    "toco": "59,10,9,9,8,6,7,6,4,3,2,2,2,1,0,0,0,...",
    "id_user_staff_reviewed": null,
    "reviewed_comments": null,
    "review_result": null,
    "reviewed_at": null,
    "created_at": "2020-06-11T10:48:32.000000Z",
    "updated_at": "2020-06-11T10:48:32.000000Z",
    "audioWav": "https:\/\/storage.googleapis.com\/embioth-dev\/patients\/readings\/25-3705-reading-abcd12345.wav"
}

HTTP Request

GET v1/readings/read/{id_reading}

URL Parameters

Parameter Status Description
id_reading optional The id_reading of the reading.

Query Parameters

Parameter Status Description
include_patient_info optional Include user and patient object for each reading.

Create a new reading

[If Staff: can create a readings for other Users. If Patient: only can create readings for himself]

Example request:

curl -X POST \
    "https://api.embioth.net/v1/readings/create" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"fhr":"121,127,128,128,130,131,134,136,138,138, ...","toco":"33,15,19,21,19,28,39,28,19,14,14,20, ...","id_patient":"3","audio":"laudantium"}'
const url = new URL(
    "https://api.embioth.net/v1/readings/create"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "fhr": "121,127,128,128,130,131,134,136,138,138, ...",
    "toco": "33,15,19,21,19,28,39,28,19,14,14,20, ...",
    "id_patient": "3",
    "audio": "laudantium"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id_reading": 3705,
    "id_device": 1,
    "id_team": 1,
    "id_user_patient": 25,
    "fhr": "150,149,147,145,142,139,135,134,132,130,130,130,129,129,127,125,128,129,132,134,134,132,...",
    "toco": "59,10,9,9,8,6,7,6,4,3,2,2,2,1,0,0,0,...",
    "id_user_staff_reviewed": null,
    "reviewed_comments": null,
    "review_result": null,
    "reviewed_at": null,
    "created_at": "2020-06-11T10:48:32.000000Z",
    "updated_at": "2020-06-11T10:48:32.000000Z",
    "audioWav": "https:\/\/storage.googleapis.com\/embioth-dev\/patients\/readings\/25-3705-reading-abcd12345.wav"
}

HTTP Request

POST v1/readings/create

Body Parameters

Parameter Type Status Description
fhr FHR. optional
toco TOCO. optional
id_patient The optional id_user of the patient.
audio File optional audio WAV

Review readings

[Staff member can review any pending reading to review]

Example request:

curl -X POST \
    "https://api.embioth.net/v1/readings/review/3?review_result=OK" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"reviewed_comments":"La medicion nos indica que en este momento el bebe tiene una reserva respiratoria normal"}'
const url = new URL(
    "https://api.embioth.net/v1/readings/review/3"
);

let params = {
    "review_result": "OK",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "reviewed_comments": "La medicion nos indica que en este momento el bebe tiene una reserva respiratoria normal"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id_reading": 1,
    "id_device": 1,
    "id_team": 1,
    "id_user_patient": 3,
    "fhr": "121,127,128,128,130,131,134",
    "toco": "8,8,8,10,10,10,12,12,12,12,12,12,11",
    "id_user_staff_reviewed": 1,
    "reviewed_comments": "Hola",
    "review_result": "OK",
    "reviewed_at": "2020-05-22T17:53:31.000000Z",
    "created_at": "2020-05-18T12:59:48.000000Z",
    "updated_at": "2020-05-22T17:53:31.000000Z"
}

HTTP Request

POST v1/readings/review/{id_reading}

URL Parameters

Parameter Status Description
id_reading optional The id_reading of the reading.

Query Parameters

Parameter Status Description
review_result optional OK or KO.

Body Parameters

Parameter Type Status Description
reviewed_comments Comments. optional

Staff

Get a list of staff

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/teams//staff/list?id_team=1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/teams//staff/list"
);

let params = {
    "id_team": "1",
};
Object.keys(params)
    .forEach(key => url.searchParams.append(key, params[key]));

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_user": 1,
        "id_patient": null,
        "id_staff": 1,
        "email": "ericsala@onionly.com",
        "email_verified_at": "2020-04-14T16:38:48.000000Z",
        "photo": null,
        "lang": "es",
        "created_at": "2020-05-20T19:54:38.000000Z",
        "updated_at": "2020-05-20T19:54:38.000000Z",
        "id_team": 1,
        "id_user_staff": 1,
        "id_team_default": null,
        "type": "DOCTOR",
        "membership_number": null,
        "name": "Eric",
        "last_name": "Sala i Marin",
        "address": null,
        "postal_code": null,
        "city": null,
        "province": null,
        "region": null,
        "country": null,
        "birthdate": null,
        "phone_mobile": null
    }
]

HTTP Request

GET v1/teams/{id_team?}/staff/list

Query Parameters

Parameter Status Description
id_team optional Filters teams.

Teams

Get a list of staff Teams

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/teams/list" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/teams/list"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_team": 1,
        "name": "Equip Genover",
        "created_at": "2020-05-20T10:01:15.000000Z",
        "updated_at": "2020-05-20T10:01:15.000000Z",
        "pivot": {
            "id_user_staff": 1,
            "id_team": 1
        }
    }
]

HTTP Request

GET v1/teams/list

Read a Teams

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/teams/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/teams/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

[
    {
        "id_team": 1,
        "name": "Equip Genover",
        "created_at": "2020-05-20T10:01:15.000000Z",
        "updated_at": "2020-05-20T10:01:15.000000Z"
    }
]

HTTP Request

GET v1/teams/{id_team}

Testing

Ping pong testing

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/ping" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/ping"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

"pong"

HTTP Request

GET v1/ping

Users

Get User profile

Example request:

curl -X GET \
    -G "https://api.embioth.net/v1/users/profile/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
const url = new URL(
    "https://api.embioth.net/v1/users/profile/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id_user": 2,
    "id_patient": null,
    "id_staff": 2,
    "email": "ericsala@onionly.com",
    "email_verified_at": "2020-06-09T17:09:09.000000Z",
    "photo": "https:\/\/www.onionly.net\/files\/10000faces\/002329.jpg",
    "lang": "es",
    "created_at": "2020-06-09T17:09:09.000000Z",
    "updated_at": "2020-06-09T17:09:09.000000Z",
    "staff": {
        "id_staff": 2,
        "id_team_default": 1,
        "type": "DOCTOR",
        "membership_number": "41327448J",
        "name": "Eric",
        "last_name": "Sala i Marin",
        "gender": 1,
        "address": "Calle Aaron, 92, 86º B, 50612, L' Canales",
        "postal_code": "26321",
        "city": "L' Otero",
        "province": "Illes Balears",
        "region": "Tarragona",
        "country": "España",
        "birthdate": "1980-07-11T04:37:23.000000Z",
        "phone_mobile": "949-40-2282",
        "created_at": "2020-06-09T17:09:09.000000Z",
        "updated_at": "2020-06-09T17:09:09.000000Z"
    },
    "type": "STAFF",
    "teams": [
        {
            "id_team": 1,
            "name": "Team EMBIOTH",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "pivot": {
                "id_user_staff": 2,
                "id_team": 1
            }
        }
    ],
    "roles": [
        "admin",
        "manager",
        "staff"
    ],
    "patient": null
}

Example response (200):

{
    "id_user": 34,
    "id_patient": 10,
    "id_staff": null,
    "email": "francisco99@barrios.com",
    "email_verified_at": "2020-06-09T17:09:11.000000Z",
    "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009885.jpg",
    "lang": "es",
    "created_at": "2020-04-30T21:10:27.000000Z",
    "updated_at": "2020-06-09T17:09:11.000000Z",
    "patient": {
        "id_patient": 10,
        "id_team": 1,
        "id_user_staff": 3,
        "name": "María Dolores",
        "last_name": "Fonseca",
        "national_id": "50558012X",
        "address": "Plaza Arnau, 7, 8º D, 06694, Rangel Baja",
        "postal_code": "51913",
        "city": "Vall Villar",
        "province": "Burgos",
        "region": "Valladolid",
        "country": "España",
        "birthdate": "1985-06-21T00:00:00.000000Z",
        "phone_mobile": "926-844557",
        "phone_emergency": "+34 957-134223",
        "name_emergency": "Andrea Costa",
        "tpal": "4,4,0,2",
        "alergies": null,
        "rh_blood": "AB-",
        "risk_level": 4,
        "last_menstruation_at": "2019-09-24T00:00:00.000000Z",
        "created_at": "2020-04-30T21:10:27.000000Z",
        "updated_at": "2020-06-09T17:09:11.000000Z",
        "childbirth_expected_at": "2020-06-30T00:00:00.000000Z",
        "last_reading_at": "2020-06-09T17:09:20.000000Z",
        "user": {
            "id_user": 34,
            "id_patient": 10,
            "id_staff": null,
            "email": "francisco99@barrios.com",
            "email_verified_at": "2020-06-09T17:09:11.000000Z",
            "photo": "https:\/\/www.onionly.net\/files\/10000faces\/009885.jpg",
            "lang": "es",
            "created_at": "2020-04-30T21:10:27.000000Z",
            "updated_at": "2020-06-09T17:09:11.000000Z"
        }
    },
    "type": "PATIENT",
    "team": {
        "id_team": 1,
        "name": "Team EMBIOTH",
        "created_at": "2020-06-09T17:09:09.000000Z",
        "updated_at": "2020-06-09T17:09:09.000000Z"
    },
    "doctor": {
        "id_user": 3,
        "id_patient": null,
        "id_staff": 3,
        "email": "lauranadal@embioth.care",
        "email_verified_at": "2020-06-09T17:09:09.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/006351.jpg",
        "lang": "es",
        "created_at": "2020-06-09T17:09:09.000000Z",
        "updated_at": "2020-06-09T17:09:09.000000Z",
        "staff": {
            "id_staff": 3,
            "id_team_default": 1,
            "type": "DOCTOR",
            "membership_number": "95215242A",
            "name": "Laura",
            "last_name": "Nadal",
            "gender": 0,
            "address": "Rúa Pastor, 62, 17º E, 58458, Villa Téllez Alta",
            "postal_code": "10539",
            "city": "Benito de Lemos",
            "province": "Girona",
            "region": "Girona",
            "country": "España",
            "birthdate": "1990-01-26T09:27:50.000000Z",
            "phone_mobile": "+34 904 352555",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z"
        }
    },
    "doctorOnCall": {
        "id_user": 3,
        "id_patient": null,
        "id_staff": 3,
        "email": "lauranadal@embioth.care",
        "email_verified_at": "2020-06-09T17:09:09.000000Z",
        "photo": "https:\/\/www.onionly.net\/files\/10000faces\/006351.jpg",
        "lang": "es",
        "created_at": "2020-06-09T17:09:09.000000Z",
        "updated_at": "2020-06-09T17:09:09.000000Z",
        "doctor": {
            "id_staff": 3,
            "id_team_default": 1,
            "type": "DOCTOR",
            "membership_number": "95215242A",
            "name": "Laura",
            "last_name": "Nadal",
            "gender": 0,
            "address": "Rúa Pastor, 62, 17º E, 58458, Villa Téllez Alta",
            "postal_code": "10539",
            "city": "Benito de Lemos",
            "province": "Girona",
            "region": "Girona",
            "country": "España",
            "birthdate": "1990-01-26T09:27:50.000000Z",
            "phone_mobile": "+34 904 352555",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z"
        }
    },
    "roles": [
        "patient"
    ],
    "staff": null
}

HTTP Request

GET v1/users/profile/{id_user?}

URL Parameters

Parameter Status Description
id_user optional The id_user of the User.

Upload user photo avatar

Example request:

curl -X POST \
    "https://api.embioth.net/v1/users/upload-photo/1" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"photo":"maxime"}'
const url = new URL(
    "https://api.embioth.net/v1/users/upload-photo/1"
);

let headers = {
    "Content-Type": "application/json",
    "Accept": "application/json",
};

let body = {
    "photo": "maxime"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

Example response (200):

{
    "id_user": 2,
    "id_patient": null,
    "id_staff": 2,
    "email": "ericsala@onionly.com",
    "email_verified_at": "2020-06-09T17:09:09.000000Z",
    "photo": "https:\/\/storage.googleapis.com\/embioth-dev\/users\/avatars\/2-ki72qjni.jpg",
    "lang": "es",
    "created_at": "2020-06-09T17:09:09.000000Z",
    "updated_at": "2020-06-20T19:55:41.000000Z",
    "staff": {
        "id_staff": 2,
        "id_team_default": 1,
        "type": "DOCTOR",
        "membership_number": "41327448J",
        "name": "Eric",
        "last_name": "Sala i Marin",
        "gender": 1,
        "address": "Calle Aaron, 92, 86º B, 50612, L' Canales",
        "postal_code": "26321",
        "city": "L' Otero",
        "province": "Illes Balears",
        "region": "Tarragona",
        "country": "España",
        "birthdate": "1980-07-11T04:37:23.000000Z",
        "phone_mobile": "949-40-2282",
        "created_at": "2020-06-09T17:09:09.000000Z",
        "updated_at": "2020-06-09T17:09:09.000000Z"
    },
    "type": "STAFF",
    "teams": [
        {
            "id_team": 1,
            "name": "Team EMBIOTH",
            "created_at": "2020-06-09T17:09:09.000000Z",
            "updated_at": "2020-06-09T17:09:09.000000Z",
            "pivot": {
                "id_user_staff": 2,
                "id_team": 1
            }
        }
    ],
    "roles": [
        "admin",
        "manager",
        "staff"
    ],
    "patient": null
}

HTTP Request

POST v1/users/upload-photo/{id_user?}

URL Parameters

Parameter Status Description
id_user optional The id_user of the User.

Body Parameters

Parameter Type Status Description
photo file required File photo