IWorkerDataApiClient¶
Contract implemented by WorkerDataApiClient for retrieving injured workers, their claims, and claims matching search criteria from Guidewire ClaimCenter. Consumers depend on this interface so they can be constructed via dependency injection and unit-tested without a real HttpClient.
Purpose¶
- Declares operations to look up an injured worker, list a worker's claims, and search for claims by arbitrary criteria.
Context¶
- Namespace:
SAIF.Data.Guidewire.Interfaces - Assembly/package:
SAIF.Data.Guidewire(packaged inSAIF.SAIFCode.Core)
Public members¶
| Member | Signature | Purpose |
|---|---|---|
| FindClaims(FindClaimsSearchCriteria) | Task<ClaimSummaries> FindClaims(FindClaimsSearchCriteria criteria) |
Finds claims matching search criteria including worker, policy, claim number, and more; returns an object containing a list of claims |
| GetClaims(string) | Task<ClaimSummaries> GetClaims(string workerId) |
Finds claims associated with a particular claimant (worker) identified by workerId; the implementation returns null without an API call for a null or "0" id, per SDG-BR-015 |
| GetWorker(string) | Task<Claimant> GetWorker(string workerId) |
Gets the injured worker identified by workerId; the implementation returns null without an API call for a null or "0" id, per SDG-BR-015 |
Behavioral notes¶
- This interface carries no behavior of its own; all behavior described above belongs to the implementing class,
WorkerDataApiClient.
Constraints and usage notes¶
- Callers should pass
FindClaimsSearchCriteria(documented in this same doc set) with only the fields relevant to their search; unpopulated fields default per the DTO's own defaults.
Sources¶
Data/SAIF.Data.Guidewire/Interfaces/IWorkerDataApiClient.csData/SAIF.Data.Guidewire/Clients/WorkerDataApiClient.cs