Awell Health Developer Hub
Dev Hub

Three queries are available for activity lookups:

  1. activitiesByPatient: Search activities across care flows for a specific patient.
  2. activitiesByCareflowDefinition: Search activities across care flows for a specific care flow definition.
  3. 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.

Request

Search activities by patient

Search for activities across all care flows for a given patient. Supports filtering by status, type, action, stakeholders, care flow status, and more.

01

Variables

Required parameters

FieldRequiredDescriptionType
patient_idYesThe ID of the patientstring

Filters

All filters are optional. If you don't provide any, all activities for the patient will be returned (excluding system activities by default).

01
FieldRequiredDescriptionType
activity_statusNoFilter by activity status (e.g., ACTIVE, DONE, FAILED)StringArrayFilter
activity_typeNoFilter by activity type (e.g., FORM, MESSAGE, CALCULATION)StringArrayFilter
actionNoFilter by action type (e.g., ASSIGNED, ACTIVATE, COMPLETE)StringArrayFilter
stakeholdersNoFilter by stakeholder IDsStringArrayFilter
careflow_statusNoFilter by care flow status (e.g., active, completed, stopped)StringArrayFilter
careflow_definition_idNoFilter by care flow definition IDsStringArrayFilter
careflow_idsNoFilter by specific care flow IDsStringArrayFilter
exclude_system_activitiesNoExclude system activities (defaults to true)boolean

Search activities by care flow definition

Search for activities across all care flows of a specific care flow definition.

01

Variables:

01

Pagination and sorting

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

Get single activity

Retrieve a single activity by its ID.

Query:

01

Variables:

01

Parameters:

FieldRequiredDescriptionType
idYesThe unique identifier of the activitystring