Label Studio Creator logo

Medical / UDI Label Tutorial

Build traceable medical device labels: the GS1 DataMatrix UDI-DI/UDI-PI structure, lot/serial/expiry, standard medical symbols, and hard validation. Layout guidance, not regulatory advice.

Purpose

Medical device labels must be unambiguous, traceable, and machine-readable. This guide covers building UDI-carrying labels in Label Studio Creator: the GS1 DataMatrix / UDI structure, lot / serial / expiry, standard medical symbols, and the validation checks that keep every label scannable.

Layout and workflow guidance only — confirm exact obligations (EU MDR, US FDA UDI, your issuing agency) for your device class.

MedicalUDIGS1 DataMatrixLot / serialExpiryValidation
UDI label structure UDI-DI + UDI-PI (01) GTIN — UDI-DI (17) Expiry 2026-12-31 (10) Lot L2207A (21) Serial 000148 ! Single use Manufacturer · Ref · CE

1. Understand the UDI structure

A UDI has two parts. Get the structure right and the rest follows:

  • UDI-DI (device identifier): the fixed GTIN of the device model — GS1 AI (01).
  • UDI-PI (production identifier): the variable part — expiry (17), lot (10), serial (21), manufacture date (11).
  • Both are carried in a single GS1 DataMatrix (or GS1-128) and mirrored in human-readable text.
Key idea: the barcode and the printed text must say exactly the same thing. Any mismatch is a defect.
DI + PI UDI-DI(01) GTIN — fixed UDI-PI(17)(10)(21) — variable

2. Build the data-carrier

Choose GS1 DataMatrix

Preferred for small medical surfaces; use Tools > Barcode Assistant and select GS1 DataMatrix (FNC1).

Compose the AIs

Concatenate (01)GTIN (17)expiry (10)lot (21)serial in the correct order and formats.

Bind variable PI

Point expiry/lot/serial at data fields so each unit gets its own PI automatically.

Add HRI text

Print the same values as human-readable text with the AIs shown in parentheses.

3. Standard medical symbols

SymbolMeaning
Factory + dateManufacturer and date of manufacture.
HourglassUse-by / expiry date.
LOT / SNBatch code / serial number.
“2” crossedDo not reuse (single use).
Book / “i”Consult instructions for use.
REF / UDICatalogue reference / unique device identifier.
Use vector symbols from an approved set so they print crisply at small sizes and stay standard-compliant.

4. Validation checks

Medical labels demand hard validation. Before any release:

  • Syntax: AIs present, in order, with correct fixed/variable lengths and FNC1 separators.
  • Check digit: GTIN check digit valid.
  • Formats: dates as YYMMDD in the carrier; serial uniqueness.
  • Grade: print/scan quality (e.g. DataMatrix grade) on the real material.
  • Match: HRI text equals encoded data, field by field.
Validation gate Encode(01)(17)(10)(21) Validate + scansyntax · check digitgrade · HRI match

5. Serial handling & reprints

Guarantee uniqueness

Serials must not repeat. Source them from a controlled sequence, not manual typing.

Reprint the same serial

If a unit's label is damaged, reprint that exact serial from history — never a fresh number.

Reconcile counts

Printed serials should match the produced units; investigate gaps.

Keep an audit trail

Record what was printed, when, and by whom for traceability.

6. Common problems and fixes

SymptomLikely cause & fix
Scanner rejects the codeMissing FNC1 / wrong AI order. Rebuild with the GS1 DataMatrix assistant.
HRI ≠ encoded dataText typed separately. Bind HRI to the same fields as the carrier.
Low DataMatrix gradeToo small or low contrast on the material. Increase module size; retest.
Duplicate serialsManual entry. Use a controlled serial source.
Wrong date format in carrierNot YYMMDD. Fix the field format for AI (17)/(11).

Recommended flow

Safe UDI flow: approved template → compose (01)(17)(10)(21) → bind variable PI & HRI → add standard symbols → validate syntax/check-digit/grade → scan a printed sample → release with audit trail.