...
EventStream Report (all adherence data for one participant)
This is what the JSON would like like:
Code Block | ||
---|---|---|
| ||
{
"activeOnly": false,
"timestamp": "2021-11-23T00:32:12.583Z",
"adherencePercent": 11,
"streams": [
{
"startEventId": "study_burst:main-sequence:02",
"eventTimestamp": "2021-12-26T20:00:00.000Z",
"byDayEntries": {
"0": [
{
"sessionGuid": "LcWpQFKaGY5FSQ0LT4tnvdO7",
"label": "Session #1",
"symbol": "1",
"startDay": 0,
"startDate": "2021-12-26",
"timeWindows": [
{
"sessionInstanceGuid": "vGQycgYTXNtk37Wcqbwv_w",
"timeWindowGuid": "GNp94CnfTTtR-s0OzrFeftrh",
"state": "not_yet_available",
"endDay": 0,
"endDate": "2021-12-26",
"type": "EventStreamWindow"
},
{
"sessionInstanceGuid": "JAy5-aSZnxUjAt2B9xmHeg",
"timeWindowGuid": "aRaHNKIY0yKgOl5CLuA3ZDHJ",
"state": "not_yet_available",
"endDay": 0,
"endDate": "2021-12-26",
"type": "EventStreamWindow"
}
],
"type": "EventStreamDay"
}
]
},
"type": "EventStream"
},
{
"startEventId": "study_burst:main-sequence:01",
"eventTimestamp": "2021-11-21T20:00:00.000Z",
"daysSinceEvent": 1,
"byDayEntries": {
"0": [
{
"sessionGuid": "LcWpQFKaGY5FSQ0LT4tnvdO7",
"label": "Session #1",
"symbol": "1",
"startDay": 0,
"startDate": "2021-11-21",
"timeWindows": [
{
"sessionInstanceGuid": "1aCbUaFYkixIsIJBf9WGpg",
"timeWindowGuid": "GNp94CnfTTtR-s0OzrFeftrh",
"state": "expired",
"endDay": 0,
"endDate": "2021-11-21",
"type": "EventStreamWindow"
},
{
"sessionInstanceGuid": "yQnubrShfYMY9ZzOE3zw3Q",
"timeWindowGuid": "aRaHNKIY0yKgOl5CLuA3ZDHJ",
"state": "expired",
"endDay": 0,
"endDate": "2021-11-21",
"type": "EventStreamWindow"
}
],
"type": "EventStreamDay"
}
]
},
"type": "EventStream"
},
{
"startEventId": "custom:event2",
"eventTimestamp": "2021-11-15T20:00:00.000Z",
"daysSinceEvent": 7,
"byDayEntries": {
"0": [
{
"sessionGuid": "z_jb4p2Lr9Q56z8AwiYNieqw",
"label": "Session #3",
"symbol": "3",
"startDay": 0,
"startDate": "2021-11-15",
"timeWindows": [
{
"sessionInstanceGuid": "KAxvwhsX6jSVl89a3-gdKw",
"timeWindowGuid": "gF6hy-UiipJLXqe7F_yK-wQc",
"state": "expired",
"endDay": 0,
"endDate": "2021-11-15",
"type": "EventStreamWindow"
}
],
"type": "EventStreamDay"
}
],
"3": [
{
"sessionGuid": "z_jb4p2Lr9Q56z8AwiYNieqw",
"label": "Session #3",
"symbol": "3",
"startDay": 3,
"startDate": "2021-11-18",
"timeWindows": [
{
"sessionInstanceGuid": "nQnWs_4ECvLtY4K1gYk67g",
"timeWindowGuid": "gF6hy-UiipJLXqe7F_yK-wQc",
"state": "expired",
"endDay": 3,
"endDate": "2021-11-18",
"type": "EventStreamWindow"
}
],
"type": "EventStreamDay"
}
]
},
"type": "EventStream"
},
{
"startEventId": "custom:event1",
"eventTimestamp": "2021-11-21T20:00:00.000Z",
"daysSinceEvent": 1,
"byDayEntries": {
"0": [
{
"sessionGuid": "eRLgI5gfe1kef_XRZDfdFU9I",
"label": "Session #2",
"symbol": "2",
"startDay": 0,
"startDate": "2021-11-21",
"timeWindows": [
{
"sessionInstanceGuid": "bDBVV02XrjrOG8NgBYSYFg",
"timeWindowGuid": "KZ1piANVdeD-r8PCHL2bviLh",
"state": "completed",
"endDay": 0,
"endDate": "2021-11-21",
"type": "EventStreamWindow"
}
],
"type": "EventStreamDay"
}
]
},
"type": "EventStream"
}
],
"type": "EventStreamAdherenceReport"
} |
The windows include the state of that session (which is the basis for adherence calculation). The states are:
...