# QR codes for labs and diagnostics

> Specimen tubes are not QR territory: labs standardised on linear barcodes and Data Matrix, which fits a 10 mm tube face where a QR with its quiet zone cannot. Use QR for the patient side: per-test preparation instructions, results-portal onboarding, and directions to draw sites.

Source: https://useqr.app/qr-codes-for/labs-and-diagnostics · Last reviewed 2026-08-21 · UseQR is free forever, no signup.

---

## The honest symbology fact first

Laboratory information systems label tubes with **Code 128 linear barcodes** or
**[Data Matrix](/glossary/datamatrix)**, and that is correct engineering, not
conservatism. A Data Matrix needs a quiet zone of only one module and encodes a specimen
ID in a symbol a few millimetres square; a QR code needs
[four modules of quiet zone](/glossary/quiet-zone) on every side plus three finder
patterns, so at equal data it occupies more of a curved 10–13 mm tube face, and curvature
is exactly what small symbols cannot afford. Your analysers and racks are built around
that standard. Do not re-badge specimen labelling as a QR project.

QR earns its place on the **patient side** of the lab, where people scan with phones.

## Per-test preparation instructions

Wrong preparation voids samples: a non-fasting glucose, a missed medication hold. A code
on the request form or booking confirmation, linking the preparation page *for that test
type* (fasting duration, water rules, timing of last dose) reaches the patient the
evening before, when the leaflet from the GP visit is long lost. One stable URL per test
type, generated [in bulk](/docs/how-to/how-to-make-qr-codes-in-bulk) from the test
catalogue. No patient identifiers in any payload, the
[same rule as the rest of healthcare](/docs/security/qr-codes-in-hipaa-contexts).

## Results-portal onboarding

"Your results will be in the portal" fails at the signup step. A code on the printed
handout at the draw site, opening the portal registration page, converts patients while
they are standing in front of a phlebotomist who can help. Link the registration page,
never anything resembling a results link.

## Finding the draw site

Collection centres hide inside business parks and hospital wings. A
[geo code](/location-qr-code) on the appointment confirmation (the exact entrance, not
the campus) cuts the missed-slot rate from people circling the site. Add parking notes on
the linked page.

## FAQ

### Why do labs use Data Matrix instead of QR codes on tubes?

Data Matrix encodes a specimen ID in a smaller footprint (one-module quiet zone against
QR's four), which matters on a curved tube face around 10 mm across. Lab analysers and
middleware standardised on it, so QR offers no advantage inside the specimen workflow.

### What should a lab QR code on a request form link to?

The preparation instructions for that specific test type: fasting hours, medication
timing, water intake. A stable per-test URL means the patient can re-check the rules the
night before, when the printed advice has been lost.

### Can lab results be shared by QR code?

No, link the authenticated portal's login or registration page only. Results are
patient data; a code that resolved directly to a report would expose it to anyone who
photographs the paper it is printed on.

## Try it

- https://useqr.app/url
- https://useqr.app/location
- https://useqr.app/pdf
