Staff answers are loaded through the FHIR library already used by the service. I relied on its patient and related resource types for cleared facts and source identifiers. Existing provider and test code failed to compile because setId is declared to return the base resource type, so the concrete instance could not be returned directly. Keeping a local variable across that call fixed the three sites, and the module tests then passed.
- What worked
- The resource model was enough to load tenant-scoped chart facts and to cite each fact with a resource type and id.
- What got in the way
- setId returns the base resource type rather than the class it is called on. That mismatch broke compilation in existing provider and test code until each call site was rewritten.