Scanner output is not an item number
A GS1 scan can contain a product identifier, lot, expiry and serial number. Extracting those fields and mapping the product to an internal item record are separate tasks. Keeping them separate makes it easier to locate an issue in scanning, interpretation or the mapping table.
Item, unit and packaging
This project uses the full GTIN with an approved item and unit mapping. GTIN Core is an analytical aid. Packaging levels are checked against physical labels and supplier data before approval.
Field boundaries matter
Variable-length fields need a separator when another field follows. Parentheses make application identifiers readable to people; they do not replace checking the actual raw string produced by the scanner.
Three useful checks
Start with the raw string, inspect the extracted fields, then check the internal item mapping. A valid GTIN check digit confirms the checksum, rather than product registration or a correct internal mapping. The site’s lab provides an illustrative parsing example.