AI MedAgent
Five Minutes and a Reason · Research memorandum and proposal · 26 August 2026
Free. No paywall. No email required.Download it, quote it, argue with it. Every claim carries a source and every source was checked directly.

What this is

Federal certification forced every electronic health record in the country to expose a standard interface, and it worked. Nothing equivalent exists for the devices at the bedside, and after twenty-two years of trying, nothing is coming. The reason is not technical. Every previous attempt asked device manufacturers to change a regulated product for a market that did not exist yet.

This memorandum proposes something much smaller, called PCD-E: a read-only endpoint on the gateway manufacturers already ship, returning a five-minute summary of what each device reported, plus the reason the numbers look the way they do. Not a stream. Not a sample. A summary, with context. Alarms bypass it and arrive immediately.

Then it stops asking. Rather than wait for a manufacturer to build an endpoint, I built the receiver, published the schema, and invited them to point a simulator at it. That costs about five dollars a month.

The sandbox is running nowLIVE

You can check that for yourself before you read another word, and without a key. This returns what the endpoint accepts and is generated by the deployed code, so it always describes what is actually running:

curl https://aimedagent.net/device

To send it something you need a key, and you issue your own. There is no approval step, no form, no waiting and nobody to email. It is free, there is nothing to sign, and there is no agreement, no fee and no NDA:

# no dependencies, needs only Node 18 or newer
curl -O https://aimedagent.net/pcde-client.mjs

# mints a key in your name, builds a synthetic five-minute pump
# window, sends it, and prints what came back. One command.
node pcde-client.mjs --org "Your Company" --demo

Or mint one directly, if you would rather point your own gateway at it:

curl -X POST https://aimedagent.net/device/key \
  -H 'Content-Type: application/json' \
  -d '{"organization":"Your Company"}'

Your company name goes inside the key, so a connection is attributable without a lookup and nobody has to keep a list. That is the only reason the key exists. It is a name tag, not a security boundary, because there is nothing behind the door worth forcing: the sandbox stores no data and only ever sees synthetic input.

The demo generates ten IHE PCD-01 messages over five minutes at 125 mL/h, drops the rate to 5 mL/h at 14:08, and resets the cumulative volume counter partway through. It touches no real data and needs no device. What comes back is the epoch and what a reasoning engine made of it.

If your gateway already emits PCD-01, that is the whole integration. Point it at /device/hl7 with a bearer token and send what you already send. The epoch arithmetic happens here.

Synthetic data only. The endpoint refuses anything carrying a patient name, a date of birth or an identifier outside a published synthetic allowlist, and it refuses it before the payload is stored, logged or read by a model. Nothing is retained.

Read the ingest specification (PDF, 11 pages)

$36 billion
measured in 2013, and 93 percent of it accrues to hospitals, none to the manufacturers being asked to build
268 to 1
lines of HL7 v2 gateway mapping versus lines of FHIR gateway mapping in IHE’s flagship device profile
Zero
lines of time-windowed aggregation in 135,000 lines of the field’s reference open-source platform
$5 a month
what the receiving endpoint costs to run, against $8,500 to register one system for a Connectathon

The problem, in one picture

Two lanes. The top lane, the chart, runs from Epic, Oracle Health and MEDITECH through FHIR R4 into a reasoning system, solved by federal certification. The bottom lane, the bedside, runs from a patient monitor, ventilator and infusion pump into a gateway and then stops, with no standard endpoint.

Any continuous clinical reasoning system needs four things: what was ordered, what was given, what the patient did in response, and when each happened. The first two are in the chart and the chart is now reachable from a laptop. The second two are only at the bedside.

The correction that makes it work

The obvious design is to poll each device every five minutes and record what it says. That design has a documented failure mode, and Julian Goldman photographed it in 2016: a patient monitor displayed an oxygen saturation of 84 percent at 14:07, the monitor alarmed, and the anesthesia record for the same period shows an unbroken line of normal saturations. His caption is two words. Sampling error.

Five minutes of one-hertz oximetry with a desaturation to 84 percent in the middle. Panel A shows what a five-minute point sample records: two normal numbers and no event. Panel B shows what a five-minute summary records: count, minimum with its timestamp, maximum, first, last and mean, with the event preserved.

Illustration of the mechanism, not Goldman’s original tracing. The values are his. A five-minute point sample reproduces his failure exactly. A five-minute summary carrying count, minimum and its timestamp, maximum, first, last and mean does not, at a cost of four extra numbers.

What is in the memorandum

What this is not

A proposal for a data interface, not for a clinical system. Nothing in it should be read as suggesting that a five-minute summary is sufficient for closed-loop control, for arrhythmia detection, or for any purpose requiring beat-to-beat fidelity. Those need waveforms and always will.

The claim is narrower and, I think, defensible: that a very large class of useful reasoning about where a patient is heading needs interval statistics and context rather than samples, and that the absence of an interface carrying interval statistics and context is why that reasoning is not happening.

Argue with it

Every number in the memorandum is sourced and most of them are checkable in an afternoon. If something in it is wrong I would rather hear it from you than from a comment thread. Corrections get published with the name of whoever caught it, which is how the Epic finding in the EHR datasheet got fixed.

Daniel Pettus · dan@aimedagent.net · feedback form

Daniel Pettus spent forty years in medical device and health IT leadership at Alaris, CareFusion and BD, contributed to IHE Patient Care Device interoperability standards, and is named on two United States patents. He writes Inside the Loop and is the author of The Technology Was Never the Problem, which is about this subject and how forty years of it actually went.
AI MedAgent · aimedagent.net · Research demonstration
Advisory only. Not a medical device. Not for clinical use.