List medical work due
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/medical-due \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/medical-due', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/medical-due"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"today": "2023-12-25",
"window_days": 123,
"overdue": [
{
"id": "<string>",
"animal_id": "<string>",
"record_type": "vaccination",
"name": "<string>",
"due_on": "2023-12-25",
"notes": "<string>",
"recurrence_interval": 123,
"recurrence_unit": "day",
"refills_remaining": 123,
"prescription_expires_on": "2023-12-25",
"animal_name": "<string>",
"animal_species": "<string>",
"animal_status": "<string>"
}
],
"due_today": [
{
"id": "<string>",
"animal_id": "<string>",
"record_type": "vaccination",
"name": "<string>",
"due_on": "2023-12-25",
"notes": "<string>",
"recurrence_interval": 123,
"recurrence_unit": "day",
"refills_remaining": 123,
"prescription_expires_on": "2023-12-25",
"animal_name": "<string>",
"animal_species": "<string>",
"animal_status": "<string>"
}
],
"upcoming": [
{
"id": "<string>",
"animal_id": "<string>",
"record_type": "vaccination",
"name": "<string>",
"due_on": "2023-12-25",
"notes": "<string>",
"recurrence_interval": 123,
"recurrence_unit": "day",
"refills_remaining": 123,
"prescription_expires_on": "2023-12-25",
"animal_name": "<string>",
"animal_species": "<string>",
"animal_status": "<string>"
}
],
"counts": {
"overdue": 123,
"due_today": 123,
"upcoming": 123
}
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Medical due
List medical work due
Every medical record with a due date and no performed date, across all your animals: from the oldest overdue up to window days from today, split into overdue, due today and upcoming, earliest first. Not paged. Records are listed whatever the animal’s status, so check animal_status. Today is the date in UTC. Needs read on Animals.
GET
/
api
/
animals
/
medical-due
List medical work due
curl --request GET \
--url https://{organization}.rescueconsole.com/api/animals/medical-due \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{organization}.rescueconsole.com/api/animals/medical-due', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{organization}.rescueconsole.com/api/animals/medical-due"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"today": "2023-12-25",
"window_days": 123,
"overdue": [
{
"id": "<string>",
"animal_id": "<string>",
"record_type": "vaccination",
"name": "<string>",
"due_on": "2023-12-25",
"notes": "<string>",
"recurrence_interval": 123,
"recurrence_unit": "day",
"refills_remaining": 123,
"prescription_expires_on": "2023-12-25",
"animal_name": "<string>",
"animal_species": "<string>",
"animal_status": "<string>"
}
],
"due_today": [
{
"id": "<string>",
"animal_id": "<string>",
"record_type": "vaccination",
"name": "<string>",
"due_on": "2023-12-25",
"notes": "<string>",
"recurrence_interval": 123,
"recurrence_unit": "day",
"refills_remaining": 123,
"prescription_expires_on": "2023-12-25",
"animal_name": "<string>",
"animal_species": "<string>",
"animal_status": "<string>"
}
],
"upcoming": [
{
"id": "<string>",
"animal_id": "<string>",
"record_type": "vaccination",
"name": "<string>",
"due_on": "2023-12-25",
"notes": "<string>",
"recurrence_interval": 123,
"recurrence_unit": "day",
"refills_remaining": 123,
"prescription_expires_on": "2023-12-25",
"animal_name": "<string>",
"animal_species": "<string>",
"animal_status": "<string>"
}
],
"counts": {
"overdue": 123,
"due_today": 123,
"upcoming": 123
}
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}{
"error": "house_trained must be 1, 0 or null (not assessed)"
}Authorizations
An API key from Settings, API keys. It starts with rc_live_.
Query Parameters
How many days ahead of today to include. Overdue records are always included, however old.
Required range:
1 <= x <= 365Only records of this type.
Available options:
vaccination, treatment, procedure, test, medication, exam, condition, preventative Only records on animals of this species.