Case Study: See how Formable built DOCX redlining with Apryse in two months

Home

All Blogs

Barcode Extraction for Healthcare Documents: Patient Records, Referrals, and Claims

Published December 04, 2024

Updated November 18, 2026

Read time

7 min

email
linkedIn
twitter
link

Barcode Extraction for Healthcare Documents: Patient Records, Referrals, and Claims

Sanity Image

Mia Perese

Healthcare documents carry barcodes that identify patients, specimens, orders, and claims. The Apryse Server SDK Barcode Extraction Module reads those barcodes from patient records, lab reports, referrals, and claim forms in PDF, including scanned faxes, on your own servers, so documents with protected health information stay in your environment. The values come back as JSON your app uses for filing, matching, and routing.

Sanity Image

Where Barcodes Appear in Healthcare Documents and What They Carry

Copied to clipboard

Barcodes in healthcare documents are identifiers, and each document type usually carries a different one. A patient record carries an ID that ties a page to a chart. A lab report carries a specimen or accession number that ties results to the sample behind them. A referral carries an order or referral number, and a claim form carries a claim or member identifier that ties the page to a payer record.

Picture a regional referral desk at 6:40 on a Monday morning. Over the weekend, a fax line and a mailroom scanner dropped hundreds of pages into a shared folder. Every page is a PDF, and every page carries a barcode that says who it belongs to. Nobody on the desk wants to type those numbers, and the document system you are building should not ask them to.

The cost of getting this wrong is a lab result filed under the wrong chart. Patient record barcode extraction replaces that keying with a read.

How the Apryse Barcode Extraction Module Reads Barcodes in Patient Records, Referrals, and Claim Forms

Copied to clipboard

The Apryse Barcode Extraction Module reads barcodes from PDF files on your server and returns each one as JSON. Every result carries the symbology type, the bounding rectangle, the rotation angle, and the decoded payload. The module supports more than 100 barcode types across logistics, healthcare, retail, and postal services, so one read covers the mix of labels on a typical intake stack.

The input is a PDF, born-digital or scanned. Fax images and TIFF scans arrive as images, so convert them to PDF first with Image to PDF in the base Apryse Server SDK, which handles TIFF, JPG, PNG, GIF, and BMP. The module does not read image files directly.

Scan quality sets how hard the read is. The default profile assumes an average to high quality scan. A low quality source profile exists for noisy or low-resolution scans such as poor faxes, and it reads slightly slower.

Here is the module on one imagined page. Take a two-page referral from a primary care clinic, converted from a fax image to PDF before it reaches the module. The module finds three barcodes. The table shows what comes back and what your app does next. The values are fictional. This is an illustrative example built from the product documentation, not a customer case or a test result.

Barcode on the Page

Symbology

Decoded Value

What Your App Does With It

Patient ID label, top right of page 1

Code 128

PT-0048213

Matches the PDF to the patient record.

Referral number, bottom of page 1

PDF417

REF-2026-117342

Files the referral under its number in your database.

Order code, top of page 2

Data Matrix

ORD-55810

Routes the referral to the right specialty queue.

Your app takes it from there. For the pipeline that shows how to send barcode values to a database, see the how-to.

Barcodes are one input among several on these documents. Smart Data Extraction pulls key-value pairs, tables, and document structure from the same PDFs, and the OCR Module turns scanned pages into searchable text. Your pipeline calls each as a separate step, and each returns its own JSON. The Barcode Extraction Module is a separate download licensed under the Smart Data Extraction add-on, so barcode output and extraction output reach your code as two results, not one.

The module runs on Windows and Linux, not on macOS, ARM, or 32-bit platforms. It reads barcodes only. It does not generate them and it does not scan from a live camera.

Setup steps and extraction options are in the Barcode Extraction Module docs.

Keeping Documents with Protected Health Information on Your Own Servers

Copied to clipboard

Documents with protected health information stay on your own servers when the Apryse Server SDK reads their barcodes. The SDK is a self-hosted library. It runs on your on-premises hardware, a cloud VM you control, or a container, and it processes documents locally. No document content is sent to Apryse.

Now put your security reviewer in the room. Their first question is where the PDFs go. Your answer is short: nowhere outside your environment. The barcode read happens inside a process your own code starts, on a server your own team operates. That holds whether you deploy on one cloud VM or across your own container cluster.

Be precise about what leaves the building. Apryse collects limited usage metadata by default, such as API call names and counts, page counts, the SDK version, and the SDK language. It never collects document content, and a no-tracking license key is available on request.

For HIPAA barcode extraction, the Apryse Server SDK is designed to support compliance with HIPAA. HIPAA is a regulation, not a certification, and your team owns the compliance program around it. The SDK supplies building blocks. Local processing keeps protected health information inside your environment, and the Server SDK adds document sanitization in the base license, plus Redaction and Security as separate add-on licenses.

If your app must redact protected health information before a document leaves the intake queue, the Redaction add-on permanently removes text, images, and vector content from the PDF itself, not just from the view.

Apryse also holds ISO/IEC 27001:2022 certification and a SOC 2 Type II attestation. Both cover the company, so they give your reviewer vendor evidence. They do not certify your deployment.

Barcode Extraction from Healthcare PDFs vs Barcode Scanning at the Bedside

Copied to clipboard

Barcode extraction from healthcare PDFs and barcode scanning at the bedside are two jobs done by two separate products. Extraction reads barcodes that already sit inside a document file. Bedside scanning captures a barcode from the physical world through a camera. The first is the Apryse Barcode Extraction Module on your server. The second is the Scanbot SDK, through its Barcode Scanner SDK, which scans patient wristbands and medication barcodes with a device camera and runs on the device.

Back at the clinic, the patient from that faxed referral gets a wristband two days later. A nurse points a phone at it. No PDF exists yet, and the scan never touches your document server.

The two products carry separate licenses. The Barcode Extraction Module is licensed under the Smart Data Extraction add-on of the Apryse Server SDK. The Scanbot SDK is a capture product with its own license, not an add-on to the Server SDK. Both fit in the same app.

Comparison Point

Barcode Extraction From Healthcare PDFs

Barcode Scanning at the Bedside

Input

PDFs of patient records, lab reports, referrals, and claim forms, including faxes converted to PDF

A live camera view of a wristband or medication package

Example

A scanned referral with a patient ID and a referral number

A nurse scans a patient wristband before giving a medication

Product

Barcode Module in the Apryse Server SDK

Scanbot SDK

Limitation

No live camera scanning. Windows and Linux only.

Needs a camera pointed at the barcode.

Frequently Asked Questions About Barcode Extraction from Healthcare Documents

Copied to clipboard

Can the Apryse Barcode Extraction Module extract barcodes from patient records on-premises?

Copied to clipboard

Yes, the Apryse Barcode Extraction Module reads barcodes from patient record PDFs on your own servers. It runs inside the Apryse Server SDK on Windows or Linux and sends no document content to Apryse. The module is a separate download licensed under the Smart Data Extraction add-on, and your app stores and routes the values it returns.

Does the Apryse Barcode Extraction Module read barcodes from faxed referral documents?

Copied to clipboard

Yes, after you convert the fax to PDF. Image to PDF in the base Apryse Server SDK converts TIFF and other image formats, and the module reads the resulting PDF. For noisy or low-resolution faxes, the low quality source profile is built for poor scans and reads slightly slower.

Does the Apryse Barcode Extraction Module support HIPAA compliance?

Copied to clipboard

The Apryse Barcode Extraction Module is designed to support compliance with HIPAA. HIPAA is a regulation, not a certification, so compliance depends on how your team builds and runs the system around it. Local processing keeps protected health information inside your environment, and the module sends no document content to Apryse.

Which Apryse product scans patient wristbands and medication barcodes?

Copied to clipboard

The Scanbot SDK scans patient wristbands and medication barcodes with a device camera. It is a separate product from the Apryse Server SDK, with its own license. The Barcode Extraction Module does not scan from a live camera.

Test the Barcode Extraction Module on your own referral and claim PDFs. A trial key gives you access to the add-on modules during evaluation. If you have any questions, the Apryse Community is a great place to get answers.