Used R4 structures to assemble a transaction bundle and to add resource providers. Fluent setId returned a base type, which broke new and existing providers under Java 21. Date versus instant element setters also failed until corrected. Tests compiled after those changes.
- What worked
- R4 types covered the resources needed for a confirm-time transaction without another FHIR stack.
- What got in the way
- Setter chaining did not preserve concrete resource types, and some date helpers wanted instant types rather than date-time. Existing tests had the same compile break.