Description Format Methods Public fields Methods Examples
LAMP.SensorEvent
An R6Class
generator object
allByParticipant Get all sensor events for a participant. Get the set of all sensor events produced by the given participant.
@param participant.id character
@param origin character
@param from numeric
@param to numeric
@param transform character
status code : 200 | 200 Success
return type : array[object]
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
allByResearcher Get all sensor events for a researcher by participant. Get the set of all sensor events produced by participants of any study conducted by a researcher, by researcher identifier.
@param researcher.id character
@param origin character
@param from numeric
@param to numeric
@param transform character
status code : 200 | 200 Success
return type : array[object]
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
allByStudy Get all sensor events for a study by participant. Get the set of all sensor events produced by participants of a single study, by study identifier.
@param study.id character
@param origin character
@param from numeric
@param to numeric
@param transform character
status code : 200 | 200 Success
return type : array[object]
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
create Create a new SensorEvent for the given Participant. Create a new SensorEvent for the given Participant.
@param participant.id character
@param sensor.event SensorEvent
status code : 200 | 200 Success
return type : character
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
delete Delete a sensor event. Delete a sensor event.
@param participant.id character
@param origin character
@param from numeric
@param to numeric
status code : 200 | 200 Success
return type : character
response headers :
status code : 400 | 400 Bad Request
return type : Error
response headers :
status code : 403 | 403 Authorization Failed
return type : Error
response headers :
status code : 404 | 404 Not Found
return type : Error
response headers :
status code : 0 | 500 Internal Error
return type : Error
response headers :
apiClient
Handles the client-server communication.
new()
SensorEventApi$new(apiClient)
allByParticipant()
SensorEventApi$allByParticipant( participant.id, origin = NULL, from = NULL, to = NULL, transform = NULL, ... )
allByParticipantWithHttpInfo()
SensorEventApi$allByParticipantWithHttpInfo( participant.id, origin = NULL, from = NULL, to = NULL, transform = NULL, ... )
allByResearcher()
SensorEventApi$allByResearcher( researcher.id, origin = NULL, from = NULL, to = NULL, transform = NULL, ... )
allByResearcherWithHttpInfo()
SensorEventApi$allByResearcherWithHttpInfo( researcher.id, origin = NULL, from = NULL, to = NULL, transform = NULL, ... )
allByStudy()
SensorEventApi$allByStudy( study.id, origin = NULL, from = NULL, to = NULL, transform = NULL, ... )
allByStudyWithHttpInfo()
SensorEventApi$allByStudyWithHttpInfo( study.id, origin = NULL, from = NULL, to = NULL, transform = NULL, ... )
create()
SensorEventApi$create(participant.id, sensor.event, ...)
createWithHttpInfo()
SensorEventApi$createWithHttpInfo(participant.id, sensor.event, ...)
delete()
SensorEventApi$delete( participant.id, origin = NULL, from = NULL, to = NULL, ... )
deleteWithHttpInfo()
SensorEventApi$deleteWithHttpInfo( participant.id, origin = NULL, from = NULL, to = NULL, ... )
clone()
The objects of this class are cloneable with this method.
SensorEventApi$clone(deep = FALSE)
deep
Whether to make a deep clone.
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:
#################### allByParticipant ####################
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
var.origin <- 'origin_example' # character |
var.from <- 3.4 # numeric |
var.to <- 3.4 # numeric |
#Get all sensor events for a participant.
result <- LAMP.SensorEvent$allByParticipant(var.participant.id,
origin=var.origin,
from=var.from,
to=var.to)
#################### allByResearcher ####################
library(LAMP)
var.researcher.id <- 'researcher.id_example' # character |
var.origin <- 'origin_example' # character |
var.from <- 3.4 # numeric |
var.to <- 3.4 # numeric |
#Get all sensor events for a researcher by participant.
result <- LAMP.SensorEvent$allByResearcher(var.researcher.id,
origin=var.origin,
from=var.from,
to=var.to)
#################### allByStudy ####################
library(LAMP)
var.study.id <- 'study.id_example' # character |
var.origin <- 'origin_example' # character |
var.from <- 3.4 # numeric |
var.to <- 3.4 # numeric |
#Get all sensor events for a study by participant.
result <- LAMP.SensorEvent$allByStudy(var.study.id, origin=var.origin, from=var.from, to=var.to)
#################### create ####################
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
var.sensor.event <- SensorEvent$new() # SensorEvent |
#Create a new SensorEvent for the given Participant.
result <- LAMP.SensorEvent$create(var.participant.id, var.sensor.event)
#################### delete ####################
library(LAMP)
var.participant.id <- 'participant.id_example' # character |
var.origin <- 'origin_example' # character |
var.from <- 3.4 # numeric |
var.to <- 3.4 # numeric |
#Delete a sensor event.
result <- LAMP.SensorEvent$delete(var.participant.id, origin=var.origin, from=var.from, to=var.to)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.