My Label Check

Human-Readable UDI vs Barcode: How to Check for a Mismatch

The human-readable UDI line and the DataMatrix must carry the same data. Learn how they diverge and how to compare them field by field, with a worked example.

My Label Check provides medical-device labeling review workflows. The public pages describe the workflows, the five source sets, security and data handling, and how to contact us. The iPhone app is available now, and Android is in Google Play closed testing; a qualified person still makes the review decision.

The printed line and the decoded payload, compared field by field.
The printed line and the decoded payload, compared field by field.

A UDI appears on a label twice: once as text a person can read, and once as a code a machine can read. Both must carry the same data. This post shows you how they drift apart and how to compare them, field by field.

If you need a refresher on the identifier itself, start with what a UDI is.

Two representations, one identity

The text line is the human readable interpretation, often shortened to HRI. The data carrier is the machine-readable form, usually a GS1 DataMatrix. The UDI rules in 21 CFR 801 and 830, and the UDI provisions of EU MDR 2017/745 (Annex I Chapter III), expect both forms to be present where the rules require a carrier.

They are meant to say the same thing. A nurse, a warehouse scanner and a recall system should all land on the same device identity.

In practice, the two are often produced by different steps. The text may be typed into artwork, while the barcode is generated by software from a data file. When those two paths are not tied together, they can part ways without anyone noticing.

For a wider view of how the identifier is built, see our guide to scanning a UDI and understanding its fields.

The four identifiers to compare

GS1 General Specifications define application identifiers (AIs). Each one tells a reader what the next piece of data means. For a mismatch check, four matter most.

(01) GTIN

The Global Trade Item Number identifies the device model and packaging level. It is a fixed-length number whose last digit is a check digit. The GTIN on a carton differs from the GTIN on a single unit, so confirm you are looking at the right level. Our page on packaging levels explains why.

(10) Lot or batch

A variable-length field. It is easy to alter by accident, because people add prefixes, spaces or dashes in the printed text.

(17) Expiry date

The data carrier stores the date in a fixed six-digit form: year, month, day. The printed line may use another style. Both must mean the same date.

(21) Serial number

A variable-length field that identifies a single unit. If your device is serialised, the serial must appear in both forms.

Seven ways they diverge

These are the patterns a reviewer sees most often.

  1. Truncated HRI. The printed line is cut off because the space was too small. The barcode holds the full value, the text does not.
  2. Wrong check digit. A digit was mistyped in the GTIN, so the number fails its check-digit calculation.
  3. Date format change. The text shows one style, the code holds another, and someone converts the date wrongly or drops the day.
  4. Lot prefix added. The printed lot has an extra prefix, such as a plant code, that the barcode does not carry.
  5. Serial omitted from HRI. The barcode holds a serial, but the text line leaves it out.
  6. Scanner misread. The code is damaged, low contrast or poorly printed, so the decoded value is wrong even though the artwork was correct.
  7. Stale artwork. The text was updated for a new revision, but the barcode file was not, or the reverse.

Most of these are not obvious on a quick look. That is why a character-by-character comparison matters.

Field-by-field comparison table

Use this as a working checklist. The examples are fictional.

Field HRI example Decoded example Verdict rule
(01) GTIN (01) 05012345678900 05012345678900 Fail if any digit differs, or if the check digit does not validate.
(10) Lot (10) K2291B K2291B Fail if characters differ, including added prefixes, spaces or dashes.
(17) Expiry (17) 270331 270331 Fail if the printed date and the decoded date do not mean the same day.
(21) Serial (21) 004417 004417 Fail if the serial is missing from either form, or differs.

Read the verdict as a rule, not a feeling. If the values are not identical, or not identical in meaning for dates, the field fails and goes to a person.

Worked example: Nimbus A1

Imagine a fictional infusion pump, the “Nimbus A1”, made by the fictional “Kestrel Medical”. A reviewer uploads a photo of the carton label.

Case 1: the expiry date

The printed line reads an expiry of 2027-03. The decoded (17) reads 270331.

At first glance this looks like a match, but look closely. The text gives only a year and month. The decoded value has a year (27), a month (03) and a day (31). The month agrees. The text has no day.

Is this a failure? That depends on your labeling rules and how you intend the date to be read. The finding should note that the two forms carry different levels of detail, and that a human must decide whether the printed form is acceptable. The reviewer may also check the format against ISO 15223-1:2021 for the date symbols and the applicable market rules. The tool can point to the gap. It cannot decide the intent for you.

Case 2: the missing serial

On another Nimbus A1 label, the barcode decodes to a GTIN, lot, expiry and a serial. The printed line shows the GTIN, lot and expiry, but no serial.

That is a clear mismatch. The code identifies a single unit, but the text does not. The finding is a fail on (21), and the label goes back to artwork.

How to check, step by step

  1. Scan. Capture the label from a clear PDF or photo. A sharp image of the whole symbol helps.
  2. Decode. Read the DataMatrix and split the string into its application identifiers.
  3. Extract the text. Pull the printed HRI fields from the same label.
  4. Compare character by character. Go field by field using the table above. Do not skim.
  5. Record. Note each field, each result and the evidence.
  6. Sign. A named reviewer reads the findings and signs off.

My Label Check does the extraction, the decoding and the comparison, and returns findings tied to the regulation text. A named human reviewer then signs off. To understand the output, read how to read your results. You can also see the full list on the features page.

The check-digit idea

A GTIN’s last digit is calculated from the digits before it, using a method defined in the GS1 General Specifications. If you recalculate it and the result differs from the printed digit, a digit was probably mistyped.

That is all it tells you. A valid check digit means the number is well formed. It does not mean the GTIN is registered, assigned to the right device, or correct for your product.

What a passing check proves

A pass means the text and the barcode agree on the fields you compared. It also means the GTIN is well formed. That is useful, because many label errors are simply two sources that fell out of step.

A pass does not prove more than that:

  • It does not show the data is correct in your device database or in GUDID. For that, compare against the FDA GUDID guidance and your own records.
  • It does not show the label meets every market’s rules.
  • It does not certify compliance.
  • It does not replace the qualified person or your RA review.

Both could be wrong in the same way and still match. Your design controls and labeling procedures, under 21 CFR 820 and ISO 13485:2016, still apply.

If you work across several markets, the market comparison and our overview of the five markets show where rules differ.

Summary card: Human-Readable UDI vs Barcode: How to Check for a Mismatch
At a glance — the takeaway this post defends.

FAQ

Does the human-readable line need to match the barcode exactly?

Both are meant to carry the same data. Compare every field and treat any difference as a finding for a person to review.

Why does the date look different in the text and the barcode?

The carrier stores the date in a compact fixed form, while the printed line may use another style. Check that they mean the same date, not just that they look alike.

Can a valid check digit prove my GTIN is right?

No. It shows the number is well formed. It does not show the number is assigned to the right device.

What if the barcode fails to scan?

It could be a print quality issue, not an artwork error. Rescan with a clearer image, then check the artwork file if the problem continues.

Does My Label Check certify the label?

No. It returns findings tied to the regulation text, and a named human reviewer signs off. It does not certify compliance. To discuss your set-up, contact us or see pricing.

Sources

  1. 21 CFR 801, Labeling
  2. 21 CFR 820, Quality System Regulation
  3. 21 CFR 830, Unique Device Identification
  4. FDA GUDID guidance
  5. Regulation (EU) 2017/745 (EU MDR), Annex I Chapter III
  6. ISO 15223-1:2021, Medical devices: symbols to be used with information to be supplied by the manufacturer
  7. ISO 13485:2016, Medical devices: quality management systems
  8. GS1 General Specifications