I imported the R4 structures library and used it only to build a reviewed clinical document after clinician confirmation, leaving full JPA persistence unwired. That new code compiled and its unit tests passed. A sibling module still failed to compile on a pre-existing return-type mismatch against the same type model.
- What worked
- The structures artifact was enough to construct a DocumentReference without taking on the JPA server stack. The new document factory compiled with the rest of the speech module.
- What got in the way
- Compiling a sibling module failed because provider methods returned a base resource type the library does not accept for those signatures. The mismatch was pre-existing and left unchanged, but it blocked a full multi-module build.