edits.seer.internal.rules.IFN2606.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.
The newest version!
<rule id="IFN2606" name="Date of Last Cancer (tumor) Status, Recurrence Date--1st (COC)" tag="N2606" java-path="lines.line" category="inter-field"> <expression><![CDATA[ if (line.dateOfLastCancerStatusYear == null || line.recurrenceDate1stYear == null) return true Integer dolctsYear = Functions.asInt(line.dateOfLastCancerStatusYear) Integer dolctsMonth = Functions.asInt(line.dateOfLastCancerStatusMonth) Integer dolctsDay = Functions.asInt(line.dateOfLastCancerStatusDay) Integer recurYear = Functions.asInt(line.recurrenceDate1stYear) Integer recurMonth = Functions.asInt(line.recurrenceDate1stMonth) Integer recurDay = Functions.asInt(line.recurrenceDate1stDay) return ((Integer)((Closure)Context.compareDate).call(dolctsYear, dolctsMonth, dolctsDay, recurYear, recurMonth, recurDay)) >= 0 ]]></expression> <message>Date of Last Cancer (tumor) Status must be > or = Recurrence Date--1st</message> <description><![CDATA[This edit is skipped if either Date of Last Cancer Status or Recurrence Date--1st is blank or invalid. Date of Last Cancer Status must be greater than or equal to Recurrence Date--1st. 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="SE22-022-06" user="beverung" date="2022-05-26" ref="68941">Edit created.</event> </history> </rule>