Hospitals
Acute and specialty care, 41 emergency departments, 9,800 beds.
- EHR ×4
- ADT · bed board
- theatre system
US hospitals · 2025 · expenses vs prices
Every hospital, lab, clinic and pharmacy in a group rebuilds the same reports, checks and rules in its own systems, in its own country. Compile-Once builds each one once, as a small tested program, and runs it everywhere in the group. The LLM builds. Code runs.
An architecture concept by Muthukumar Subramanian · Agentic AI Architect
Ashwick Health Network is a fictional composite. Industry facts are sourced; company figures are illustrative.
What leaders are carrying into 2027
US hospital supply expenses in 2025. Drug expenses rose 13.6%.1
of US providers say at least one claim in ten is denied, up from 30% in 2022.2
admitted US emergency patients waited four hours or more for a bed, even outside winter peaks.3
health workers short worldwide by 2030, on the WHO's projection.4
Meet the group
A fictional group the size of the largest real ones. Five countries, four different EHRs inherited from earlier deals, and a six-hospital chain that joined this year. Every figure about Ashwick is illustrative.
Where
310 clinics · 46 labs · 420 pharmacies
~68,000 staff · 2 college campuses
Business lines and the legacy each one runs
Acute and specialty care, 41 emergency departments, 9,800 beds.
310 clinics and day-surgery centres, the front door for referrals.
46 labs, 380 collection points, imaging centres that also serve outside doctors.
420 pharmacies in the US, UK and UAE, plus hospital dispensaries.
Video consults and e-prescribing in all five countries.
Nursing and rehab at home in four countries, the step after discharge.
Two campuses, Rotterdam and Dubai. Students train on the group's wards.
Runs health plans and third-party administration in the UAE and US.
Group legacy: three ERP instances, six rostering tools, two data warehouses, one ticket queue with 1,860 open change requests (illustrative).
Acquired in 2026
Its own EHR, its own ERP, its own rostering and quality reports. The board wants it reporting as part of the group within one quarter.
Partners at the edges
The signature animation · eight beats
Zoom from five countries to one city, one campus and one ward. A ward manager's request becomes a tested capsule there. Then zoom back out and watch the same capsule installed across the group, before three constellations cross business lines.
All Ashwick figures in the animation are illustrative.
Industry context · 2025–2026
Ten pressures that land on a group's executive committee at once. Each one crosses business lines, which is why fixing it hospital by hospital doesn't stick.
41% of US providers say at least one claim in ten is denied, up from 38% in 2024 and 30% in 2022; 54% say claim errors are increasing.2
With Compile-Once: denial-precheck and claim-pack-check run on claim.v9 before anything leaves the building. Writing an appeal letter stays with a model and a person.
In a 1,500-hospital US study, more than a quarter of admitted emergency patients waited four hours or more for a bed even in quiet months; about 35% in winter peaks.3
With Compile-Once: the bed-to-discharge constellation frees beds earlier; ed-boarding-watch shows the same measure in every country.
The WHO projects a shortfall of 11 million health workers by 2030.4 In England, trusts spent nearly £1bn less on agency staff in 2024-25 than the year before, from about £3bn.5
With Compile-Once: roster-gap and agency-rate-check on people.v4. Who works which shift stays a manager's call.
US hospital supply expenses rose 9.9% in 2025 and drug expenses 13.6%.1 Inside a group, the same item is often bought at different prices through different ERPs, and nobody sees it because the item records don't match.
With Compile-Once: constellation 2, from item-normaliser to po-price-guard in every ERP.
Active US drug shortages rose for a third straight quarter to 227 in Q2 2026, against a peak of 323 in early 2024.6 The EU reached a provisional deal on a Critical Medicines Act in May 2026.7
With Compile-Once: shortage-substitute lists approved alternatives by site from dispense.v5. The pharmacy and therapeutics committee approves each rule.
The EU's European Health Data Space Regulation entered into force in March 2025 and applies from March 2027.8 US payers must run FHIR APIs, prior authorization included, by 1 January 2027.9 Saudi Arabia's NPHIES exchange carries claims on HL7 FHIR.10,11
With Compile-Once: each EHR is mapped once to encounter.v6 and patient.v3; FHIR exports become capsules with tests, one per national profile.
US ambulatory physicians spend about 5.8 hours in the EHR for every 8 hours of scheduled patient time, across more than 200,000 physicians studied.12
Where a model stays: drafting a note from a conversation is open-ended language work. Route it to a model on purpose. Capsules take the structured parts: coding completeness, discharge summary checks.
Joint Commission International's 8th edition hospital standards took effect on 1 January 2025.13 Each country adds its own regulator, registry and measure set, and a group reports to all of them.
With Compile-Once: quality-measure on quality.v3, with country measure sets as parameters, and accreditation-evidence to assemble the pack.
The 2024 Change Healthcare attack affected about 192.7 million people, the largest health data breach reported to US regulators.14 The proposed HIPAA Security Rule overhaul of January 2025 is now projected for July 2027.15
With Compile-Once: capsules run on premises and offline, so downtime-census still prints ward lists when the EHR is down. It doesn't stop an attack; fewer live model endpoints means less to defend.
46 US hospital and health-system deals were announced in 2025, the fewest since 2011, and 43.5% involved a financially distressed party.16 Each deal brings another EHR, ERP and rostering tool.
With Compile-Once: constellation 3. The acquired systems get contracts, and the capsules the group already trusts run on their data within weeks.
The group on Compile-Once
Group spheres are shared by every business line and country. Line spheres belong to one line. Every sphere is reached only through its versioned contract, and capsules read one sphere each. Patient exists once per country under the same contract, so records never leave the country they belong to.
patient.v3one per country, data stays in-countrypeople.v4Group HR, country payrollitem.v5Group procurementfinance.v8Group CFO officepayer.v7Revenue cyclequality.v3Group chief quality officerencounter.v6Hospitals, clinicsresults.v4Diagnosticsdispense.v5Pharmacyvisit.v2Home careconsult.v2Telehealthlearner.v1Collegeclaim.v9TPA desk, revenue cycleSquares show which business lines run each capsule:Hospitals · Clinics · Diagnostics · Pharmacy · Telehealth · Home care · College · TPA desk
Constellation 1
Hospital · pharmacy · home care · revenue cycle
fit-but-waiting · encounter.v6 · who is fit and still in a bedtto-ready · dispense.v5 · medicines to take home packed?home-care-slot · visit.v2 · first home visit booked?auth-status · payer.v7 · payer or insurer approval in place?claim-pack-check · claim.v9 · codes and documents completebed-release · encounter.v6 · bed to cleaning, next patient from the EDRuns every 15 minutes on every ward that installs it. No model calls.
Constellation 2
Procurement · finance · every hospital's ERP
item-normaliser · item.v5 · matches the same product across three ERPsprice-variance · item.v5 · spread by item, hospital and countrycontract-coverage · item.v5 · bought on contract or off it?spend-impact · finance.v8 · what closing the gap is worthpo-price-guard · item.v5 · checks every new purchase orderitem-normaliser declares a small local text-matching model for free-text item names, tested like everything else.
Constellation 3
IT · quality · revenue cycle · procurement · HR
encounter.v6, claim.v9, item.v5, quality.v3denial-precheck, quality-measure and 40 more go live in week 3price-variance adds six hospitals to the group viewpeople.v4 mapped in week 5; rostering capsules followWeek 6: the group quality report covers all 70 hospitals (illustrative).
The people side
e.g. Director of Patient Flow for encounter.v6
A named person signs each contract version. Country data stewards own the mapping from their local systems, because only they know what a field really means in that hospital.
CMIO · CNIO · CISO · data protection · finance
Decides which requests the Forge may build, which capsules touch care and need a clinical safety review, and when a model must stay in the loop.
one per shared function, one per line
Merge near-duplicates, retire capsules nobody runs, and turn local rules into parameters so the UK and the UAE install the same capsule.
a title that is still settling
Engineers who sit with a ward, a pharmacy or a procurement team for weeks, turning what people actually say into Forge requests and tests. Some groups will call this a clinical informatics engineer.
from tickets to contracts
Less time writing the 24th version of a report; more time owning contracts, reviewing generated code and tests, and keeping four EHR mappings honest.
doctors · nurses · pharmacists
Every constellation marks its decision point. The capsule says who is fit and waiting; the doctor decides who goes home.
Edges, honestly
A capsule can list who is medically fit and waiting. It can't decide that someone is fit. Capsules that could influence care need a clinical safety review, and in some countries they may fall under medical-device software rules.
Capsules travel across the group; patient records don't. The same patient.v3 contract is instantiated in each country, and group views use counts and tokens, never copied records.
Notes, referral letters, scans and complaints are messy. Some capsules wrap a small local model, declared and tested; open questions go to a larger model on purpose, with a person accountable.
Every EHR upgrade can move a field. Contract tests catch the break before a capsule gives a wrong answer, but someone must fix the mapping that week, in every country.
About 200 payers rewrite their rules every quarter. Capsules regenerate and retest when a rule changes, but reading a new payer bulletin and turning it into a rule is still a person's job.
For hospital group leaders
Start with one business line in one country, one sphere and one contract. Prove that a capsule built once can be installed by a second line, then decide how far to take it.
Talk to Muthukumar on LinkedInHospitals in one country. Write encounter.v6 against your EHR: schema, rules, access, owners.
Patient-flow and denial checks, each with golden, edge and permission tests and a named owner.
Home care or the pharmacy line installs a capsule from the Exchange, with its own parameters.
Runtime cost, latency, change backlog and audit readiness, against the same work done the old way.
mrf-builder capsule).