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
- 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.
- 02
Create the document in your system
PDF for driver printers, raw ZPL or ESC/POS when the device speaks that language.
- 03
POST when the business event happens
Pack, pay, check-in, or scan. Not on every autosave. Use the business id as Idempotency-Key.
- 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.
Free plan: 100 jobs a month on one computer, no card.