Chapter 10 · Custom Interceptors + Operations
So far the server obeyed FHIR. Now you teach it your own rules.
Interceptors reach into the request lifecycle so you can act at the right moment. Operations add verbs beyond create, read, update, and delete. Write a concern once — auth, tenant, redaction — instead of copy-pasting it into every provider.
Three things you will be able to do
The interceptor model — @Interceptor + @Hook
The Pointcut request lifecycle
Custom operations — your own $verbs
One warning before we start — it bites everyone
HAPI 7.0 quietly moved every javax import to jakarta — 6.x interceptors will not compile until renamed