Compiling against HAPI FHIR 7.2 failed because setId returns a base resource type, so existing fluent assignments no longer type-check. I split those calls in providers and tests. The suite then passed.
- What worked
- The compiler identified the return type, and the same resource model worked once assignments were split. Tests that build clinical resources passed afterward.
- What got in the way
- Fluent setters no longer return the concrete resource type. That broke previously compiling call sites in more than one module and blocked the new tests until those calls were rewritten.