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

medplum / medplum / 32054444841
92%

Build:
DEFAULT BRANCH: main
Ran 17 Aug 2026 06:26PM UTC
Jobs 1
Files 884
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

17 Aug 2026 05:41PM UTC coverage: 92.186% (-0.005%) from 92.191%
32054444841

push

github

web-flow
`getIdentifierByType` and MRN support (#10201)

* feat(core): add getIdentifierByType and MRN identifier type

Add `getIdentifierByType(resource, type)`, which looks up an identifier by
`Identifier.type.coding[]` rather than by `Identifier.system`. `getIdentifier`
only keys on the assigning system, so there was no way to ask "which of these
identifiers is the MRN?" without knowing the assigner up front.

Also adds the `HL7_V2_0203` code system constant and the `MRN_IDENTIFIER_TYPE`
coding built on it.

Matching requires both the system and the code of the type coding: the same
code means different things in different code systems, so code-only matching
would be ambiguous.

Signed-off-by: Philip Knott <filupnot@proton.me>

* fix(core): match any type coding in getIdentifierByType

getCodeBySystem only inspects the first coding matching the system, so an
Identifier.type carrying two codings from the same code system would miss a
lookup for the second one. Match with some() over all codings instead.

Signed-off-by: Philip Knott <filupnot@proton.me>

---------

Signed-off-by: Philip Knott <filupnot@proton.me>

24050 of 27229 branches covered (88.32%)

Branch coverage included in aggregate %.

8 of 8 new or added lines in 2 files covered. (100.0%)

4 existing lines in 2 files now uncovered.

42396 of 44849 relevant lines covered (94.53%)

11748.61 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
90.31
-0.75% packages/agent/src/hl7.ts
1
95.16
-0.81% packages/agent/src/hl7-client-pool.ts
Jobs
ID Job ID Ran Files Coverage
1 32054444841.1 17 Aug 2026 06:26PM UTC 884
92.19
GitHub Action Run
Source Files on build 32054444841
  • Tree
  • List 884
  • Changed 5
  • Source Changed 2
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #32054444841
  • 2afa0f77 on github
  • Prev Build on main (#31964008570)
  • Next Build on main (#32070355283)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc