All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edits.seer.internal.rules.IFN0246.xml Maven / Gradle / Ivy

The newest version!
<rule id="IFN0246" name="Recurrence Date--1st, Date Last Contact (COC)" tag="N0246" java-path="lines.line" category="inter-field" depends="DateFollowUpEdit,RecurrenceDate1stEdit">
            <expression><![CDATA[if ((line.dateOfLastContactYear == null && line.dateOfLastContactMonth == null && line.dateOfLastContactDay == null)
            || (line.recurrenceDate1stYear == null && line.recurrenceDate1stMonth == null && line.recurrenceDate1stDay == null))
    return true

Integer recurrenceYear = Functions.asInt(line.recurrenceDate1stYear)
Integer recurrenceMonth = Functions.asInt(line.recurrenceDate1stMonth)
Integer recurrenceDay = Functions.asInt(line.recurrenceDate1stDay)
Integer dolcYear = Functions.asInt(line.dateOfLastContactYear)
Integer dolcMonth = Functions.asInt(line.dateOfLastContactMonth)
Integer dolcDay = Functions.asInt(line.dateOfLastContactDay)

return ((Integer)((Closure)Context.compareDate).call(recurrenceYear, recurrenceMonth, recurrenceDay, dolcYear, dolcMonth, dolcDay)) <= 0]]></expression>
            <message>Recurrence Date--1st must be &lt; or = Date of Last Contact</message>
            <description><![CDATA[This edit is skipped if Recurrence Date--1st or Date of Last Contact is blank.

Recurrence Date--1st must be less than or equal to Date of Last Contact.
If both years are known, but either month is blank, then only the years are compared.
If either day is blank, then only the years and months are compared.]]></description>
            <history>
                <event version="SE23-023-04" user="shearerw" date="2023-06-02" ref="69274">Edit Created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy