Get the completed elements of a clinical workflow

get/workflows/{workflowId}/completedElements

Returns the completed active flow elements of the specified clinical workflow. Completed element types could be -- user tasks, timers, clinical job tasks, notifications, and signal events.

Request Samples

Response Samples

1{
2 "value": {
3 "name": "elements",
4 "accept": "application/vnd.sas.clinical.workflow.completed.element",
5 "start": 0,
6 "count": 2,
7 "items": [
8 {
9 "version": 1,
10 "id": "WFd3636ad1-7a97-47d1-9abd-7c4fa3f18e21",
11 "workflowId": "7e37b1e6-24c2-48bf-92f2-25dc92ead9c0",
12 "workflowName": "HLSCRC-14736-1",
13 "elementId": "WF9EAC4E5F-2982-47D2-A3A2-29135D3D4C7B",
14 "elementName": "User task",
15 "elementType": "USER_TASK",
16 "type": "USERTASK",
17 "completedBy": "sastest1",
18 "completedByDisplayName": "SAS Test User 1 (sastest1)",
19 "creationTimeStamp": "2026-02-17T16:06:19.859Z",
20 "completedTimeStamp": "2026-02-17T16:07:59.346Z",
21 "completionState": "COMPLETED_SUCCESSFUL",
22 "name": "User task",
23 "priority": "MEDIUM",
24 "assigneeId": "sastest1",
25 "assigneeDisplayName": "SAS Test User 1 (sastest1)",
26 "assignedTimeStamp": "2026-02-17T16:06:19.941Z",
27 "startedTimeStamp": "2026-02-17T16:07:30.929Z",
28 "totalHoursWorked": 0
29 },
30 {
31 "version": 1,
32 "id": "WF7cb8719e-aece-459b-8362-272bb94868d8",
33 "workflowId": "WF2fb3f5f3-84ed-405b-9d24-5514e668b278",
34 "workflowName": "catest_SequentialNotifications",
35 "elementId": "WF4D5E5ADA-FB1D-44A7-A73B-D977C7D75A1E",
36 "elementName": "Call activity1",
37 "elementType": "NOTIFICATION_TASK",
38 "type": "NOTIFICATION",
39 "completedBy": "sastest1",
40 "completedByDisplayName": "SAS Test User 1 (sastest1)",
41 "creationTimeStamp": "2026-02-23T16:43:17.733Z",
42 "completedTimeStamp": "2026-02-23T16:43:20.931Z",
43 "completionStatus": "Clinical task completed and notification sent.",
44 "completionState": "COMPLETED_SUCCESSFUL",
45 "message": "1",
46 "bccRecipients": [
47 {
48 "version": 1,
49 "id": "sastest1",
50 "typeId": "user",
51 "name": "SAS Test User 1",
52 "displayName": "SAS Test User 1 (sastest1)"
53 }
54 ]
55 }
56 ],
57 "limit": 2,
58 "version": 2
59 }
60}

Path Parameters

NameTypeRequiredDescription
workflowId
string
true

The unique identifier for the clinical workflow.

Responses

StatusMeaningDescription
200OK

OK

Schema
404Not Found

The clinical workflow could not be found.