Skip to end of banner
Go to start of banner

Enrollment Span Helper

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Methods

Save Enrollment Span

Method Details

Value

Visibility

Public

Method Parameters

AccountDto

Return Value

void

Functionality

Check if the account dto object received as input contains any enrollment span that needs to be saved. If there are enrollment spans present in the account then iterate through the list and perform the below steps for each enrollment span.

  1. Check if primary key for the enrollment span is present, if it is not present, then create the enrollment span.

  2. If the primary key is present, then its an existing enrollment span, check if the enrollment span data was updated, if it is updated then perform the below steps

    1. Set the account key in the enrollment span

    2. Update the enrollment span detail in the database

    3. Check if any new premium spans have to be created or updated, if there are any, then create or update them as necessary

  3. If the enrollment span was not updated, then check if premium spans are updated, if it is updated then save the updated premium spans.

Get Matching Enrollment Span

Method Detail

Value

Visibility

Public

Method Parameters

String (Exchange Subscriber Id), String (State Type Code)

Return Value

List<EnrollmentSpan>

Functionality

Use the enrollment span repository instance to get the enrollment spans from the repository that matches the exchange subscriber Id and the state type code.

  • No labels