Medicare Ordering
Eirly supports Medicare ordering alongside our existing commercial testing. This lets practitioners order eligible pathology tests under a doctor's provider number and claim them against Medicare, rather than billed to your organisation.
There are two ways to place Medicare orders:
- On the platform — using the bundle creator and ordering directly for a patient.
- Via the API — for organisations with an API integration (see REST API → Medicare ordering).
Both paths share one fundamental rule.
A Medicare order must be placed under a doctor's provider number that is already registered — with a signature on file — against your organisation. The provider's number, name, address, and signature are printed on the Medicare referral.
How it works
There are two things to know about, and only the first needs setting up:
- Permission to order. A role with the Medicare ordering capability, a provider number, and a signature. Until all three are in place, no Medicare order can be placed at all.
- Results coming back. Our request forms ask every pathology laboratory to copy us in, so a doctor's Medicare results come back into your organisation automatically once their provider record is complete: provider number, name, address, title, phone, email and a signature. There's no laboratory to notify and nothing to wait for. This is copy routing.
Settings → Result routing shows each practitioner as Copy routing active once their record is complete. If something is missing, the row says what, for example Add a signature to receive results.
Copy routing applies to results that arrive after the doctor's record is complete. A result that reached us before then is not moved to you automatically: contact support and we'll sort it out.
Direct routing
A few organisations are set up for direct routing, where each laboratory has to confirm the doctor's provider number belongs to your practice before results come back. You'll know if this applies to you: Settings → Result routing shows a Notify labs button and per-laboratory statuses. If you see Copy routing active, skip the rest of this section.
Ordering never waits for routing. A Medicare order placed before any laboratory has confirmed is a perfectly valid order. The only difference is how the result gets back to you: automatically once a laboratory is Connected, and by the usual manual means until then. Every order tells you which it will be.
Who does which step
Deliberately, no single person can do the whole thing. Notifying a laboratory discloses the doctor's own details, so it has to come from their account — an owner or administrator can see and prepare everything, but cannot notify or sign on someone else's behalf.
| Step | Who |
|---|---|
| Enable Medicare ordering for the organisation | Eirly |
| Create the role and assign it | Owner |
| Add / correct a provider number | The doctor, for their own — or an owner/administrator on their behalf |
| Apply the signature | The doctor only |
| Notify a laboratory / consent to the disclosure | The doctor only |
| Stop routing at a laboratory | The doctor, or an owner/administrator |
| Confirm a laboratory's reply | Eirly, against written evidence from the lab |
A provider number with laboratory routing in place can't be changed: stop the routing first. On copy routing, where there's no Stop button, contact support.
The per-laboratory lifecycle
Each laboratory is tracked separately for each provider number, so a doctor can be connected at one laboratory while another is still being set up.
A status only reaches Connected when we hold the laboratory's written confirmation on file — it is never a toggle someone flips. The doctor is emailed whenever a laboratory's status changes, with the full picture of where every laboratory stands.
Not set up means results have no automatic destination. Action needed means routing was attempted and came back blocked — most often because the provider number is already registered to another practice — so results from that laboratory may be going somewhere else. Only the second is a reason to stop and check.
Key concepts
A few things to understand before you begin:
- Pathology only. Only pathology (blood) tests can be ordered under Medicare. DNA, imaging, and other test types cannot be.
- Not billed to you. Medicare tests are claimed against Medicare, not billed to your organisation — a Medicare-only order incurs no charge to you. This is not a guarantee that the patient pays nothing: whether Medicare covers a test in full is decided by the collecting laboratory and the patient's Medicare eligibility, and a gap or full fee may still apply to them.
- Bundles can mix billing types. A bundle can contain commercial-only tests, Medicare-only tests, or a combination of both.
- Commercial and Medicare tests are split into separate referrals. If an order contains both, the patient receives two referrals — one commercial and one Medicare — because pathology labs process the two streams separately. A single-type order produces a single referral.
Getting set up: registering a provider
Before any Medicare test can be ordered, the ordering doctor must have their provider details and signature on file for the organisation. This is a one-time setup per practitioner, per organisation.
1. Join the organisation, with a role that permits Medicare ordering
The practitioner is invited into the organisation as a member. A doctor can belong to more than one organisation, and holds a separate provider number in each.
Ordering under Medicare is opt-in: no built-in role grants it, not even Admin. An owner creates a role carrying the Order with Medicare provider number capability and assigns it to the doctor — on its own, or alongside their existing role. See Letting a doctor order under Medicare for the exact steps.
Taking that role away also retires the doctor's provider record and clears their signature for the organisation — they'd add both again if it's restored. If they still have live routing at any laboratory, the change is blocked until that routing has been stopped and confirmed, so routing is never torn down silently. On copy routing, contact support to stop it.
2. Add a provider number
Provider details live in two places, depending on who is doing the work:
- The practitioner, for their own record — their personal Settings → Provider Numbers.
- An owner or administrator, on a practitioner's behalf — the organisation's Settings → Result routing.
Either way, the record holds:
- Provider Number — validated on entry; an invalid number is rejected.
- Provider Name — as it should appear on referrals.
- Provider Address — pre-filled from the organisation's default practice address, and editable.
- Title, phone and email: the practitioner's title (for example Dr, or NP for a nurse practitioner) and their contact details at this practice.
Results come back only once the record is complete: every detail above and a signature (step 3). See Getting results back.
A provider number is unique per practitioner per organisation. The same doctor can hold a different provider number in each organisation they belong to.
3. Add a signature
Immediately after adding a provider number, the practitioner is prompted to add their signature. Signatures are drawn on-screen (on a signature pad, using a mouse or touch), not uploaded. The practitioner can either:
- Draw a new signature just for that organisation, or
- Reuse their profile signature — a single signature they draw once and save to their personal profile.
Each organisation keeps its own independent copy of the signature at the time it is applied. Updating a profile signature later does not retroactively change organisations that are already set up — the practitioner re-applies it per organisation if they want it updated.
Once a provider number and a signature are both on file for the organisation, that provider can order Medicare tests.
Ordering on the platform
Building a bundle with Medicare tests
The bundle creator lets a practitioner hand-pick tests. When choosing tests, a billing-mode toggle offers two modes:
- Commercially billed — all test types available, with prices shown.
- Medicare — filtered to eligible pathology tests only, with no prices.
Selections in each mode are tracked independently, so a bundle can be commercial-only, Medicare-only, or a mix of both.
The Medicare option in the bundle creator is only available to practitioners who have a provider number on file for that organisation. A practitioner without one simply won't see the Medicare toggle — the bundle creator behaves as commercial-only until they've completed their provider setup in Settings → Provider Numbers.
Placing the order
For any bundle that contains Medicare tests, ordering works slightly differently from commercial bundles:
- The practitioner orders it directly for a patient — using "Buy for…" (mixed commercial + Medicare bundles) or "Order for…" (Medicare-only bundles, where there's nothing to charge).
- Self-serve sharing is disabled for bundles containing Medicare tests — public share links and "Copy Bundle URL" are not available, because a Medicare order must be placed by the ordering practitioner.
- The patient's Medicare number is required, including the IRN — 11 digits — before the order can be submitted. The 10 digits printed across the top of the card identify the card, which everyone named on it shares; the IRN is the single digit printed beside each person's name and is the only part that says which of them the order is for. You'll find it immediately to the left of the patient's name on their card.
- Clinical notes can be added and will appear on the Medicare referral.
Once submitted, the patient receives their referral(s) by email along with an account sign-up link. The provider's number, name, address, and signature on file are printed on the Medicare referral.
Getting results back
When a doctor orders under their own provider number, the request form asks the collecting laboratory to copy us in, and the result reaches us carrying that provider number. Because the number is registered against your organisation, the result comes straight to your Incoming results. There's nothing to set up beyond completing the provider record.
Settings → Result routing lists every practitioner in the organisation who has a provider number. Each one reads Copy routing active when their results will come back, or says what's missing when they won't yet.
Every Medicare order also reports its own position: on the platform when you
place the order, and in the API response as routingMessage. It never blocks
the order.
On direct routing
If your organisation is on direct routing, the same page is a board of laboratory statuses, and from it the doctor can:
- Notify labs: select the laboratories to notify, review the details being disclosed (title, name, provider number, address, phone, email, and their signature), correct anything that's wrong, and consent. We email each selected laboratory, CC'ing the doctor and the organisation's result-routing recipients so everyone has a record of exactly what was disclosed.
- Watch each laboratory confirm: the status moves to Pending confirmation on send, and to Connected once we hold the laboratory's written reply.
- Stop routing at a single laboratory, without affecting the others. We tell the laboratory to revert and record their reply before marking it stopped.
Owners and administrators can see the whole board and prepare provider details, but notifying and signing must come from the doctor's own account: it is their personal information being disclosed.
Ordering via the API
Medicare ordering is available through the existing Create Referral endpoint
(POST /v1/referrals) and requires API version 1.1.0 or higher.
The same registration rule applies: the provider number you send in the request must already be registered against your organisation, with a signature on file. This is configured on the platform (Settings → Provider Numbers, or the organisation's Settings → Result routing) — the API does not accept an arbitrary provider number.
For the full request and response shapes, field tables, and validation rules, see the REST API reference → Medicare ordering.
Testing Medicare in staging
Staging supports Medicare ordering end to end, on the platform and through the API. You don't need a real doctor or a real patient: any made-up number that passes Medicare's checksum is accepted. Staging runs the same checks as production, so a number that looks plausible but fails the checksum is refused there too. Save stays disabled and the form tells you the number is invalid.
These numbers are for the staging environment. Never use them in production: a Medicare referral carries a real doctor's provider number and a real patient's Medicare number.
Test provider numbers
A provider number can belong to only one organisation at a time, and staging
enforces that too. If another team has already registered one of these, saving
fails with "Could not save provider details" (or PROVIDER_NUMBER_IN_USE
through the API). Pick another from the list or
make your own.
| Provider number |
|---|
3539701L |
8407923Y |
6892878Y |
9206186F |
3621035L |
6105716J |
8456322H |
2380882Y |
Use any name and address you like, and draw any signature. The signature is printed on the test referral.
Test Medicare card numbers
A Medicare order needs the patient's card number including the IRN: 11 digits in all. Card numbers aren't tied to an organisation, so these can be shared.
| Medicare card number | Card (first 10 digits) | IRN |
|---|---|---|
21019921311 | 2101992131 | 1 |
21019921312 | 2101992131 | 2 |
21019921313 | 2101992131 | 3 |
64743576411 | 6474357641 | 1 |
68491363811 | 6849136381 | 1 |
The first three are one card with three people on it. Use them to see how the IRN tells family members apart.
Making your own test numbers
Provider number (8 characters): six digits, a practice-location character, and a check character.
- Pick any six digits, for example
482913, and a location digit, for example1. - Multiply the six digits by
3, 5, 8, 4, 2, 1in turn, add them up, then add six times the location digit. - Divide by 11 and take the remainder. The check character is that position
(counting from 0) in
YXWTLKJHFBA. For482913and1that'sK, giving4829131K.
Medicare card number (11 digits): eight digits starting with 2 to 6, a check digit, an issue number, and the IRN.
- Pick eight digits starting with 2–6, for example
40192837. - Multiply them by
1, 3, 7, 9, 1, 3, 7, 9in turn and add them up. The last digit of the total is the check digit (2for40192837). - Add an issue number (
1is fine) and an IRN from1to9, giving40192837211.
Or paste this into your browser's console:
function testProviderNumber(stem = String(100000 + Math.floor(Math.random() * 900000)), location = "1") {
const w = [3, 5, 8, 4, 2, 1];
const sum = [...stem].reduce((s, d, i) => s + Number(d) * w[i], 0) + Number(location) * 6;
return stem + location + "YXWTLKJHFBA"[sum % 11];
}
function testMedicareNumber(irn = 1) {
const base = String(2 + Math.floor(Math.random() * 5)) + String(Math.floor(Math.random() * 1e7)).padStart(7, "0");
const w = [1, 3, 7, 9, 1, 3, 7, 9];
const check = [...base].reduce((s, d, i) => s + Number(d) * w[i], 0) % 10;
return base + check + "1" + irn;
}
testProviderNumber("482913"); // "4829131K"
testProviderNumber(); // a random one
testMedicareNumber(); // a random one, IRN 1
Placing a test order
Give the test patient an email address you can open. A new referral stays Pending Verification until the patient clicks the link in their email, and only then is the referral issued.
Results in staging
Ordering is never held up by results: the Medicare referral is created either way. In staging, as in production, a complete provider record shows Copy routing active. Real laboratories don't send staging results, so nothing arrives by itself.
To see results arrive without a laboratory, use Simulate Results. It fires the same result webhooks production does.
Summary checklist
To order Medicare tests, you'll need to:
- Have the ordering doctor join your organisation.
- Create a role with Order with Medicare provider number and assign it to them — no built-in role grants it.
- Have them add their provider number in Settings → Provider Numbers.
- Have them add (draw) their signature.
- Order — either by building a bundle and using Buy / Order for… on the platform, or by calling the Create Referral API (v1.1.0+) with the registered provider number and the patient's Medicare number.
Results then come back to you automatically once the provider record is complete (every detail and a signature). Check Settings → Result routing shows Copy routing active for each doctor.
On direct routing only:
- Have them press Notify labs in Settings → Result routing and consent to the disclosure.
- Wait for each laboratory to confirm. They'll be emailed as each one lands on Connected.
Remember:
- Only pathology tests are Medicare-eligible.
- Commercial and Medicare tests always produce separate referrals.
- Medicare tests are billed to Medicare, not to you.
- The Medicare option only appears — on-platform and via the API — for provider numbers that are fully registered (number and signature) against your organisation.
- Ordering never waits for results: every order tells you whether the result will come back automatically.
Need a hand? Contact the Eirly team.