Check control or standard rows against the contract before writing them
Source:R/point_estimates_contract.R
validate_point_estimates.RdVerifies that a data frame destined for calib_controls or calib_standards
contains no column the contract does not know, has every key and non-nullable
column filled, and that the controlled vocabularies (exclusion_reason,
pcov_gate_class, censor_class, censor_type) hold only allowed values. Stops
with a message listing the problems, so a bad batch is caught before it reaches
the database. created_at is filled by the database and may be absent.
Usage
validate_point_estimates(
x,
table = c("controls", "standards", "control_reference")
)