Back to Projects

Case study

Plumb, with Mapping Copilot

AI feature: Mapping Copilot

Vendors serving long term care still hand map each facility's HL7 v2 feed: weeks of work and five figures per customer.

Live demo0.5% silent errors on a held out run

Context

At MealSuite I cut EHR integration delivery from 65+ business days to under 30, mostly through process. The mapping itself stayed manual. Plumb takes HL7 v2 in, checks it, maps it and delivers it with a queue and retries; Mapping Copilot drafts each mapping for a person to approve. Everything is synthetic: made up companies and residents, zero real patient data.

Approach

  • Set the rule that shaped the build: the model writes a reviewable, versioned mapping, a deterministic runtime runs it, and no model touches a live message.
  • Built three apps that talk to each other: a mock EHR, the platform and a mock dining system, in the browser or as real services over HTTPS or MLLP.
  • Measured the copilot against machine readable ground truth, found the model's own confidence was overconfident, and replaced it with evidence based calibration tested on held out feeds.
  • Showed it carries over to a second source format (CSV) and a second destination with the same calibration.

Outcome

Silent errors down to 0.5% from 4.7%, with 99% of wrong fields surfaced for review. Byte identical output on every re run, and 365 automated checks.

Evidence

RowWhat ranSilent errorsWrong fields surfacedField accuracyHeld for review
Offline reference mapperPipeline check with no model, 10 synthetic HL7 feeds0%100%91%Not reported
Live model, HL7, calibratedFresh run of all 10 feeds, never used for tuning0.5% (4.7% raw)99% (87% raw)About 63 to 65%46%
Live model, CSV census exports10 more sources, 50 live mappings, same calibration0.5%100%91%18%
Runtime270 messages re runByte identical output every run; 9 routed to an error queue with reasons

Row 1 checks the pipeline without AI. Rows 2 and 3 are the live model; calibration decides which of its errors a person sees.

Stack

  • Claude API
  • TypeScript
  • HL7 v2
  • MLLP
  • Vercel