StudyApi: Study operations

Description Format Methods Public fields Methods Examples

Description

LAMP.Study

Format

An R6Class generator object

Methods

all Get the set of all studies. Get the set of all studies.

allByResearcher Get the set of studies for a single researcher. Get the set of studies for a single researcher.

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

delete Delete a study. Delete a study.

update Update the study. Update the study.

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

Public fields

apiClient

Handles the client-server communication.

Methods

Public methods


Method new()

Usage
StudyApi$new(apiClient)

Method all()

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

Method allWithHttpInfo()

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

Method allByResearcher()

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

Method allByResearcherWithHttpInfo()

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

Method create()

Usage
StudyApi$create(researcher.id, study, ...)

Method createWithHttpInfo()

Usage
StudyApi$createWithHttpInfo(researcher.id, study, ...)

Method delete()

Usage
StudyApi$delete(study.id, ...)

Method deleteWithHttpInfo()

Usage
StudyApi$deleteWithHttpInfo(study.id, ...)

Method update()

Usage
StudyApi$update(study.id, study, ...)

Method updateWithHttpInfo()

Usage
StudyApi$updateWithHttpInfo(study.id, study, ...)

Method view()

Usage
StudyApi$view(study.id, transform = NULL, ...)

Method viewWithHttpInfo()

Usage
StudyApi$viewWithHttpInfo(study.id, transform = NULL, ...)

Method clone()

The objects of this class are cloneable with this method.

Usage
StudyApi$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
## Not run: 
####################  all  ####################

library(LAMP)

#Get the set of all studies.
result <- LAMP.Study$all()


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

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

#Get the set of studies for a single researcher.
result <- LAMP.Study$allByResearcher(var.researcher.id)


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

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

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


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

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

#Delete a study.
result <- LAMP.Study$delete(var.study.id)


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

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

#Update the study.
result <- LAMP.Study$update(var.study.id, var.study)


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

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

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



## End(Not run)

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