Usage examples

Get consultation details

Get information about a consultation with ID number 338.

GET Request

URL:

https://provetcloud.com/<provet_id>/api/0.1/consultation/338/

Headers:

Accept: application/json
Authorization: Token a8b8ca3886cd4775a44744e107e2239e

Response

Headers:

Content-Type: application/json

Body:

{
    "url": "https://provetcloud.com/4/api/0.1/consultation/338/",
    "client": "https://provetcloud.com/4/api/0.1/client/1/",
    "patients": [
        "https://provetcloud.com/4/api/0.1/patient/1/"
    ],
    "complaint": "Test consultation",
    "admitted_time": "2017-05-18T10:35:00Z",
    "first_entry": null,
    "started": "2017-05-18T10:35:00Z",
    "finished": null,
    "ended": null,
    "status": 8,
    "type": 0,
    "invoice": "https://provetcloud.com/4/api/0.1/invoice/609/",
    "supervising_veterinarian": "https://provetcloud.com/4/api/0.1/user/1/",
    "department": "https://provetcloud.com/4/api/0.1/department/1/",
    "consultation_items": [
        "https://provetcloud.com/4/api/0.1/consultationitem/4558/",
        "https://provetcloud.com/4/api/0.1/consultationitem/4559/",
        "https://provetcloud.com/4/api/0.1/consultationitem/4560/"
    ],
    "reporting_dimension_1": null,
    "reporting_dimension_2": null
}

Create new patient

Add a new patient for client 218.

POST Request

URL:

https://provetcloud.com/<provet_id>/api/0.1/patient/

Headers:

Accept: application/json
Authorization: Token a8b8ca3886cd4775a44744e107e2239e
Content-Type: application/json

Body:

{
    "name": "Fenton",
    "client": "https://provetcloud.com/4/api/0.1/client/218/",
    "species": 22001,
    "gender": 2
}

Response

Headers:

Content-Type: application/json

Body:

{
    "id": 2130,
    "url": "https://provetcloud.com/4/api/0.1/patient/2130/",
    "client": "https://provetcloud.com/4/api/0.1/client/218/",
    "name": "Fenton",
    "official_name": "",
    "species": "Dog (Canine - Domestic)",
    "breed": "None",
    "gender": "Female",
    "weight": null,
    "old_patient_id": null,
    "remarks": null,
    "date_of_registration": "2021-11-10",
    "date_of_birth": null,
    "deceased": null,
    "insurance": null,
    "insurance_company": null,
    "color": null,
    "critical_notes": null,
    "microchip": null,
    "additional_identification": null,
    "archived": false,
    "reason_of_death": null,
    "stable_name": "",
    "street_address": "",
    "street_address_2": null,
    "zip_code": "",
    "city": "",
    "not_for_food": false,
    "passport_number": "",
    "register_number": "",
    "home_department": null,
    "date_imported": null,
    "imported": false,
    "tags_rel": [],
    "fields_rel": [],
    "holding_place_number": null,
    "animal_code": null,
    "herd_size": null,
    "private": false,
    "visible_departments": [],
    "visible_department_groups": [],
    "microchip_date": null,
    "last_consultation": null,
    "created": "2021-11-10T15:45:50.179386+02:00",
    "modified": "2021-11-10T15:45:50.179414+02:00",
    "species_code": 22001,
    "breed_code": null,
    "gender_code": 2,
    "picture": null,
    "patient_extras": null
}