intelligence_src_6dc544294b7f21f98a
- Source-provided label
- Publisher RSS metadata
- Evidence class
- mentioned in report
- Confidence
- Not reported
- Observed
- Nov 24, 2026 17:32 UTC
- Retrieved
- Nov 24, 2026 17:33 UTC
Sweden sets one retail price for every prescription medicine in its benefits scheme. The price is the same in every pharmacy, and the authority that sets it, TLV, publishes the whole price database as a spreadsheet anyone may download and reuse. We run Andningskollen, an independent Swedish site about asthma and COPD medicines, and we rebuild our price tables from that file every month. This post is about what the file looks like, the one trap that cost us a day, and a small finding you can reproduce in 20 lines of Python. The data TLV offers no API. There are two downloads: the complete price database, one row per pack, with the pharmacy purchase price (AIP), the retail price (AUP) and a ready-made column for price per unit; a monthly list of the "product of the period": the pack a pharmacy must offer when it substitutes within a group of interchangeable medicines. The two files join on the pack id from the national product register (NPL). The list for next month is published before the month starts, so you can show both what applies now and what comes next. The trap: "per unit" is not one unit The price-per-unit column looks like a gift. It is, as long as you notice that the unit changes from row to row: a dose for an inhaler, a tablet for tablets, a millilitre for nebuliser solutions. A nebuliser solution at 0.34 kr per ml and an inhaler at 3.13 kr per dose are not comparable, and a table that sorts them together is wrong in a way no test catches unless you write one for it. Our rule became: compare only packs counted in the same unit, and print the unit next to every number. For inhalers that leaves 327 packs with a true price per dose, across 26 substances. The finding Many inhalers come in two or three pack sizes. Is the larger pack always cheaper per dose? We published the 327 rows as a dataset (DOI 10.5281/zenodo.24508886, snapshot of 15 November 2026), so you can check it yourself with the standard library: import csv, io, urllib.request from collections import defaultdict URL = "https://zenodo.org/records/24508886/files/inhaler-price-per-dose-se-2026-11-15.csv?download=1" rows = list(csv.DictReader(io.TextIOWrapper(urllib.request.urlopen(URL), encoding="utf-8"))) # same product = same name, strength and company; only the pack size differs products = defaultdict(list) for r in rows: products[(r["product"], r["strength"], r["company"])].append((float(r["doses"]), float(r["aup_per_dose_sek"]))) cheaper = dearer = 0 for key, packs in products.items(): if len({doses for doses, _ in packs}) < 2: continue packs.sort() (small, small_price), (big, big_price) = packs[0], packs[-1] if big_price < small_price: cheaper += 1 else: dearer += 1 print(f"{key[0]} {key[1]}: {small:.0f} doses {small_price} kr/dose, {big:.0f} doses {big_price} kr/dose") print(len(rows), "packs;", cheaper, "products where the big pack is cheaper per dose,", dearer, "where it is not") Output: Tiogiva 18 mikrogram: 30 doses 8.15 kr/dose, 90 doses 8.85 kr/dose Tiotropium STADA 18 mikrogram: 30 doses 5.18 kr/dose, 90 doses 7.9 kr/dose 327 packs; 70 products where the big pack is cheaper per dose, 2 where it is not So 72 products exist in more than one size. In 70 the largest pack is cheaper per dose. In two it is the other way round. Nobody did anything wrong: each pack's price is set separately, and nothing forces them to line up. What we do with it The site is static. One Python script downloads the files (one request per file, with a pause), a second turns them into JSON, and Jinja2 templates render the pages. No number on a page is typed by hand: counts, prices and dates are filled in from the data at build time, and a test compares the finished pages with the data. That test is the reason we trust the price tables. Three things we would tell anyone building on public price data Read the unit column before
05b0bfa285744ef9c972b282fd61a6e177392447389d0b6a0170c38ca17c80eeNetwork indicators are visibly defanged. This page does not make them clickable or send them to another service.
No validated file hashes or network indicators are stored for this record.
This record contains metadata and attribution only. It does not host, download, unpack, render, or execute malware samples.
Sources represented on this page. Publication and observation dates describe the content; successful batch dates describe local collection. A recent batch does not certify complete coverage or current provider availability.
1 sources: 0 stale, 0 needing attention, 0 paused, 0 unverified.
Stale means older than twice the recorded collection interval, with a minimum of one hour; without an interval, the threshold is 24 hours. Cached content remains available while a feed is stale, paused, or unverified.