Download OpenAPI specification:Download
The common backend for TNT2 documentation
The common backend for TNT operations
| access_lease_role | string |
| subject_type | string |
| subject_id | string <uuid> |
| user_security_context_id | string or null <uuid> |
| access_lease_localised_role | string or null |
{- "access_lease_role": "string",
- "subject_type": "string",
- "subject_id": "80e197be-61ad-4068-b4ff-a483fb5c18f9",
- "user_security_context_id": "a52822a0-5321-454f-b240-37c86b4234f9",
- "access_lease_localised_role": "string"
}{- "result": {
- "id": "string",
- "{subjectType}": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "user_security_context": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "localised_role": "string",
- "role": "string",
- "parent": { },
- "created_at": "2019-08-24T14:15:22Z"
}
}List all user security contexts
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "external_id": "string",
- "roles": [
- "string"
], - "email": "user@example.com",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}| departmentId required | string |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| range[starts] | string |
| range[ends] | string |
| includes[department] | string |
| expect_state[summed_by_department_stay] | string When given, the response will include the sums of Care Demand minutes_per_24_hours per Department Stay |
{- "results": [
- {
- "id": "string",
- "from_date": "2019-08-24T14:15:22Z",
- "until_date": "2019-08-24T14:15:22Z",
- "nature": "string",
- "inducement": "string",
- "minutes_per_24_hours": 0,
- "last_received_percentage_complete": 0,
- "patient": {
- "id": "string"
}, - "hospital_stay": {
- "id": "string"
}, - "department_stay": {
- "id": "string"
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "summed_by_department_stay": null
}, - "includes": {
- "department": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
}
}Fetches a Care Profile by name.
A Care Profile is the blueprint used for how we apply Care Demand to a Patient.
A Care Profile has a relation to Definitions, these Definitions define how Care Demand is applied.
If you are not passing the query arguments, this might be semantically different since the decisions of which Definitions might be used might change.
| careProfileName required | string |
| query[patient_id] | string Specifies for which patient the care profle is fetched, if empty this will be ignored |
| query[department_id] | string Specifies for which department the care profle is fetched, if empty this will be ignored |
| includes[definitions] required | string |
{ }{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "strategy": "string",
- "is_default": true,
- "created_at": "2019-08-24T14:15:22Z"
}, - "includes": {
- "definitions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "day_index": 0,
- "value_per_24_hours": 0,
- "is_default": true
}
]
}
}| departmentId required | string |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| range[starts] | string |
| range[ends] | string |
| includes[department] | string |
{- "results": [
- {
- "id": "string",
- "patient": {
- "id": "string"
}, - "department_stay": {
- "id": "string"
}, - "care_rating_percentile": {
- "name": "string",
- "id": "string"
}, - "percentile": 0,
- "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "department": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
}
}| departmentId required | string |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| range[starts] | string |
| range[ends] | string |
| includes[beds] | string |
| includes[patients] | string |
| includes[care_demands] | string Deprecated Use separate endpoint /departments/{departmentId}/care_demands |
| includes[care_ratings] | string Deprecated Use separate endpoint /departments/{departmentId}/care_ratings |
{- "results": [
- {
- "id": "string",
- "department": {
- "id": "string"
}, - "patient": {
- "id": "string"
}, - "bed": {
- "id": "string"
}, - "from": "string",
- "confirmed_exit_at": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "department": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
}, - "includes": {
- "beds": [
- {
- "id": "string",
- "name": "string",
- "room": {
- "id": "string"
}, - "is_active": true,
- "created_at": "2019-08-24T14:15:22Z"
}
], - "patients": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "date_of_birth": "string",
- "gender": "string",
- "applies_from": "string",
- "applies_until": "string",
- "state": "created",
- "created_at": "string"
}
]
}
}| departmentId required | string |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| range[starts] | string <date-time> |
| range[ends] | string <date-time> |
{- "results": [
- {
- "id": "string",
- "department_stay": {
- "id": "string"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "query": {
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}
}
}
}| hospitalStayId required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "department": {
- "id": "string"
}, - "patient": {
- "id": "string"
}, - "bed": {
- "id": "string"
}, - "from": "string",
- "confirmed_exit_at": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "hospital_stay": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "patient": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from": "2019-08-24T14:15:22Z",
- "confirmed_exit_at": "2019-08-24T14:15:22Z",
- "planned_exit_at": "2019-08-24T14:15:22Z",
- "state": "initialised"
}
}
}{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "department_stay": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "patient": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "activity_definition": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "care_demand": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "iterations": 0,
- "executed_percentage": "string",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "includes": {
- "activity_definitions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "external_uid": "string",
- "weight": 0,
- "minutes_per_24_hours": 0,
- "status": "created",
- "until_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
}| departmentStayId required | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "department_stay": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "patient": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "activity_definition": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "care_demand": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "iterations": 0,
- "executed_percentage": "string",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "includes": {
- "activity_definitions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "external_uid": "string",
- "weight": 0,
- "minutes_per_24_hours": 0,
- "status": "created",
- "until_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}
}Creates a HospitalStay
A HospitalStay can be an open ended registration of a Patient that will be at a Hospital from a certain date.
| hospital_id required | string <uuid> |
| patient_id required | string <uuid> |
| from_at required | string <date-time> ISO_8601 |
| planned_exit_at | string or null <date-time> |
| confirmed_exit_at | string or null <date-time> |
| treatment_ids | Array of strings <uuid> >= 0 items Not yet implemented |
{- "hospital_id": "9091f0c1-dac3-4e2a-8866-e1b660434f40",
- "patient_id": "9091f0c1-dac3-4e2a-8866-e1b660434f40",
- "from_at": "2022-08-09T17:13:33+02:00",
- "planned_exit_at": "2022-08-10T17:13:33+02:00",
- "confirmed_exit_at": "2022-08-10T17:13:33+02:00",
- "treatment_ids": [
- "9091f0c1-dac3-4e2a-8866-e1b660434f40"
]
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "patient": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from": "2019-08-24T14:15:22Z",
- "confirmed_exit_at": "2019-08-24T14:15:22Z",
- "planned_exit_at": "2019-08-24T14:15:22Z",
- "state": "initialised"
}
}Creates a DepartmentStay. A DepartmentStay describes an open ended Patient residing at a Department from a certain date.
For each HospitalStay, there can be only one open ended DepartmentStay.
By default, the API will respond with a 409 Conflict when one exists and you try to create another. The Query parameter allow_side_effects will update the previous DepartmentStay with the date given in the from_at. However, when the conflict is the result of a non-open ended DepartmentStay, the allow_side_effects Query Parameter will do nothing.
| allow_side_effects | boolean Default: false |
| hospital_stay_id required | string <uuid> |
| bed_id | string or null <uuid> |
| from_at required | string <date-time> ISO_8601 |
| confirmed_exit_at | string or null ISO_8601 |
{- "hospital_stay_id": "9091f0c1-dac3-4e2a-8866-e1b660434f40",
- "bed_id": "00283e89-698b-4f87-b9b6-06d370a4f9be",
- "from_at": "2022-08-09T17:13:33+02:00",
- "confirmed_exit_at": "string"
}{- "result": {
- "id": "string",
- "department": {
- "id": "string"
}, - "patient": {
- "id": "string"
}, - "bed": {
- "id": "string"
}, - "from": "string",
- "confirmed_exit_at": "string"
}
}| hospitalStayId required | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "tenant": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "hospital_stay": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "patient": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "intervention_definition": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
]
}| query[only_if_has_parameters_without_capability] | boolean Can be true, all other values are ignored and interpreted as null |
| query[has_exactly_one_source_department] | string |
{- "results": {
- "id": "string",
- "source_departments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "name": "string",
- "initial_counting_index": 0,
- "is_default": true,
- "created_at": "2019-08-24T14:15:22Z",
- "care_path": "string"
}, - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}| id required | string |
| includes[parameters] | string |
{- "result": {
- "id": "string",
- "source_departments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "name": "string",
- "initial_counting_index": 0,
- "is_default": true,
- "created_at": "2019-08-24T14:15:22Z",
- "care_path": "string"
}, - "includes": {
- "parameters": [
- {
- "id": "string",
- "minutes_per_24_hours": 0,
- "start_time": "14:15:22Z",
- "end_time": "14:15:22Z",
- "should_be_sliced": true,
- "parameter_group": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z"
}
]
}
}| parameterGroupId required | string |
| minutes_per_24_hours | integer |
| day_index | integer |
| capability_id | string or null <uuid> |
| start_time | string <time> |
| end_time | string <time> |
{- "result": {
- "id": "string",
- "minutes_per_24_hours": 0,
- "start_time": "14:15:22Z",
- "end_time": "14:15:22Z",
- "should_be_sliced": true,
- "parameter_group": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z"
}, - "state": {
- "paramter_group": {
- "id": "string",
- "source_departments": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
], - "name": "string",
- "initial_counting_index": 0,
- "is_default": true,
- "created_at": "2019-08-24T14:15:22Z",
- "care_path": "string"
}
}
}| parameterGroupId required | string |
| parameterId required | string |
| minutes_per_24_hours | integer |
| day_index | integer |
| capability_id | string or null <uuid> |
| start_time | string <time> |
| end_time | string <time> |
| should_be_sliced_by_daypart | boolean |
| version | integer |
{- "result": {
- "id": "string",
- "minutes_per_24_hours": 0,
- "start_time": "14:15:22Z",
- "end_time": "14:15:22Z",
- "should_be_sliced": true,
- "parameter_group": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z"
}
}| name | string |
| minutes_per_24_hours | integer |
| hospital_id | string <uuid> |
| department_id | string or null <uuid> |
{- "name": "string",
- "minutes_per_24_hours": 0,
- "hospital_id": "b2658506-542b-413c-8700-f31c8dc45952",
- "department_id": "094fb5f1-8160-46ea-8cec-010c4b44e054"
}{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Creates a day part for a tenant
| name required | string |
| abbreviation required | string |
| from_time required | string |
| to_time required | string |
| is_to_time_on_next_day | boolean Default: false |
{- "name": "Early",
- "abbreviation": "Early",
- "from_time": "07:00:00",
- "to_time": "14:59:59",
- "is_to_time_on_next_day": false
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}
}Replace the day part with the updated information, this will also update the DayPartKpiThresholds for that DayPart
| id required | string |
| name required | string |
| abbreviation required | string |
| from_time required | string |
| to_time required | string |
| is_to_time_on_next_day | string |
{- "name": "string",
- "abbreviation": "string",
- "from_time": "string",
- "to_time": "string",
- "is_to_time_on_next_day": "string"
}{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}Returns all DayPartKpiThresholds
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kpi_slug": "string",
- "day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}, - "threshold": {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}, - "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "venue": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Update a specific day part KPI threshold
| id required | string |
| kpi_slug required | string |
| type required | string Enum: "target_value" "range_value" |
| name required | string |
| color required | string |
| target_value | number <float> Required when type is target_value |
| range_value_starts | number <float> Required when type is range_value |
| range_value_ends | number <float> Required when type is range_value |
| level | string Enum: "critical" "warning" "ok" |
{- "kpi_slug": "string",
- "type": "target_value",
- "name": "string",
- "color": "string",
- "target_value": 0,
- "range_value_starts": 0,
- "range_value_ends": 0,
- "level": "critical"
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kpi_slug": "string",
- "day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}, - "threshold": {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}, - "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "venue": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z"
}
}Returns the DayPartKpiThresholds uniquely configured for a Department. This endpoint will not return DayPartKpiThresholds configured on the Venue or Hospital that should apply on a Department.
| departmentId required | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kpi_slug": "string",
- "day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}, - "threshold": {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}, - "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "venue": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Create a daypart_kpi_threshold
| departmentId required | string |
| kpiSlug required | string |
| type required | string Enum: "range_value" "target_value" |
| name | string |
| color | string |
| target_value | number <float> Required when type is target_value |
| range_value_starts | number <float> Required when type is range_value |
| range_value_ends | number <float> Required when type is range_value |
| day_part_id required | string <uuid> |
{- "type": "range_value",
- "name": "string",
- "color": "string",
- "target_value": 0,
- "range_value_starts": 0,
- "range_value_ends": 0,
- "day_part_id": "d3f47ddf-d579-4abc-892b-8ae35571bf6f"
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kpi_slug": "string",
- "day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}, - "threshold": {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}, - "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "venue": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z"
}
}Returns the DayPartKpiThresholds uniquely configured for a Department. This endpoint will not return DayPartKpiThresholds configured on the Venue or Hospital that should apply on a Department.
| departmentId required | string |
| kpiSlug required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| include_inheritance | boolean |
{- "include_inheritance": true
}{- "result": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kpi_slug": "string",
- "day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}, - "threshold": {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}, - "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "venue": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Returns the DayPartKpiThresholds uniquely configured for a Venue. This endpoint will not return DayPartKpiThresholds configured on a Hospital that should apply on a Venue.
| venueId required | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kpi_slug": "string",
- "day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}, - "threshold": {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}, - "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "venue": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Returns the DayPartsKpiThresholds configured for a Hospital.
| hospitalId required | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "kpi_slug": "string",
- "day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "abbreviation": "string",
- "from_time": "07:00:00",
- "to_time": "17:00",
- "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": "string",
- "deleted_at": "2019-08-24T14:15:22Z"
}, - "threshold": {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}, - "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "venue": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "preceding_day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "applies_from": "2019-08-24T14:15:22Z",
- "applies_until": "2019-08-24T14:15:22Z",
- "deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}| departmentId required | string |
| type required | string Enum: "primary-kpis" "secondary-kpis" |
{- "results": [
- {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}
]
}List all default capability splits of a department
| departmentId required | string |
{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "split_percentage": 0,
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "capability": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z"
}
}Create a DefaultCapabilitySplit for a department
| departmentId required | string |
| split_percentage | number <float> |
| capability_id | string <uuid> |
{- "split_percentage": 0,
- "capability_id": "9da5e075-205b-4e46-9854-c4586fb11057"
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "split_percentage": 0,
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "capability": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z"
}
}Lists all external ids registered in the application.
This allows an external service to query if a certain object is already registered in the application.
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| query[internal_type] | string Allows you to filter on the internal type. |
| query[internal_id] | string Allows you to filter on the internal id. |
| query[include_deleted] | boolean |
{- "results": [
- {
- "id": "string",
- "internal_type": "string",
- "internal_id": "c13c6907-8dc3-4479-a9ee-0b258d87c410",
- "external_system_name": "string",
- "external_id": "string",
- "created_externally_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z",
- "resource_uri": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "query": {
- "external_system": "string",
- "external_id": "string"
}
}
}Create an External Id
| internal_type required | string |
| internal_id required | string <uuid> |
| external_system_id required | string |
| external_id required | string |
| created_in_external_system_at | string <date-time> |
{- "internal_type": "string",
- "internal_id": "c13c6907-8dc3-4479-a9ee-0b258d87c410",
- "external_system_id": "string",
- "external_id": "string",
- "created_in_external_system_at": "2019-08-24T14:15:22Z"
}{- "result": {
- "id": "string",
- "internal_type": "string",
- "internal_id": "c13c6907-8dc3-4479-a9ee-0b258d87c410",
- "external_system_name": "string",
- "external_id": "string",
- "created_externally_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z",
- "resource_uri": "string"
}
}Creates a bed
| room_id | string <uuid> |
| name | string |
| external_ids | Array of strings |
{- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "name": "string",
- "external_ids": [
- "string"
]
}{- "result": {
- "id": "string",
- "name": "string",
- "room": {
- "id": "string"
}, - "is_active": true,
- "created_at": "2019-08-24T14:15:22Z"
}
}| bedId required | string <uuid> |
| name | string |
| room_id | string <uuid> |
| is_active | boolean |
{- "name": "string",
- "room_id": "05451321-18e1-4bfa-aa22-dfd0080cc120",
- "is_active": true
}{- "result": {
- "id": "string",
- "name": "string",
- "room": {
- "id": "string"
}, - "is_active": true,
- "created_at": "2019-08-24T14:15:22Z"
}
}Returns all Departments registered under a tenant
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| query[ids] | array Array of department ids that you want returned. This field is optional |
{- "results": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Creates a department.
A department is place where patients receive care.
| name required | string <= 255 characters |
| abbreviation required | string <= 5 characters |
| type required | string Enum: "ward" "system" "admin" "specialty" "surgery" "maternity" "reservation" "leave_long_term" "leave_short_term" "day_clinic" "flexible_staff" Describes the type of department |
| venue_id required | string <uuid> |
| external_ids required | Array of strings >= 0 items unique List of ids by which you already identify the hospital. This allows us to connect data from multiple systems. |
{- "name": "string",
- "abbreviation": "strin",
- "type": "ward",
- "venue_id": "9091f0c1-dac3-4e2a-8866-e1b660434f40",
- "external_ids": [
- "string"
]
}{- "result": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
}Fetches one department
| id required | string |
| includes[]=rooms | string Includes the rooms for the department |
| includes[]=beds | string Includes the beds for the rooms in the department |
{- "result": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}, - "includes": { }
}{- "results": [
- {
- "id": "string",
- "name": "string",
- "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
], - "created_at": "2019-08-24T14:15:22Z",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Creates a department group.
A department group is an arbitrary collection of departments. These allow you to group departments by any means you deem useful.
| name required | string |
| department_ids required | Array of strings <uuid> non-empty unique |
| hospital_id required | string <uuid> |
{- "name": "string",
- "department_ids": [
- "9091f0c1-dac3-4e2a-8866-e1b660434f40"
], - "hospital_id": "b2658506-542b-413c-8700-f31c8dc45952"
}{- "result": {
- "id": "string",
- "name": "string",
- "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
], - "created_at": "2019-08-24T14:15:22Z",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
}{- "result": {
- "id": "string",
- "name": "string",
- "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
], - "created_at": "2019-08-24T14:15:22Z",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
}Returns all Hospital Entities registered for a hospital.
This endpoint does not support any filtering
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
], - "venues": [
- {
- "id": "string",
- "external_ids": [
- {
- "id": "string",
- "internal_type": "string",
- "internal_id": "c13c6907-8dc3-4479-a9ee-0b258d87c410",
- "external_system_name": "string",
- "external_id": "string",
- "created_externally_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z",
- "resource_uri": "string"
}
], - "hospital_entity": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}, - "name": "string",
- "abbreviation": "string",
- "geolocation": {
- "address": "string",
- "geoX": "string",
- "geoY": "string"
}, - "departments": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}
]
}
}This endpoint allows you to create hospital_entities.
Hospital entities describe legal hospital entities and allows you to define multiple independant hospitals in one instance of Team n time, but still share configuration.
| name required | string <= 255 characters |
| abbreviation required | string <= 5 characters |
| logo_uri | string or null <uri> Allows you to pass an image logo that will be shown in certain places in the UI. Should be publicly accessible. |
| is_main_hospital | boolean Default: true If no hospital exists in the database, this will be set to true. Defines if the hospital will be used as the default where a hospitalId is not specified. |
| external_ids required | Array of strings >= 0 items unique List of ids by which you already identify the hospital. This allows us to connect data from multiple systems. |
{- "name": "ACME Hospital",
- "abbreviation": "ACME",
- "is_main_hospital": true,
- "external_ids": [
- "ACME",
- "476de079-03be-4758-bfda-486eae157e1f"
]
}{- "result": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}
}Allows you to fetch one hospital entity and supports the following includes:
The id expects a uuid or the supported alias main. This alias will return the hospital that is set as the main hospital.
| id required | string |
| includes[venues] | string Will include the venues of the hospital when set |
| includes[departments] | string Will include the departments of venues under a hospital |
object (HospitalEntity) The model describes a Hospital as its legal entity | |
object or null |
{- "result": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
]
}, - "includes": {
- "venues": [
- {
- "id": "string",
- "external_ids": [
- {
- "id": "string",
- "internal_type": "string",
- "internal_id": "c13c6907-8dc3-4479-a9ee-0b258d87c410",
- "external_system_name": "string",
- "external_id": "string",
- "created_externally_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z",
- "resource_uri": "string"
}
], - "hospital_entity": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
]
}, - "name": "string",
- "abbreviation": "string",
- "geolocation": {
- "address": "string",
- "geoX": "string",
- "geoY": "string"
}, - "departments": [
- {
- "id": "string"
}
]
}
], - "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
]
}
}{- "result": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}, - "includes": {
- "venues": [
- {
- "id": "string",
- "external_ids": [
- {
- "id": "string",
- "internal_type": "string",
- "internal_id": "c13c6907-8dc3-4479-a9ee-0b258d87c410",
- "external_system_name": "string",
- "external_id": "string",
- "created_externally_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z",
- "resource_uri": "string"
}
], - "hospital_entity": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}, - "name": "string",
- "abbreviation": "string",
- "geolocation": {
- "address": "string",
- "geoX": "string",
- "geoY": "string"
}, - "departments": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}
], - "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
]
}
}Lists all Venues for a Hospital Entity
| hospitalEntityId required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| includes[venues.departments] | boolean When set, it will include all departments for a Venue |
{- "results": [
- {
- "id": "string",
- "external_ids": [
- {
- "id": "string",
- "internal_type": "string",
- "internal_id": "c13c6907-8dc3-4479-a9ee-0b258d87c410",
- "external_system_name": "string",
- "external_id": "string",
- "created_externally_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z",
- "resource_uri": "string"
}
], - "hospital_entity": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}, - "name": "string",
- "abbreviation": "string",
- "geolocation": {
- "address": "string",
- "geoX": "string",
- "geoY": "string"
}, - "departments": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
]
}
}Creates a venue.
A venue is a physical location bound by geography.
| name required | string <= 255 characters |
| abbreviation required | string <= 5 characters |
| hospital_entity_id required | string <uuid> References a hospital entity |
| external_ids required | Array of strings >= 0 items unique List of ids by which you already identify the hospital. This allows us to connect data from multiple systems. |
{- "name": "string",
- "abbreviation": "strin",
- "hospital_entity_id": "9091f0c1-dac3-4e2a-8866-e1b660434f40",
- "external_ids": [
- "string"
]
}{- "result": {
- "id": "string",
- "external_ids": [
- {
- "id": "string",
- "internal_type": "string",
- "internal_id": "c13c6907-8dc3-4479-a9ee-0b258d87c410",
- "external_system_name": "string",
- "external_id": "string",
- "created_externally_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z",
- "resource_uri": "string"
}
], - "hospital_entity": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}, - "name": "string",
- "abbreviation": "string",
- "geolocation": {
- "address": "string",
- "geoX": "string",
- "geoY": "string"
}, - "departments": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}
}| name | string |
| department_id | string <uuid> |
| external_ids | Array of strings |
{- "name": "string",
- "department_id": "094fb5f1-8160-46ea-8cec-010c4b44e054",
- "external_ids": [
- "string"
]
}{- "result": {
- "id": "string",
- "name": "string",
- "is_active": true,
- "hospital": {
- "id": "string"
}, - "venue": {
- "id": "string"
}, - "department": {
- "id": "string"
}, - "created_at": "2019-08-24T14:15:22Z"
}
}| roomId required | string <uuid> |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "name": "string",
- "room": {
- "id": "string"
}, - "is_active": true,
- "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Returns all venues registered to a tenant
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| includes[departments] | boolean If set, it will return the departments for a venue |
{- "results": [
- {
- "id": "string",
- "external_ids": [
- {
- "id": "string",
- "internal_type": "string",
- "internal_id": "c13c6907-8dc3-4479-a9ee-0b258d87c410",
- "external_system_name": "string",
- "external_id": "string",
- "created_externally_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "is_deleted": true,
- "deleted_at": "2019-08-24T14:15:22Z",
- "resource_uri": "string"
}
], - "hospital_entity": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}, - "name": "string",
- "abbreviation": "string",
- "geolocation": {
- "address": "string",
- "geoX": "string",
- "geoY": "string"
}, - "departments": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
]
}
}Lists all Departments for a Venue
| venueId required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Returns all configured KPIs in the application
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Fetches a KPI for a department
| slug required | string |
| query[department_id] required | array Gives the ID for which the KPI should be calculated |
| range[starts] required | string <date-time> |
| range[ends] required | string <date-time> |
| kpi[resolution] required | string ISO 8601 Duration string |
| includes[daypart_kpi_thresholds] | string When set in the request, it will include the thresholds that need to be rendered |
| from_draft_id | string <uuid> Optional draft id you can pass to calculate kpi's with draft worklogs included in the calculation |
{- "result": {
- "kpi_definition": {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}, - "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "datapoints": [
- {
- "order": 0,
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "calculated_values": {
- "median": 0,
- "average": 0,
- "maximum": 0,
- "minimum": 0
}, - "calculated_values_representation": "absolute"
}
]
}
}Fetches a KPI for a department for a month
| kpiSlug required | string |
| query[department_id] required | array Gives the ID for which the KPI should be calculated |
| range[year_starts] required | integer <date-time> >= 1970 |
| range[year_ends] required | integer <date-time> >= 1970 |
| kpi[resolution] required | string |
| range[month_index] required | integer [ 1 .. 12 ] The index for the month |
{- "result": {
- "kpi_definition": {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}, - "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "datapoints": [
- {
- "order": 0,
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "calculated_values": {
- "median": 0,
- "average": 0,
- "maximum": 0,
- "minimum": 0
}, - "calculated_values_representation": "absolute"
}
]
}
}{- "results": [
- {
- "id": "string",
- "status": "created",
- "definition_name": "string",
- "department": {
- "id": "string"
}, - "resolution": "string",
- "sub_interval_ratio": 0,
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Creates a KPI Export
object Describes the KPI you are requesting to be exported | |
object | |
object (Range) Represents a time range |
{- "kpi": {
- "resolution": "string",
- "sub_interval_ratio": 1,
- "slug": "string"
}, - "query": {
- "department_id": "string"
}, - "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}
}{- "result": {
- "id": "string",
- "status": "created",
- "definition_name": "string",
- "department": {
- "id": "string"
}, - "resolution": "string",
- "sub_interval_ratio": 0,
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-08-24T14:15:22Z"
}, - "state": {
- "department": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}, - "kpi": {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}
}
}{- "result": {
- "id": "string",
- "status": "created",
- "definition_name": "string",
- "department": {
- "id": "string"
}, - "resolution": "string",
- "sub_interval_ratio": 0,
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-08-24T14:15:22Z"
}, - "state": {
- "definition": {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}, - "department": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
},
}
}This endpoint fetches all the kpi calculations that the given kpi calculation depends on.
| kpiCalculationId required | string |
| includes[kpi_calculation] | string Will include the given kpi calculation |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "created",
- "definition_name": "string",
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "resolution": "string",
- "representation": "day",
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "parent": {
- "id": "string"
}
}
], - "includes": {
- "kpi_calculation": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "created",
- "definition_name": "string",
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "resolution": "string",
- "representation": "day",
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "parent": {
- "id": "string"
}
}
}
}Returns a report by Report Definition alias. The Report Definition alias can be its id or its abbreviation.
| reportDefinitionAlias required | string |
| range[starts_at] required | string <date-time> |
| range[ends_at_exclusive] required | string <date-time> |
| resolution[value] | string Overrides the resolution set in the report definition |
{- "result": {
- "definition": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "kpis": [
- {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}
], - "suggested_resolution": {
- "resolution_value": "1m",
- "resolution_value_in_seconds": 0
}, - "decimal_precision_of_values": 0
}, - "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "kpis": [
- {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}
], - "scale": {
- "unit": "string",
- "scale_start": 0,
- "scale_end": 0,
- "unit_label": "string"
}
}
}Lists all Report Definitions registered in the application.
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "kpis": [
- {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}
], - "suggested_resolution": {
- "resolution_value": "1m",
- "resolution_value_in_seconds": 0
}, - "decimal_precision_of_values": 0
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Returns a Report Definition by alias. The alias can be its id or its abbreviation.
| reportDefinitionAlias required | string |
{- "result": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "kpis": [
- {
- "id": "string",
- "name": "string",
- "thresholds": [
- {
- "id": "string",
- "type": "target",
- "target_value": 0,
- "range_value": {
- "start": "string",
- "end": "string"
}, - "color": "rgba(1,1,1,0.5)"
}
], - "abbreviation": "string",
- "calculation_endpoint": "string",
- "legend": {
- "start_value": 0,
- "end_value": 0,
- "type": "string",
- "shown_values": [
- "string"
]
}
}
], - "suggested_resolution": {
- "resolution_value": "1m",
- "resolution_value_in_seconds": 0
}, - "decimal_precision_of_values": 0
}
}| patientId required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| range[starts] | string <date-time> |
| range[ends] | string or null <date-time> |
{- "results": [
- {
- "id": "string",
- "department": {
- "id": "string"
}, - "patient": {
- "id": "string"
}, - "bed": {
- "id": "string"
}, - "from": "string",
- "confirmed_exit_at": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "query": {
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}
}
}, - "includes": {
- "patient": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "date_of_birth": "string",
- "gender": "string",
- "applies_from": "string",
- "applies_until": "string",
- "state": "created",
- "created_at": "string"
}
}
}| patientId required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| range[starts] | string <date-time> |
| range[ends] | string or null <date-time> |
{- "results": [
- {
- "id": "string",
- "department_stay": {
- "id": "string"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "query": {
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}
}
}, - "includes": {
- "patient": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "date_of_birth": "string",
- "gender": "string",
- "applies_from": "string",
- "applies_until": "string",
- "state": "created",
- "created_at": "string"
}
}
}Creates a new patient.
| first_name | string or null <= 255 characters |
| last_name | string or null |
| applies_from | string or null <date-time> ISO_8601 |
| date_of_birth | string If you want to anonymise the |
| gender | string <= 1 characters Enum: "M" "V" "X" |
{- "first_name": "William",
- "last_name": "Wallace",
- "applies_from": "2022-08-10T10:31:24+02:00",
- "date_of_birth": "2022-08-10T10:31:24+02:00",
- "gender": "M"
}Lists all Patients
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "date_of_birth": "string",
- "gender": "string",
- "applies_from": "string",
- "applies_until": "string",
- "state": "created",
- "created_at": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "patient": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from": "2019-08-24T14:15:22Z",
- "confirmed_exit_at": "2019-08-24T14:15:22Z",
- "planned_exit_at": "2019-08-24T14:15:22Z",
- "state": "initialised"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "patient": {
- "id": "string",
- "first_name": "string",
- "last_name": "string",
- "date_of_birth": "string",
- "gender": "string",
- "applies_from": "string",
- "applies_until": "string",
- "state": "created",
- "created_at": "string"
}
}
}| department_id required | string <uuid> |
| support_question_reason_id required | string <uuid> |
| comment required | string <= 255 characters |
required | object |
{- "department_id": "094fb5f1-8160-46ea-8cec-010c4b44e054",
- "support_question_reason_id": "40352663-b04a-405e-a91f-722c156860e9",
- "comment": "string",
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}
}{- "result": {
- "id": "string",
- "comment": "string",
- "state": "string",
- "department": {
- "id": "string"
}, - "reason": null,
- "creator": null,
- "responder": null,
- "created_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}
}This endpoint allows you to fetch multiple Temporary Transfers for a list of Department Stays.
De facto, all department stays should be from the same department, but this is not enforced on the endpoint.
The maximum amount of department_stay_ids that is supported is 250.
If you pass an id that is not a UUID, you will receive a 400.
If you pass an id that does not exist, it will not affect the status code, but as expected, no temporary transfers will be returned for that id.
| query[department_stay_ids] | array The list of department stays you want to query for |
| range[starts] | string |
| range[ends] | string |
{- "results": [
- {
- "id": "string",
- "department_stay": {
- "id": "string"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "requested_amount_of_ids": 0
}
}Creates a temporary transfer for a Patient in a Department (defined by a DepartmentStay).
| from_at required | string <date-time> ISO_8601 |
| until_at required | string <date-time> Until inclusive. ISO_8601 |
| department_stay_id required | string <uuid> |
| to_department_id | string <uuid> |
{- "from_at": "2022-08-09T17:13:33+02:00",
- "until_at": "2022-08-09T20:13:33+02:00",
- "department_stay_id": "9091f0c1-dac3-4e2a-8866-e1b660434f40",
- "to_department_id": "e6d29d16-850f-46b4-b707-f975d02e7685"
}{- "result": {
- "id": "string",
- "department_stay": {
- "id": "string"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "created_at": "2019-08-24T14:15:22Z"
}
}Get a list of issues, which can be filtered on states and department_ids
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| query[department_ids][] | string Returns issues with given department_ids |
| query[states][] | string Returns issues with given states |
| includes[] | string |
| range[starts] | string |
| range[end] | string |
Array of objects (Issue) [ items ] | |
object | |
object or null |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "issue_id": "string",
- "issue_level": "string",
- "last_commenter": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "warnings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "support_questions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "warnings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "kpi_calculations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "kpi_definition_name": "string",
- "threshold_level": "string",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "support_questions": [
- {
- "id": "string",
- "comment": "string",
- "state": "string",
- "department": {
- "id": "string"
}, - "reason": null,
- "creator": null,
- "responder": null,
- "created_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}
]
}
}{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "issue_id": "string",
- "issue_level": "string",
- "last_commenter": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "warnings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "support_questions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "warnings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "kpi_calculations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "kpi_definition_name": "string",
- "threshold_level": "string",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "support_questions": [
- {
- "id": "string",
- "comment": "string",
- "state": "string",
- "department": {
- "id": "string"
}, - "reason": null,
- "creator": null,
- "responder": null,
- "created_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}
]
}
}{- "results": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "issue_id": "string",
- "issue_level": "string",
- "last_commenter": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "warnings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "support_questions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}, - "includes": {
- "warnings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "kpi_calculations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "kpi_definition_name": "string",
- "threshold_level": "string",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "support_questions": [
- {
- "id": "string",
- "comment": "string",
- "state": "string",
- "department": {
- "id": "string"
}, - "reason": null,
- "creator": null,
- "responder": null,
- "created_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}
]
}
}Resolve issues, including the reason an issue is resolved
| id required | string |
| description | string |
| resolution_state | string Enum: "fully" "partially" "from_user_indication" |
| resolved_by_type | string or null Enum: "care_demand" "department_stay" "planning" "user" |
| resolved_by_id | string or null |
{- "description": "string",
- "resolution_state": "fully",
- "resolved_by_type": "care_demand",
- "resolved_by_id": "string"
}List Warnings for issue
| id required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| includes[] | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "day_part_kpi_threshold": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "kpi_calculations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "kpi_definition_name": "string",
- "threshold_level": "string",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "kpi_calculations": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "status": "created",
- "definition_name": "string",
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "resolution": "string",
- "representation": "day",
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "parent": {
- "id": "string"
}
}
], - "issue": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "issue_id": "string",
- "issue_level": "string",
- "last_commenter": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "warnings": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "support_questions": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}
}
}Create Comment for Issue
| id required | string |
| comment required | string |
| creator_id | string <uuid> |
{- "comment": "string",
- "creator_id": "9cceffdd-8381-4074-8256-eafae24ebee6"
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "issue": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "creator": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "comment": "string",
- "created_at": "2019-08-24T14:15:22Z"
}
}The draft object can contain more stuff but only the values present in draftStaffWorklog will be mapped to a staff worklog (rest will be saved in the draft but ignored when creating an actual staff worklog)
| name | string |
object |
{- "name": "string",
- "draft": {
- "draftWorklogs": [
- {
- "fromAt": "2019-08-24T14:15:22Z",
- "untilAt": "2019-08-24T14:15:22Z",
- "staffMember": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "toDepartment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "function": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staffGroupId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
], - "planningNotes": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "draft": {
- "draftWorklogs": [
- {
- "fromAt": "2019-08-24T14:15:22Z",
- "untilAt": "2019-08-24T14:15:22Z",
- "staffMember": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "toDepartment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "function": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staffGroupId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
], - "planningNotes": [
- {
- "note": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}, - "created_at": "2019-08-24T14:15:22Z"
}
]
}
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "draft": {
- "draftWorklogs": [
- {
- "fromAt": "2019-08-24T14:15:22Z",
- "untilAt": "2019-08-24T14:15:22Z",
- "staffMember": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "toDepartment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "function": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staffGroupId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
], - "planningNotes": [
- {
- "note": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}, - "created_at": "2019-08-24T14:15:22Z"
}
}| id required | string |
The draft object can contain more stuff but only the values present in draftStaffWorklog will be mapped to a staff worklog (rest will be saved in the draft but ignored when creating an actual staff worklog)
| name | string |
object |
{- "name": "string",
- "draft": {
- "draftWorklogs": [
- {
- "fromAt": "2019-08-24T14:15:22Z",
- "untilAt": "2019-08-24T14:15:22Z",
- "staffMember": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "toDepartment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "function": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staffGroupId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
], - "planningNotes": [
- {
- "note": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "draft": {
- "draftWorklogs": [
- {
- "fromAt": "2019-08-24T14:15:22Z",
- "untilAt": "2019-08-24T14:15:22Z",
- "staffMember": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "toDepartment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "function": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staffGroupId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
], - "planningNotes": [
- {
- "note": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}, - "created_at": "2019-08-24T14:15:22Z"
}
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "draft": {
- "draftWorklogs": [
- {
- "fromAt": "2019-08-24T14:15:22Z",
- "untilAt": "2019-08-24T14:15:22Z",
- "staffMember": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "toDepartment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "function": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staffGroupId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
], - "planningNotes": [
- {
- "note": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}, - "created_at": "2019-08-24T14:15:22Z"
}
}{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "draft": {
- "draftWorklogs": [
- {
- "fromAt": "2019-08-24T14:15:22Z",
- "untilAt": "2019-08-24T14:15:22Z",
- "staffMember": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "toDepartment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "function": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staffGroupId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
], - "planningNotes": [
- {
- "note": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}, - "created_at": "2019-08-24T14:15:22Z"
}
]
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "draft": {
- "draftWorklogs": [
- {
- "fromAt": "2019-08-24T14:15:22Z",
- "untilAt": "2019-08-24T14:15:22Z",
- "staffMember": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "toDepartment": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "function": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staffGroupId": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
}
], - "planningNotes": [
- {
- "note": "string",
- "createdAt": "2019-08-24T14:15:22Z"
}
]
}, - "created_at": "2019-08-24T14:15:22Z"
}
}Through this endpoint a staff member can be added to the pool of Staff Adoption Candidates so it can possibly be added to another department in a hospital.
| staff_member_id required | string <uuid> |
| source_department_id required | string <uuid> The department where the staff member is originally from |
| staff_worklog_id | string <uuid> The staff worklog that this staff adoption candidate will remove when adopted. |
| from_at required | string <date-time> |
| until_at required | string <date-time> |
{- "staff_member_id": "5855f16b-074a-431e-acd2-59c8978555e4",
- "source_department_id": "477cbcb9-1c5c-4f5e-ae3d-6fbe4d7bf585",
- "staff_worklog_id": "f60bd96e-1dfb-461f-85f8-bf79ef775be8",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "originating_staff_worklog": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "resulting_staff_worklog": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "source_department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staff_group": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "status": "new",
- "deleted_at": "string",
- "is_deleted": "string",
- "has_been_split_into_multiple": true
}, - "includes": {
- "staff_member": {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}, - "source_department": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
}
}| staffGroupId required | string <uuid> |
| range[starts] | string <date-time> |
| range[ends] | string <date-time> |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| includes[staff_members] | string |
| includes[resulting_staff_worklogs] | string |
| includes[source_departments] | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "originating_staff_worklog": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "resulting_staff_worklog": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "source_department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staff_group": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "status": "new",
- "deleted_at": "string",
- "is_deleted": "string",
- "has_been_split_into_multiple": true
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "minutes_per_staff_member": [
- {
- "minutes_total": 0,
- "minutes_remaining": 0,
- "minutes_planned": 0,
- "staff_member": {
- "id": "string"
}
}
]
}, - "includes": {
- "staff_members": [
- {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
], - "resulting_staff_worklogs": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "function": {
- "id": "string"
}, - "comment": "string"
}
], - "source_departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
], - "staff_group": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "is_flexible": true,
- "flexible_staff_type": "string",
- "is_default_for_flexible_staff_type": true
}
}
}| staffMemberId required | string |
| range[starts] | string <date-time> |
| range[ends] | string <date-time> |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "originating_staff_worklog": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "resulting_staff_worklog": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "source_department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "staff_group": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "created_at": "2019-08-24T14:15:22Z",
- "status": "new",
- "deleted_at": "string",
- "is_deleted": "string",
- "has_been_split_into_multiple": true
}
]
}Creates a Staff Worklog from a staff adoption candidate. In this way you adopt the staff adoption candidate
| staffAdoptionCandidateId required | string |
| from_at required | string |
| until_at required | string |
| at_department_id required | string |
| staff_function_id required | string |
| staff_group_id required | string |
| comment required | string or null <= 255 characters |
| source required | string Enum: "planning" "support_question" When in doubt, choose planning. |
{- "from_at": "string",
- "until_at": "string",
- "at_department_id": "string",
- "staff_function_id": "string",
- "staff_group_id": "string",
- "comment": "string",
- "source": "planning"
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "function": {
- "id": "string"
}, - "comment": "string"
}
}Create a Support Question Reason
| name required | string |
{- "name": "string"
}{- "result": {
- "id": "string",
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "active": true
}
}Update a SupportQuestionReason
| id required | string |
| name required | string |
| active | boolean |
{- "name": "string",
- "active": true
}{- "result": {
- "id": "string",
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "active": true
}
}| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| range[starts] required | string <date-time> |
| range[ends] required | string <date-time> |
| query[status] | string Enum: "created" "seen" "responded" |
{- "results": [
- {
- "id": "string",
- "comment": "string",
- "state": "string",
- "department": {
- "id": "string"
}, - "reason": null,
- "creator": null,
- "responder": null,
- "created_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}| id required | string |
| support_question_status required | string Enum: "created" "seen" "responded" |
| note required | string <= 255 characters |
{- "support_question_status": "created",
- "note": "string"
}{- "result": {
- "id": "string",
- "note": "string",
- "state": "string",
- "support_question": {
- "id": "string"
}, - "responder": null,
- "created_at": "2019-08-24T14:15:22Z"
}
}| id required | string |
| includes[responses] | string Enum: "created" "seen" "responded" |
{- "result": {
- "id": "string",
- "comment": "string",
- "state": "string",
- "department": {
- "id": "string"
}, - "reason": null,
- "creator": null,
- "responder": null,
- "created_at": "2019-08-24T14:15:22Z",
- "finished_at": "2019-08-24T14:15:22Z",
- "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z"
}, - "includes": {
- "responses": {
- "id": "string",
- "note": "string",
- "state": "string",
- "support_question": {
- "id": "string"
}, - "responder": null,
- "created_at": "2019-08-24T14:15:22Z"
}
}
}| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "hospital_id": "b2658506-542b-413c-8700-f31c8dc45952"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}| id required | string <uuid> |
| name required | string |
| hospital_id required | string <uuid> |
{- "name": "string",
- "hospital_id": "b2658506-542b-413c-8700-f31c8dc45952"
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "hospital_id": "b2658506-542b-413c-8700-f31c8dc45952"
}
}| id required | string |
| expertise_id | string <uuid> |
| certified_at | string or null <date-time> |
{- "expertise_id": "d7d42c56-3633-4f38-9d89-5da09af3f144",
- "certified_at": "2019-08-24T14:15:22Z"
}| id required | string |
| includes[staff_members] | any |
{- "results": [
- {
- "id": "string",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "expertise": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "certified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "includes": {
- "staff_members": [
- {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
]
}
}Retrieve a list of staff adoption candidates with a certain expertise
| id required | string |
| includes[staff_members] | any |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "expertise": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "certified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "includes": {
- "staff_members": [
- {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
]
}
}| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| range[starts] required | string <date-time> |
| range[ends] required | string <date-time> |
{- "results": [
- {
- "id": "string",
- "staff_member": {
- "id": "string"
}, - "from": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z",
- "reason": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}
}
}{- "result": {
- "id": "string",
- "staff_member": {
- "id": "string"
}, - "from": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z",
- "reason": "string"
}, - "includes": {
- "staff_member": {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
}
}| staff_member_id required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| range[starts] | string <date-time> |
| range[ends] | string <date-time> |
| includes[staff_member] | string |
{- "results": [
- {
- "id": "string",
- "staff_member": {
- "id": "string"
}, - "from": "2019-08-24T14:15:22Z",
- "until": "2019-08-24T14:15:22Z",
- "reason": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}
}, - "includes": {
- "staff_member": {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
}
}Fetches all staff functions.
Note: For now pagination parameters are ignored.
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "parent": { },
- "capability_efficiencies": [
- {
- "capability": {
- "id": "string",
- "name": "string"
}, - "efficiency": 0.65
}
]
}
], - "state": {
- "pagination": null
}
}Creates a StaffFunction.
A StaffFunction should always have a parent, since Team n time supplies defaults that you need to match StaffFunctions under. The parent groups are essential to matching supply and demand.
| parent_id required | string <uuid> a StaffFunction id |
| name required | string <= 255 characters |
| description required | string |
| weight | integer <int32> [ 1 .. 1000 ] Default: 100 Higher is earlier in sorting |
{- "parent_id": "9091f0c1-dac3-4e2a-8866-e1b660434f40",
- "name": "string",
- "description": "string",
- "weight": 100
}Fetches a single staff function.
| staffFunctionId required | string |
{- "result": {
- "id": "string",
- "name": "string",
- "description": "string",
- "parent": { },
- "capability_efficiencies": [
- {
- "capability": {
- "id": "string",
- "name": "string"
}, - "efficiency": 0.65
}
]
}
}| staffFunctionId required | string |
| parent_id | string <uuid> |
{- "parent_id": "1c6ca187-e61f-4301-8dcb-0e9749e89eef"
}{- "result": {
- "id": "string",
- "name": "string",
- "description": "string",
- "parent": { },
- "capability_efficiencies": [
- {
- "capability": {
- "id": "string",
- "name": "string"
}, - "efficiency": 0.65
}
]
}
}List all staff groups
| is_flexible | boolean |
| flexible_staff_type | string Enum: "roaming_staff" "staff_adoption_candidates" "external_staff" |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| includes[] | string Enum: "departments" "hospitals" |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "is_flexible": true,
- "flexible_staff_type": "string",
- "is_default_for_flexible_staff_type": true
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "query": {
- "is_flexible": true,
- "flexible_staff_type": "string"
}
}, - "includes": {
- "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
], - "hospitals": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}
]
}
}Allows you to create a new staff group
| name required | string |
| hospital_id required | string <uuid> |
| department_id | string or null <uuid> |
| is_flexible required | boolean Should be true when flexible_staff_type is defined |
| flexible_staff_type | string or null Enum: "roaming_staff" "staff_adoption_candidates" "external_staff" |
| is_default_for_flexible_staff_type | boolean Default: false |
{- "name": "string",
- "hospital_id": "b2658506-542b-413c-8700-f31c8dc45952",
- "department_id": "094fb5f1-8160-46ea-8cec-010c4b44e054",
- "is_flexible": true,
- "flexible_staff_type": "roaming_staff",
- "is_default_for_flexible_staff_type": false
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "is_flexible": true,
- "flexible_staff_type": "string",
- "is_default_for_flexible_staff_type": true
}
}Fetch the details of a staff group
| id required | string |
| includes[] | string Enum: "staff_members" "hospital" "department" |
{- "results": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "is_flexible": true,
- "flexible_staff_type": "string",
- "is_default_for_flexible_staff_type": true
}, - "includes": {
- "hospital": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "venues": [
- {
- "id": "string"
}
], - "created_at": "2019-08-24T14:15:22Z"
}, - "department": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}, - "staff_members": [
- {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
]
}
}Update the information of a staff group
| id required | string |
| name | string |
| is_default_for_flexible_staff_type | boolean Default: false |
{- "name": "string",
- "is_default_for_flexible_staff_type": false
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "is_flexible": true,
- "flexible_staff_type": "string",
- "is_default_for_flexible_staff_type": true
}
}Only calculates and includes minutes_left_per_staff_member in state of response when range_minutes starts and ends are filled in.
| staffGroupId required | string |
| includes[staff_group] | string |
| range_minutes[starts] | string <date-time> |
| range_minutes[ends] | string <date-time> |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
], - "includes": {
- "staff_group": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "hospital": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "department": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "is_flexible": true,
- "flexible_staff_type": "string",
- "is_default_for_flexible_staff_type": true
}
}, - "state": {
- "minutes_per_staff_member": [
- {
- "minutes_total": 0,
- "minutes_remaining": 0,
- "minutes_planned": 0,
- "staff_member": {
- "id": "string"
}
}
], - "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
{- "results": [
- {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}
}Creates a StaffMember
| staff_function_id required | string <uuid> |
| first_name | string or null <= 255 characters |
| last_name | string or null <= 255 characters |
| email_address required | string <email> |
| phone_number | string or null <= 255 characters |
{- "staff_function_id": "9091f0c1-dac3-4e2a-8866-e1b660434f40",
- "first_name": "string",
- "last_name": "string",
- "email_address": "user@example.com",
- "phone_number": "string"
}{- "result": {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
}Gets one StaffMember
| id required | string |
| includes[staff_function] | string |
{- "result": {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}, - "includes": {
- "staff_function": {
- "id": "string",
- "name": "string",
- "description": "string",
- "parent": { },
- "capability_efficiencies": [
- {
- "capability": {
- "id": "string",
- "name": "string"
}, - "efficiency": 0.65
}
]
}
}
}Update the information of a staff member
| id required | string |
| staff_function_id required | string <uuid> |
| email required | string <email> |
| first_name | string or null <= 255 characters |
| last_name | string or null <= 255 characters |
| phonenumber | string or null <= 255 characters |
{- "staff_function_id": "9091f0c1-dac3-4e2a-8866-e1b660434f40",
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "phonenumber": "string"
}{- "result": {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
}| id required | string |
| includes[expertises] | any |
{- "results": [
- {
- "id": "string",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "expertise": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "certified_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "includes": {
- "expertises": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "hospital_id": "b2658506-542b-413c-8700-f31c8dc45952"
}
]
}
}| id required | string |
| expertise_id | string <uuid> |
| certified_at | string or null <date-time> |
{- "expertise_id": "d7d42c56-3633-4f38-9d89-5da09af3f144",
- "certified_at": "2019-08-24T14:15:22Z"
}| departmentId required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| range[starts] | string |
| range[ends] | string |
| includes[staff_members] | string |
| includes[department] | string |
| includes[staff_functions] | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "function": {
- "id": "string"
}, - "comment": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "staff_members": [
- {
- "id": "string",
- "name": "string",
- "function": {
- "id": "string",
- "default_capability_efficiencies": [
- {
- "capability": {
- "id": "string",
- "name": "string"
}, - "efficiency": 0.65
}
], - "abbreviation": "string",
- "name": "string"
}, - "capability_efficiencies": [
- {
- "capability": {
- "id": "string",
- "name": "string"
}, - "efficiency": 0.65
}
]
}
], - "department": {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}, - "staff_functions": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "parent": { },
- "capability_efficiencies": [
- {
- "capability": {
- "id": "string",
- "name": "string"
}, - "efficiency": 0.65
}
]
}
]
}
}| staffMemberId required | string |
| range[starts] | string |
| range[ends] | string |
| includes[departments] | string |
| includes[staff_functions] | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "function": {
- "id": "string"
}, - "comment": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}
}, - "includes": {
- "staff_functions": [
- {
- "id": "string",
- "name": "string",
- "description": "string",
- "parent": { },
- "capability_efficiencies": [
- {
- "capability": {
- "id": "string",
- "name": "string"
}, - "efficiency": 0.65
}
]
}
], - "departments": [
- {
- "id": "string",
- "name": "string",
- "abbreviation": "string",
- "type": "WARD",
- "created_at": "2019-08-24T14:15:22Z",
- "venue": {
- "id": "string"
}, - "hospital": {
- "id": "string"
}
}
]
}
}| staffGroupId required | string |
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| range[starts] | string |
| range[ends] | string |
| includes[staff_members] | string |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "function": {
- "id": "string"
}, - "comment": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "query": {
- "range": {
- "starts": "2019-08-24T14:15:22Z",
- "ends": "2019-08-24T14:15:22Z"
}
}
}, - "includes": {
- "staff_members": [
- {
- "id": "string",
- "staff_function": {
- "id": "string"
}, - "first_name": "string",
- "last_name": "string",
- "email_address": "string",
- "phone_number": "string"
}
]
}
}Creates a Staff Worklog
| staff_member_id required | string |
| from_at required | string |
| until_at required | string |
| at_department_id required | string |
| staff_function_id | string or null If you want to override the StaffFunction that the StaffMember will execute there, pass an id here. When null, the StaffFunction of the StaffMember will be set |
| staff_group_id | string or null If you want to override to which StaffGroup the StaffMember belongs for this StaffWorklog, pass an id. If empty, the StaffGroup of the StaffMember will be set |
| comment required | string <= 255 characters |
| source required | string Enum: "planning" "support_question" When in doubt, choose planning. |
{- "staff_member_id": "string",
- "from_at": "string",
- "until_at": "string",
- "at_department_id": "string",
- "staff_function_id": "string",
- "staff_group_id": "string",
- "comment": "string",
- "source": "planning"
}{- "result": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "function": {
- "id": "string"
}, - "comment": "string"
}
}also includes minutes_left_per_staff_group
| pagination[size] required | integer [ 1 .. 250 ] Returns how many items will be returned on a page |
| pagination[page] required | integer Returns which page index you are requesting. Starts at 0 |
| includes[staff_members] | string |
| includes[staff_functions] | string |
| range[starts] required | string <date-time> |
| range[ends] required | string <date-time> |
{- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "staff_member": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}, - "from_at": "2019-08-24T14:15:22Z",
- "until_at": "2019-08-24T14:15:22Z",
- "from_department": {
- "id": "string"
}, - "to_department": {
- "id": "string"
}, - "function": {
- "id": "string"
}, - "comment": "string"
}
], - "state": {
- "pagination": {
- "total_pages": 0,
- "current_page": 0,
- "page_size": 0,
- "total_count": 0
}, - "minutes_left_per_staff_group": [
- {
- "minutes_total": 0,
- "minutes_remaining": 0,
- "minutes_planned": 0,
- "staff_group": {
- "id": "string",
- "name": "string"
}
}
]
}, - "includes": null
}Fetches the information about the healthcheck data-received. This healthcheck tells the caller when was the last time data was received from our data agent installed at a hospital.
The garantuee of this attribute will not be 100% accurate, but representative enough to show when something is wrong with the data pipeline.
{- "result": {
- "data_last_received_at": "2022-02-02T18:13:53+01:00",
- "warning_threshold_in_seconds": 0
}
}