Study Service
interface StudyService : ApplicationService<StudyService, StudyService.Event>
Content copied to clipboard
Application service which allows creating and managing studies.
Types
Functions
Link copied to clipboard
abstract suspend fun createStudy(ownerId: UUID, name: String, description: String? = null, invitation: StudyInvitation? = null): StudyStatus
Content copied to clipboard
Create a new study for the entity (e.g., person or group) with ownerId.
Link copied to clipboard
abstract suspend fun getStudiesOverview(ownerId: UUID): List<StudyStatus>
Content copied to clipboard
Get status for all studies created by the entity (e.g. person or group) with the specified ownerId.
Link copied to clipboard
Gets detailed information about the study with the specified studyId, including which study protocol is set.
Link copied to clipboard
Get the status for a study with the given studyId.
Link copied to clipboard
Lock in the current study protocol so that the study may be deployed to participants.
Link copied to clipboard
Remove the currently set study protocol for the study with the specified studyId.
Link copied to clipboard
abstract suspend fun setInternalDescription(studyId: UUID, name: String, description: String?): StudyStatus
Content copied to clipboard
Set study details which are visible only to the study owner.
Link copied to clipboard
abstract suspend fun setInvitation(studyId: UUID, invitation: StudyInvitation): StudyStatus
Content copied to clipboard
Specify an invitation, shared with participants once they are invited to the study with the specified studyId.
Link copied to clipboard
abstract suspend fun setProtocol(studyId: UUID, protocol: StudyProtocolSnapshot): StudyStatus
Content copied to clipboard