Skip to content

Upload pump component changes as reservoirChange and cannula prime events - #51

Merged
ps2 merged 1 commit into
next-devfrom
pod-change-events
Nov 18, 2026
Merged

ps2 merged 1 commit into
next-devfrom
pod-change-events

Conversation

@ps2

@ps2 ps2 commented Nov 18, 2026 •

Copy link
Copy Markdown

Pod and patch changes (replaceComponent(.pump)) were not uploaded, so Tidepool has no record of site changes for Omnipod (or Medtrum) users. Nightscout already gets them as Site Change.

Component changes now map to Tidepool device events:

  • pump (pod/patch): reservoirChange + prime with target cannula
  • reservoir: reservoirChange
  • infusion set: prime with target cannula

If the event's raw data is a JSON object, lotNumber and sequenceNumber are added to the payload and primeVolume is used as the prime volume. loopandlearn/OmnipodKit#223 records these for pod changes.

Pod changes from before this change are not backfilled.

…ents

A pod or patch change (replaceComponent .pump) was dropped, so Tidepool had
no record of Omnipod site changes. It now uploads a reservoirChange and a
prime with target cannula. A reservoir change uploads reservoirChange and an
infusion set change uploads a cannula prime.

When the event's raw data is a JSON object, its lotNumber and sequenceNumber
go in the payload and primeVolume becomes the prime volume.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant