Repository navigation
Upload pump component changes as reservoirChange and cannula prime events - #51
Merged
Merged
Conversation
…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.
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
reservoirChange+primewith targetcannulareservoirChangeprimewith targetcannulaIf the event's raw data is a JSON object,
lotNumberandsequenceNumberare added to the payload andprimeVolumeis used as the prime volume. loopandlearn/OmnipodKit#223 records these for pod changes.Pod changes from before this change are not backfilled.