Skip to content

Extract Data Matrix Value

Pablo edited this page Feb 8, 2022 · 5 revisions

GS1 specifications

GS1 General Specifications

GS1 Data Matrix Guideline

Usage

d2:extractDataMatrixValue( <gs1Key>, <gs1Value> )

Parameter Supported values
gs1Key[^1] A string of any application identifier (ai) from figure 3.2-1 in the GS1 General Specification doc.
Any of the GS1 data matrix string keys[^2]
gs1Value GS1 formatted string (Hardcoded, rule variable or rule expression)

[^1]: Data Matrix specific identifiers as seen in table 2-1 in GS1 Data Matrix Standard doc have been coded to allow both the numeric and named key.

[^2]: gtin, lot number, batch number, production date, best before date, expiration date, serial number

Usage example

Given the value ]d20108470006991541211008199619525610DXB200517220228

gs1Key value returned
01 08470006991541
gtin 08470006991541
serial number 10081996195256
best before date empty string

Code in the rule engine

Clone this wiki locally