Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method Detail

Value

Visibility

Private

Method Parameter

List<EnrollmentSpanDto>, Account

Return Parameter

List<EnrollmentSpan>

Functionality

Retrieve the enrollment spans from the list and convert them into enrollment span entities with the help of the mapper and set the account the MMS key of the enrollment span and save the enrollment span to the repository. The corresponding premium spans are also updated by invoking the methods in the premium span helper.

Update Account Dto With Overlapping Spans

Method Detail

Value

Visibility

Private

Method Parameters

AccountDto, List<EnrollmentSpanDto> (overlapping enrollment spans)

Return Parameter

void

Functionality

In the account dto, remove the enrollment span that matches using the enrollment span code from the overlapping enrollment span list.

Once the stale enrollment spans are removed, add the overlapping enrollment span list received in the input to the account.

Update Overlapping Enrollment Spans

Method Detail

Value

Visibility

Private

Method Parameters

List<EnrollmentSpanDto> (Overlapping Enrollment Spans), LocalDate (Effective Start Date), LocalDate (Effective End Date)

Return Parameter

List<EnrollmentSpanDto>

Functionality

The objective of this method is to identify the overlapping enrollment spans and term or cancel them appropriately. It follows the below steps to achieve this objective.

  1. Get the enrollment span in which the effective date is falling in between its start date and end date.

  2. Term the enrollment span identified in step 1, the premium spans will also be termed or canceled

  3. If there are additional overlapping enrollment spans, cancel those enrollment spans. All the premium spans should be canceled.