Lab ordering looks simple from the clinician's side: pick a test, sign, wait for the result. Behind that screen sits a lab's test menu that changes every few months, questions the lab needs answered, coverage rules, printed paperwork and an inbox that must never lose a result.
This post is for product and engineering teams building or rebuilding lab ordering inside their own EHR. It walks through the compendium, ordering screens, order questions, medical necessity checks, requisitions, transmission, the results inbox and how to test it all.
What is an EHR lab orders module?
Building a custom EHR?
Our EHR software development team builds ordering, results and clinical workflows into custom EHR products.
An EHR lab orders module is the part of an EHR where clinicians choose tests from a lab's menu, answer the lab's questions, attach diagnoses and send the order, then review and sign the result. Agnotic Technologies builds these modules so every order and result stays tied to one order number.
The module has seven parts: the compendium, the order composer, order questions, the medical necessity check, requisitions and labels, the lab interface and the results inbox. Each part fails differently, so each needs its own owner and tests.
Start with the lab's compendium
Start with the compendium, the lab's published list of orderable tests with codes, specimen requirements and order questions. Every other part of the module reads from it, so import it as data, never as hand-typed rows.
- Test codes: the lab's own order codes, with LOINC where the lab supplies it.
- Specimen rules: container, volume, handling and stability for each test.
- Order questions: required and optional questions per test, with answer types.
- Panels: which tests a panel contains, so results can be matched back.
Keep one compendium per lab and version every import. When a lab retires a test, mark it inactive for new orders but keep it readable, because open orders and past results still point to it.
How should ordering screens work?
Ordering screens should let a clinician find the right test in a few keystrokes and stop them from sending an incomplete order. Search by common name, lab name and synonyms, and offer saved favorites and order sets.
- Lab choice: the performing lab, chosen by the patient's insurance or the clinic's default.
- Priority and timing: routine, urgent or a future date for standing and pre-visit orders.
- Diagnoses: ICD-10-CM codes picked from the visit, with the reason for each test.
- Bill-to: patient, insurance or client billing, which changes what the lab needs.
Block signing until required fields and questions are complete. A clear message beside the missing item saves a call from the lab two days later.
What do order questions capture?
Order questions capture the information a lab needs to run and interpret a test, such as fasting status, collection time, specimen source or gestational age. The compendium defines them, and the module must ask them at order time.
Under the CLIA rule at 42 CFR 493.1241, a laboratory must have a written or electronic test request from an authorized person, and the requisition must solicit the requester's identity, the patient's name or unique identifier, sex and age or date of birth, the tests, the specimen source when appropriate and the collection date.
Build questions as typed fields, not free text, and show them only for tests that need them. Store the answers with the order so they travel in the order message and print on the requisition.
Where does the medical necessity check run?
The medical necessity check runs after the clinician picks tests and diagnoses, and before the order is signed. It compares the diagnosis codes with coverage rules for each test and warns when the pairing may not be covered.
CMS says the Advance Beneficiary Notice of Noncoverage (Form CMS-R-131) is issued by providers, including independent laboratories, to Original Medicare beneficiaries when Medicare payment is expected to be denied, to transfer potential financial liability to the beneficiary in certain cases.
Keep coverage rules as data with effective dates and a named source, not logic in screens. When the check fails, show the clinician the reason, let them add a better supported diagnosis if the record supports it, and prompt for an ABN only when coverage is still doubtful.
Requisitions and specimen labels
Every order needs paperwork that the collector and the lab can read: a requisition and a label for each specimen container. Both carry the order number as a barcode, so the lab can find the electronic order without retyping it.
- Requisition: patient details, ordering clinician, tests, diagnoses, answers and bill-to.
- Specimen label: patient name, date of birth, order number, container type and collection time.
- Draw location: labels printed in the office when the clinic collects, or none when a patient service center draws.
Test label printing on the real printers and label stock early. A barcode that scans on a laser printer may not scan on a small thermal label.
How do orders reach the lab?
Orders reach the lab as electronic messages through an interface, usually HL7 v2 or FHIR, with the requisition as backup. The module should track each order's status from sent to received to resulted.
The checks stage also runs a duplicate check that warns when the same test was ordered recently. After that, the lab interface sends the order and listens for acknowledgments and status updates, and the module shows the clinician where each order stands.
How should the results inbox work?
The results inbox should match each result to its order, put abnormal and critical results at the top and record who reviewed and signed each one. A result without a sign-off is an open safety risk.
- Matching: by order number first, with a review queue for results that match no order.
- Status: preliminary, final and corrected results shown clearly, with corrections highlighted.
- Routing: to the ordering clinician, with cover rules for absence and leave.
- Follow-up: patient notification and next steps recorded with the sign-off.
Track open orders as well as open results. An order with no result after the expected time should appear on a list, because a lost specimen never sends a message.
Lab orders module failure points
Most failures come from data drifting out of step between the EHR and the lab, not from bad code.
- Stale compendium: the lab changed a code or question and the EHR still sends the old one.
- Missing answers: required questions skipped, so the lab holds the specimen and calls.
- Unmatched results: results without an order number land nowhere and nobody sees them.
- Silent corrections: a corrected result replaces the old value without alerting the clinician.
- Orphan orders: orders with no result and no follow-up list to catch them.
A worked example: a primary care clinic with two reference labs
A primary care group orders from two reference labs, chosen by the patient's insurance. The module imports both compendiums, maps common tests to shared favorites, and picks the lab when the clinician signs.
A clinician orders a lipid panel and an HbA1c. The order questions ask about fasting, the medical necessity check passes for both diagnoses, and the medical assistant prints labels with the order number and draws the specimens in the office.
The lab acknowledges the order and returns results the next day. The lipid panel arrives final and the HbA1c arrives flagged high, so it sits at the top of the clinician's inbox until it is signed and a follow-up visit is booked.
Who owns the compendium, orders and inbox rules?
Lab ordering involves the clinic, the lab and the build team, and each one owns a different piece.
- Lab: the compendium, order codes, questions, specimen rules and interface specifications.
- Clinical lead: favorites, order sets, inbox rules and cover arrangements.
- Billing lead: coverage rules, ABN policy and bill-to options.
- Engineering: imports, screens, checks, labels, the interface and inbox logic.
Agree how the lab announces compendium changes before go-live. A named contact at the lab and a scheduled import review stop most stale code problems before a single order is rejected.
How do you test the module before go-live?
Test the module end to end with each lab, using test patients and the lab's test environment. Every test type, question and specimen label should be ordered, collected, resulted and signed at least once.
- Compendium checks: every orderable test can be found, ordered and printed.
- Question checks: required answers block signing and arrive at the lab intact.
- Label checks: barcodes scan on the lab's scanners from the clinic's printers.
- Result checks: preliminary, final, corrected and unsolicited results land in the right inbox.
After go-live, measure unmatched results, orders without results, calls from the lab about missing information and time from result to sign-off. Each number points to the part of the module that needs work.
What are lab orders module best practices?
Import each lab's compendium as versioned data, ask required order questions at order time, and run the medical necessity check before signing. Put the order number on every requisition and label as a barcode.
Match results to orders, track orders that never return a result, highlight corrections and record every sign-off with a name and time.
How can Agnotic help build lab ordering into an EHR?
Agnotic builds lab ordering into custom EHR products: compendium imports, order composers, order questions, coverage checks, requisitions, lab interfaces and results inboxes. We test each lab connection end to end before clinicians depend on it.
Connect your EHR to reference labs
We build and test the lab interfaces behind your ordering and results screens.
Related reading on Agnotic
Lab orders, results messaging and clinical workflows.


