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

medplum / medplum / 28415910930
92%

Build:
DEFAULT BRANCH: main
Ran 30 Jun 2026 02:27AM UTC
Jobs 1
Files 844
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

30 Jun 2026 02:21AM UTC coverage: 91.89%. Remained the same
28415910930

push

github

web-flow
Perf/cache compartment fhirpath (#9691)

* perf(server): cache parsed patient-compartment FHIRPath expressions

getPatients() runs on every resource write to compute meta.compartment.
For each patient-compartment search parameter it called
evalFhirPath(searchParam.expression, resource) with the raw expression
string, which re-tokenizes and re-parses the FHIRPath expression on every
call -- so the same fixed set of compartment expressions was re-parsed for
every resource written.

Cache the parsed FhirPathAtom per expression string (bounded by the number
of distinct compartment search params) so each expression is parsed once.
Parsing is deterministic, so the cached AST is identical to re-parsing;
there is no behavior change.

Signed-off-by: Joshua Kelly <josh@flexpa.com>

* Use cached value

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

---------

Signed-off-by: Joshua Kelly <josh@flexpa.com>
Signed-off-by: Cody Ebberson <cody@ebberson.com>
Co-authored-by: Joshua Kelly <josh@flexpa.com>

21580 of 24529 branches covered (87.98%)

Branch coverage included in aggregate %.

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

38505 of 40859 relevant lines covered (94.24%)

12527.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28415910930.1 30 Jun 2026 02:26AM UTC 844
91.89
GitHub Action Run
Source Files on build 28415910930
  • Tree
  • List 844
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 4370f928 on github
  • Prev Build on main (#28413128982)
  • Next Build on main (#28463919581)
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