You are here:
InsEnrollmentService:enrollMembers
Use this service to enroll census members into their selected plans.
Enrollment services can either write to the Insurance Policy and related objects (Harmonized policy data model) or Asset objects (Vlocity model), depending on the isFsc parameter, and the custom setting for defaultIsFSCOption.
From the Vlocity Health and Insurance Summer '21 release onward, the service also supports the Person Account flow.
If you're using Vlocity Package Data Model, we don't support enrollment for products that are inactive or that have a future date set as the effective date.
Method: enrollMembers
How It Works
-
The service first queries for Group Census Members either a) via all members for a given
censusIdor b) via only those members specified in thecensusMembersIdslist. -
It then searches for pre-enrolled plans linked to each member by the Group Census Member Plan (
GroupCensusMemberPlan__c). -
The plans products for each member are returned.
-
If the product is part of the contract, then a policy record (Insurance Policy or Asset) is created. The type of policy that gets created, depends on the
isFscparameter, and the custom setting fordefaultIsFSCOptionas is described in this table.Custom Settings > Insurance Configuration Setup>defaultIsFSCOption
IsFsc Parameter
Policies Created
True
NA
InsurancePolicy
False
True
InsurancePolicy
False
False
Asset
NA
True
InsurancePolicy
NA
False
Asset
-
You can create Person Accounts for the members in the given census. To support the Person Account flow:
This flow goes through census members.
If
accountIdis not null, the service uses accountId asPolicy.NameInsuredand createsInsurancePolicyParticipants’PrimaryParticipantAccountIdandRelatedParticipantAccountId.If
accountIdis null, the service usesgroupAccountIdasNameInsuredandcontactIdasInsurancePolicyParticipants’PrimaryParticipantContactIdandRelatedParticipantContactId.NoteThe Person Account is only enabled for Insurance Policy objects, not for Asset.
-
Insurance Policy or Asset is created only for primary member and not its dependent. In order to specify the dependent details in the policies:
-
For Insurance Policy: The dependent information is created in a separate object called
InsurancePolicyParticipants. A record is created for the Primary member as well. -
For Assets: Dependents who are enrolled into the Asset are maintained in the
AssetPartyRelationship__c. No record is created for Primary member inAssetPartyRelationship__c.
-
-
For coverage items:
-
Insurance Policy: Service creates Insurance Policy Coverages (
InsurancePolicyCoverages). -
Asset: Service creates Policy Coverages (
AssetCoverage__c).
-
Remote Options
Output JSON
The list of policies created by the service.
|
|
|---|---|
|
|
{
"assetIds":[
{
"assetId":"0036F00002Q4wlSQAR"
},
{
"assetId":"0036F00002Q4wlSQAQ"
}
],
"policyIds":[
"0036F00002Q4wlSQAR",
"0036F00002Q4wlSQAQ"
]
}
