DEV Community

Cover image for Diffing the NDIS pricing schedule in Python: what changed on 1 December 2026, and the line wrap that hid 19 new items
Rostery Team
Rostery Team

Posted on

Diffing the NDIS pricing schedule in Python: what changed on 1 December 2026, and the line wrap that hid 19 new items

Based on Rostery's free NDIS price guide and our earlier write-up of what changed in the NDIS price guide for 2026-27. The code is new and written for this post. General information only, not pricing or claiming advice. Rostery is our product.

On 1 December 2026 the NDIA published a new NDIS pricing schedule. The news item is short. It says the update includes price changes from the Fair Work Commission's Gender-Based Undervaluation Priority Awards Review for four supports (house or yard maintenance, house cleaning and other household activities, assistance with personal domestic activities, and specialised home-based assistance for a child) and that it also includes new support items for high support needs plan variations.

If you maintain a price book, a billing system or a claim file generator, "new support items" is the phrase that should make you open an editor. A short news item tells you what changed in words, and that's the right format for people. Systems need something else. It doesn't give you a list you can load, test against or show to the finance team. So I wrote a small script to get one: parse the 24 September schedule and the 1 December schedule, diff them by support item number, and check a rate card against the new limits.

The first version of the script said there were no new items at all. That turned out to be the most useful thing it did.

The inputs

Both schedules are PDFs on the NDIA's pricing arrangements page. The 1 December one is 100 pages, up from 96. Part 1 explains how the maximum amounts work; Part 2 is the appendices of support items; Part 3 lists the isolated towns that count as remote or very remote; Part 4 is definitions.

Two rules from Part 1 matter for anything that consumes the numbers:

  • The maximum amounts include GST.
  • Each item has a national, a remote and a very remote amount. Which one applies depends on where the support is physically delivered, not the participant's home address. MM 1 to 5 locations use the national amount, MM 6 the remote amount, MM 7 the very remote amount, with the isolated towns in Part 3 reclassified up.

And from the pricing arrangements page: the limits only apply to NDIA-managed and plan-managed participants.

I convert each PDF with poppler's pdftotext -layout, which keeps the table columns roughly where they are on the page:

pdftotext -layout ps_2026-09-24.pdf sep.txt
pdftotext -layout ps_2026-12-01.pdf dec.txt
Enter fullscreen mode Exit fullscreen mode

A typical row then looks like this:

 01_004_0107_1_1      Assistance with Personal Domestic Activities              Hour       $65.73      $92.02      $98.60
Enter fullscreen mode Exit fullscreen mode

Item number, name, unit, then the three amounts. Easy enough, except when it isn't. The item number itself carries structure (the registration group sits in the third block, for example 0107 or 0138), which comes in handy later when you want to group the changes.

The data model

Money goes in Decimal, never float. These are price limits that end up on invoices, and rounding surprises are not a debugging session anyone wants in the week before Christmas.

import re
from dataclasses import dataclass
from decimal import Decimal

MONEY = re.compile(r"\$[\d,]+\.\d{2}")
UNITS = ("Hour", "Each", "Day", "Week", "Month", "Annual", "Km", "Year")


@dataclass
class Item:
    number: str
    name: str
    unit: str
    national: Decimal | None
    remote: Decimal | None
    very_remote: Decimal | None


def money(s):
    return Decimal(s.replace("$", "").replace(",", ""))
Enter fullscreen mode Exit fullscreen mode

The amounts can be missing for some items, so they're optional.

Version one: a regex per row

The obvious approach is a regex that matches a line starting with an item number, followed by whitespace and the rest:

ITEM = re.compile(r"^\s*(\d{2}_\d{3}_\d{4}_\d_\d{1,2})\s{2,}(.*)$")
Enter fullscreen mode Exit fullscreen mode

Pull the dollar amounts out of the rest, treat what's left as the name and unit, and append any following indented lines to the name, because long names wrap.

Running that over both files and diffing gave this:

items: 266 -> 266; added 0, removed 0, price changed 4
Enter fullscreen mode Exit fullscreen mode

Four price changes matched the news item. Zero new items didn't. And 266 was suspicious: a plain re.findall for item numbers across the September text found 277 distinct numbers.

Three ways a row breaks

Looking at the rows the parser had missed, there were three separate problems.

1. One space instead of two. A handful of rows have a single space between the item number and the name, because the number column is full. \s{2,} skipped them. That accounted for the eleven missing numbers, in both files.

2. The unit glued to the name. On one row the name runs right up to the unit column, so Weekday Night Hour arrives as one chunk. The unit has to be peeled off the end of the name, not just read from its own column.

3. The number itself wraps. This was the big one. The new items in the December schedule have a suffix on the item number, and the number column isn't wide enough to hold it. pdftotext renders it in two different ways, depending on where the column break fell:

 01_801_0138_1_1_     Supported Independent Living - Standard - Weekday         Hour       $73.58     $103.01     $110.37
 ADL                  Daytime

 01_450_0138_1_1     Intensive and Complex Behaviour Supports - Weekday                Hour     $79.60    $111.44      $119.40
 _ADL                Daytime
Enter fullscreen mode Exit fullscreen mode

In the first style the number ends with an underscore and my regex refused it. In the second, the first line looks exactly like the existing item 01_450_0138_1_1. Version one read it as that item and silently overwrote the original row in the dictionary. The new item didn't just go missing. It replaced the old one, with identical prices, so nothing looked wrong.

Table of the two ways the new _ADL item numbers wrap in pdftotext -layout output: 01_801_0138_1_1_ with ADL on the next line, which version one skipped, and 01_450_0138_1_1 with _ADL on the next line, which version one read as the existing item and overwrote; version two accepts a trailing underscore, treats a short run of capitals as a suffix and commits rows only at a blank line.

That's the failure mode worth remembering. A parser that drops rows is annoying. A parser that merges two different item numbers into one key is dangerous, because a billing system downstream would happily carry on with the wrong list.

Version two

The fixes are small. Accept a trailing underscore and any whitespace after the number; treat a short run of capitals in the number column on the next line as a suffix; and only commit a row to the dictionary when a blank line closes it, so the suffix has a chance to arrive first.

ITEM = re.compile(r"^\s*(\d{2}_\d{3}_\d{4}_\d_\d{1,2}_?)\s+(.*)$")
SUFFIX = re.compile(r"^\s{0,3}(_?[A-Z]{2,5})(?:\s{2,}(.*))?$")


def parse(text):
    items, current = {}, None
    for line in text.splitlines():
        m = ITEM.match(line)
        if m:
            number, rest = m.groups()
            prices = [money(p) for p in MONEY.findall(rest)]
            parts = re.split(r"\s{2,}", MONEY.split(rest)[0].strip())
            name, unit = " ".join(parts), ""
            for u in UNITS:   # usually its own column, but not always
                if name == u or name.endswith(" " + u):
                    name, unit = name[: -len(u)].strip(), u
                    break
            prices += [None] * (3 - len(prices))
            current = Item(number, name, unit, *prices[:3])
            continue
        s = SUFFIX.match(line) if current else None
        if s:   # "01_801_..._1_1_" + "ADL", or "01_450_..._1_1" + "_ADL"
            current.number = current.number.rstrip("_") + "_" + s.group(1).lstrip("_")
            if s.group(2):
                current.name += " " + s.group(2).strip()
        elif current and line.strip() and not MONEY.search(line) and line.startswith(" " * 18):
            current.name += " " + line.strip()   # the name wrapped
        elif not line.strip() and current:
            items[current.number] = current       # a blank line closes the row
            current = None
    if current:
        items[current.number] = current
    return items
Enter fullscreen mode Exit fullscreen mode

And because the first version taught me not to trust a quiet result, there's a coverage check. Every item number that appears anywhere in the text has to end up in a parsed row:

def unparsed(text, items):
    seen = set(re.findall(r"\d{2}_\d{3}_\d{4}_\d_\d{1,2}", text))
    parsed = {n.split("_ADL")[0].rstrip("_") for n in items}
    return sorted(seen - parsed)
Enter fullscreen mode Exit fullscreen mode

For both schedules it now returns an empty list.

The diff

def diff(old, new):
    added = sorted(set(new) - set(old))
    removed = sorted(set(old) - set(new))
    changed = [(old[n], new[n]) for n in sorted(set(old) & set(new))
               if (old[n].national, old[n].remote, old[n].very_remote)
               != (new[n].national, new[n].remote, new[n].very_remote)]
    return added, removed, changed
Enter fullscreen mode Exit fullscreen mode

Run over the two schedules:

items: 277 -> 296; added 19, removed 0, price changed 4
01_004_0107_1_1    Assistance with Personal Domestic Activities            Hour  61.16 -> 65.73 (7.47%)
01_016_0104_1_1    Specialised Home Based Assistance For A Child           Hour  61.16 -> 65.73 (7.47%)
01_019_0120_1_1    House or Yard Maintenance                               Hour  59.01 -> 63.42 (7.47%)
01_020_0120_1_1    House Cleaning And Other Household Activities           Hour  60.10 -> 64.59 (7.47%)
Enter fullscreen mode Exit fullscreen mode

The percentage comes from a tiny helper that returns None when either side is missing, so items without a remote amount don't crash the report:

def pct(a, b):
    if a is None or b is None or a == 0:
        return None
    return ((b - a) / a * 100).quantize(Decimal("0.01"))
Enter fullscreen mode Exit fullscreen mode

Those four are exactly the four supports the NDIA's news item names. The national amounts all rose by about 7.47%, and the remote and very remote amounts moved by the same proportion, give or take a cent of rounding.

Four NDIS price limits that moved on 1 December 2026, national amounts per hour: 01_004_0107_1_1 Assistance with Personal Domestic Activities $61.16 to $65.73; 01_016_0104_1_1 Specialised Home Based Assistance For A Child $61.16 to $65.73; 01_019_0120_1_1 House or Yard Maintenance $59.01 to $63.42; 01_020_0120_1_1 House Cleaning And Other Household Activities $60.10 to $64.59.

The 19 added items all carry the _ADL suffix. Six are Intensive and Complex Behaviour Supports (01_450 to 01_455, registration group 0138) and thirteen are Supported Independent Living items (01_801 to 01_806, 01_811 to 01_816 and the night-time sleepover 01_832). One more check is cheap and worth having: each new item has the same national, remote and very remote amounts as the item number it extends.

assert all(
    (new[n].national, new[n].remote, new[n].very_remote)
    == (new[n[:-4]].national, new[n[:-4]].remote, new[n[:-4]].very_remote)
    for n in added
)
Enter fullscreen mode Exit fullscreen mode

What the suffix means and when it can be claimed isn't defined in the schedule itself. The NDIA's news item describes the additions as new support items for high support needs plan variations, and the pricing arrangements page says updated pricing and claiming guidance will be published shortly. Until it is, I'd load the items into a price book but not let a roster pick them by default.

Checking a rate card

Most providers don't charge the limit for everything, so the useful output for a finance team is a short list of their own lines worth a look:

def check_rates(rates, old, new):
    for number, ours in rates.items():
        if number not in new:
            yield number, ours, None, "not in schedule"
            continue
        limit = new[number].national
        before = old[number].national if number in old else None
        if limit is None:
            flag = "no national limit listed"
        elif ours > limit:
            flag = "over limit"
        elif before is not None and limit != before and ours == before:
            flag = "still at the old limit"
        else:
            flag = "ok"
        yield number, ours, limit, flag
Enter fullscreen mode Exit fullscreen mode

With an invented four-line rate card:

01_004_0107_1_1  ours 61.16  limit 65.73  still at the old limit
01_020_0120_1_1  ours 60.10  limit 64.59  still at the old limit
01_011_0107_1_1  ours 73.58  limit 73.58  ok
01_019_0120_1_1  ours 65.00  limit 63.42  over limit
Enter fullscreen mode Exit fullscreen mode

"Still at the old limit" isn't an instruction to raise anything. Whether a provider changes its prices is a business decision and, under most service agreements, a conversation with the participant first. It's a prompt to make that decision on purpose rather than by default. "Over limit" is different: the NDIA's pricing arrangements page is clear that providers can't charge more than the maximum price limits, so that line needs fixing.

This check uses the national amount. A real version would take the delivery location of each line and pick the remote or very remote amount where Part 1 says to.

Tests

Ten tests, run with pytest, cover each failure from version one with a fixture copied from the real layout: a basic row, a wrapped name, the suffix under the number not overwriting the base item, the suffix after a trailing underscore, the unit glued to the name, a single space after the number, the diff itself, the percentage helper, the coverage check and the rate card flags.

def test_suffix_under_number_does_not_overwrite_base_item():
    items = parse(DEC)
    assert "01_450_0138_1_1" in items and "01_450_0138_1_1_ADL" in items
Enter fullscreen mode Exit fullscreen mode

That one test is the reason this post exists.

What this doesn't do

It only reads the appendices of the main schedule. The SDA schedule is a separate document. It doesn't parse Part 3's isolated towns list or Part 4's definitions, and it trusts pdftotext's column layout, so a future schedule with a different table design will need the fixtures updated. It also doesn't know anything about claiming rules beyond the numbers.

Rostery NDIS Price Guide 2026-27 tool spotlight: search every NDIS support item with its unit and national, remote and very remote amounts.

If you'd rather not run code, Rostery's free NDIS price guide lets you search all of the support items with their units and national, remote and very remote amounts, and our NDIS price limit history shows how the main limits have moved each financial year, with every mid-year change marked. Inside Rostery, the help article on loading a new NDIS price guide into your price books covers the "load it rather than editing the old one" step. And if the difference between the price guide, the support catalogue and the pricing schedule still feels blurry, our glossary entry on what the NDIS price guide is untangles the names.

For another small, tested pricing module, our earlier dev.to post on pricing NDIS shifts over Christmas in Python works out time bands for holiday shifts across state calendars.

The lesson I'm keeping: when a parser tells you nothing changed, count what it read before you believe it.

Sources

  • NDIA, NDIS Pricing Schedule 2026-27, effective 24 September 2026, and NDIS Pricing Schedule 2026-27 v1.1, effective 1 December 2026 (PDFs from the pricing arrangements page; Part 1 sections 1.2 and 2.3; Appendices 1 and 2). Read 2 December 2026.
  • NDIA news, "New pricing schedule: effective 1 December 2026" (1 December 2026), and the NDIA pricing arrangements page. Read 2 December 2026.
  • The rate card in the examples is invented. Every price in the post comes from the two schedules as parsed by the code.

Top comments (0)