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)
Functions
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
fun getCachedAdherenceRecords(instanceIds: List<String>, studyId: String): Map<String, List<AdherenceRecord>>
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