Study Service Host
class StudyServiceHost(repository: StudyRepository, eventBus: ApplicationServiceEventBus<StudyService, StudyService.Event>, uuidFactory: UUIDFactory = DefaultUUIDFactory, clock: Clock = Clock.System) : StudyService
Implementation of StudyService which allows creating and managing studies.
Constructors
Link copied to clipboard
fun StudyServiceHost(repository: StudyRepository, eventBus: ApplicationServiceEventBus<StudyService, StudyService.Event>, uuidFactory: UUIDFactory = DefaultUUIDFactory, clock: Clock = Clock.System)
Functions
Link copied to clipboard
open suspend override fun createStudy(ownerId: UUID, name: String, description: String?, invitation: StudyInvitation?): StudyStatus
Create a new study for the entity (e.g., person or group) with ownerId.
Link 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
open suspend override fun setInternalDescription(studyId: UUID, name: String, description: String?): StudyStatus
Set study details which are visible only to the study owner.
Link copied to clipboard
Specify an invitation, shared with participants once they are invited to the study with the specified studyId.
Link copied to clipboard