Skip to content

Conversation

@nathandoef
Copy link
Collaborator

@nathandoef nathandoef commented Dec 11, 2025

  • The RuleBuilder now supports adding optional FHIR query filters to instance-level operation authorization rules.
    New methods onAnyInstanceMatchingOptionalFilter() and onInstancesOfTypeMatchingOptionalFilter() allow restricting which
    resource instances are permitted for a given operation based on search parameter criteria. For example, this enables
    rules like allowing $meta operations only on Observations matching category=vital-signs.
  • The AuthResourceResolver now includes per-request caching to avoid redundant database reads when
    the same resource is resolved multiple times during authorization checks. Resource resolution is also now
    partition-aware, using the request's partition context when reading resources.

@robogary
Copy link
Contributor

robogary commented Dec 11, 2025

Formatting check succeeded!

michaelabuckley and others added 26 commits December 11, 2025 17:16
…ith-query-filter

# Conflicts:
#	hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/BaseRule.java
#	hapi-fhir-server/src/main/java/ca/uhn/fhir/rest/server/interceptor/auth/IRuleApplier.java
@nathandoef nathandoef changed the title Meta Operations With Query Filter Add Optional Query Filter For Instance Operation Authorization Rules Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants