
Update References in the EPPIcenter SampleDB database
UpdateReferences.Rd
Update References in the EPPIcenter SampleDB database
Arguments
- reference
A string specifying a type of EPPIcenter reference (
freezer
,specimen_type
,study
).- operation
A string specifying the type of update operation to perform (
add
,modify
,delete
).- identifier
A reference-specific list that identifies the reference item that is being updated.
If the
reference
isfreezer
the identifier list must include:freezer_name
: A string specifying the freezer namefreezer_levelI
: A string specifying the freezer levelI namefreezer_levelII
: A string specifying the freezer levelII nameIf the
reference
isspecimen_type
the identifier list must include:specimen_type_name
: A string specifying the specimen type nameIf the
reference
isstudy
the identifier list must include:study_short_code
: A string specifying the study short code- update
A reference-specific list that contains the reference update information
If the
reference
isfreezer
the update, foradd
operations the list must include:freezer_name
: A string specifying the freezer namefreezer_type
: A string specifying the freezer typefreezer_levelI
: A string specifying the freezer levelI namefreezer_levelII
: A string specifying the freezer levelII nameIf the
reference
isspecimen_type
the update, foradd
operations the list must include:specimen_type_name
: A string specifying the specimen type nameIf the
reference
isstudy
the update, foradd
operations the list must include:study_title
: A string specifying the study titlestudy_description
: A string specifying the study descriptionstudy_short_code
: A string specifying the study short codestudy_lead_person
: A string specifying the study lead personstudy_longitudinal
: A logical value.TRUE
if the study is longitudinal andFALSE
if the study is not longitudinalFor
modify
operations all update items are optional
Examples
if (FALSE) { # \dontrun{
UpdateReferences(reference = "freezer", operation = "add", update = list(freezer_name = "Ruth", freezer_type = "-80", freezer_levelI = "rack1", freezer_levelII = "position_C1"))
} # }