ParticipantRepository

interface ParticipantRepository

Store Participant instances, linked to study IDs.

Functions

addRecruitment
Link copied to clipboard
abstract suspend fun addRecruitment(recruitment: Recruitment)

Add a new Recruitment to the repository.

getRecruitment
Link copied to clipboard
abstract suspend fun getRecruitment(studyId: UUID): Recruitment?

Returns the Recruitment for the specified studyId, or null when no recruitment is found.

removeStudy
Link copied to clipboard
abstract suspend fun removeStudy(studyId: UUID): Boolean

Remove all data (only recruitment for now) for the study with studyId.

updateRecruitment
Link copied to clipboard
abstract suspend fun updateRecruitment(recruitment: Recruitment)

Update a Recruitment which is already stored in this repository.

Inheritors

InMemoryParticipantRepository
Link copied to clipboard
InMemoryStudyRepository
Link copied to clipboard