edits.seer.internal.rules.IFN0246.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-edits-seer Show documentation
Show all versions of validation-edits-seer Show documentation
Java implemenation of the SEER edits.
<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 < 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