@AccessLevel(value=EXTERNAL)
public final class Statics
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Statics()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static curam.util.type.Date |
addExtraDaysToDate(curam.creole.execution.session.Session session,
curam.util.type.Date date,
java.lang.Number noOfDays)
Returns the modified date after adding number of days to the given date.
|
static curam.util.type.Date |
addMonthsToDateAndMoveToLastDayOfMonth(curam.creole.execution.session.Session session,
curam.util.type.Date date,
java.lang.Number numMonths)
Returns a new date by adding
numMonths to the
date passed and moving the new date to month end. |
static curam.util.type.Date |
addYearsToDate(curam.creole.execution.session.Session session,
curam.util.type.Date date,
java.lang.Number yearNum)
Returns the modified date after adding number of years to the given date.
|
static curam.util.type.Date |
addYearsToDateAndSubtractDays(curam.creole.execution.session.Session session,
curam.util.type.Date date,
java.lang.Number numYear,
java.lang.Number numDays)
Returns the modified date after adding number of years to the given date
and subtracting the number of days.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
alignMonthStartAndEnd(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> t)
Align the time line passed in so end dates are shifted to month end.
|
static curam.creole.value.Timeline<java.lang.Number> |
annualAmountTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> inputTimeline,
curam.util.type.Date coverageDate)
Returns the annual amount Time line of a given amount time line
|
static curam.creole.value.Timeline<java.lang.Number> |
annualConversationfrequencyFactor(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> inputTimeline,
curam.util.type.Date coverageDate)
Returns the Time line of annual conversion factor for a given frequency
time line
|
static double |
annualConverstionFactor(curam.creole.execution.session.Session session,
java.lang.String frequencyCode)
Returns the annual conversion factor for given frequency
|
static java.lang.Boolean |
checkMonthIsSame(curam.creole.execution.session.Session session,
curam.creole.execution.RuleObject ruleObject)
Returns
true if, the income starts in the current month. |
static curam.creole.value.Timeline<java.lang.Boolean> |
combineIncomeAndApplicant(curam.creole.execution.session.Session session,
curam.util.type.Date incomeDate,
curam.creole.value.Timeline<java.lang.Boolean> appTimeline)
Creates the financial unit time line.
|
static boolean |
containsCodeTableItem(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> t,
curam.creole.value.CodeTableItem cti)
Returns true if the Time line of
CodeTableItem contains the
codeTableItem passed. |
static double |
converstionFactor(curam.creole.execution.session.Session session,
java.lang.String frequencyCode)
Returns the daily conversion factor for given frequency
|
static curam.creole.value.Timeline<java.lang.Integer> |
createAgeTimeline(curam.creole.execution.session.Session session,
curam.util.type.Date dateOfBirth)
Returns a time line of age.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
createEligibilityBasedOnApplicationDateTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> inputTimeline,
curam.util.type.Date applicationDate)
Creates the eligible time line for which the eligibility can only be till
the last day of the previous month of Application date.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
createEligibilityTimelineforYear(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> inputTimeline)
Creates a time line where if eligibility is true for a day in the current
year, the eligibility will be true for the entire year.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
createExemptionEligibilityTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> inputTimeline)
Returns the modified time line of eligibility result.
|
static curam.creole.value.Timeline<curam.creole.value.CodeTableItem> |
createFrequencyTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> inputTimeline)
The time line of
Frequency item to be modified. |
static curam.creole.value.Timeline<java.lang.Number> |
createIncomeTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> inputTimeline)
Returns a new time line of income.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
determineExtendedPeriodTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.util.List<java.lang.Object>> eligibleUnitsTimeline)
Returns timeline values based on the input eligibleUnitsTimeline
|
static curam.creole.value.Timeline<java.lang.Boolean> |
determineRetroActiveCoveragePeriod(curam.creole.execution.session.Session session,
curam.util.type.Date coverageStartDate,
curam.util.type.Date applicationDate,
java.lang.Number noOfMonths)
Deprecated.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
determineRetroActiveCoveragePeriod1(curam.creole.execution.session.Session session,
curam.util.type.Date applicationDate,
java.lang.Number noOfMonths)
Returns a boolean timeline representing the Retroactive Medicaid coverage
period.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
extendEligibleStartToFirstOfMonth(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> timeline)
Takes a boolean timeline and pushes the start date of 'true' period to the
start of the month.
|
static java.lang.String |
formatDate(curam.creole.execution.session.Session session,
curam.util.type.Date date)
Returns formatted String value for a given date.
|
static java.lang.String |
formatSummaryMessage(curam.creole.execution.session.Session session,
java.util.List<curam.creole.value.Message> unFormattedNames)
Returns the formated Race and ethnicity.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
fullMonthMedicaidBillsTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> hasMedicalBills)
Expands full medicaid time line.
|
static curam.util.type.Date |
getAdjustedCoverageStartDate(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline,
curam.util.type.Date applicationDate,
curam.creole.value.CodeTableItem program)
Returns coverage start date for SM and CHIP.
|
static curam.util.type.Date |
getAdjustedCoverageStartDateForAPTC(curam.creole.execution.session.Session session,
curam.util.type.Date applicationDate,
curam.creole.value.CodeTableItem program,
java.lang.Number integratedCaseID)
Returns the coverage start date for IA and SBHP.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getAdverseActionsForAPTCPrograms(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate,
java.lang.Number caseID,
java.lang.String productType,
java.lang.Number concerRoleID)
Deprecated.
Since Curam 7.0.0.0, replaced with
{@link Statics#getAdverseActionsForAPTCPrograms1(Session, Timeline, Date, Number, String, Number, Boolean)
See release note: Defect 184343
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getAdverseActionsForAPTCPrograms1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate,
java.lang.Number caseID,
java.lang.String productType,
java.lang.Number concernRoleID,
java.lang.Boolean isProgramEligibilityTimeline)
Returns eligible time line for Insurance assistance, SBHP and UQHP.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getAdverseActionsForCHIPAndSM(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate,
java.lang.Number caseID,
java.lang.String productType)
Deprecated.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getAdverseActionsForCHIPAndSM1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate,
java.lang.Number caseID,
java.lang.Number concernRoleID,
java.lang.String productType)
Deprecated.
Since Curam 7.0.0.0, replaced with
{@link Statics#getAdverseActionsForCHIPAndSM2(Session, Timeline, Date, Number, Number, String)
See release note: Defect 166133
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getAdverseActionsForCHIPAndSM2(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate,
java.lang.Number caseID,
java.lang.Number concernRoleID,
java.lang.String productType,
java.lang.Boolean isProgramEligibilityTimeline)
Returns eligible time line for Streamlined Medicaid and CHIP for a member .
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getAdverseActionsForDeemedNewBorn(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate,
java.lang.Number caseID,
java.lang.Number concernRoleID,
java.lang.String productType,
curam.creole.value.Timeline<java.lang.Boolean> isDeemedNewBornTimeline,
curam.util.type.Date concernDOB)
Deprecated.
Since Curam 6.2.0.1, replaced with
getAdverseActionsWithNewBornProcessing(Session, Timeline, Date, Number, Number, String, Timeline, Date, Date, Date)
See release note: Defect 105278 |
static curam.creole.value.Timeline<curam.creole.value.CodeTableItem> |
getAdverseActionsForSMCategories(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> alignedCategoryTimeline,
java.lang.Number integratedCaseID,
java.lang.Number concernRoleID)
Expects an aligned Timeline of
CodeTableItem of type
MEDICAIDCOVERAGETYPE . |
static curam.creole.value.Timeline<java.lang.Boolean> |
getAdverseActionsWithNewBornProcessing(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate,
java.lang.Number caseID,
java.lang.Number concernRoleID,
java.lang.String productType,
curam.creole.value.Timeline<java.lang.Boolean> isDeemedNewBornTimeline,
curam.util.type.Date concernDOB,
curam.util.type.Date applicationDate,
curam.util.type.Date applicantAppDate)
Deprecated.
Since Curam 7.0.0.0, replaced with
getAdverseActionsWithNewBornProcessing1(Session, Timeline, Date, Number, Number, String, Timeline, Date, Date, Date, Boolean)
See release note: Defect 166133 |
static curam.creole.value.Timeline<java.lang.Boolean> |
getAdverseActionsWithNewBornProcessing1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate,
java.lang.Number caseID,
java.lang.Number concernRoleID,
java.lang.String productType,
curam.creole.value.Timeline<java.lang.Boolean> isDeemedNewBornTimeline,
curam.util.type.Date concernDOB,
curam.util.type.Date applicationDate,
curam.util.type.Date applicantAppDate,
java.lang.Boolean isProgramEligibilityTimeline)
Deprecated.
Since Curam 7.0.5.0 as deemed newborn logic is now in rules,
the alignment logic should now be called directly in rules with
{@link Statics#getAdverseActionsForCHIPAndSM2(Session, Timeline, Date,
Number, Number, String, Boolean)
|
static curam.creole.value.Timeline<java.lang.Number> |
getAmountOverlappedMonths(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> incomeTimeline,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline,
boolean useMonthlyIncomeToDetermineEligibility)
Deprecated.
|
static curam.creole.value.Timeline<java.lang.Number> |
getAmountOverlappedMonths1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> incomeTimeline,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline,
boolean useMonthlyIncomeToDetermineEligibility,
curam.util.type.Date applicationDate)
Returns the time line of amount based on frequency and month in which
income was received.
|
static curam.creole.value.Timeline<java.lang.Number> |
getAmountTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> amountTimeline)
Returns time line of amount value. if amount interval start date in mid of
the month, then split the interval date, so that first interval period end
on that month and next interval start from start of next month.
|
static curam.creole.value.Timeline<java.lang.Number> |
getAnnualAmountTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> amountTimeline,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline,
curam.util.type.Date coverageStaDate)
Deprecated.
|
static curam.creole.value.Timeline<java.lang.Number> |
getAnnualAmountTimeline1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> amountTimeline,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline,
curam.util.type.Date coverageStaDate,
java.lang.Number successionID)
Returns annual amount for a given coverage year
|
static java.util.List<curam.creole.value.Interval<java.lang.Number>> |
getAnnualFrequencyRationInterval(curam.creole.execution.session.Session session,
curam.util.type.Date coverageDate,
curam.util.type.Date startDate,
curam.util.type.Date endDate,
double frequencyRatio)
Returns the Time line of annual conversion factor for a given frequency
type based coverage start and start date.
|
static curam.util.type.Date |
getCaseStartDate(curam.creole.execution.session.Session session,
curam.creole.execution.RuleObject applicationDetails)
Gets the Application Case Start date from the Application Details evidence
rule object
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getChildAgedOutTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> memberPassesAgeCriteriaTimeline)
Deprecated.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getChildAgedOutTimeline1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> memberPassesAgeCriteriaTimeline,
curam.util.type.Date applicationDate)
Returns member passed age time line.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getCOCEligibilityCoveragePeriodForCHIPAndSM(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline)
Deprecated.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getCOCEligibilityCoveragePeriodForCHIPAndSM1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate)
Deprecated.
|
static curam.util.type.Date |
getCoverageEndDateForAPTC(curam.creole.execution.session.Session session,
curam.util.type.Date coverageStartDate,
curam.creole.value.CodeTableItem program)
Returns the coverage end date for IA and SBHP.
|
static curam.util.type.Date |
getCoverageEndDateForCHIPAndSM(curam.creole.execution.session.Session session,
curam.util.type.Date applicationDate,
curam.util.type.Date coverageStartDate)
Returns the coverage end date for CHIP AND SM.
|
static curam.util.type.Date |
getCoverageStartDate(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> cove)
Gets coverage Start date.
|
static curam.util.type.Date |
getCoverageStartDateForAPTC(curam.creole.execution.session.Session session,
curam.util.type.Date applicationDate,
curam.creole.value.CodeTableItem program)
Returns the coverage start date for IA and SBHP.
|
static curam.util.type.Date |
getCoverageStartDateForCHIPAndSM(curam.creole.execution.session.Session session,
curam.util.type.Date applicationDate,
curam.creole.value.CodeTableItem program)
Returns the coverage start date for CHIP AND SM.
|
static curam.util.type.Date |
getCoverageStartDateForCHIPIndividual(curam.creole.execution.session.Session session,
curam.util.type.Date applicationDate,
curam.util.type.Date dob)
Returns the coverage start date applicable to an individual for HCR CHIP:
|
static curam.util.type.Date |
getCoverageStartDateForSMIndividual(curam.creole.execution.session.Session session,
curam.util.type.Date applicationDate,
boolean isDeemedNewBorn,
curam.util.type.Date dob)
Returns the coverage start date applicable to an individual for Streamline
Medicaid:
|
static curam.util.type.Date |
getCurrentDate(curam.creole.execution.session.Session session)
Gets the current date
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getDeemedNewbornEligibleTimeline(curam.creole.execution.session.Session session,
curam.util.type.Date newbornDOB,
curam.creole.value.Timeline<java.lang.Boolean> newbornResidencyTimeline)
Deprecated.
Since Curam 7.0.5.0, as deemed newborn now handled in rules.
|
static curam.creole.value.Timeline<java.util.List<java.lang.Object>> |
getExtendedPeriodMembers(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.util.List<java.lang.Object>> eligibleUnitsTimeline,
boolean isSMOrChip)
Returns extended period time line.
|
static curam.creole.value.Timeline<curam.creole.value.CodeTableItem> |
getExtendedSMCategories(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> coverageCategoryTimeline,
curam.util.type.Date applicationDate,
curam.util.type.Date dateOfBirth)
Deprecated.
Since Curam 7.0.0.0, replaced with
Statics#getExtendedSMCategories2(Session, Timeline, Timeline, Date, Date)
See release note: Defect 166133 |
static curam.creole.value.Timeline<curam.creole.value.CodeTableItem> |
getExtendedSMCategories1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> coverageCategoryTimeline,
curam.creole.value.Timeline<java.lang.Boolean> applicantTimeline,
curam.util.type.Date dateOfBirth)
Expects a
Timeline of CodeTableItem of type
MEDICAIDCOVERAGETYPE . |
static curam.util.type.Date |
getFirstDayOfCurrentYear(curam.creole.execution.session.Session session)
Returns the first day of the current year.
|
static curam.creole.value.CREOLENumber |
getFirstParentDescriptorID(curam.creole.execution.session.Session session,
curam.creole.value.CREOLENumber childEvidenceDescriptorID,
java.lang.String parentEvidence)
Returns the evidence descriptor ID parent succession set.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getIsElgibleTimelineWithEffectiveDateForIASBHPAndUQHP(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline)
Deprecated.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getIsElgibleTimelineWithEffectiveDateForIASBHPAndUQHP1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline,
curam.util.type.Date adjustedCoverageStartDate)
Deprecated.
|
static curam.util.type.Date |
getLastDayOfCurrentYear(curam.creole.execution.session.Session session)
Returns the last day of the current year.
|
static java.lang.Number |
getMonthlyFrequencyFactor(java.lang.String frequencyCode)
Returns monthly frequency factor for a given frequency.
|
static java.util.List<curam.creole.value.Interval<java.lang.Number>> |
getMonthlyFrequencyRationInterval(curam.creole.execution.session.Session session,
curam.util.type.Date startDate,
curam.util.type.Date endDate,
double frequencyRatio)
Deprecated.
|
static int |
getNoOfMonthsOverlappingWithCalculationPeriod(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> incomeTimeline)
Returns the number of months in which income was received.
|
static curam.util.type.Date |
getPreviousMonthsDate(curam.creole.execution.session.Session session,
curam.util.type.Date date,
java.lang.Number prevMonth)
Returns date, pushes the given date to backward start of the month provided
|
static double |
getPreviousProratedValue(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> amountTimeline,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline,
curam.util.type.Date startDate)
Returns the pro rated monthly amount time value.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
getRAMFromStartOfTheCurrentMonth(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline)
Returns eligibility of the RETRO will start from the start of the current
month.
|
static curam.util.type.Date |
getRetroActiveCoverageEndDate(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleForRetroMedicaid)
Get Retroactive Medicaid coverage End date.
|
static curam.util.type.Date |
getRetroActiveCoverageStartDate(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleForRetroMedicaid)
Gets Retroactive Medicaid coverage Start date.
|
static curam.util.type.Date |
getStartDateOfFirstTruePeriod(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> t)
Returns the start date of the first true period or null if none.
|
static java.lang.String |
getStateOfResidence(curam.creole.execution.session.Session session)
Returns
address , returns the configured state. |
static curam.creole.value.Timeline<java.lang.Number> |
getUnBornChildTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> unBornChildTimeline)
Align the number of unborn child time-line to end of month.
|
static curam.util.type.Date |
getValueOfTimelineCurrentDate(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<curam.util.type.Date> timeline)
Returns interval value of date for current date.
|
static boolean |
hasEligibleUnitsChanged(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.util.List<curam.creole.execution.RuleObject>> eligibleUnitsTimeline) |
static java.lang.Boolean |
hasIntervalValue(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> originalTimeline,
boolean comparisonIndicator)
This method determines if a time line contains at least
one interval of the parameter comparison indicator value.
|
static java.lang.Boolean |
hasLostMECWithinCoveragePeriod(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> inputTimeline,
curam.util.type.Date applicationDate)
Deprecated.
Since Curam 7.0.0.2, replaced with
{@link Statics#hasLostMECWithinCoveragePeriod1(Session, Timeline, Date, CodeTableItem)
See release note: Defect 104607
|
static java.lang.Boolean |
hasLostMECWithinCoveragePeriod1(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> inputTimeline,
curam.util.type.Date applicationDate,
curam.creole.value.CodeTableItem productType)
Returns Boolean representation of whether MEC was lost within the coverage
period.
|
static java.util.List<curam.creole.execution.RuleObject> |
hcrGetActiveAndPendingChangesEvidenceListForCase(curam.creole.execution.session.Session session,
java.lang.Number caseID,
java.lang.String evidenceLogicalName)
Gets the RuleObject representation of the list of Active and Pending
Changes Evidence Records of a given Type for the given Case Number.
|
static java.lang.Boolean |
isCoverageEndDateZero(curam.creole.execution.session.Session session,
curam.util.type.Date coverageEndDate)
Returns
true , if the coverage end date is 0001-01-01
|
static boolean |
isDateFallOnEndOfMonth(curam.creole.execution.session.Session session,
curam.util.type.Date date)
Determine is given date is end date of a month.
|
static boolean |
isDatesOverlap(curam.util.type.Date startDate,
curam.util.type.Date endDate,
curam.util.type.Date existingStartDate,
curam.util.type.Date existingDueDate)
This is a helper method to check if overlap exists between two date ranges.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
isEligibleOnPregnantTime(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline,
curam.creole.value.Timeline<java.lang.Boolean> isInPostPartumPeriodTimeline)
Returns time line of boolean, if during pregnant time a female eligible for
medicaid and on her post pregnant period too passing medicaid.
|
static boolean |
isLeapYear(int year) |
static boolean |
isMemberEligibleOnChildDOB(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline,
curam.util.type.Date dateOfBirth)
determine whether mother was eligible on child Birth date.
|
static java.lang.Boolean |
isMemberEligibleOnMedicaidWithinCurrentReassessmentPeriod(curam.creole.execution.session.Session session,
java.lang.Number concernRoleID)
Deprecated.
Since Curam 7.0.5.0, no longer used in rules
|
static java.lang.Boolean |
isPDCGenderMale(curam.creole.execution.session.Session session,
curam.creole.execution.RuleObject pdcGender)
Checks whether the PDCGender evidence is Male.
|
static curam.creole.value.Timeline<java.lang.Boolean> |
isPregnancyEligibleForCoveragePeriod(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> inputTimeline,
curam.util.type.Date startDate,
curam.util.type.Date endDate)
Returns
true , if the any of the interval value is true, then entire
time line as true, else false. |
static java.lang.Boolean |
isPregnancyEndDateBetweenSDAndDD(curam.creole.execution.session.Session session,
curam.util.type.Date pregnancyEndDate,
java.util.List<curam.creole.execution.RuleObject> pregnancyEvidenceForClient)
Deprecated.
replaced with isPregnancyStartAndEndDateBetweenSDAndED
This method is used to check if the pregnancy end date is between the
existing start date and due date of pregnancy records.
|
static java.lang.Boolean |
isPregnancyStartAndEndDateBetweenSDAndED(curam.creole.execution.session.Session session,
curam.util.type.Date startDate,
curam.util.type.Date endDate,
java.util.List<curam.creole.execution.RuleObject> pregnancyEvidenceForClient)
This method is used to check if the end date and the start date overlaps
with existing start date and end date pregnancy records.
|
static curam.util.type.Date |
isRetroMonthAndYearSame(curam.creole.execution.session.Session session,
curam.util.type.Date applicationDate,
curam.util.type.Date incomeDate)
Returns date, if application date and income date month and year are same
returns application date else income Date.
|
static java.lang.Boolean |
isStartDateDueDateOverlap(curam.creole.execution.session.Session session,
curam.util.type.Date startDate,
curam.util.type.Date dueDate,
java.util.List<curam.creole.execution.RuleObject> pregnancyEvidenceForClient)
Deprecated.
replaced with isPregnancyStartAndEndDateBetweenSDAndED
This method is used to check if the start date and due date overlaps with
existing start date and due date pregnancy records.
|
static java.lang.Boolean |
isTrueOnDate(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> t,
curam.util.type.Date d)
Returns true if the time line is true on the date passed, false otherwise.
|
static java.lang.Boolean |
isTrueValueContainedOnBooleanTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Boolean> booleanTimeline)
This method is responsible for calculating if a boolean timeline contains
an interval with the value of true.
|
static java.lang.Boolean |
isValidSSNNumber(curam.creole.execution.session.Session session,
java.lang.String ssn)
Returns
true if, the SSN provided is of 9 digit in length and does
not contain any alphabetic Characters. |
static curam.creole.value.Timeline<java.lang.Number> |
medicaidAnnualIncomeTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> coverageStartDateCalenderAmountTimeline,
curam.creole.value.Timeline<java.lang.Number> coverageEndDateCalenderAmountTimeline,
curam.util.type.Date coverageEndDate)
Combines the annual income time line for two overlapping
calendar years.
|
static curam.creole.value.Timeline<java.lang.Number> |
monthlyAmountTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> inputTimeline)
Deprecated.
|
static curam.creole.value.Timeline<java.lang.Number> |
monthlyAmountTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> amountTimeline,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline) |
static curam.creole.value.Timeline<java.lang.Number> |
monthlyConversationfrequencyFactor(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> inputTimeline)
Deprecated.
|
static double |
monthlyconverstionFactor(java.lang.String frequencyCode)
Returns monthly conversation factor for a given income frequency.
|
static curam.creole.value.Timeline<java.lang.Number> |
monthlyProratedAmountTimeline(curam.creole.execution.session.Session session,
curam.creole.value.Timeline<java.lang.Number> amountTimeline,
curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline)
Returns time line of monthly amount value. if amount interval start date in
mid of the month, then monthly amount of this period is sum of a previous
pro rated amount of month and current project amount of a month.
|
static curam.util.type.Date |
moveToStartDayOfNextMonth(curam.util.type.Date date)
Returns date, pushes the given date to start of the next month.
|
static curam.util.type.Date |
previousMonthsDate(curam.util.type.Date date,
int prevMonth)
Returns date, pushes the given date to backward start of the month provided
|
static java.util.List<curam.dynamicevidence.sl.struct.impl.ReadEvidenceDetails> |
readIncomeEvidenceForSuccessionID(java.lang.Number successionID) |
static java.util.List<curam.core.sl.infrastructure.impl.EIEvidenceReadDtls> |
readIncomeEvidenceListForSuccessionID(java.lang.Number successionID)
Returns income evidence details for a succession ID.
|
static java.util.List<curam.creole.value.Interval<java.lang.Number>> |
recursionForDailyIncome(curam.creole.execution.session.Session session,
curam.util.type.Date startDate,
curam.util.type.Date endDate,
java.util.List<curam.creole.value.Interval<java.lang.Number>> condensedIntervals,
double frequencyRatio)
Deprecated.
|
static curam.util.type.Date |
shiftEndDateBasedonReceivedDate(curam.creole.execution.session.Session session,
curam.util.type.Date endDate)
Returns the coverage end date for CHIP AND SM applying adverse logic.
|
static curam.util.type.Date |
shiftEndDateToLastDayOfTheYear(curam.creole.execution.session.Session session,
curam.util.type.Date startDate)
Returns date, shifts the given date to the last day of the year
If the given date is null, returns last day of the current year.
|
static curam.util.type.Date |
shiftToEndDayOfMonth(curam.creole.execution.session.Session session,
curam.util.type.Date date)
Returns date, shifts the given date to the end of the month.
|
static curam.util.type.Date |
shiftToStartDayOfCurrentMonth(curam.util.type.Date date)
Returns date, pushes the given date to backward start of the given month
if, provided date is not of start date of given month.
|
static curam.util.type.Date |
shiftToStartDayOfMonth(curam.creole.execution.session.Session session,
curam.util.type.Date date)
Returns date, shifts the given date to the start of the month.
|
static curam.util.type.Date |
shiftToStartDayOfNextMonth(curam.util.type.Date date)
Returns date, pushes the given date to start of the next month if, provided
date is not of start date of given month.
|
static curam.util.type.Date |
shiftToStartDayOfNextMonth(curam.util.type.Date date,
curam.creole.execution.session.Session session,
java.lang.Boolean isSMOrChip)
Returns date, pushes the given date to start of the next month if, provided
date is not of start date of given month.
|
static curam.creole.value.Timeline<curam.creole.execution.RuleObject> |
toTimeline(curam.creole.execution.session.Session session,
java.util.List<curam.creole.execution.RuleObject> l,
java.lang.String attributeNameStartDate,
java.lang.String attributeNameEndDate)
Create a Time line of Rule Objects from the list of Rule Objects.
|
static java.lang.Boolean |
useMonthlyIncomeToDetermineEligibility(curam.creole.execution.session.Session session)
Returns
true if, the income to be considered monthly. |
@AccessLevel(value=EXTERNAL) public static curam.creole.value.Timeline<java.lang.Integer> createAgeTimeline(curam.creole.execution.session.Session session, curam.util.type.Date dateOfBirth)
session
- Session details of CER rule set.dateOfBirth
- The date of birth.@AccessLevel(value=EXTERNAL) public static int getNoOfMonthsOverlappingWithCalculationPeriod(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> incomeTimeline)
session
- Session details of CER rule set.incomeTimeline
- Time line of income.@Deprecated public static curam.creole.value.Timeline<java.lang.Number> getAmountOverlappedMonths(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> incomeTimeline, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline, boolean useMonthlyIncomeToDetermineEligibility)
session
- Session details of CER rule set.incomeTimeline
- Time line of income.frequencyTimeline
- Time line of frequency code table.useMonthlyIncomeToDetermineEligibility
- Boolean which indicates
monthly or yearly income.getAmountOverlappedMonths1(curam.creole.execution.session.Session, curam.creole.value.Timeline<java.lang.Number>, curam.creole.value.Timeline<curam.creole.value.CodeTableItem>, boolean, curam.util.type.Date)
;@AccessLevel(value=EXTERNAL) public static java.lang.Boolean useMonthlyIncomeToDetermineEligibility(curam.creole.execution.session.Session session)
true
if, the income to be considered monthly. Otherwise
false
.session
- Session details of CER rule set.true
if income to be considered monthly, false
otherwise.@AccessLevel(value=EXTERNAL) public static java.lang.Boolean checkMonthIsSame(curam.creole.execution.session.Session session, curam.creole.execution.RuleObject ruleObject)
true
if, the income starts in the current month. Otherwise
false
.session
- Session details of CER rule set.ruleObject
- An instance of the IncomeDataRuleSet#Income
type.true
if the income starts in the current month,
false
otherwise@AccessLevel(value=EXTERNAL) public static curam.util.type.Date addExtraDaysToDate(curam.creole.execution.session.Session session, curam.util.type.Date date, java.lang.Number noOfDays)
session
- Session details of CER rule set.date
- The date to be modified.noOfDays
- Number of days to be used for the date modification.@AccessLevel(value=EXTERNAL) public static curam.util.type.Date addYearsToDate(curam.creole.execution.session.Session session, curam.util.type.Date date, java.lang.Number yearNum)
session
- Session details of CER rule set.date
- The date to be modified.yearNum
- Number of years to be used for the date modification.@AccessLevel(value=EXTERNAL) public static curam.creole.value.CREOLENumber getFirstParentDescriptorID(curam.creole.execution.session.Session session, curam.creole.value.CREOLENumber childEvidenceDescriptorID, java.lang.String parentEvidence) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- The CREOLE SessionchildEvidenceDescriptorID
- The Evidence descriptor ID of the child evidence whose parent need
to be found.parentEvidence
- Evidence type of the parent. This is required as an evidence can
have a parent each for many evidence types.curam.util.exception.AppException
- Generic Exception Signature.curam.util.exception.InformationalException
- Generic Exception Signature.public static curam.util.type.Date shiftToStartDayOfNextMonth(curam.util.type.Date date)
date
- The date which need to be pushed.public static curam.creole.value.Timeline<java.lang.Number> createIncomeTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> inputTimeline)
session
- The CREOLE Session.inputTimeline
- The income time line.public static curam.creole.value.Timeline<curam.creole.value.CodeTableItem> createFrequencyTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> inputTimeline)
Frequency
item to be modified. The new time line
holds the interval start date as beginning of the month.session
- The CREOLE Session.inputTimeline
- The time line of Frequency
item to be modified.Frequency
item.public static curam.util.type.Date getValueOfTimelineCurrentDate(curam.creole.execution.session.Session session, curam.creole.value.Timeline<curam.util.type.Date> timeline) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- The CREOLE Sessiontimeline
- The input time linecuram.util.exception.AppException
- Generic Exception Signature.curam.util.exception.InformationalException
- Generic Exception Signature.public static curam.creole.value.Timeline<java.lang.Boolean> createExemptionEligibilityTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> inputTimeline)
session
- The CREOLE Session.inputTimeline
- The time line of eligibility result to be modified.public static curam.util.type.Date shiftToStartDayOfCurrentMonth(curam.util.type.Date date)
date
- Date.public static curam.util.type.Date shiftToEndDayOfMonth(curam.creole.execution.session.Session session, curam.util.type.Date date)
If the given date is null, returns null object.
date
- Date.session
- The CREOLE Sessionpublic static curam.util.type.Date shiftToStartDayOfMonth(curam.creole.execution.session.Session session, curam.util.type.Date date)
If the given date is null, returns null object.
date
- Date.session
- The CREOLE Sessionpublic static curam.creole.value.Timeline<java.lang.Boolean> createEligibilityTimelineforYear(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> inputTimeline) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- The CREOLE SessioninputTimeline
- The input time line of boolean.curam.util.exception.AppException
- Generic Exception Signature.curam.util.exception.InformationalException
- Generic Exception Signature.public static curam.util.type.Date getLastDayOfCurrentYear(curam.creole.execution.session.Session session) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- The CER Session.curam.util.exception.AppException
- Generic Exception Signature.curam.util.exception.InformationalException
- Generic Exception Signature.public static curam.creole.value.Timeline<java.lang.Boolean> createEligibilityBasedOnApplicationDateTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> inputTimeline, curam.util.type.Date applicationDate)
session
- The CREOLE Session.inputTimeline
- The time line of boolean.applicationDate
- A application date.public static curam.util.type.Date getFirstDayOfCurrentYear(curam.creole.execution.session.Session session) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- The CER Session.curam.util.exception.AppException
- Generic Exception Signature.curam.util.exception.InformationalException
- Generic Exception Signature.public static java.lang.Boolean isValidSSNNumber(curam.creole.execution.session.Session session, java.lang.String ssn)
true
if, the SSN provided is of 9 digit in length and does
not contain any alphabetic Characters.
Otherwise false
.session
- The CER Session.SSN
- Social Security Number.true
if, the SSN provided is of 9 digit in length and does
not contain any alphabetic Characters. false
otherwisepublic static java.lang.String formatDate(curam.creole.execution.session.Session session, curam.util.type.Date date) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- CER Sessiondate
- Unformatted Datecuram.util.exception.AppException
curam.util.exception.InformationalException
public static curam.util.type.Date getCoverageStartDateForAPTC(curam.creole.execution.session.Session session, curam.util.type.Date applicationDate, curam.creole.value.CodeTableItem program)
The coverage start date is retrieved from the active
OpenEnrollmentPeriod
, which overlaps with the application date. If
the coverage start date is between HealthCareDateUtility()
.getOpenEnrollmentStartDay and 31 the month will be pushed to the next to
next month otherwise pushed to next month.
session
- Session details of CER rule set.applicationDate
- The date in which application was submitted.public static curam.util.type.Date getCoverageEndDateForAPTC(curam.creole.execution.session.Session session, curam.util.type.Date coverageStartDate, curam.creole.value.CodeTableItem program)
End year of the coverage start date.
session
- Session details of CER rule setcoverageStartDate
- The coverage start datepublic static curam.util.type.Date getCoverageStartDateForCHIPAndSM(curam.creole.execution.session.Session session, curam.util.type.Date applicationDate, curam.creole.value.CodeTableItem program)
The coverage start date is retrieved from the active
OpenEnrollmentPeriod
, which overlaps with the application date. If
the coverage start date is between 15 and 31 the month will be pushed to
the next to next month otherwise pushed to next month.
session
- Session details of CER rule set.applicationDate
- The date in which application was submitted.program
- CHIP or SM PRODUCTTYPEpublic static curam.util.type.Date getCoverageStartDateForSMIndividual(curam.creole.execution.session.Session session, curam.util.type.Date applicationDate, boolean isDeemedNewBorn, curam.util.type.Date dob)
session
- SessionapplicationDate
- Date of applicationisDeemedNewBorn
- Boolean true if satisfying deemed newborn
eligibilitydob
- Date of Birthpublic static curam.util.type.Date getCoverageStartDateForCHIPIndividual(curam.creole.execution.session.Session session, curam.util.type.Date applicationDate, curam.util.type.Date dob)
session
- SessionapplicationDate
- Date of applicationdob
- Date of Birthpublic static curam.util.type.Date getCoverageEndDateForCHIPAndSM(curam.creole.execution.session.Session session, curam.util.type.Date applicationDate, curam.util.type.Date coverageStartDate)
The coverage end date is added 12 months from coverage start date.
session
- Session details of CER rule set.applicationDate
- The date in which application was submitted.public static curam.creole.value.Timeline<java.lang.Boolean> isPregnancyEligibleForCoveragePeriod(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> inputTimeline, curam.util.type.Date startDate, curam.util.type.Date endDate)
true
, if the any of the interval value is true, then entire
time line as true, else false.
session
- The CREOLE SessioninputTimeline
- Time line of booleanstartDate
- The start dateendDate
- The end datetrue
, if the actual due date is after the coverage start
date.public static curam.util.type.Date previousMonthsDate(curam.util.type.Date date, int prevMonth)
date
- DateprevMonth
- The previous month@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> determineRetroActiveCoveragePeriod(curam.creole.execution.session.Session session, curam.util.type.Date coverageStartDate, curam.util.type.Date applicationDate, java.lang.Number noOfMonths)
session
- Session details of CER rule set.determineRetroActiveCoveragePeriod1(Session, Date, Number)
public static curam.creole.value.Timeline<java.lang.Boolean> determineRetroActiveCoveragePeriod1(curam.creole.execution.session.Session session, curam.util.type.Date applicationDate, java.lang.Number noOfMonths)
session
- Session details of CER rule set.applicationDate
- Date of applicationnoOfMonths
- number of months to extend timeline bypublic static curam.creole.value.Timeline<java.lang.Boolean> fullMonthMedicaidBillsTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> hasMedicalBills)
session
- CER sessionhasMedicalBills
- Indicates if the client has medical billspublic static curam.util.type.Date getRetroActiveCoverageStartDate(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleForRetroMedicaid)
session
- CER sessioneligibleForRetroMedicaid
- A time line of booleans indicating
eligibility for retro medicaidpublic static curam.util.type.Date getRetroActiveCoverageEndDate(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleForRetroMedicaid)
session
- CER sessioneligibleForRetroMedicaid
- A time line of booleans indicating
eligibility for retro medicaid@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getCOCEligibilityCoveragePeriodForCHIPAndSM(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline)
session
- CREOLE session.eligibleTimeline
- The time line of eligibility result to be modified.getCOCEligibilityCoveragePeriodForCHIPAndSM1(curam.creole.execution.session.Session, curam.creole.value.Timeline<java.lang.Boolean>, curam.util.type.Date)
public static curam.util.type.Date shiftEndDateBasedonReceivedDate(curam.creole.execution.session.Session session, curam.util.type.Date endDate)
Will result in one of the following:
#isWithin(Date)
returns true
on being passed endDate
: last day of the month following
endDate
is returned e.g. endDate
is 5/2/2015 will
return 6/30/2015.endDate
month e.g.
endDate is 5/2/2015 will return 5/31/2015
session
- Session details of CER rule set.endDate
- The date in which the coverage ended.@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getIsElgibleTimelineWithEffectiveDateForIASBHPAndUQHP(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline)
session
- CREOLE session.isEligibleTimeline
- The time line of eligibility result to be modified.getIsElgibleTimelineWithEffectiveDateForIASBHPAndUQHP1(curam.creole.execution.session.Session, curam.creole.value.Timeline<java.lang.Boolean>, curam.util.type.Date)
@Deprecated public static java.lang.Boolean hasLostMECWithinCoveragePeriod(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> inputTimeline, curam.util.type.Date applicationDate)
session
- The CREOLE Session.inputTimeline
- The time line of eligibility result to be modified.public static java.lang.Boolean hasLostMECWithinCoveragePeriod1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> inputTimeline, curam.util.type.Date applicationDate, curam.creole.value.CodeTableItem productType)
session
- - The CREOLE Session Object.inputTimeline
- - The MEC Eligibility Timeline.applicationDate
- - Date of Application.productType
- - Product Type.public static curam.creole.value.Timeline<java.lang.Number> getAmountOverlappedMonths1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> incomeTimeline, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline, boolean useMonthlyIncomeToDetermineEligibility, curam.util.type.Date applicationDate)
session
- Session details of CER rule set.incomeTimeline
- Time line of income.frequencyTimeline
- Time line of frequency code table.applicationDate
- Application Date.useMonthlyIncomeToDetermineEligibility
- Boolean which indicates monthly or yearly income.public static curam.creole.value.Timeline<java.lang.Number> annualConversationfrequencyFactor(curam.creole.execution.session.Session session, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> inputTimeline, curam.util.type.Date coverageDate)
session
- CREOLE SessioninputTimeline
- Frequency time linecoverageDate
- The coverage datepublic static java.util.List<curam.creole.value.Interval<java.lang.Number>> getAnnualFrequencyRationInterval(curam.creole.execution.session.Session session, curam.util.type.Date coverageDate, curam.util.type.Date startDate, curam.util.type.Date endDate, double frequencyRatio)
session
- CREOLE SessioncoverageDate
- startDate
- endDate
- frequencyRatio
- public static curam.creole.value.Timeline<java.lang.Number> annualAmountTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> inputTimeline, curam.util.type.Date coverageDate)
session
- CREOLE SessioninputTimeline
- Amount time linecoverageDate
- The coverage date@Deprecated public static curam.creole.value.Timeline<java.lang.Number> monthlyConversationfrequencyFactor(curam.creole.execution.session.Session session, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> inputTimeline)
session
- CREOLE SessioninputTimeline
- Frequency time line@Deprecated public static java.util.List<curam.creole.value.Interval<java.lang.Number>> recursionForDailyIncome(curam.creole.execution.session.Session session, curam.util.type.Date startDate, curam.util.type.Date endDate, java.util.List<curam.creole.value.Interval<java.lang.Number>> condensedIntervals, double frequencyRatio)
session
- CREOLE SessionstartDate
- The start dateendDate
- The end datecondensedIntervals
- An interval of numbersfrequencyRatio
- The frequency ratiopublic static curam.creole.value.Timeline<java.lang.Number> getAmountTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> amountTimeline)
session
- CREOLE SessionamountTimeline
- Amount time linepublic static curam.creole.value.Timeline<java.lang.Number> monthlyProratedAmountTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> amountTimeline, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline)
session
- CREOLE SessionamountTimeline
- Amount time linefrequencyTimeline
- Frequency time linepublic static double getPreviousProratedValue(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> amountTimeline, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline, curam.util.type.Date startDate)
session
- CREOLE SessionamountTimeline
- Amount time linefrequencyTimeline
- Frequency time linestartDate
- The start datepublic static java.lang.Number getMonthlyFrequencyFactor(java.lang.String frequencyCode)
frequencyCode
- public static boolean isDateFallOnEndOfMonth(curam.creole.execution.session.Session session, curam.util.type.Date date)
session
- CREOLE Sessiondate
- Test date@Deprecated public static java.util.List<curam.creole.value.Interval<java.lang.Number>> getMonthlyFrequencyRationInterval(curam.creole.execution.session.Session session, curam.util.type.Date startDate, curam.util.type.Date endDate, double frequencyRatio)
session
- CREOLE SessionstartDate
- The start dateendDate
- The end datefrequencyRatio
- The frequency ratio
This method has been depreciated and it is no more used.@Deprecated public static curam.creole.value.Timeline<java.lang.Number> monthlyAmountTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> inputTimeline)
session
- CREOLE SessioninputTimeline
- Amount time linepublic static curam.util.type.Date getCoverageStartDate(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> cove)
session
- CER sessioncove
- A boolean time line representing the coveragepublic static curam.util.type.Date moveToStartDayOfNextMonth(curam.util.type.Date date)
date
- The date which need to be pushed.public static double annualConverstionFactor(curam.creole.execution.session.Session session, java.lang.String frequencyCode)
session
- CREOLE SessionfrequencyCode
- The frequency codepublic static double converstionFactor(curam.creole.execution.session.Session session, java.lang.String frequencyCode)
session
- CREOLE SessionfrequencyCode
- The frequency codepublic static boolean isLeapYear(int year)
public static java.lang.Boolean isCoverageEndDateZero(curam.creole.execution.session.Session session, curam.util.type.Date coverageEndDate)
true
, if the coverage end date is 0001-01-01
session
- The CREOLE SessioncoverageEndDate
- Date.true
, if the coverage end date is 0001-01-01@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getCOCEligibilityCoveragePeriodForCHIPAndSM1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline, curam.util.type.Date adjustedCoverageStartDate)
session
- CREOLE session.eligibleTimeline
- The time line of eligibility result to be modified.adjustedCoverageStartDate
- Adjusted coverage start date@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getIsElgibleTimelineWithEffectiveDateForIASBHPAndUQHP1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline, curam.util.type.Date adjustedCoverageStartDate)
session
- CREOLE session.isEligibleTimeline
- The eligible time line
The time line of eligibility result to be modified.getAdverseActionsForAPTCPrograms(curam.creole.execution.session.Session, curam.creole.value.Timeline<java.lang.Boolean>, curam.util.type.Date, java.lang.Number, java.lang.String, java.lang.Number)
public static curam.util.type.Date getAdjustedCoverageStartDate(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline, curam.util.type.Date applicationDate, curam.creole.value.CodeTableItem program)
session
- CREOLE session.isEligibleTimeline
- The is eligible time lineapplicationDate
- Application Date. The time line of eligibility
result to be modified.public static curam.creole.value.Timeline<java.util.List<java.lang.Object>> getExtendedPeriodMembers(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.util.List<java.lang.Object>> eligibleUnitsTimeline, boolean isSMOrChip)
session
- CREOLE session.eligibleUnitsTimeline
- Eligible units time lineisSMOrChip
- Boolean to reflect Streamline Medicaid or CHIP.public static curam.util.type.Date shiftToStartDayOfNextMonth(curam.util.type.Date date, curam.creole.execution.session.Session session, java.lang.Boolean isSMOrChip)
date
- The date which need to be pushedsession
- CER sessionisSMOrChip
- Boolean to reflect Streamline Medicaid or CHIP@AccessLevel(value=EXTERNAL) public static curam.util.type.Date addYearsToDateAndSubtractDays(curam.creole.execution.session.Session session, curam.util.type.Date date, java.lang.Number numYear, java.lang.Number numDays)
session
- Session details of CER rule set.date
- The date to be modified.numYear
- Number of years to be used for the date modification.numDays
- Number of days to be used for the date modification.@AccessLevel(value=EXTERNAL) public static curam.util.type.Date addMonthsToDateAndMoveToLastDayOfMonth(curam.creole.execution.session.Session session, curam.util.type.Date date, java.lang.Number numMonths)
numMonths
to the
date
passed and moving the new date to month end. Where
null
or Date.kZeroDate
is passed then the date
will be returned unmodified.session
- Session details of CER rule set.date
- The date to be modified.numMonths
- Number of months to add.@AccessLevel(value=EXTERNAL) public static java.lang.String getStateOfResidence(curam.creole.execution.session.Session session)
address
, returns the configured state.session
- Session details of CER rule set.address
, returns the configured state.@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getAdverseActionsForCHIPAndSM(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline, curam.util.type.Date adjustedCoverageStartDate, java.lang.Number caseID, java.lang.String productType) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- CREOLE session.eligibleTimeline
- The time line of eligibility result to be modifiedadjustedCoverageStartDate
- Adjusted coverage start datecaseID
- Integrated case identifierproductType
- The product typecuram.util.exception.InformationalException
- Generic Exception Signature.curam.util.exception.AppException
- Generic Exception Signature@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getAdverseActionsForCHIPAndSM1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline, curam.util.type.Date adjustedCoverageStartDate, java.lang.Number caseID, java.lang.Number concernRoleID, java.lang.String productType) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- CREOLE session.eligibleTimeline
- The time line of eligibility result to be modifiedadjustedCoverageStartDate
- Adjusted coverage start datecaseID
- Integrated case identifierconcernRoleID
- The concern role identifierproductType
- The product typecuram.util.exception.InformationalException
- Generic Exception Signature.curam.util.exception.AppException
- Generic Exception Signaturepublic static curam.creole.value.Timeline<java.lang.Boolean> getAdverseActionsForCHIPAndSM2(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline, curam.util.type.Date adjustedCoverageStartDate, java.lang.Number caseID, java.lang.Number concernRoleID, java.lang.String productType, java.lang.Boolean isProgramEligibilityTimeline) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- CREOLE session.eligibleTimeline
- The time line of eligibility result to be modifiedadjustedCoverageStartDate
- Adjusted coverage start datecaseID
- Integrated case identifierconcernRoleID
- The concern role identifierproductType
- The product typeisProgramEligibilityTimeline
- Boolean flag indicating whether the
timeline being processed represents eligibility for the
concernRoleID
and productType
passed. Where this
is true the information may be stored in transaction scope to aid with
alignment.curam.util.exception.InformationalException
- Generic Exception Signature.curam.util.exception.AppException
- Generic Exception Signaturepublic static curam.creole.value.Timeline<curam.creole.value.CodeTableItem> getAdverseActionsForSMCategories(curam.creole.execution.session.Session session, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> alignedCategoryTimeline, java.lang.Number integratedCaseID, java.lang.Number concernRoleID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
CodeTableItem
of type
MEDICAIDCOVERAGETYPE
. The Timeline
is adjusted to take account of adverse rules when moving between
categories. Where a change in category is deemed to provide less beneficial
coverage (an adverse move), then the more beneficial category that precedes
it may be extended, see
#adjustTimelineForAdverseActions(Timeline, long, long)
for implementation details.alignedCategoryTimeline
- Timeline
of CodeTableItem
representing the aligned MEDICAIDCOVERAGETYPE
for
an applicant.integratedCaseID
- Long ID of Integrated Case.concernRoleID
- Long ID of concern for whom the coverage category
Timeline belongs.Timeline
of of CodeTable
representing the MEDICAIDCOVERAGETYPE
for an
applicant adjusted to take account of Adverse rules.curam.util.exception.AppException
- Generic Exception Signaturecuram.util.exception.InformationalException
- Generic Exception Signature@Deprecated public static curam.creole.value.Timeline<curam.creole.value.CodeTableItem> getExtendedSMCategories(curam.creole.execution.session.Session session, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> coverageCategoryTimeline, curam.util.type.Date applicationDate, curam.util.type.Date dateOfBirth) throws curam.util.exception.AppException, curam.util.exception.InformationalException
Statics#getExtendedSMCategories2(Session, Timeline, Timeline, Date, Date)
See release note: Defect 166133Timeline
of CodeTableItem
of type
MEDICAIDCOVERAGETYPE
. The Timeline
is adjusted to extend Categories to prevent mid-month breaks. For the
strategy used see
#adjustTimelineForCategoryExtension(Timeline, Date, Date)
Creates a timeline of the application date.coverageCategoryTimeline
- Timeline
of CodeTableItem
of type MEDICAIDCOVERAGETYPE
.applicationDate
- Date
of application.dateOfBirth
- Date
Concern's date of birth.Timeline
of CodeTableItem
of type
MEDICAIDCOVERAGETYPE
.curam.util.exception.AppException
- Generic Exception Signaturecuram.util.exception.InformationalException
- Generic Exception Signaturepublic static curam.creole.value.Timeline<curam.creole.value.CodeTableItem> getExtendedSMCategories1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> coverageCategoryTimeline, curam.creole.value.Timeline<java.lang.Boolean> applicantTimeline, curam.util.type.Date dateOfBirth) throws curam.util.exception.AppException, curam.util.exception.InformationalException
Timeline
of CodeTableItem
of type
MEDICAIDCOVERAGETYPE
. The Timeline
is adjusted to extend Categories to prevent mid-month breaks. For the
strategy used see
#adjustTimelineForCategoryExtension(Timeline, Timeline, Date)
A time line of applicant periods is also passed used to determine multiple
application periods categories correctlycoverageCategoryTimeline
- Timeline
of CodeTableItem
of type MEDICAIDCOVERAGETYPE
.applicantTimeline
- Timeline
of application recordsdateOfBirth
- Date
Concern's date of birth.Timeline
of CodeTableItem
of type
MEDICAIDCOVERAGETYPE
.curam.util.exception.AppException
- Generic Exception Signaturecuram.util.exception.InformationalException
- Generic Exception Signature@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getAdverseActionsForDeemedNewBorn(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline, curam.util.type.Date adjustedCoverageStartDate, java.lang.Number caseID, java.lang.Number concernRoleID, java.lang.String productType, curam.creole.value.Timeline<java.lang.Boolean> isDeemedNewBornTimeline, curam.util.type.Date concernDOB) throws curam.util.exception.AppException, curam.util.exception.InformationalException
getAdverseActionsWithNewBornProcessing(Session, Timeline, Date, Number, Number, String, Timeline, Date, Date, Date)
See release note: Defect 105278session
- CREOLE session.eligibleTimeline
- The time line of eligibility result to be modifiedadjustedCoverageStartDate
- Adjusted coverage start datecaseID
- Integrated case identifierconcernRoleID
- The concern role identifierproductType
- The product typeisDeemedNewBornTimeline
- Time line for the Deemed NewbornconcernDOB
- Date of Birth of the concern participantcuram.util.exception.InformationalException
- Generic Exception Signature.curam.util.exception.AppException
- Generic Exception Signature@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getAdverseActionsWithNewBornProcessing(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline, curam.util.type.Date adjustedCoverageStartDate, java.lang.Number caseID, java.lang.Number concernRoleID, java.lang.String productType, curam.creole.value.Timeline<java.lang.Boolean> isDeemedNewBornTimeline, curam.util.type.Date concernDOB, curam.util.type.Date applicationDate, curam.util.type.Date applicantAppDate) throws curam.util.exception.AppException, curam.util.exception.InformationalException
getAdverseActionsWithNewBornProcessing1(Session, Timeline, Date, Number, Number, String, Timeline, Date, Date, Date, Boolean)
See release note: Defect 166133getAdverseActionsForCHIPAndSM1(Session, Timeline, Date, Number, Number, String)
session
- CREOLE session.eligibleTimeline
- The time line of eligibility result to be modifiedadjustedCoverageStartDate
- Adjusted coverage start datecaseID
- Integrated case identifierconcernRoleID
- The concern role identifierproductType
- The product typeisDeemedNewBornTimeline
- Time line for the Deemed NewbornconcernDOB
- Date of Birth of the concern participantapplicantDate
- The child's date of applicationcuram.util.exception.InformationalException
- Generic Exception Signature.curam.util.exception.AppException
- Generic Exception Signature@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getAdverseActionsWithNewBornProcessing1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline, curam.util.type.Date adjustedCoverageStartDate, java.lang.Number caseID, java.lang.Number concernRoleID, java.lang.String productType, curam.creole.value.Timeline<java.lang.Boolean> isDeemedNewBornTimeline, curam.util.type.Date concernDOB, curam.util.type.Date applicationDate, curam.util.type.Date applicantAppDate, java.lang.Boolean isProgramEligibilityTimeline) throws curam.util.exception.AppException, curam.util.exception.InformationalException
getAdverseActionsForCHIPAndSM1(Session, Timeline, Date,
Number, Number, String)
session
- CREOLE session.eligibleTimeline
- The time line of eligibility result to be modifiedadjustedCoverageStartDate
- Adjusted coverage start datecaseID
- Integrated case identifierconcernRoleID
- The concern role identifierproductType
- The product typeisDeemedNewBornTimeline
- Time line for the Deemed NewbornconcernDOB
- Date of Birth of the concern participantapplicantDate
- The child's date of applicationisProgramEligibilityTimeline
- Boolean flag indicating whether the
timeline being processed represents eligibility for the
concernRoleID
and productType
passed. Where this
is true the information may be stored in transaction scope to aid with
alignment.curam.util.exception.InformationalException
- Generic Exception Signature.curam.util.exception.AppException
- Generic Exception Signature@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getDeemedNewbornEligibleTimeline(curam.creole.execution.session.Session session, curam.util.type.Date newbornDOB, curam.creole.value.Timeline<java.lang.Boolean> newbornResidencyTimeline)
newbornResidencyTimeline
is #FALSE_FOREVER
then #FALSE_FOREVER
is returned.session
- CREOLE session.newbornDOB
- The newborn child's date of birth.newbornResidencyTimeline
- Time line representing the newborn one year
time line overlapped with their state residence.@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getAdverseActionsForAPTCPrograms(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline, curam.util.type.Date adjustedCoverageStartDate, java.lang.Number caseID, java.lang.String productType, java.lang.Number concerRoleID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- CREOLE session.isEligibleTimeline
- The time line of eligibility result to be
modified.adjustedCoverageStartDate
- Adjusted coverage start datecaseID
- Integrated case identifierproductType
- The product typecuram.util.exception.InformationalException
- Generic Exception Signaturecuram.util.exception.AppException
- Generic Exception Signaturepublic static curam.creole.value.Timeline<java.lang.Boolean> getAdverseActionsForAPTCPrograms1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> isEligibleTimeline, curam.util.type.Date adjustedCoverageStartDate, java.lang.Number caseID, java.lang.String productType, java.lang.Number concernRoleID, java.lang.Boolean isProgramEligibilityTimeline) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- CREOLE session.isEligibleTimeline
- The time line of eligibility result to be
modified.adjustedCoverageStartDate
- Adjusted coverage start datecaseID
- Integrated case identifierproductType
- The product typeisProgramEligibilityTimeline
- Boolean flag indicating whether the
timeline being processed represents eligibility for the
concernRoleID
and productType
passed. Where this
is true the information may be stored in transaction scope to aid with
alignment.curam.util.exception.InformationalException
- Generic Exception Signaturecuram.util.exception.AppException
- Generic Exception Signature@Deprecated public static curam.creole.value.Timeline<java.lang.Boolean> getChildAgedOutTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> memberPassesAgeCriteriaTimeline)
session
- CREOLE session.memberPassesAgeCriteriaTimeline
- member passed age time linegetChildAgedOutTimeline1(curam.creole.execution.session.Session, curam.creole.value.Timeline<java.lang.Boolean>, curam.util.type.Date)
public static curam.creole.value.Timeline<java.lang.Boolean> getChildAgedOutTimeline1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> memberPassesAgeCriteriaTimeline, curam.util.type.Date applicationDate)
session
- CREOLE session.memberPassesAgeCriteriaTimeline
- member passed age time lineapplicationDate
- The date in which application was submitted.public static curam.creole.value.Timeline<java.lang.Boolean> isEligibleOnPregnantTime(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline, curam.creole.value.Timeline<java.lang.Boolean> isInPostPartumPeriodTimeline) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- CREOLE sessioneligibleTimeline
- member passed pregnant time lineisInPostPartumPeriodTimeline
- Member post pregnant period time linecuram.util.exception.AppException
- Generic Exception Signaturecuram.util.exception.InformationalException
- Generic Exception Signaturepublic static curam.util.type.Date getPreviousMonthsDate(curam.creole.execution.session.Session session, curam.util.type.Date date, java.lang.Number prevMonth)
session
- CER sessiondate
- DateprevMonth
- The previous monthpublic static curam.creole.value.Timeline<java.lang.Number> getUnBornChildTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> unBornChildTimeline)
session
- CREOLE session.unBornChildTimeline
- unborn child time-linepublic static boolean isMemberEligibleOnChildDOB(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline, curam.util.type.Date dateOfBirth)
session
- CER sessioneligibleTimeline
- Eligible time linedateOfBirth
- Date of birthpublic static curam.creole.value.Timeline<java.lang.Number> monthlyAmountTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> amountTimeline, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline)
public static double monthlyconverstionFactor(java.lang.String frequencyCode)
frequencyCode
- Frequency of given a income@Deprecated public static curam.creole.value.Timeline<java.lang.Number> getAnnualAmountTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> amountTimeline, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline, curam.util.type.Date coverageStaDate)
amountTimeline
- Income amountfrequencyTimeline
- Frequency of given a incomecoverageStaDate
- coverage start date.getAnnualAmountTimeline1(curam.creole.execution.session.Session, curam.creole.value.Timeline<java.lang.Number>, curam.creole.value.Timeline<curam.creole.value.CodeTableItem>, curam.util.type.Date, java.lang.Number)
;public static curam.creole.value.Timeline<java.lang.Number> getAnnualAmountTimeline1(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> amountTimeline, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> frequencyTimeline, curam.util.type.Date coverageStaDate, java.lang.Number successionID)
amountTimeline
- Income amountfrequencyTimeline
- Frequency of given a incomecoverageStaDate
- coverage start date.public static java.util.List<curam.dynamicevidence.sl.struct.impl.ReadEvidenceDetails> readIncomeEvidenceForSuccessionID(java.lang.Number successionID)
public static boolean hasEligibleUnitsChanged(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.util.List<curam.creole.execution.RuleObject>> eligibleUnitsTimeline)
public static java.util.List<curam.core.sl.infrastructure.impl.EIEvidenceReadDtls> readIncomeEvidenceListForSuccessionID(java.lang.Number successionID)
successionID
- succession IDpublic static curam.creole.value.Timeline<java.lang.Boolean> determineExtendedPeriodTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.util.List<java.lang.Object>> eligibleUnitsTimeline)
public static java.lang.String formatSummaryMessage(curam.creole.execution.session.Session session, java.util.List<curam.creole.value.Message> unFormattedNames)
session
- The CER session.unFormattedNames
- Holds the list of race and ethnicitypublic static java.lang.Boolean isPDCGenderMale(curam.creole.execution.session.Session session, curam.creole.execution.RuleObject pdcGender)
session
- pdcGender
- - Timeline of CodeTable Gender@Deprecated public static java.lang.Boolean isStartDateDueDateOverlap(curam.creole.execution.session.Session session, curam.util.type.Date startDate, curam.util.type.Date dueDate, java.util.List<curam.creole.execution.RuleObject> pregnancyEvidenceForClient)
session
- - The CER session.startDate
- - The input start date.dueDate
- - The input due date.pregnancyEvidenceForClient
- - List of Pregnancy recordspublic static boolean isDatesOverlap(curam.util.type.Date startDate, curam.util.type.Date endDate, curam.util.type.Date existingStartDate, curam.util.type.Date existingDueDate)
startDate
- - input start date.endDate
- - input end date. This is the due or end date of the
pregnancyexistingStartDate
- - start date to be compared.existingDueDate
- - due date to be compared.@Deprecated public static java.lang.Boolean isPregnancyEndDateBetweenSDAndDD(curam.creole.execution.session.Session session, curam.util.type.Date pregnancyEndDate, java.util.List<curam.creole.execution.RuleObject> pregnancyEvidenceForClient)
session
- - The CER session.pregnancyEndDate
- - input pregnancy end date.pregnancyEvidenceForClient
- - list of pregnancy records.public static java.lang.Boolean isPregnancyStartAndEndDateBetweenSDAndED(curam.creole.execution.session.Session session, curam.util.type.Date startDate, curam.util.type.Date endDate, java.util.List<curam.creole.execution.RuleObject> pregnancyEvidenceForClient)
session
- - The CER session.startDate
- - The input start date.endDate
- - The input end date. *pregnancyEvidenceForClient
- - List of Pregnancy recordspublic static curam.util.type.Date getCurrentDate(curam.creole.execution.session.Session session)
session
- Date.getCurrentDate
public static curam.util.type.Date getCaseStartDate(curam.creole.execution.session.Session session, curam.creole.execution.RuleObject applicationDetails) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- Date.getCurrentDate
curam.util.exception.AppException
curam.util.exception.InformationalException
public static curam.creole.value.Timeline<java.lang.Number> medicaidAnnualIncomeTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Number> coverageStartDateCalenderAmountTimeline, curam.creole.value.Timeline<java.lang.Number> coverageEndDateCalenderAmountTimeline, curam.util.type.Date coverageEndDate) throws curam.util.exception.AppException, curam.util.exception.InformationalException
session
- coverageStartDateCalenderAmountTimeline
- Annual Income time line for the calendar year in which the coverage starts.coverageEndDateCalenderAmountTimeline
- Annual Income time line for the calendar year in which the coverage ends.curam.util.exception.AppException
curam.util.exception.InformationalException
public static curam.util.type.Date getAdjustedCoverageStartDateForAPTC(curam.creole.execution.session.Session session, curam.util.type.Date applicationDate, curam.creole.value.CodeTableItem program, java.lang.Number integratedCaseID) throws curam.util.exception.AppException, curam.util.exception.InformationalException
The coverage start date is retrieved from the active
OpenEnrollmentPeriod
, which overlaps with the application date. If
the coverage start date is between HealthCareDateUtility()
.getOpenEnrollmentStartDay and 31 the month will be pushed to the next to
next month otherwise pushed to next month.
session
- Session details of CER rule set.intergatedCaseID
- Integrated Case details.applicationDate
- The date in which application was submitted.curam.util.exception.AppException
curam.util.exception.InformationalException
public static curam.creole.value.Timeline<java.lang.Boolean> getRAMFromStartOfTheCurrentMonth(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> eligibleTimeline)
session
- CREOLE session.eligibleTimeline
- The time line of eligibility result to be modified.public static curam.util.type.Date isRetroMonthAndYearSame(curam.creole.execution.session.Session session, curam.util.type.Date applicationDate, curam.util.type.Date incomeDate)
session
- CREOLE session.applicationDate
- application date.public static curam.creole.value.Timeline<java.lang.Boolean> combineIncomeAndApplicant(curam.creole.execution.session.Session session, curam.util.type.Date incomeDate, curam.creole.value.Timeline<java.lang.Boolean> appTimeline)
session
- - CREOLE session.income
- Date - the income start date
application date.public static curam.util.type.Date shiftEndDateToLastDayOfTheYear(curam.creole.execution.session.Session session, curam.util.type.Date startDate)
If the given date is null, returns last day of the current year.
startDate
- Date.session
- The CREOLE Sessionpublic static curam.creole.value.Timeline<java.lang.Boolean> extendEligibleStartToFirstOfMonth(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> timeline)
session
- CREOLE session.timeline
- The time line to be modifiedcuram.util.exception.InformationalException
- Generic Exception Signature.curam.util.exception.AppException
- Generic Exception Signature@Deprecated public static java.lang.Boolean isMemberEligibleOnMedicaidWithinCurrentReassessmentPeriod(curam.creole.execution.session.Session session, java.lang.Number concernRoleID)
session
- Session.concernRoleID
- Long.public static java.lang.Boolean isTrueValueContainedOnBooleanTimeline(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> booleanTimeline)
For example;
If we have a boolean timeline whose value is forever false, we would return
false.
If we have a boolean timeline which contains an interval that has a true
value (no matter when), then we return true.
session
- CREOLE session.timeline
- Timeline of boolean values to interrogatepublic static java.lang.Boolean isTrueOnDate(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> t, curam.util.type.Date d)
session
- Sessiont
- Time line of Booleand
- Datepublic static curam.creole.value.Timeline<java.lang.Boolean> alignMonthStartAndEnd(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> t)
session
- Sessiont
- Time line of Boolean.public static boolean containsCodeTableItem(curam.creole.execution.session.Session session, curam.creole.value.Timeline<curam.creole.value.CodeTableItem> t, curam.creole.value.CodeTableItem cti)
CodeTableItem
contains the
codeTableItem
passed.session
- Sessiont
- Time line of CodeTableItem
codeTableItem
- CodeTableItem
to matchpublic static curam.util.type.Date getStartDateOfFirstTruePeriod(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> t)
session
- Sessiont
- Time line booleanpublic static java.lang.Boolean hasIntervalValue(curam.creole.execution.session.Session session, curam.creole.value.Timeline<java.lang.Boolean> originalTimeline, boolean comparisonIndicator)
session
- The CER session.originalTimeline
- A Boolean - Time line for comparison.boolean
- type
The boolean typepublic static curam.creole.value.Timeline<curam.creole.execution.RuleObject> toTimeline(curam.creole.execution.session.Session session, java.util.List<curam.creole.execution.RuleObject> l, java.lang.String attributeNameStartDate, java.lang.String attributeNameEndDate)
session
- CER Sessionl
- List of RuleObject
attributeNameStartDate
- String key to use on rule object to get start
date.attributeNameEndDate
- String key to use on rule object to get end
date.RuleObject
@AccessLevel(value=EXTERNAL) public static java.util.List<curam.creole.execution.RuleObject> hcrGetActiveAndPendingChangesEvidenceListForCase(curam.creole.execution.session.Session session, java.lang.Number caseID, java.lang.String evidenceLogicalName) throws curam.util.exception.AppException
session
- the session in which the Rule Objects needs to be createdcaseID
- Case ID of the case for which evidence records need to be
searched.evidenceLogicalName
- Logical Name of the Evidence Type whose records need to be
retrieved.curam.util.exception.AppException