To see a list of sessions for a caregiver
To view the list of the Sessions of each Care Provider, follow these steps:
1- Request URL:
https://gwidev.eq.optt.ca/gateway/profile/caregiver/session?time-state=RUNNING
2- Request Method Type:
GET
3- query
parameter name | Parameter Type | Description |
---|---|---|
time-state | string | RUNNING: Active sessions FUTURE : Sessions that have not yet been activated COMPLETED: Sessions closed by the Care Provider * One of these values must be used |
A complete example of an API call:
curl -X GET "https://gwidev.eq.optt.ca/gateway/profile/caregiver/session?time-state=RUNNING" -H "accept: */*" -H "Authorization: bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjM3NTgyMDY1MjEsInVzZXJfbmFtZSI6ImxhbGVoZGVobmF2aS5sZEBnbWFpbC5jb20iLCJhdXRob3JpdGllcyI6WyJDQVJFR0lWRVIiXSwianRpIjoiOTZhYWFjOTMtMmRjNy00NDM5LWE3YTUtNWI0MzAwYmNjN2NlIiwiY2xpZW50X2lkIjoib3B0dC0wMmVlNzdkYy1hYzQ1LTQzNDQtODE3ZS0xN2NhNTJiNThiNWQiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXX0.cvGtZ8jjyREqzFr2kUOhh4HTDsJOD0Y4icAO9KOt42Z_B_HngqylOs_WbDiSKduObzvfTHraDqEIxZJtAzK9YujjKcy9uKfPH_9GR-qcuFNrlrJMREib2AMzUXi9Gsqgh-hNsp1uNhlQzQuzSoKo1rAnuF6HC2m1BU77cbVnrwTdbP6e8jJz21dvav1JSUVZiqiyxVbUY2f8IA8n-sXf_284-4shnkkggbgIPTW88Jd_UOp-w2UZ-lKRWfRmKlhRVM37iamWw0hGOIW3jOJc6_fc1ce-I2O7YYBNkYdwLooBaVzXG0ja8w1PTrHBml95PcmzDLp2zg-4CRpjczSk4g" -H "offset: 1"
Response:
{
"content": [
{
"id": 809,
"title": "covid test",
"description": "covid test",
"caregiverId": 2,
"caregiverName": "caregiver1",
"caregiverPosition": "Psychologist",
"clientId": 1,
"clientOpptId": "clinic 12ea9ab52-498a-4600-9d15-eea49f0b4eb8",
"clientName": "client 1",
"createDate": "2021/01/24 10:14",
"startDate": "2021/01/24 10:14",
"chatId": "600d48c174e8540001b6c390",
"assignmentId": 1834,
"assignmentName": "Evidence",
"bookId": 5,
"assignmentCount": 4,
"completedAssignmentCount": 0,
"pendingAssignmentCount": 4,
"lastAssignmentScore": 0,
"isClosed": false,
"runningStatus": "RUNNING",
"documents": [],
"assignments": [],
"feedbacks": []
},
{
"id": 798,
"title": "test",
"description": "2",
"caregiverId": 2,
"caregiverName": "caregiver1",
"caregiverPosition": "Psychologist",
"clientId": 1,
"clientOpptId": "clinic 12ea9ab52-498a-4600-9d15-eea49f0b4eb8",
"clientName": "client 1",
"createDate": "2021/01/16 22:00",
"startDate": "2021/01/16 21:59",
"chatId": "6003624974e8540001b6c24f",
"assignmentId": 1774,
"assignmentName": "Evidence",
"bookId": 6,
"assignmentCount": 4,
"completedAssignmentCount": 0,
"pendingAssignmentCount": 4,
"lastAssignmentScore": 0,
"isClosed": false,
"runningStatus": "RUNNING",
"documents": [],
"assignments": [],
"feedbacks": []
},
{
"id": 45,
"title": "Dec 18 Test session 5",
"description": "Checking",
"caregiverId": 2,
"caregiverName": "caregiver1",
"caregiverPosition": "Psychologist",
"clientId": 1,
"clientOpptId": "clinic 12ea9ab52-498a-4600-9d15-eea49f0b4eb8",
"clientName": "client 1",
"createDate": "2020/12/19 02:56",
"startDate": "2021/01/15 14:59",
"chatId": "5fdd6c0074e8540001305aea",
"assignmentId": 64,
"assignmentName": "PHQ9-module",
"bookId": 2,
"assignmentCount": 1,
"completedAssignmentCount": 0,
"pendingAssignmentCount": 1,
"lastAssignmentScore": 0,
"isClosed": false,
"runningStatus": "RUNNING",
"documents": [],
"assignments": [],
"feedbacks": []
}
],
"last": false,
"totalElements": 271,
"totalPages": 14,
"sort": null,
"first": true,
"numberOfElements": 20,
"size": 20,
"number": 0
}