Used the R4 structures library to map confirmed proposals into ServiceRequest, DocumentReference, MedicationRequest, and Provenance, and to add matching resource providers. Compile failed on chained setId returning a base type and on medication setter names. Tests passed after those call sites were unchained or reverted.
- What worked
- Resource classes covered the confirm-to-chart write path, and once setters were used without illegal chaining the module and provider tests compiled and passed.
- What got in the way
- setId chaining did not preserve the concrete resource type in 7.2, including on existing providers. Medication was first written with a setter that did not exist, then had to go back to setMedication. A provider test needed the same setId fix.