Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejson
{
  "participant": {
    "firstName": "A-chan",
    "email": "alx.dark+achan@sagebase.org",
    "externalId": "asdfasdf",
    "identifier": "GqYpNUWolebxS2eQudF1hc-a",
    "type": "AccountRef"
  },
  "timestamprequestTimestamp": "2021-11-23T21:03:21.356Z",
  "createdOn": "2021-11-23T22:03:21.356Z",
  "weeklyAdherencePercent": 33,
  // nextActivity, if byDayEntries is empty
  "byDayEntries": {
    "0": [
      {
        "sessionGuid": "eRLgI5gfe1kef_XRZDfdFU9I",
        "sessionLabel": "Session #2",
        "sessionSymbol": "2",
        "week": 1,
        "startDate": "2021-11-21",
        "timeWindows": [
          {
            "sessionInstanceGuid": "bDBVV02XrjrOG8NgBYSYFg",
            "timeWindowGuid": "KZ1piANVdeD-r8PCHL2bviLh",
            "state": "completed",
            "endDate": "2021-11-21",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      },
      {
        "sessionGuid": "LcWpQFKaGY5FSQ0LT4tnvdO7",
        "sessionLabel": "Session #1",
        "sessionSymbol": "1",
        "week": 1,
        "studyBurstId": "main-sequence",
        "studyBurstNum": 1,
        "startDate": "2021-11-21",
        "timeWindows": [
          {
            "sessionInstanceGuid": "1aCbUaFYkixIsIJBf9WGpg",
            "timeWindowGuid": "GNp94CnfTTtR-s0OzrFeftrh",
            "state": "expired",
            "endDate": "2021-11-21",
            "type": "EventStreamWindow"
          },
          {
            "sessionInstanceGuid": "yQnubrShfYMY9ZzOE3zw3Q",
            "timeWindowGuid": "aRaHNKIY0yKgOl5CLuA3ZDHJ",
            "state": "expired",
            "endDate": "2021-11-21",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      }
    ],
    "1": [
      {
        "sessionGuid": "eRLgI5gfe1kef_XRZDfdFU9I",
        "sessionLabel": "Session #2",
        "sessionSymbol": "2",
        "week": 1,
        "startDate": "2021-11-22",
        "timeWindows": [
          {
            "sessionInstanceGuid": "u-cc8Ou4xqUPVnht4oh-bw",
            "timeWindowGuid": "KZ1piANVdeD-r8PCHL2bviLh",
            "state": "expired",
            "endDate": "2021-11-22",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      },
      {
        "sessionGuid": "LcWpQFKaGY5FSQ0LT4tnvdO7",
        "sessionLabel": "Session #1",
        "sessionSymbol": "1",
        "week": 1,
        "studyBurstId": "main-sequence",
        "studyBurstNum": 1,
        "startDate": "2021-11-22",
        "timeWindows": [
          {
            "sessionInstanceGuid": "7HaIdOehYJrJk3VZcGeNxg",
            "timeWindowGuid": "GNp94CnfTTtR-s0OzrFeftrh",
            "state": "completed",
            "endDate": "2021-11-22",
            "type": "EventStreamWindow"
          },
          {
            "sessionInstanceGuid": "R0I7n1fEeIR88fYv6iVPTg",
            "timeWindowGuid": "aRaHNKIY0yKgOl5CLuA3ZDHJ",
            "state": "expired",
            "endDate": "2021-11-22",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      }
    ],
    "2": [
      {
        "sessionGuid": "eRLgI5gfe1kef_XRZDfdFU9I",
        "sessionLabel": "Session #2",
        "sessionSymbol": "2",
        "week": 1,
        "startDate": "2021-11-23",
        "timeWindows": [
          {
            "sessionInstanceGuid": "s7HuTxm4E-ffhfiddVFkXQ",
            "timeWindowGuid": "KZ1piANVdeD-r8PCHL2bviLh",
            "state": "started",
            "endDate": "2021-11-23",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      },
      {
        "sessionGuid": "z_jb4p2Lr9Q56z8AwiYNieqw",
        "sessionLabel": "Session #3",
        "sessionSymbol": "3",
        "week": 2,
        "startDate": "2021-11-24",
        "timeWindows": [
          {
            "sessionInstanceGuid": "WHE_gHE71tk8qFERatcruA",
            "timeWindowGuid": "gF6hy-UiipJLXqe7F_yK-wQc",
            "state": "not_yet_available",
            "endDate": "2021-11-26",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      },
      {
        "sessionGuid": "LcWpQFKaGY5FSQ0LT4tnvdO7",
        "sessionLabel": "Session #1",
        "sessionSymbol": "1",
        "week": 1,
        "studyBurstId": "main-sequence",
        "studyBurstNum": 1,
        "startDate": "2021-11-23",
        "timeWindows": [
          {
            "sessionInstanceGuid": "SgTohgnPkGjB9eE73QRXEA",
            "timeWindowGuid": "GNp94CnfTTtR-s0OzrFeftrh",
            "state": "completed",
            "endDate": "2021-11-23",
            "type": "EventStreamWindow"
          },
          {
            "sessionInstanceGuid": "ezwrtaRiJd5Bfa3w5Xxffw",
            "timeWindowGuid": "aRaHNKIY0yKgOl5CLuA3ZDHJ",
            "state": "unstarted",
            "endDate": "2021-11-23",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      }
    ],
    "3": [
      {
        "sessionGuid": "eRLgI5gfe1kef_XRZDfdFU9I",
        "sessionLabel": "Session #2",
        "sessionSymbol": "2",
        "week": 1,
        "startDate": "2021-11-24",
        "timeWindows": [
          {
            "sessionInstanceGuid": "u78_-kFdyNnKt6wbUmSXcA",
            "timeWindowGuid": "KZ1piANVdeD-r8PCHL2bviLh",
            "state": "not_yet_available",
            "endDate": "2021-11-24",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      },
      {
        "sessionGuid": "LcWpQFKaGY5FSQ0LT4tnvdO7",
        "sessionLabel": "Session #1",
        "sessionSymbol": "1",
        "week": 1,
        "studyBurstId": "main-sequence",
        "studyBurstNum": 1,
        "startDate": "2021-11-24",
        "timeWindows": [
          {
            "sessionInstanceGuid": "mcpv_-sW1vXfk4Vyi5dwgg",
            "timeWindowGuid": "GNp94CnfTTtR-s0OzrFeftrh",
            "state": "not_yet_available",
            "endDate": "2021-11-24",
            "type": "EventStreamWindow"
          },
          {
            "sessionInstanceGuid": "t4AEs7UzOjXYACSOO1REPA",
            "timeWindowGuid": "aRaHNKIY0yKgOl5CLuA3ZDHJ",
            "state": "not_yet_available",
            "endDate": "2021-11-24",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      }
    ],
    "4": [
      {
        "sessionGuid": "eRLgI5gfe1kef_XRZDfdFU9I",
        "sessionLabel": "Session #2",
        "sessionSymbol": "2",
        "week": 1,
        "startDate": "2021-11-25",
        "timeWindows": [
          {
            "sessionInstanceGuid": "tJxcgcQK40X6jL71MORb3g",
            "timeWindowGuid": "KZ1piANVdeD-r8PCHL2bviLh",
            "state": "not_yet_available",
            "endDate": "2021-11-25",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      },
      {
        "sessionGuid": "LcWpQFKaGY5FSQ0LT4tnvdO7",
        "sessionLabel": "Session #1",
        "sessionSymbol": "1",
        "week": 1,
        "studyBurstId": "main-sequence",
        "studyBurstNum": 1,
        "startDate": "2021-11-25",
        "timeWindows": [
          {
            "sessionInstanceGuid": "22nOvDMhYIE7btX6X8zlHw",
            "timeWindowGuid": "GNp94CnfTTtR-s0OzrFeftrh",
            "state": "not_yet_available",
            "endDate": "2021-11-25",
            "type": "EventStreamWindow"
          },
          {
            "sessionInstanceGuid": "H2EG1SV-tF_s8dmKWwvtOQ",
            "timeWindowGuid": "aRaHNKIY0yKgOl5CLuA3ZDHJ",
            "state": "not_yet_available",
            "endDate": "2021-11-25",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      }
    ],
    "5": [
      {
        "sessionGuid": "eRLgI5gfe1kef_XRZDfdFU9I",
        "sessionLabel": "Session #2",
        "sessionSymbol": "2",
        "week": 1,
        "startDate": "2021-11-26",
        "timeWindows": [
          {
            "sessionInstanceGuid": "-OoNi3vhifRUqN6X9WTMCg",
            "timeWindowGuid": "KZ1piANVdeD-r8PCHL2bviLh",
            "state": "not_yet_available",
            "endDate": "2021-11-26",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      },
      {
        "sessionGuid": "z_jb4p2Lr9Q56z8AwiYNieqw",
        "sessionLabel": "Session #3",
        "sessionSymbol": "3",
        "week": 2,
        "startDate": "2021-11-27",
        "timeWindows": [
          {
            "sessionInstanceGuid": "2O-jPnpWOYZLx0VjBvvO8g",
            "timeWindowGuid": "gF6hy-UiipJLXqe7F_yK-wQc",
            "state": "not_yet_available",
            "endDate": "2021-11-29",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      },
      {
        "sessionGuid": "LcWpQFKaGY5FSQ0LT4tnvdO7",
        "sessionLabel": "Session #1",
        "sessionSymbol": "1",
        "week": 1,
        "studyBurstId": "main-sequence",
        "studyBurstNum": 1,
        "startDate": "2021-11-26",
        "timeWindows": [
          {
            "sessionInstanceGuid": "JfyiAbHZ-nlmTZui_N19Tg",
            "timeWindowGuid": "GNp94CnfTTtR-s0OzrFeftrh",
            "state": "not_yet_available",
            "endDate": "2021-11-26",
            "type": "EventStreamWindow"
          },
          {
            "sessionInstanceGuid": "g6kRO-JZgt0lGghDT8v37A",
            "timeWindowGuid": "aRaHNKIY0yKgOl5CLuA3ZDHJ",
            "state": "not_yet_available",
            "endDate": "2021-11-26",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      }
    ],
    "6": [
      {
        "sessionGuid": "eRLgI5gfe1kef_XRZDfdFU9I",
        "sessionLabel": "Session #2",
        "sessionSymbol": "2",
        "week": 1,
        "startDate": "2021-11-27",
        "timeWindows": [
          {
            "sessionInstanceGuid": "_-1AlFrrN9IfA5tK-OYvag",
            "timeWindowGuid": "KZ1piANVdeD-r8PCHL2bviLh",
            "state": "not_yet_available",
            "endDate": "2021-11-27",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      },
      {
        "sessionGuid": "LcWpQFKaGY5FSQ0LT4tnvdO7",
        "sessionLabel": "Session #1",
        "sessionSymbol": "1",
        "week": 1,
        "studyBurstId": "main-sequence",
        "studyBurstNum": 1,
        "startDate": "2021-11-27",
        "timeWindows": [
          {
            "sessionInstanceGuid": "IUBXsO4ioFgJfi8GA9NSxw",
            "timeWindowGuid": "GNp94CnfTTtR-s0OzrFeftrh",
            "state": "not_yet_available",
            "endDate": "2021-11-27",
            "type": "EventStreamWindow"
          },
          {
            "sessionInstanceGuid": "WdRjHkDWoqmQx4vxRuCVeg",
            "timeWindowGuid": "aRaHNKIY0yKgOl5CLuA3ZDHJ",
            "state": "not_yet_available",
            "endDate": "2021-11-27",
            "type": "EventStreamWindow"
          }
        ],
        "type": "EventStreamDay"
      }
    ]
  },
  "type": "WeeklyAdherenceReport"
}

...