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

medplum / medplum / 27480020665
92%
main: 92%

Build:
Build:
LAST BUILD BRANCH: darren/enhance-invite-user-error-msg
DEFAULT BRANCH: main
Ran 13 Jun 2026 09:51PM UTC
Jobs 1
Files 825
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

13 Jun 2026 09:44PM UTC coverage: 92.496% (+0.007%) from 92.489%
27480020665

push

github

web-flow
Patient everything inline attachments (#9481)

* feat(server): inline DocumentReference attachments in Patient \$everything

Adds a `_inlineAttachments=true` query parameter to the Patient `\$everything`
operation. When enabled, DocumentReference attachments that point to Binary
storage are fetched and embedded as base64-encoded `attachment.data` in the
response, removing the `attachment.url`.

A `_maxAttachmentSize` parameter (bytes, default 10 MB) caps which attachments
are inlined. Attachments exceeding the limit keep their storage URL. The stream
is read incrementally and abandoned early when the cap is hit, avoiding full
reads of oversized files.

The `normalizeBinaryUrl` helper in rewrite.ts is exported so it can be reused
by the new inlining logic.

The Patient Export form in the UI gains an "Inline attachments" checkbox and a
max-size input (in MB) under the FHIR Everything format option.

Signed-off-by: Ian Plunkett <1857868+ianplunkett@users.noreply.github.com>

* Fixing linting

Signed-off-by: Ian Plunkett <1857868+ianplunkett@users.noreply.github.com>

* [autofix.ci] apply automated fixes

* Cleanup

Signed-off-by: Cody Ebberson <cody@ebberson.com>

* Cleanup

Signed-off-by: Cody Ebberson <cody@ebberson.com>

* Fixed tests

Signed-off-by: Cody Ebberson <cody@ebberson.com>

* PR feedback

Signed-off-by: Cody Ebberson <cody@ebberson.com>

* Move checkbox input to bottom of form

Signed-off-by: Cody Ebberson <cody@ebberson.com>

---------

Signed-off-by: Ian Plunkett <1857868+ianplunkett@users.noreply.github.com>
Signed-off-by: Cody Ebberson <cody@ebberson.com>
Co-authored-by: Ian Plunkett <1857868+ianplunkett@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

24621 of 27414 branches covered (89.81%)

Branch coverage included in aggregate %.

74 of 78 new or added lines in 4 files covered. (94.87%)

36938 of 39139 relevant lines covered (94.38%)

23185.13 hits per line

Uncovered Changes

Lines Coverage ∆ File
2
87.1
1.13% packages/react/src/PatientExportForm/PatientExportForm.tsx
2
94.47
-0.16% packages/server/src/fhir/repo.ts
Jobs
ID Job ID Ran Files Coverage
1 27480020665.1 13 Jun 2026 09:51PM UTC 1377
92.28
GitHub Action Run
Source Files on build 27480020665
  • Tree
  • List 825
  • Changed 438
  • Source Changed 5
  • Coverage Changed 438
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #27480020665
  • 472d3c99 on github
  • Prev Build on main (#27479854238)
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