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

medplum / medplum / 28903349822
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: ml-batch-processor-encapsulate-mutable-state
DEFAULT BRANCH: main
Ran 07 Jul 2026 10:47PM UTC
Jobs 1
Files 833
Run time 2min
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

07 Jul 2026 10:30PM UTC coverage: 91.924% (-0.003%) from 91.927%
28903349822

push

github

web-flow
Prefer complete over example CodeSystem and skip retired resources (#9741)

When multiple terminology resources share a URL, `findTerminologyResource`
selected among them by version, then date, with ties broken by Project linking
order. This caused a ValueSet composed of a CodeSystem URL that had both an
"example" and a "complete" CodeSystem in the same Project to select the wrong
one -- e.g. us-core-provider-role picking up only the 4 example
nucc.org/provider-taxonomy codes, because the example CodeSystem had a more
recent date.

Changes:
- Move candidate sorting out of SQL and into `compareTerminologyResources`, so
  the ordering is easier to reason about and extend (e.g. semver-aware version
  comparison later). Preference order is: most current version (a missing
  version is assumed current), then more complete content for CodeSystems
  ('complete' over 'example', etc.), then most recent date. Content now breaks
  ties between equal versions -- so a complete CodeSystem is preferred over an
  example one even when the example has a more recent date -- while version
  remains the primary selector.
- Exclude retired resources from selection entirely, so deactivating a
  duplicate CodeSystem/ValueSet by setting status to `retired` removes it from
  consideration.

Signed-off-by: maddyli <maddy@medplum.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

21717 of 24669 branches covered (88.03%)

Branch coverage included in aggregate %.

18 of 20 new or added lines in 1 file covered. (90.0%)

38665 of 41018 relevant lines covered (94.26%)

12531.01 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
85.25
0.11% packages/server/src/fhir/operations/utils/terminology.ts
Jobs
ID Job ID Ran Files Coverage
1 28903349822.1 07 Jul 2026 10:47PM UTC 833
91.92
GitHub Action Run
Source Files on build 28903349822
  • Tree
  • List 833
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28903349822
  • 8596b6a8 on github
  • Prev Build on main (#28903335455)
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