...
Method Detail | Value |
---|---|
Visibility | Public |
Method Parameters | AccountDto, Account, Sting (Ztcn) |
Return Parameter | void |
Functionality | The main objective of this method is to retrieve the enrollment spans present in the Account entity and convert them into dto object and set them in the Account Dto object. This method also internally invokes the premium span helper to set the premium span dto in the respective enrollment span dto object. |
Update Enrollment Span
Method Detail | Value |
---|---|
Visibility | Public |
...
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | PremiumSpanDto |
Return Parameter | void |
Functionality | If the premium span start date is not equal to end date or if they are equal and the status is "ACTIVE" then,
|
Cancel Premium Spans
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | Set<PremiumSpanDto> |
Return Parameter | void |
Functionality | Iterate through each premium span and invoke cancel premium span (cancelPremiumSpan) method to cancel the premium span. |
Determine Effectuation Date
...
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameters | TransactionMemberDto (Primary Subscriber Info) |
Return Parameter | String (Exchange Subscriber Id) |
Functionality | Iterate through the identifiers list of the member to find an identifier of type "EXCHSUBID" and return the value. |
Get Overlapping Enrollment Spans
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameters | AccountDto, LocalDate (Effective Start date), LocalDate (Effective End Date), String (coverageTypeCode) |
Return Parameter | List<EnrollmentSpanDto> |
Functionality | Follow the below steps to identify the enrollment spans that will overlap with the the effective date received for the transaction.
|
Get Primary Member
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameters | TransactionDto |
Return | TransactionMemberDto |
Functionality | Iterate through the members in the transaction the retrieve the member with the relationship type code "HOH" Note: No exception handling is added if no member with relationship type code of "HOH" is not present, because such validations should have been done by rules well before the transaction is at this step. |
...
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | AccountDto, LocalDate (Start Date), boolean (match cancel span or not) |
Return Parameter | List<EnrollmentSpanDto> |
Functionality | Get all the enrollment spans that are in the account with end date that is prior to the start date of the transaction. If the match cancel span boolean is set to false then remove any canceled enrollment spans (removeCanceledSpans) from the list and then return the enrollment that has the max end date among all of the remaining enrollment spans. |
Is Delinquent
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameters | EnrollmentSpan (Current Enrollment Span), List<EnrollmentSpanDto> priorEnrollmentSpans |
Return Parameter | int |
Functionality | This method returns one of the three below values 1 - To indicate the current enrollment span should be set to delinquent -1 - To indicate that the current enrollment span should be set to suspended 0 - To indicate that the current enrollment span is not delinquent. Below is how the logic is perform the determine which of the above three should be sent. Check for below conditions
If any of the above conditions are false, then span is not delinquent return the value "0" If all of the above conditions are true, then follow the below logic.
|
...
Method Detail | Value |
---|---|
Visibility | Private |
Method Parameter | List<EnrollmentSpanDto> |
Return Parameter | List<EnrollmentSpanDto> |
Functionality | Iterate through the input list of enrollment spans and remove the enrollment spans that are canceled and return the remaining enrollment spans. |
Save Updated Enrollment Spans
...