PrintBase
  • Product
  • Pricing
  • Docs
  • Resources
PrintBase/Guides/Printing use cases

Print specimen labels from a cloud EMR

A cloud EMR can print a specimen label on the clinic's Zebra or Brother without a VPN to that printer. This page does not claim a medical certification.

For Clinics printing specimen labels from a web system

Overview

The label contents, accession number, and patient identifiers are produced by the EMR. PrintBase only transports the PDF or ZPL you send. It is not an EMR and this page states no regulatory certification.

The clinic PC runs the agent. The EMR posts to that site's printer_code when the specimen is collected. A VPN is not required for the printer path.

Prefer raw ZPL on a Zebra so the barcode is drawn by the printer. A tiny PDF barcode is more likely to fail a scanner. Keep the data-minimization rules of your EMR: do not log the label body.

Integration steps

  1. 01

    Decide the printer before the click

    Map the station, store, or line to a printer_code from GET /v1/printers. Do not ask the operator to pick a dialog.

  2. 02

    Create the document in your system

    PDF for driver printers, raw ZPL or ESC/POS when the device speaks that language.

  3. 03

    POST when the business event happens

    Pack, pay, check-in, or scan. Not on every autosave. Use the business id as Idempotency-Key.

  4. 04

    Show the job result where the work is

    queued is not done. Surface AGENT_OFFLINE and PRINT_ERROR to the person at the bench.

Node.js

// Specimen label
const res = await fetch('https://api.printbase.cloud/v1/print-jobs', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PRINTBASE_API_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': idempotencyKey,
  },
  body: JSON.stringify({
    printer_code: Number(process.env.PRINTER_CODE),
    content_type: 'raw',
    content: Buffer.from(payload).toString('base64'),
    copies: 1,
  }),
});
if (!res.ok) throw new Error(`PrintBase ${res.status}: ${await res.text()}`);
const job = await res.json();
// { id: "job_abc", status: "queued" }

Details for this setup

No certification claim

Printing a label does not make the service a medical device registration. Your compliance review is separate.

Do not log payloads

Job logs should keep the id, not the patient string inside the ZPL. The agent prints only what you send; it does not fetch the document from the platform for you.

Questions

Is there an HL7 interface?

No. Your EMR integration translates the order into ZPL or PDF and calls the API.

Multiple draw rooms?

One printer_code per room. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

What if the label has a name?

You are the controller of that content. The transport stores it for the job. Do not add fields you do not need to print.

VPN? in this setup

Not for this printer path. The agent dials out. The call is still POST /v1/print-jobs with a Bearer API key, and HTTP 201 means queued rather than printed.

Related guides

  • Print address labels on a DYMO LabelWriter 450

    Send a PDF sized to the DYMO die, such as a 30252 address label. The LabelWriter 450 does not speak ZPL. The agent uses the OS queue.

  • Print ZPL shipping labels to a Zebra ZD420

    Send ZPL to a Zebra ZD420 from your app. The agent writes raw bytes to the OS queue. No Browser Print port and no public IP.

  • Add printing to a multi-tenant SaaS

    Each customer site prints to its own printer_code. The API key stays on your server. Enterprise accounts can isolate customers in child organizations.

  • Print from a cloud app to an office without a VPN

    An app on AWS or Azure can print to a branch office by posting a job. The office runs the agent. You do not merge the networks for printing.

Free plan: 100 jobs a month on one computer, no card.

Create a free accountRead the API docs
PrintBase

PrintBase connects your applications to physical printers anywhere - securely, reliably, and in real time.

Product
Receipt PrintingLabel PrintingDashboardDevicesWebhooks
Resources
DocsBlogStatusAPI ReferenceDownloadPrintBase vs PrintNodePrintNode PricingFAQ
Guides
All guidesIntegrationsPrintersCode samplesComparisonsUse casesTroubleshooting
Company
ContactSecurityPrivacy

© 2026 Aveniq Technologies OÜ. All rights reserved. PrintBase is a service of Aveniq Technologies OÜ.

PrivacyTermsRefunds