Get latest MCO¶
Determine the worker's currently effective managed-care organization (MCO) location for a claim.
| Field | Value |
|---|---|
| Operation ID | OP-SD-05 |
| Trigger | Caller requests the latest MCO for a claim. |
| Inputs | Claim id |
| Outputs | McoLocation (possibly empty) |
| Primary components | CCClaimApiService.GetLatestMco |
| Entry point | Data/SAIF.Data/Queries/Claims/CCClaimApiService.cs |
Steps¶
- Call
IClaimDataApiClient.GetGuidewireClaimDataMCO(claimId).Origin: This step delegates to
ClaimDataApiClient.GetGuidewireClaimDataMCO, implemented inSAIF.Data.Guidewire, which issues a cached GET ofclaims/{claimId}/mcoand returns the single current MCO for the claim. - Keep entries whose effective date is on or before today and whose expiration is today or later, or
DateTime.MinValue(SD-BR-012). - Order by effective date, newest first, and take the first entry; upper-case the plan id. If none match, return an empty
McoLocation(SD-BR-012).
Process flow¶
The following diagram visualizes this operation's control flow.
flowchart TD
Start([Caller requests the latest MCO for a claim.]) --> S1["`CCClaimApiService.GetLatestMco`"]
S1 --> S2{"Rules satisfied?"}
S2 -->|Yes| EndOk([Result returned])
S2 -->|No| EndErr([Exception / empty result])
Failure and edge-case behavior¶
- No matching entries: returns an empty
McoLocationrather than null.
Related documentation¶
Sources¶
Data/SAIF.Data/Queries/Claims/CCClaimApiService.cs