Skip to content

Main content

Food Sample Parent Batch Identifier Tool

Compare the supplied parent identifier without resolving an external batch registry.

Loading tool…

Description

Compare parents literally and serialize source, recorded parent and sample as a JSON-array provenance key.

Food-safety records connect lots, samples, tests, labels and handling events. Consistent identifiers and reconciled quantities support record review, but do not establish safe food, complete traceability or valid regulatory approval.

Compare parents literally and serialize source, recorded parent and sample as a JSON-array provenance key.

When to use this tool

Use Food Sample Parent Batch Identifier when you need a specified food-handling record or traceability diagnostic.

How to use the tool and how it works

  1. Enter sample, recordedParent, expectedParent, source. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read matches, provenanceKey. Inspect matches before interpreting the associated values.

Require nonempty sample and parent identifiers. Compare parents literally and serialize source, recorded parent and sample as a JSON-array provenance key.1

Input fieldMeaning and unitsAccepted input
sampleSampleRequired. Text; maximum UTF-16 length 8192.
recordedParentRecorded ParentRequired. Text; maximum UTF-16 length 8192.
expectedParentExpected ParentRequired. Text; maximum UTF-16 length 8192.
sourceCaller-supplied source label; authenticity is not verified.Required. Text; maximum UTF-16 length 8192.
Output fieldInterpretationReturned shape
matchesMatchesRequired. Boolean.
provenanceKeyJSON-array record key, not authenticated provenance.Required. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "sample": "S1",
    "recordedParent": "B1",
    "expectedParent": "B1",
    "source": "lab"
  },
  "output": {
    "matches": true,
    "provenanceKey": "[\"lab\",\"B1\",\"S1\"]"
  }
}

Limitations and assumptions

  • The source label is not authenticated. Matching identifiers do not verify actual sample origin, collection procedure, or food safety.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Review the complete controlled records, actual product condition and applicable validated procedures. Authenticate sources and approvals rather than treating one matching token or balance as a safety verdict.

References

  1. Calculation and input contract: food-safety/food-sample-parent-batch-identifier — tool.io

Similar or alternative tools