You are here:
InsPolicyTermsService:getCurrentStanding
Use this service to get a list of amounts that represent the current standing of the policy terms associated with a policy or a claim.
This service populates the Policy Term Current Standings for both the Policy and Claim pages. To configure the policy terms standings on the insurance claim record page, use the Vlocity Policy Terms Standing LWC. To configure the policy terms standings with a capability to filter the coverage details based on the insuredId on the insurance policy record page, use the Policy Terms Standing - Insurance Policy View component.
With the Summer '21 release, the same service supports Salesforce FSC Claim Data Models to display the consumed power attributes.
How It Works
-
The service takes an object Id, which can be any of these values: policy Id, claim Id, policyCoverageId, policyParticipantId, or policyAssetId.
-
The service takes an optional
viewOptionnode.-
If the objectId is policyId, the service takes either of these two options:
-
showAllPolicyCoverage -
showPolicyLevelTermsOnly
-
-
If the objectId is claimId, the service takes either of these two options:
-
showAllPolicyCoverages -
showOpenClaimPolicyCoverages
-
-
-
Returns a list of policy terms associated with the objectId. The name created for this node depends on the attribute class and attribute scope of the given policy term.
Remote Options
Option |
Description |
|---|---|
|
Required. The ID to fetch the current standing of the policy terms. Possible values:
|
|
Optional. Scenario 1: When objectId is
|
Scenario 2: When objectId is
|
Input JSON
Here's the format of the sample input JSON:
{
"objectId": <Id>
}Here's a sample input JSON:
{
"objectId":"a2b5w000006SBY9AAO"
}Output JSON
Here's the format of the sample output JSON:
{
"currentStanding": [
{
<String:Policy Term Name>: {
"predictedRemainingValue": <Decimal>,
"pendingValue": <Decimal>,
"usedValue": <Decimal>,
"remainingValue": <Decimal>,
"initialValue": <Decimal>,
"dataType": <Text>,
"insurancePolicyCoverageName": <Text>,
"insuredItemId": <Id>,
"insuredPartyId": <Id>,
"assetCoverageId": <Id>,
"assetId": <Id>,
"attributeScope": <Text>,
"attributeClass": <Text>,
"assetTermName": <Text>,
"assetTermId": <Id>,
"claimId": <Id>,
"claimCoverageIds": [<List of Ids>]
}
}
]
}How the policy term name is constructed depends on how the power attribute is set up. Here are some examples of different configurations that create different policy term names.
Policy Term Name: General Contents Policy Limit
Attribute Class: Limit - Currency
Attribute Scope: Policy Output
Name: General Contents Policy Limit
{
"currentStanding": [
{
"General Contents Policy Limit": {
"predictedRemainingValue": 500,
"pendingValue": 0,
"usedValue": 0,
"remainingValue": 500,
"initialValue": 500,
"dataType": "currency",
"insurancePolicyCoverageName": "Lab",
"insuredPartyId": null,
"insuredItemId": null,
"assetCoverageId": "a3u3j00000HyNvYAAV",
"assetId": "02i3j00000KhumpAAB",
"attributeScope": "Policy",
"attributeClass": "Limit",
"assetTermName": "General Contents Policy Limit",
"assetTermId": "a5N3j000000XnVtEAK"
}
}
]
}Policy Term Name: General Contents Policy Coverage Limit
Attribute Class: Limit - Currency
Attribute Scope: Policy Coverage Output
Name: General Contents Policy Coverage Limit - Sample Insured
{
"currentStanding": [
{
"General Contents Policy Coverage Limit - Sample Insured": {
"predictedRemainingValue": 500,
"pendingValue": 0,
"usedValue": 0,
"remainingValue": 500,
"initialValue": 500,
"dataType": "currency",
"insurancePolicyCoverageName": "Outpatient",
"insuredPartyId": "0ao8c000000PnSqAAK",
"insuredItemId": null,
"assetCoverageId": "a3u3j00000HyNvYAAV",
"assetId": "02i3j00000KhumpAAB",
"attributeScope": "Policy Coverage",
"attributeClass": "Limit",
"assetTermName": "General Contents Policy Coverage Limit",
"assetTermId": "a5N3j000000XnVtEAK"
}
}
]
}Policy Term Name: General Contents Claim Limit
Attribute Class: Limit - Currency
Attribute Scope: Claim Output Name: General Contents Claim Limit
{
"currentStanding": [
{
"General Contents Claim Limit": {
"predictedRemainingValue": 500,
"pendingValue": 0,
"usedValue": 0,
"remainingValue": 500,
"initialValue": 500,
"dataType": "currency",
"insurancePolicyCoverageName": "Lab",
"insuredPartyId": null,
"insuredItemId": null,
"assetCoverageId": "a3u3j00000HyNvYAAV",
"assetId": "02i3j00000KhumpAAB",
"attributeScope": "Claim",
"attributeClass": "Limit",
"assetTermName": "General Contents Claim Limit",
"assetTermId": "a5N3j000000XnVtEAK",
"claimId": "a4X3j0000001gUPEAY",
"claimCoverageIds": ["a5G3j000000YGYwEAO"]
}
}
]
}Policy Term Name: General Contents Claim Coverage Limit
Attribute Class: Limit - Currency
Attribute Scope: Claim Coverage Output
Name: General Contents Claim Coverage Limit - Test Party (Joan Smith)
{
"currentStanding": [
{
"General Contents Claim Coverage Limit - Test Party (Joan Smith)": {
"predictedRemainingValue": 500,
"pendingValue": 0,
"usedValue": 0,
"remainingValue": 500,
"initialValue": 500,
"dataType": "currency",
"insurancePolicyCoverageName": "Lab",
"insuredPartyId": null,
"insuredItemId": null,
"assetCoverageId": "a3u3j00000HyNvYAAV",
"assetId": "02i3j00000KhumpAAB",
"attributeScope": "Claim Coverage",
"attributeClass": "Limit",
"assetTermName": "General Contents Claim Coverage Limit",
"assetTermId": "a5N3j000000XnVtEAK",
"claimId": "a4X3j0000001gUPEAY",
"claimCoverageIds": ["a5G3j000000YGYwEAO"]
}
}
]
}Policy Term Name: Data Cov Claim Coverage Count
Attribute Class: Limit - Scope Count
Attribute Scope: Policy Coverage Output
Name: Data Cov Claim Coverage Count
{
"currentStanding": [
{
"Data Cov Claim Coverage Count": {
"predictedRemainingValue": 3,
"pendingValue": 1,
"usedValue": 1,
"remainingValue": 4,
"initialValue": 5,
"dataType": "number",
"insurancePolicyCoverageName": "Lab",
"insuredPartyId": null,
"insuredItemId": null,
"assetCoverageId": "a3u3j00000HyNvVAAV",
"assetId": "02i3j00000KhumpAAB",
"attributeScope": "Claim Coverage",
"attributeClass": "ScopeCountLimit",
"assetTermName": "Data Cov Claim Coverage Count",
"assetTermId": "a5N3j000000XnVqEAK",
"claimId": "a4X3j0000001gUPEAY",
"claimCoverageIds": ["a5G3j000000YGYwEAO"]
}
}
]
}
