
Update References in the EPPIcenter SampleDB database
UpdateReferences.RdUpdate 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
referenceisfreezerthe 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
referenceisspecimen_typethe identifier list must include:specimen_type_name: A string specifying the specimen type nameIf the
referenceisstudythe 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
referenceisfreezerthe update, foraddoperations 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
referenceisspecimen_typethe update, foraddoperations the list must include:specimen_type_name: A string specifying the specimen type nameIf the
referenceisstudythe update, foraddoperations 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.TRUEif the study is longitudinal andFALSEif the study is not longitudinalFor
modifyoperations 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"))
} # }