Home/Pharmaceutical

Coding on pharmaceutical packs

Pharmaceutical · guide9 min readPublished 27 Nov 2026Sources: EU 2016/161 · DSCSA · 21 CFR 801 · ISO/IEC 15415
The short answer

Pharma coding is two jobs on one line. One is variable printing — batch, expiry, local text — the way any industry prints it. The other is serialisation: a unique, graded DataMatrix that a pharmacist scans and a database matches. The second job decides the equipment, because a code that prints beautifully but does not grade is a rejected pack.

Two jobs on one line

Job 1 · Variable data
Batch number, expiry date, market-specific text. Changes per batch or per market. Judged by: does the pack show what the label law requires.
Job 2 · The serialised carrier
A DataMatrix carrying product code + serial + batch + expiry, unique per pack. Judged by: ISO/IEC 15415 print grade on a calibrated verifier — and by whether the serial is unique.

One printer usually does both, but they fail differently. Variable data fails visibly — wrong date, smudged text — and an operator catches it. The serialised carrier fails invisibly: the code looks fine, the camera reads it, and the verifier grades it 1.2. Or worse, two packs in a batch carry the same serial because a rejected pack was re-coded without retiring the first number.

What the regimes demand

RegimeThe pack must carryAnchor
EU FMD (2011/62/EU + Reg (EU) 2016/161)Unique identifier — product code, serial number, batch, expiry — in a GS1 DataMatrix, plus an anti-tampering device; verified at the point of dispensingIn force since Feb 2019
US DSCSAProduct identifier with lot and expiry, serialised down to the saleable unitEnforced from late 2023, enforcement discretion through 2024
US UDI (21 CFR 801/830)Devices, not drugs: UDI on labels, direct marking on re-usable instrumentsPhased 2014–2020

The full comparison, including device rules and who enforces what, is in the regulation pillar. Compliance anchors, not legal advice.

For the coding line, the operational reading of that table is short: every saleable pack gets a unique DataMatrix, and somebody can grade it.

The grade that decides everything

The EU verification framework and GS1 healthcare guidance converge on a minimum print grade of 1.5 (C) under ISO/IEC 15415, measured on a calibrated verifier. Two things on a pharma line follow from that single number:

  1. The printer must hold the grade on your substrate — coated carton board is the hard case, because the coating sits on top of a porous core and ink that soaks in spreads sideways, degrading the symbol's print growth and modulation scores. Ink families exist for exactly this: penetrating inks for uncoated board, non-penetrating fast-set inks for coated. The choice is a substrate question before it is a brand question.
  2. Someone must own the verifier. A production camera is not a verifier: cameras are set up to read your codes under your light. A verifier grades the symbol against an international standard with a calibrated aperture and illumination. Lines that skip the verifier find out at the pharmacy.
Margin, not minimum

A code that grades exactly 1.5 on the day of acceptance has nowhere to go but down — head wear, ink batch change, substrate lot change all subtract. Lines that stay out of trouble ship at a defined margin above the floor and re-check the grade at every ink change and substrate lot.

Cartons, labels, foil

SurfaceWhat worksWhat bites
Coated carton boardTIJ with non-penetrating fast-set ink; CIJ; laser (char contrast) on uncoated blanksPenetrating inks stay on the coating and smear; graded DataMatrix degrades fastest here
Uncoated boardTIJ penetrating ink soaks in and locks; CIJ fineContrast drops on brown/kraft — the DataMatrix still needs its grade
Pressure-sensitive labelsTTO and thermal printing at label conversion; TIJ/CIJ on the lineLabel face stock varies widely — grade the actual label, not a sample from last year
Blister foilCIJ with inks formulated for foil; date + lot codesTiny print areas, reflective surfaces confuse cameras; adhesion on coated foil
Shrink film / bundlesTIJ or CIJ on the bundle; aggregate codes below unit levelWrinkle and gloss distort codes; aggregate serialisation has its own data rules

Compatibility logic — surface energy, porosity, heat — is laid out method by method in the substrate reference.

How the line fits together

A serialised pharma line is a chain of four stations, and the printer is only one of them:

  1. The controller draws unique serials and drives the printer. Uniqueness lives here, not in the printer.
  2. The printer marks pack, carton or label — the visible part.
  3. The camera reads every code and reports misses. Set up properly, it also catches wrong-position or wrong-content prints.
  4. The reject gate removes failures — and this is where most serialisation projects are really tested: a rejected pack must be either destroyed or re-coded with a new serial. A pack carrying two serials, or a serial issued twice, poisons the batch data.

Two rules worth writing on the wall: first the code must be correct, then legible, then graded — a perfect print of a wrong serial is still a rejected pack. And every rerun is a serialisation event, with its own numbers drawn from the controller.

What inspectors ask

These are the same questions a FAT/SAT protocol should answer before delivery — the full test structure is in acceptance testing.

Questions we get

Do we need a verifier on every line?

If the line prints regulated serialised codes, some instrument must grade them per shift, per substrate lot and per ink change. Whether that is one verifier per line or a shared one with a disciplined sampling plan is an operational choice — but "the camera reads it" is not verification, and the first failed pharmacy scan will cost more than the instrument.

TIJ or CIJ on pharmaceutical cartons?

Both hold the grade on the right substrate-ink pair. TIJ wins on cartridge logistics and solvent-free rooms; CIJ wins on volume cost and speed. The deciding experiment is the same either way: grade the proposed pair on your actual board at your actual speed, and look at the margin, not the pass.

Can the inspection camera replace the verifier?

No. The camera is tuned to read your codes under your illumination — it answers "did this one print well enough for us". A verifier grades the symbol against ISO/IEC 15415 with calibrated aperture and light, which answers "will it read everywhere, later". Lines need both; they are different instruments.

What grade should we ship at?

Above 1.5 with margin — the floor is where the standard says the code becomes unreliable, not where it becomes good. Define a shipping target on a calibrated verifier, check it at ink and substrate changes, and treat a falling trend as head wear arriving on schedule.

What about codes on blister foil?

Feasible and common for lot/expiry, with inks made for foil and careful camera setup for reflectivity. Serialised DataMatrix lives more often on the carton or label, where the print area and the substrate cooperate. Check where your regime expects the unique identifier before designing the artwork.

Related

Also in pharma

Pages that connect to this one.

This page
What the mark must carry

FMD, DSCSA, UDI and the graded code — the regulation pillar.

Regulation
Acceptance testing a coding line

Where the grade clause, the verifier and the reject path belong.

Contract
Which mark stays on which surface

Why coated board eats penetrating inks — and the tests that settle it.

Reference
How to choose a coding system

The four questions behind the shortlist.

Selection