Use case

Laboratory specimen labels: what they carry and how they print

A specimen label ties a tube to a patient and an order at the moment of collection. Where a laboratory follows a label standard such as CLSI AUTO12, the standard sets what the label carries and where; the laboratory information system holds the data. BarcoderX prints the label from the data it is given, at the draw station if you want. It does not scan, match or verify.

What is built today: Status

The label at a glance

AUTO12 is the CLSI standard on specimen labels and TJC The Joint Commission's National Performance Goals for the Hospital Program, effective January 2026. Gray references point to them; see Sources. All data in the drawing is invented.

The documents cited below are the authority on what these labels carry; this page summarizes, in our own words, the parts we read. BarcoderX prints the label from the data it is given. It does not issue identifiers, check that a label matches a person or a product, scan or verify barcodes, report to any regulator, or certify, approve or validate a label under any rule.

Schematic of a specimen tube label, 2 by 1 proportions A label twice as wide as it is high. 1 The patient name sits in the top left corner, here the invented name Example, Patient. 2 Under it, an accession number, here the invented A0000123. 3 A barcode with the accession number as readable text. 4 At the right, an optional two-dimensional code drawn with a dashed outline. The bars and modules are decorative and not scannable. EXAMPLE, PATIENT ACC A0000123 A0000123 2D 1 2 3 4
Schematic, not scannable. A tube label in the 2 × 1 inch proportion that CLSI's page names. Only the name in the top left corner is placed by a cited source; the other positions are illustrative.
  1. Patient name, top leftCLSI's page says the patient name matters most and always goes in the top left corner. AUTO12, abstract
  2. Accession numberAn identifier from your laboratory system. The standard places the required readable elements; we have not read its text, so we do not list them. AUTO12, abstract
  3. BarcodeThe standard also covers where the barcode goes and how big it is. The symbology is a choice of the laboratory and its instruments. AUTO12, abstract
  4. Optional 2D codeA laboratory or an instrument may ask for one. This is a choice, not a rule from a cited document.

What the standards say

CLSI AUTO12 is titled "Specimen Labels: Content and Location, Fonts, and Label Orientation". CLSI's product page lists it as a first edition published April 28, 2011. AUTO12, product page The page describes it as covering where and how the required readable elements appear, a standard label size of 2 × 1 inches (50.8 × 25.4 mm), the placement of other common elements, how long patient names are cut short, where the barcode goes and how big it is, and how labels sit on tubes. AUTO12, abstract

With exceptions such as slides and pediatric specimens, the scope covers laboratory specimens from the point of collection, including transfers between providers. AUTO12, scope

We have read only CLSI's public page, not the standard, which holds the exact layout rules. Read it before you design a label, and treat this page as an introduction. CLSI's page also lists a separate document, AUTO02, "Laboratory Automation: Bar Codes for Specimen Container Identification", which we have not read. AUTO12, product page

In the United States, The Joint Commission's National Performance Goals for hospitals, in the edition effective January 2026, have the hospital label blood and other specimen containers while the patient is present. TJC NPG.01.01.01 EP 2 The goal is about labeling the container with the patient present; it does not say where or when the label is printed. A printer at the draw station, fed by the laboratory system, is a common set-up because the label can be printed and applied in the same moment. The goal also asks for at least two patient identifiers. TJC NPG.01.01.01 EP 1 See patient wristbands.

Which barcodes, and why

Which barcode a laboratory uses is usually decided by its information system and its instruments, and by the standard its labels follow. We cite no document that names one, so the table says what each symbology is and which edition prints it.

Barcodes on a specimen label and the edition each needs
BarcodeTypical roleEdition
Code 128A linear code for an accession or order number. It is a common choice, not a cited rule.Basic
GS1-128Only if your system uses GS1 identifiers with Application Identifiers.Basic
Data MatrixA two-dimensional code, for where the label is small and the instrument reads it.Ultimate
QR Code or PDF417Other 2D symbols, if your system reads them.Ultimate

The data it needs

Each value is bound into a template from the laboratory system. The values below are invented.

Fields on a specimen label, a sample value and where each goes
FieldSample valueWhere it goes
Patient nameEXAMPLE, PATIENTThe top left corner. AUTO12, abstract
Accession numberA0000123The barcode, and as readable text beside it. The laboratory chooses the number.

A label is typically printed on demand at the draw station, from the order in the laboratory information system, by your application. The values come from objects, a DataTable, CSV, JSON or XML. Templates and data

Research and freezer sample labels

Not every specimen label belongs to a patient. Research and freezer sample labels usually carry a study or sample identifier. We cite no standard for them: the laboratory or the study protocol sets the content.

Such labels have to stay readable in storage. Which media and ribbon survive cold, moisture or solvents is for your media supplier to say; BarcoderX does not choose or test media. A choice between direct thermal and thermal transfer comes first.

How it reaches the printer

The printer commands are the same on both routes, and both run on infrastructure you operate.

  • Direct, from your application. The SDK packages send the printer commands from your own .NET process over TCP port 9100, serial, the Windows spooler, CUPS or USB. No API server and no agent is in the path.
  • Through your API server. Your application queues a print job through the REST API on your API server. A print agent on the printer's network collects it and writes it to the printer beside it. The agent only dials out, so the printer network needs no inbound port.

A label is printed when a specimen is collected, so it is usually triggered by your own application, which holds the order. Printing is one label per tube, so the quantity is set with ^PQ. Delivery to the agent is at-least-once and the agent de-duplicates by job id, so a reconnect does not print a label twice, and a retried request with an idempotency key does not queue a second label.

Which edition covers it

EditionsBasic covers the linear (1D) and postal symbologies, including every GS1 DataBar variant; Ultimate adds the PDF417 family, other multi-row symbologies, every matrix (2D) symbology and GS1 composites, as set out on the pricing page.

Code 128 and GS1-128 are in Basic, since the pricing page lists them under linear barcodes. Data Matrix, QR Code and PDF417 are in Ultimate.

The ZPL behind it

The printer commands come from the template. These are the ZPL commands behind a label like this one.

^BC
Prints a Code 128 barcode.
^BX
Prints a Data Matrix symbol.
^FB
Formats text as a block with word wrap, useful for a name that must fit its place.
^FO
Places each field.
^FD
Holds the data of a field.
^PQ
Sets how many labels print.

What BarcoderX does not do here

  • No scanning and no matching. BarcoderX does not read barcodes and does not check that a label belongs to the patient or the tube in front of you.
  • No bedside or mobile app. There is no collection app; the label is printed from your own application.
  • No identifiers issued. The accession number comes from your laboratory system.
  • No certification. BarcoderX does not certify, approve or validate a label under AUTO12, an accreditor's goal or any other rule, and it does not report to anyone.
  • No media advice. The label stock, ribbon and printer are yours to choose; BarcoderX has no printer drivers or firmware.

New to the printer language? Read the ZPL guides and command reference.

Sources

CLSI AUTO12: Specimen Labels: Content and Location, Fonts, and Label Orientation
First edition, published April 28, 2011 (the page names AUTO12-A, Approved Standard). We read the public product page: abstract and scope. The standard itself was not read. https://clsi.org/standards/products/automation-and-informatics/documents/auto12/
The Joint Commission: National Performance Goals, Hospital Program
Effective January 2026, report generated September 26, 2025. NPG.01.01.01, elements of performance 1 and 2. https://digitalassets.jointcommission.org/api/public/content/9ca80055182b4274842a5780a94f2c82

Written by BarcoderX in its own words; not a publication of the bodies named above, whose documents are the authority. Read on November 14, 2026. Check the current edition before you rely on a detail.

ZPL and ZPL II are trademarks of Zebra Technologies Corporation. BarcoderX is an independent product and is not affiliated with, endorsed by or sponsored by Zebra Technologies.