You are here:
InsClaimItemService: getClaimLineItemFields
Use this service to retrieve the list of fields of a field set (and optionally the field's values). This field set is specific for a particular CoverageSpec.
Method: getClaimLineItemFields
To define a custom field set:
-
Create a field set in the Object Manager page for ClaimCoveragePaymentDetail / ClaimLineItem__c.
-
Create a record in Setup → Custom Settings → Insurance Configuration Setup → Manage.
-
Name = ClaimCoverage + : + <CovSpec's Product Code>. For example: ClaimCoverage:autoBIPD
-
Setup Value = ClaimLineItem__c / ClaimCoveragePaymentDetail fully-qualified (including namespace if any) fieldSet name.
-
How It Works
-
From the Claim Coverage Id, retrieve the PolicyCoverage's CovSpec ProductCode.
-
Get the fieldSet name from the Custom Settings.
-
Gets the details of each field including isRequired, dataType, label, and fieldName. Field names common between the ClaimCoveragePaymentDetail and ClaimLineItem__c now use object interface fields. If not, it takes the ApiName of the field.
-
For dataType=Picklist, the picklist options are included as "options."
-
For benefit type, the service retrieves all the PowerAttributes' Benefit Type based on the claimId, and then lists them down as picklist options.
-
On edit of the Loss item (claimItemId is passed in the option), the corresponding value of that field for the record is included in the output.
Remote Options
Option |
Description |
|---|---|
|
Required. The Id of the claim for which the service gets the claim line item fields. |
|
Required. The Id of the claim coverage. |
|
Optional. The Id of the claim item. |
Input JSON
Here's the format of the input JSON:
{
"claimId": <Id>,
"claimCoverageId": <Id>,
"claimItemId": <Id>
}Here's the sample of the input JSON:
{
"claimId": '01t000000000000001',
"claimCoverageId": '01t000000000000002',
"claimItemId": '01t000000000000003'
}Output JSON
Here's the format of the output JSON:
{
"isDefault": <boolean>,
"fieldNameList": [<String>, <String>, ..,],
"fieldList": [<JSON>, <JSON>, ...]
}
Here's the sample of the output JSON:
{
"isDefault": false,
"fieldList": [
{
"options": [
{
"Name": "Hospital Confinement",
"Id": "Hospital Confinement"
},
{
"Name": "Transportation",
"Id": "Transportation"
}
],
"isNillable": true,
"isUpdateable": true,
"isCreatable": true,
"isRequired": false,
"dataType": "PICKLIST",
"label": "Benefit Name",
"fieldName": "benefitType"
},
{
"isNillable": true,
"isUpdateable": true,
"isCreatable": true,
"isRequired": false,
"dataType": "INTEGER",
"label": "Limit Unit Count",
"fieldName": "unitCount"
},
{
"options": [
{
"Id": "New",
"Name": "New"
},
{
"Id": "Open",
"Name": "Open"
},
{
"Id": "Pending Authority",
"Name": "Pending Authority"
},
{
"Id": "Authority Approved",
"Name": "Authority Approved"
},
{
"Id": "Authority Denied",
"Name": "Authority Denied"
},
{
"Id": "Payment Pending",
"Name": "Payment Pending"
},
{
"Id": "Paid",
"Name": "Paid"
},
{
"Id": "Closed W/O Pay",
"Name": "Closed W/O Pay"
},
{
"Id": "Cancelled",
"Name": "Cancelled"
},
{
"Id": "Stopped",
"Name": "Stopped"
}
],
"isNillable": true,
"isUpdateable": true,
"isCreatable": true,
"isRequired": false,
"dataType": "PICKLIST",
"label": "Status",
"fieldName": "status"
},
{
"options": [
{
"Id": "Loss",
"Name": "Loss"
},
{
"Id": "Expense",
"Name": "Expense"
}
],
"isNillable": true,
"isUpdateable": true,
"isCreatable": true,
"isRequired": false,
"dataType": "PICKLIST",
"label": "Type",
"fieldName": "type"
}
],
"fieldNameList": [
"benefitType",
"unitCount",
"status",
"type"
]
}
