Description
Compare observedCode with declaredCode, test observedCode in approvedCodes, and return a source/edition/declared-code JSON-array key.
Good manufacturing practice records connect materials, actions, people, and source evidence. A local check can expose missing or inconsistent metadata, but it cannot authenticate a record or replace quality-system review.
Compare observedCode with declaredCode, test observedCode in approvedCodes, and return a source/edition/declared-code JSON-array key.
When to use this tool
Use GMP Product Contact Material Reference when you need a literal manufacturing-record or source-support diagnostic.
How to use the tool and how it works
- Enter observedCode, declaredCode, source, edition, approvedCodes. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read codesMatch, listed, referenceKey. Inspect codesMatch, listed before interpreting the associated values.
Require nonempty source and edition. Compare observedCode with declaredCode, test observedCode in approvedCodes, and return a source/edition/declared-code JSON-array key.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| observedCode | Observed Code | Required. Text; maximum UTF-16 length 8192. |
| declaredCode | Declared Code | Required. Text; maximum UTF-16 length 8192. |
| source | Source | Required. Text; maximum UTF-16 length 8192. |
| edition | Edition | Required. Text; maximum UTF-16 length 8192. |
| approvedCodes | Approved Codes | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| codesMatch | Codes Match | Required. Boolean. |
| listed | Listed | Required. Boolean. |
| referenceKey | Reference Key | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"observedCode": "M1",
"declaredCode": "M1",
"source": "registry",
"edition": "v1",
"approvedCodes": [
"M1"
]
},
"output": {
"codesMatch": true,
"listed": true,
"referenceKey": "[\"registry\",\"v1\",\"M1\"]"
}
} Limitations and assumptions
- Matching and listing are independent supplied-token checks; material identity, regulatory suitability for product contact, compatibility, and source authenticity are not verified.
- 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
Use the controlled record system to verify identity, provenance, approvals, and complete audit history. Treat local flags as prompts for investigation rather than release or compliance decisions.
References
Similar or alternative tools
- Material Status Support Share
Sum quantities overall and where all flags are true, then return their ratio or zero with defined false for zero total.
- GMP Maintenance Release Record Pair
Compare equipment and work-order identifiers literally and mark ordered when releaseTime is no earlier than maintenanceEnd.