ParticipantRepository

interface ParticipantRepository

Store participants, linked to study IDs.

Functions

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

Add a new Recruitment to the repository.

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.

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

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

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

Update a Recruitment which is already stored in this repository.

Inheritors

Link copied to clipboard
Link copied to clipboard