Queries
Get all activities or pending activities for a given user over all care flows
Two queries are available for user activities:
myPendingActivities: Get all pending activities for a given user over all care flows.myActivities: Get all activities (any status) for a given user, with optional filtering by pathway.If you'd like to fetch activities in a specific care flow, use the GetPathwayActivities query.
We suggest reading the page on our domain model first to get an understanding of the activity model.
Use the X-User-ID header to specify for what user you'd like to fetch activities for. For example, you can pass the Awell patient ID as the value which will return all activities over all care flows the patient is included in.
We use the value of the X-User-ID header to find all activities where the value matches the activity.indirect_object.id field.
This query fetches a specific user's pending care flow activities (i.e., activities that require them to take action) for all care flows they are involved in. An activity is pending if its status is 'ACTIVE'.
Query:
01
Get all activities for a specific user across all care flows or filtered by a specific care flow. Supports pagination and sorting.
Query:
01
Variables:
01
Parameters:
| Field | Required | Description | Type |
|---|---|---|---|
| pathway_id | No | Optional filter to limit activities to a specific care flow | string |
| pagination | No | Pagination parameters (default: count=100, offset=0) | PaginationParams |
| sorting | No | Sorting parameters (default: field="date", direction="DESC") | SortingParams |