Skip to main content
[nonimo]
Start free trial

Home / Guides

HI Act · LLM APIs

IHIs and AI APIs: what the Healthcare Identifiers Act allows

· 8 min read

A Geelong allied health group wants AI to summarise GP referrals. Every letter header carries the patient's IHI. Here is how to build the API call so it never does.

The Nonimo teamData protection and AI integration, for engineering teams and privacy officers.

In this article
  1. A worked example: a referral summariser in Geelong
  2. What counts as a healthcare identifier?
  3. Can we send an IHI to an AI API?
  4. What are the penalties?
  5. What about the other numbers in the header?
  6. How do you keep IHIs out of the prompt?
  7. Where do identifiers end up in an LLM workflow?
  8. What does the OAIC expect from health providers using AI?
  9. What does a safer referral summariser look like?
  10. Where Nonimo fits
  11. Checklist before you ship

Quick answer

Plan on your prompts never carrying an IHI. The Healthcare Identifiers Act 2010 restricts using or disclosing one outside authorised purposes, with criminal and civil penalties, and a model rarely needs the number. Build prompts from the fields the task needs, redact names and Medicare numbers before the request leaves, and keep identifiers in the clinical system.

It usually happens during testing. Someone pastes a real referral letter into a test harness, the header scrolls past, and there it is: a 16-digit number starting with 800360.

That number is an Individual Healthcare Identifier, and it carries its own Act. This article walks through what the law says, how to keep IHIs out of prompts by design, and how to shape a workflow so the model gets what it needs and nothing more.

A worked example: a referral summariser in Geelong

Bellarine Allied Health is a fictional group of five clinics around Geelong offering physiotherapy, podiatry and occupational therapy. Its practice manager wants incoming GP referrals and hospital discharge summaries turned into a one-page intake note before the first appointment.

Their developer, Mei, has a working prototype. It extracts text from the PDF, sends it to a chat completions endpoint with a summarising prompt, and saves the result to the patient file.

The trouble is the input. GP software prints the patient's IHI, Medicare number and IRN in the letter header, along with the referring GP's name and often their HPI-I. Every one of those values currently travels to the AI provider.

What counts as a healthcare identifier?

The Healthcare Identifiers Act 2010 (Cth) sets up identifiers for people who receive healthcare and for those who provide it. The two you will meet most in documents are the IHI, which identifies a healthcare recipient, and the HPI-I, which identifies an individual healthcare provider.

According to the AU Base profile published by HL7 Australia, an IHI is 16 digits long and starts with 800360. Knowing the format helps when you review sample documents, but the safer design is one where the number is never copied into a prompt in the first place.

Can we send an IHI to an AI API?

Section 26(1) of the Act prohibits using or disclosing a healthcare identifier, including an IHI or an HPI-I, unless an exception applies.

Section 26(3) lists the exceptions. In short, the use or disclosure is allowed where:

  • the Act, another Commonwealth law or a court order requires or authorises it;
  • the person uses their own identifier in their personal affairs;
  • one of certain permitted general situations applies; or
  • the Information Commissioner authorises it.

Part 3 authorises particular uses, such as s 14 for providing healthcare to a healthcare recipient. Whether routing an identifier through a third-party AI service sits inside that authorisation is a question for your own legal adviser, and the answer may depend on the facts.

The engineering question is simpler. A summary of a referral reads exactly the same with or without the IHI, so the cleanest design keeps the number out of the prompt entirely.

What are the penalties?

Under s 26(5) the offence carries imprisonment for 2 years or 120 penalty units, or both. Under s 26(6) a civil penalty of 600 penalty units can apply where the person knows of, or is reckless about, the circumstances.

2 yearsimprisonment, or 120 penalty units, or both
600 unitscivil penalty, where the person knows or is reckless
Healthcare Identifiers Act 2010 (Cth), s 26(5) and s 26(6)

Section 27 adds a positive duty. An entity holding healthcare identifiers must take reasonable steps to protect them from misuse and loss, and from unauthorised access, modification or disclosure. A pipeline that quietly copies IHIs into prompts, request logs and retry queues makes that duty harder to meet.

What about the other numbers in the header?

The same header usually carries a Medicare number and IRN, a date of birth and the referring GP's details. None of them helps the model summarise a referral either.

Next to a name and a diagnosis, each of them is personal information, and health information is sensitive information under the Privacy Act 1988. Our guide to sensitive information under the Privacy Act covers why that category attracts stricter rules.

How do you keep IHIs out of the prompt?

The most reliable approach is to never put the number in the text you send. Instead of passing the whole letter to the model, build the prompt from the fields the task needs, and leave everything else behind.

Mei's extraction step already splits each referral into named fields. The prompt builder below accepts only an allow-list, so the IHI, Medicare number, IRN and HPI-I are never read into the prompt at all.

ALLOWED_FIELDS = ["reason_for_referral", "history", "medications", "age_band"]

def build_prompt(referral: dict) -> str:
    lines = [f"{name}: {referral[name]}" for name in ALLOWED_FIELDS
             if referral.get(name)]
    return "Summarise this referral as a one-page intake note.\n" + "\n".join(lines)

# Fictional referral: every identifier is an obvious placeholder
referral = {
    "ihi": "EXAMPLE-IHI-0000",
    "medicare": "EXAMPLE-MEDICARE-0000",
    "hpi_i": "EXAMPLE-HPII-0000",
    "patient_name": "Jane Example",
    "reason_for_referral": "Heel pain on walking, worse in the morning",
    "history": "Six weeks of symptoms, no injury",
    "medications": "Paracetamol as needed",
    "age_band": "40-49",
}

prompt = build_prompt(referral)
assert "EXAMPLE-" not in prompt and "Jane Example" not in prompt
print(prompt)

Adding a field to the prompt now means changing one list, which shows up in code review. The values above are placeholders made up for this article and belong to nobody.

The IHI stays on the patient record in the practice management system, and the intake note links to it by internal patient ID.

Where do identifiers end up in an LLM workflow?

Most teams think about the prompt and forget everything around it. Mapping each field in the source document against what the model actually needs makes the decision obvious.

Field in the referralDoes the model need it?What Bellarine does
IHINoNever selected into the prompt; stays in the clinical system
Referring GP's HPI-INoNever selected into the prompt
Medicare number and IRNNoNever selected into the prompt; redacted if it turns up in free text
Patient and GP namesFor readability onlyReplaced with labels such as [PERSON_1], restored in the response
Date of birthAge matters, the date rarely doesConverted to an age band before the prompt is built
Reason for referral, history, medicationsYesSent, with identifiers already taken out
Address and phoneNoDropped with the header block

Do the same exercise for the copies around the call: request logs, error traces, retry queues and any observability tool. Each one is another place where an identifier would need to be protected under s 27 and APP 11.

What does the OAIC expect from health providers using AI?

The OAIC's guidance on privacy and the use of commercially available AI products recommends, as good practice, not entering personal information, and particularly sensitive information, into publicly available AI tools. For a health business, almost everything in a referral is sensitive.

APP 11.1 asks you to protect personal information from misuse, interference and loss, and from unauthorised access, modification or disclosure. Since the 2024 amendments, APP 11.3 makes clear that reasonable steps include technical and organisational measures. Removing identifiers before a prompt is built is a technical measure you can describe and evidence.

Registered practitioners also have professional obligations. Our guide to the Ahpra AI guidelines and patient data covers that side, and which AI tools you can use under the Privacy Act looks at vendor choice.

What does a safer referral summariser look like?

Mei's final design has two steps. Her own code decides which fields go into the prompt, so the IHI, the HPI-I and the letter header stay behind. A redaction step between the app and the AI provider replaces names, Medicare numbers and other identifiers that turn up in the free text.

Referral fields pass an allow-list prompt builder, then a redaction step in Sydney, before reaching the AI provider Referral PDF text extracted Prompt builder allow-listed fields Redaction step Australia East AI provider sees labels [PERSON_1] has heel pain Intake note real names restored The IHI never leaves the clinic's own systems
Two steps: the clinic's code leaves healthcare identifiers out of the prompt, and the redaction step swaps names and other identifiers for labels before the request leaves Australia East.

The prompt builder also uses an age band instead of the date of birth and leaves the address out. What reaches the model is a clinical story about [PERSON_1], which is all a summary needs.

Mei keeps a small set of fictional referral letters, with placeholder identifiers such as EXAMPLE-IHI-0000, as a regression test. Every build confirms that none of those placeholders appears in the outgoing request, and that the intake note comes back with the right names in place.

Where Nonimo fits

The Nonimo Gateway sits between your application and the AI provider. Before each request leaves, it replaces names, Medicare numbers and other identifiers with labels, then puts the real values back when the response arrives, streaming included.

You choose, per type of data, whether to redact it, stop the request, or only warn and count. A monthly report gives your privacy officer the number of items redacted by type, and the per-request log records counts only, never the data.

Each customer's Gateway runs in its own isolated environment in Microsoft Azure's Australia East region (Sydney). Nonimo acts as a service provider handling personal information on your behalf, and sees only counts. The security page sets out how it is built, and pricing covers the plans.

It works with the OpenAI and Claude (Anthropic) APIs you already call, so Mei changed the base URL and the key and kept her prompts as they were. You can start a ten-day trial from the Nonimo home page.

Checklist before you ship

  • List every field in your source documents and mark which ones the model actually needs.
  • Build prompts from an allow-list of fields, so IHIs and HPI-Is are never read into them.
  • Redact names, Medicare numbers and other identifiers before the request leaves your environment.
  • Check request logs, traces and retry queues for identifiers, not only the prompt.
  • Keep a regression set of fictional documents with obvious placeholder identifiers and run it in CI.
  • Record the measures in your privacy documentation as technical steps under APP 11 and s 27.
  • Get legal advice on any use of healthcare identifiers outside your clinical systems.

If your workflow also covers disability support notes, our guide on what to take out of an NDIS case note before AI applies the same thinking. For incident planning, see Notifiable Data Breaches and AI APIs, and for product design, the privacy tort and AI features.

Common questions

Is an IHI personal information?

Yes. An IHI identifies a person, so it is personal information under the Privacy Act 1988. It is also a healthcare identifier under the Healthcare Identifiers Act 2010, which restricts its use and disclosure in s 26 and adds a protection duty in s 27.

Can we put an IHI in a prompt to an AI API?

Plan on not doing it. Section 26(1) prohibits using or disclosing an IHI unless an exception in s 26(3) or an authorisation in Part 3 applies. Whether a third-party AI service fits is a question for your legal adviser, and the model rarely needs the number.

What are the penalties for misusing an IHI?

Section 26(5) sets a criminal penalty of imprisonment for 2 years or 120 penalty units, or both. Section 26(6) adds a civil penalty of 600 penalty units where the person knows of, or is reckless about, the circumstances.

What does an IHI look like?

Under the HL7 Australia AU Base profile, an IHI is 16 digits long and starts with 800360. Knowing the format helps when you review sample documents, but it is safer to build prompts from named fields so the IHI field is never included.

Does s 14 cover sending an IHI to an AI provider?

It depends on the facts. Section 14 authorises use for providing healthcare to a healthcare recipient, but whether routing the number through a third-party AI service sits inside that authorisation is for your own legal adviser to assess.

Can our clinicians put referral letters into a public chatbot?

The OAIC's AI guidance treats it as good practice to keep personal information, especially sensitive information, out of publicly available AI tools. Referral letters carry health information, which is sensitive, so use a workflow that takes identifiers out before anything reaches a model.

Does the model need any identifier to summarise a referral?

Rarely. A summary reads the same without the IHI, the HPI-I or the Medicare number. Keep those numbers in the practice management system and link the summary to the patient record by your internal patient ID.

What does s 27 mean for a team building an LLM workflow?

It asks an entity holding healthcare identifiers to take reasonable steps to protect them from misuse, loss and unauthorised access, modification or disclosure. Keeping IHIs out of prompts, request logs and retry queues leaves fewer copies to protect.

Where does the Nonimo Gateway run for Australian customers?

Each customer's Gateway runs in its own isolated environment in Microsoft Azure's Australia East region (Sydney). It redacts names, Medicare numbers and other identifiers before each request leaves. The security page has the details.

Sources

  1. Healthcare Identifiers Act 2010 (Cth)
  2. HL7 Australia, AU Base Implementation Guide: AU IHI
  3. Privacy Act 1988 (Cth)
  4. OAIC, Guidance on privacy and the use of commercially available AI products

More technical guides

Nonimo Gateway redacts personal information before your request leaves for the AI provider, and puts the real details back in the reply.

See how it works
$0 today10 days free · cancel any time before it ends

Try Nonimo Gateway free

Run your own prompts through it for ten days.

You add a card when you turn your Gateway on. Nothing is charged today: $489/month inc. GST starts when the 10 days end, unless you cancel before then.

We’ll use this address to send your trial and a reminder before it ends. Privacy policy.

Stuck? Write to [email protected]

Already set up? Go to your Gateway