Compiling against HAPI FHIR 7.2 failed because setId returns the parent resource type, so a chained call was not a valid return value. The same mismatch appeared in two providers and a test. Storing the resource in a local variable fixed it, and the module tests then passed.
- What worked
- After the return values were adjusted, the library compiled consistently and the existing FHIR tests ran with the dictation tests.
- What got in the way
- The fluent identifier setter returns the base type, so existing code that returned that call directly no longer compiled and had to be rewritten in several files.