ParticipantApi: Participant operations

Description Format Methods Public fields Methods Examples

Description

LAMP.Participant

Format

An R6Class generator object

Methods

all Get the set of all participants. Get the set of all participants.

allByResearcher Get the set of all participants under a single researcher. Get the set of all participants under a single researcher.

allByStudy Get the set of all participants in a single study. Get the set of all participants in a single study.

create Create a new Participant for the given Study. Create a new Participant for the given Study.

delete Delete a participant AND all owned data or event streams. Delete a participant AND all owned data or event streams.

update Update a Participant's settings. Update a Participant's settings.

view Get a single participant, by identifier. Get a single participant, by identifier.

Public fields

apiClient

Handles the client-server communication.

Methods

Public methods


Method new()

Usage
ParticipantApi$new(apiClient)

Method all()

Usage
ParticipantApi$all(transform = NULL, ...)

Method allWithHttpInfo()

Usage
ParticipantApi$allWithHttpInfo(transform = NULL, ...)

Method allByResearcher()

Usage
ParticipantApi$allByResearcher(researcher.id, transform = NULL, ...)

Method allByResearcherWithHttpInfo()

Usage
ParticipantApi$allByResearcherWithHttpInfo(
  researcher.id,
  transform = NULL,
  ...
)

Method allByStudy()

Usage
ParticipantApi$allByStudy(study.id, transform = NULL, ...)

Method allByStudyWithHttpInfo()

Usage
ParticipantApi$allByStudyWithHttpInfo(study.id, transform = NULL, ...)

Method create()

Usage
ParticipantApi$create(study.id, participant, ...)

Method createWithHttpInfo()

Usage
ParticipantApi$createWithHttpInfo(study.id, participant, ...)

Method delete()

Usage
ParticipantApi$delete(participant.id, ...)

Method deleteWithHttpInfo()

Usage
ParticipantApi$deleteWithHttpInfo(participant.id, ...)

Method update()

Usage
ParticipantApi$update(participant.id, participant, ...)

Method updateWithHttpInfo()

Usage
ParticipantApi$updateWithHttpInfo(participant.id, participant, ...)

Method view()

Usage
ParticipantApi$view(participant.id, transform = NULL, ...)

Method viewWithHttpInfo()

Usage
ParticipantApi$viewWithHttpInfo(participant.id, transform = NULL, ...)

Method clone()

The objects of this class are cloneable with this method.

Usage
ParticipantApi$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
## Not run: 
####################  all  ####################

library(LAMP)

#Get the set of all participants.
result <- LAMP.Participant$all()


####################  allByResearcher  ####################

library(LAMP)
var.researcher.id <- 'researcher.id_example' # character | 

#Get the set of all participants under a single researcher.
result <- LAMP.Participant$allByResearcher(var.researcher.id)


####################  allByStudy  ####################

library(LAMP)
var.study.id <- 'study.id_example' # character | 

#Get the set of all participants in a single study.
result <- LAMP.Participant$allByStudy(var.study.id)


####################  create  ####################

library(LAMP)
var.study.id <- 'study.id_example' # character | 
var.participant <- Participant$new() # Participant | 

#Create a new Participant for the given Study.
result <- LAMP.Participant$create(var.study.id, var.participant)


####################  delete  ####################

library(LAMP)
var.participant.id <- 'participant.id_example' # character | 

#Delete a participant AND all owned data or event streams.
result <- LAMP.Participant$delete(var.participant.id)


####################  update  ####################

library(LAMP)
var.participant.id <- 'participant.id_example' # character | 
var.participant <- Participant$new() # Participant | 

#Update a Participant's settings.
result <- LAMP.Participant$update(var.participant.id, var.participant)


####################  view  ####################

library(LAMP)
var.participant.id <- 'participant.id_example' # character | 

#Get a single participant, by identifier.
result <- LAMP.Participant$view(var.participant.id)



## End(Not run)

BIDMCDigitalPsychiatry/LAMP-r documentation built on April 29, 2020, 9:51 a.m.