PREPROD
ReaderAuthor

piper

CoC Record — CoC ID

`CoCRecord.cocId` is the foreign key that links this per-well sample record to its parent ChainOfCustody shipment document.

1 min read · 2 depth levelsstratum-piper · vdevMatches production
Everyday

Every CoCRecord must belong to exactly one ChainOfCustody, referenced by cocId. This link allows Piper to group all the individual well-level records that were shipped together in one cooler, and to inherit shipment-level information like the shippedAt date and coolerTempC from the parent. When you view a CoC document, all CoCRecords sharing that cocId appear as line items on the form, one for each well sampled during the event.

Technical section
Data model, API, and internals — visible to developers.
View as developer →
Was this helpful?