AdherenceRecordRepo

class AdherenceRecordRepo(httpClient: HttpClient, val bridgeConfig: BridgeConfig?, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope) : AbstractResourceRepo

Constructors

Link copied to clipboard
constructor(httpClient: HttpClient, bridgeConfig: BridgeConfig?, databaseHelper: ResourceDatabaseHelper, backgroundScope: CoroutineScope)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun createUpdateAdherenceRecord(adherenceRecord: AdherenceRecord, studyId: String)

Update the local cache with the specified AdherenceRecord and trigger a background call to save to Bridge server.

Link copied to clipboard

Get all of the locally cached AdherenceRecords.

Link copied to clipboard
fun getCachedAdherenceRecord(instanceId: String, startedOn: String): AdherenceRecord?
Link copied to clipboard

Get the locally cached AdherenceRecords for the specified instanceIds.

Link copied to clipboard

Download and cache locally all AdherenceRecords for the given study. For now this only requests records using the current timestamps.

Link copied to clipboard