Medical devices Example Memory API · 6 min read

Every hospital account, remembered

A medical-device company's field engineers, clinical specialists and support staff each hold part of what happened at every hospital. Here is how its own app can hold all of it instead, with dates, sources and reasons.

This is an example of how the Memory API fits this kind of company, not a case study of a named customer. The numbers we quote as measured are ours; the time saved is arithmetic you can redo with your own figures.

The situation

Picture a company selling an imaging or infusion system to 150 hospitals. Each account has its own story: which units are in place and on which software version, who on the ward was trained and when, the service visits, the complaint about an alarm last spring, the workaround the clinical specialist agreed with the charge nurse, and the upgrade the biomedical team asked to schedule after their audit.

That story changes all the time. A unit is replaced, so its serial number changes. A software update fixes the alarm, so the workaround no longer applies. A new head of biomedical engineering arrives, so the contact changes. Then a support call comes in and the engineer on duty has never visited that site.

The CRM holds the account, the service system holds the tickets, and the rest lives in visit notes and email. Searching all of them finds documents. It does not say what is true at that hospital today, or what changed since the last visit.

What they build

The company keeps its own field and support app. localmem is the memory layer behind it, reached through an API from the app's backend. Each hospital is one localmem customer, held apart from every other and encrypted under data keys of its own.

  1. Write what the team learns. Visit reports, service notes, training records and account emails go to documents.send, each with the date it became true.
  2. localmem reads it into facts. "Ward 4B runs software 3.2", "Alarm workaround agreed with the charge nurse", "Upgrade requested for March". Each fact keeps its source and the date it started to hold.
  3. A newer fact replaces an older one, and the older one is kept. When the update lands, the workaround is marked replaced, with the date and the service note that closed it.
  4. The app asks before anyone answers. Before a visit or on a support call, the app searches that hospital's memory and shows the current picture, or hands it to the assistant's prompt.

In code

import { Memory } from "@localmem/memory";
const lm = new Memory();

// One localmem customer per hospital, by the company's own account id.
const { tenant } = await lm.customers.create("acct-0417");

// After a service visit.
await lm.documents.send(tenant, {
  text: "Visit to ward 4B. Updated both units to software 3.3, which fixes the "
      + "occlusion alarm. The manual reset workaround is no longer needed.",
  as_of: "2026-05-12T14:00:00Z",
});

// On the next support call: what holds now.
const now = await lm.search(tenant, { query: "Open issues and software on ward 4B" });

// And what the site looked like before the update, for the complaint file.
const then = await lm.search(tenant, {
  query: "Which software did ward 4B run, and what workaround was in place?",
  at_time: "2026-05-01T00:00:00Z",
});

What the memory holds

Not a pile of notes: each hospital's facts, as they stand and as they stood. A fact like this comes back from a search:

Ward 4B: software 3.3, no workaround in use
Ward 4B: software 3.2, manual alarm reset agreed with charge nurse
Changed 12 May 2026, from "Service visit report, ward 4B". The workaround held from 3 March to 12 May.

Three properties matter for a device company:

Where it helps

MomentWithout a memory layerWith localmem
A support callOpen the CRM, the ticket history and last visit's notesThe app shows the site's units, software, open issues and contacts, with sources
Before a site visitAsk the last engineer what happenedWhat changed since the last visit, in order, and what was promised
A complaint or quality reviewRebuild the site's state on the day by handAsk what held on that date, with the documents behind it
A new specialist takes the accountWeeks of shadowingThe account's history, with what changed and why

The same pattern elsewhere in healthcare

What it could save

Say a support team takes 40 calls a day and spends 5 minutes on each finding out where the hospital stands. That is over 3 hours a day. If the memory gives back even half of that, the team gains more than a working day every week, and callers wait less.

The cost side is small and fixed: 150 hospitals, with a few visit and service notes each every month, fit inside one flat plan. Hospitals themselves are free; nothing is charged per account or per seat.

These are assumptions for the arithmetic, not measurements. Put in your own call volume and minutes.

What we have measured

18 of 20questions about what was true on a past date answered right, in a trial on real meeting records
22 of 22isolation checks passed: no customer's memory showed in another's
20 of 24facts recalled in our first live customer's own check, in production

Those three are what matter for a device company: the answer about the past is right, one hospital's history never shows up in another's, and the facts your team wrote come back when they are needed. Answers return in well under a second, so the app can ask on every call.

Measured by us between 30 October and 10 November 2026, not an independent benchmark.

Good to know

Give your app a memory of every account

Testing is free, always. Live, one flat plan, monthly or yearly, with 3 months free on a year.