Skip to contents

This internal function uploads specimen data to the SampleDB database. It validates the data and checks for existing entries before updating the database.

Usage

.UploadSpecimens(upload_data, sample_type_id, conn, extraction = FALSE)

Arguments

upload_data

A data frame containing the specimen data.

sample_type_id

A character or numeric identifier for the sample type.

conn

A database connection object.

extraction

This is an extraction from a control, not a regular sample. This will enforce some checks to make sure we are not writing to the database when we should only be reading from certain tables. An example is the study subject table, which we should only read from during an extraction.