Description
Test code membership and serialize source/code as a JSON-array 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.
Test code membership and serialize source/code as a JSON-array key.
When to use this tool
Use Food Package Seal Test Record Code when you need a specified food-handling record or traceability diagnostic.
How to use the tool and how it works
- Enter code, suppliedCodes, recordSource. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read recognized, recordKey. Inspect recognized before interpreting the associated values.
Require unique supplied codes and nonempty recordSource. Test code membership and serialize source/code as a JSON-array key.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| code | Code | Required. Text; maximum UTF-16 length 8192. |
| suppliedCodes | Supplied Codes | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| recordSource | Record Source | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| recognized | Recognized | Required. Boolean. |
| recordKey | Record Key | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"code": "P",
"suppliedCodes": [
"P",
"F"
],
"recordSource": "method-v1"
},
"output": {
"recognized": true,
"recordKey": "[\"method-v1\",\"P\"]"
}
} Limitations and assumptions
- The vocabulary is caller supplied and code recognition does not verify a seal test, physical package integrity or safe storage.
- 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
Similar or alternative tools
- Food Lot Identity Gap
Count literal lot mismatches, product mismatches and records matching both.
- Food Sample Parent Batch Identifier
Compare parents literally and serialize source, recorded parent and sample as a JSON-array provenance key.