• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

medplum / medplum / 21523803425
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: cody-core-vitest-poc-karl
DEFAULT BRANCH: main
Ran 30 Jan 2026 05:09PM UTC
Jobs 1
Files 720
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

30 Jan 2026 04:59PM UTC coverage: 92.278%. Remained the same
21523803425

push

github

web-flow
Add cursor pagination, retry logic, and list patients bot to Healthie importer (#8257)

* Add cursor pagination, retry logic, and list patients bot to Healthie importer

- Add new `list-healthie-patients` bot for listing patient IDs with filtering
  - Supports filters: sinceLastUpdated, name, dateOfBirth
  - Page/offset API for callers, cursor pagination under the hood
  - Optional maxResults cap and includeDemographics flag

- Add cursor pagination to all clinical data fetching
  - Medications: uses should_paginate, after, page_size params
  - Allergies: refactored to use direct allergy_sensitivities query
  - Questionnaire responses: added cursor-based pagination

- Add retry logic with exponential backoff to HealthieClient
  - Configurable maxRetries, baseDelayMs, maxDelayMs
  - Handles 429, 500, 502, 503, 504 status codes
  - Respects Retry-After header
  - Adds jitter to prevent thundering herd

- Add WithCursor<T> generic type for pagination

- Update deploy script to deploy both bots

- Add comprehensive tests for all new functionality
  - List patients bot: filtering, pagination, demographics
  - Cursor pagination: multi-page fetching for all clinical data
  - Retry logic: rate limiting, server errors, network errors

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Rahul Agarwal <rahul@medplum.com>

* Add includeClinicalUpdateDates flag to list patients bot

Adds ability to fetch and filter by clinical activity dates (medications,
allergies, form responses) when listing Healthie patients. When the flag
is enabled, the bot fetches the most recent update date from each clinical
resource type and returns the max as latestClinicalUpdate. The sinceLastUpdated
filter then uses this clinical date instead of the patient record date.

- Add clinical-activity.ts with efficient fetch functions (page_size=1)
- Add includeClinicalUpdateDates flag to input interface
- Add latestClinicalUpdate field to output entry
- Update sinceLastUp... (continued)

16879 of 19141 branches covered (88.18%)

Branch coverage included in aggregate %.

30887 of 32622 relevant lines covered (94.68%)

13879.71 hits per line

Jobs
ID Job ID Ran Files Coverage
1 21523803425.1 30 Jan 2026 05:09PM UTC 720
92.28
GitHub Action Run
Source Files on build 21523803425
  • Tree
  • List 720
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 99bfbdd3 on github
  • Prev Build on gh-readonly-queue/main/pr-8298-5033c7bd905a358a25b939b432370d8f3d75c002 (#21523710182)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc