You are here:
InsCensusServiceStd:getMembers
Use this service to retrieve the members of a census from the GroupCensusMember. It also retrieves the headers based on the fieldsetName.
Class: InsCensusServiceStd
Method: getMembers
The service accepts input in this format.
| censusId | fieldsetName | Offset | limit | searchKey |
|---|---|---|---|---|
| c101 | test_fieldset | cmember101 | integer | prefix |
The service uses input values to generate output that fits into your product model.
| census | lastOffSet | |
|---|---|---|
| headers | members | Id of last census member |
| List of fields | List of Members | |
How It Works
This service has two key functions:
-
Retrieves the list of
GroupCensusMemberfields and headers based on thefieldetName. The output always hasPrimaryGroupCensusMemberId,RelationshipToPrimaryMember,SourceSystemIdentifier, andPrimaryMemberSourceeven if these fields are not included in thefieldsetName. - The service uses
censusId to retrieve the list of census members from GroupCensusMemberrecords.- If the offset has value, it retrieves Primary
GroupCensusMemberrows (ordered by Id) after the offset and then retrieves all the dependents for these Primary Members. If there is a limit value, the service retrieves the Primary
GroupCensusMemberrows (ordered by Id) not greater than the specified limit. It then retrieves all the dependents for these Primary Members. The limit can't be more than 500.If
searchKeyhas value, the service retrievesGroupCensusMemberrows (ordered by Id) along with corresponding family, which havesearchKeyas a substring present in theirFirstNameorLastName.If
memberIdshas a value, it retrievesGroupCensusMemberrows (ordered by Id) whose Id is part ofmemberIdsarray. EithermemberIdsorsearchKeyhas to be provided in input.If
withPlansis set totrue, the service retrieves a list of selected plans for each member. The validContractGroupPlanIdfor each member are delimited by a semicolon and returned as a string.The information retrieved for each member is based on the fields retrieved from
GroupCensusMember.The list of members is placed into the
membersnode.
- If the offset has value, it retrieves Primary
Service Behavior
Understand how different inputs affect the service outputs.
| Input | Service Output |
|---|---|
No censusId or invalid censusId |
The service retrieves no census member. |
No fieldsetName and valid censusId |
|
Valid fieldsetName and valid censusId |
The service retrieves the list of GroupCensusMember fields present in the given field set and the list of GroupCensusMember. |
Valid limit |
The service retrieves the list of |
Valid offset |
The service retrieves the list of
|
Valid offset and valid limit |
The service retrieves the list of
|
Valid searchKey |
The service retrieves the list of |
Valid searchKey and valid limit |
The service retrieves the list of |
Valid searchKey and valid offset |
The service retrieves the list of |
Valid searchKey, valid limit and valid offset |
The service retrieves the list of
|
Remote Options
| Options | Description |
|---|---|
|
Required. Id of census whose members must be retrieved. |
|
Optional. Name of the field set to retrieve the If the value is invalid, the service returns no fields. If there is no value, the service uses the default field set to retrieve |
|
Optional. The number of census members to be retrieved. |
|
Optional. The ID of the census member after which the census members must be retrieved. |
|
A string to search for matching census member records. |
Input JSON
This service does not take an input JSON.
Output JSON
The service returns an output JSON with a list of fields, list of members, and lastOffSet value.
{
"census":{
"members":[
{
"Id":"a4C4P000000dNdbUAE",
"LastName":member1,
"FirstName":primary,
"Birthdate":"1999-08-08"
},
{
"Id":"a4C4P000000dNdcUAE",
"LastName":member1,
"FirstName":dependent,
"Birthdate":"1994-08-08"
},
{
"Id":"a4C4P000000dNdeUAE",
"LastName":member2,
"FirstName":primary,
"Birthdate":"1985-08-08"
}
],
"headers":[
{
"type":"STRING",
"label":"First Name",
"fieldId":"",
"name":"FirstName"
},
{
"type":"DATE",
"label":"Birthday",
"fieldId":"",
"name":"Birthdate"
},
{
"type":"STRING",
"label":"Last Name",
"fieldId":"",
"name":"LastName"
}
]
},
"lastOffset" : "a4C4P000000dNdeUAE"
}
