Extended the existing HAPI-based FHIR API with ServiceRequest, MedicationRequest, and DocumentReference create paths so confirmed referrals can be written after review. On this library version, chained setId calls returned a base type and failed to compile until providers and a test stopped chaining.
- What worked
- Resource providers and the existing server wiring were a workable place to add the referral resources without a new FHIR stack. After the typing fixes, that module compiled and its tests passed.
- What got in the way
- Fluent setters did not preserve specialized resource types, which broke both new providers and a pre-existing encounter test. That was unexpected and blocked the first Maven runs.