AdherenceRecord

@Serializable
data class AdherenceRecord(val instanceGuid: String, val eventTimestamp: String, val startedOn: Instant? = null, val finishedOn: Instant? = null, val clientTimeZone: String? = null, val uploadedOn: String? = null, val declined: Boolean = false, val clientData: JsonElement? = null, val type: String = "AdherenceRecord")

A record describing the performance state of a scheduled session or assessment, as requested in a Timeline. Each record describes the state of a session or an assessment.

Parameters

instanceGuid

The session or assessment instance GUID from the timeline that led to the generation of this record. There can be more than one record under a given instance GUID if that guid is for a persistent assessment, which can be performed more than once. In this case, each record must have a unique startedOn timestamp (time zone differences are not enough to make it unique, it must be a unique instant in time).

startedOn

The client-supplied time when the activity was started (this time comes from the client and is not validated by the server). Since adherence records only includes activities that have been started, this value is required.

finishedOn

The client-supplied time when the activity was recorded as finished (this time comes from the client and is not validated by the server).

eventTimestamp

The event timestamp (at the time of recording this record) that triggered the sequence of sessions and assessments which includes the scheduling item for this record. For mutable event IDs, this timestamp can change, and each time value groups a separate series of instance GUID records.

clientTimeZone

An IANA Time Zone Database (TZDB) name for the participant’s time zone at the time the record is submitted. If present, this field will be validated to be a valid time zone name.

uploadedOn

The timestamp when an uploaded was recorded as successfully uploaded. If this timestamp is missing, the upload has not yet reached the server.

clientData

An arbitrary JSON structure that the client can use to record information about this schedule item (maximum size 65k).

type

AdherenceRecord

Constructors

Link copied to clipboard
constructor(instanceGuid: String, eventTimestamp: String, startedOn: Instant? = null, finishedOn: Instant? = null, clientTimeZone: String? = null, uploadedOn: String? = null, declined: Boolean = false, clientData: JsonElement? = null, type: String = "AdherenceRecord")

Properties

Link copied to clipboard
@SerialName(value = "clientData")
val clientData: JsonElement? = null
Link copied to clipboard
@SerialName(value = "clientTimeZone")
val clientTimeZone: String? = null
Link copied to clipboard
@SerialName(value = "declined")
val declined: Boolean = false
Link copied to clipboard
@SerialName(value = "eventTimestamp")
val eventTimestamp: String
Link copied to clipboard
@SerialName(value = "finishedOn")
val finishedOn: Instant? = null
Link copied to clipboard
@SerialName(value = "instanceGuid")
val instanceGuid: String
Link copied to clipboard
@SerialName(value = "startedOn")
val startedOn: Instant? = null
Link copied to clipboard
@SerialName(value = "type")
val type: String
Link copied to clipboard
@SerialName(value = "uploadedOn")
val uploadedOn: String? = null

Functions

Link copied to clipboard
fun AdherenceRecord.clientDataJson(): <Error class: unknown class>?