Queries
Search activities by status, type, patient and other criteria
Three queries are available for activity lookups:
activitiesByPatient: Search activities across care flows for a specific patient.activitiesByCareflowDefinition: Search activities across care flows for a specific care flow definition.activity: Get a single activity by its ID.We suggest reading the page on our domain model first to get an understanding of the activity model.
Search for activities across all care flows for a given patient. Supports filtering by status, type, action, stakeholders, care flow status, and more.
01
| Field | Required | Description | Type |
|---|---|---|---|
| patient_id | Yes | The ID of the patient | string |
All filters are optional. If you don't provide any, all activities for the patient will be returned (excluding system activities by default).
01
| Field | Required | Description | Type |
|---|---|---|---|
| activity_status | No | Filter by activity status (e.g., ACTIVE, DONE, FAILED) | StringArrayFilter |
| activity_type | No | Filter by activity type (e.g., FORM, MESSAGE, CALCULATION) | StringArrayFilter |
| action | No | Filter by action type (e.g., ASSIGNED, ACTIVATE, COMPLETE) | StringArrayFilter |
| stakeholders | No | Filter by stakeholder IDs | StringArrayFilter |
| careflow_status | No | Filter by care flow status (e.g., active, completed, stopped) | StringArrayFilter |
| careflow_definition_id | No | Filter by care flow definition IDs | StringArrayFilter |
| careflow_ids | No | Filter by specific care flow IDs | StringArrayFilter |
| exclude_system_activities | No | Exclude system activities (defaults to true) | boolean |
Search for activities across all care flows of a specific care flow definition.
01
Variables:
01
Pagination and sorting are required for both queries. If no pagination values are supplied, the API will return only the first 100 activities, or 100 activities from the specified offset. There is an upper limit of 100 records per query. Please be aware that setting count greater than 100 will successfully execute but return only 100 records.
Default sorting is based on the date field, in descending order (i.e. newest to oldest).
01
Retrieve a single activity by its ID.
Query:
01
Variables:
01
Parameters:
| Field | Required | Description | Type |
|---|---|---|---|
| id | Yes | The unique identifier of the activity | string |