edits.seer.internal.rules.IF19.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="IF19" name="Date of Last Contact, Date of Diag (NAACCR IF19)" tag="N0024" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit,DateFollowUpEdit"> <expression><![CDATA[if (line.dateOfLastContactYear == null || line.dateOfDiagnosisYear == null) return true if (line.dateOfLastContactYear < line.dateOfDiagnosisYear) return false if ((line.dateOfLastContactYear > line.dateOfDiagnosisYear) || line.dateOfLastContactMonth == null || line.dateOfDiagnosisMonth == null) return true if (line.dateOfLastContactMonth < line.dateOfDiagnosisMonth) return false if ((line.dateOfLastContactMonth > line.dateOfDiagnosisMonth) || line.dateOfLastContactDay == null || line.dateOfDiagnosisDay == null) return true return (line.dateOfLastContactDay >= line.dateOfDiagnosisDay)]]></expression> <message>Date of Last Contact and Date of Diagnosis conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1) Year of Last Contact[1750y] is blank. 2) Year of Diagnosis[390y] is blank. 3) Inter-Field edit flag "Date of Diagnosis is not valid." has been triggered. 4) Inter-Field edit flag "Date of Last Contact is not valid." has been triggered. Date of Last Contact[1750] must not precede Date of Diagnosis[390]. If either month is blank, then only the years are compared. If both months are known and either day blank, then only the years and months are compared. Otherwise, the entired dates are compared.]]></description> <history> <event version="SE11-001-22" user="greend" date="2008-01-21">Edit now used Day of Diagnosis and Day of Last Contact</event> <event version="SE12-002-01" user="murphyr" date="2009-12-19">Edit no longer recognizes 9-filled dates.</event> <event version="SE18-018-01" user="schadega" date="2018-04-03" ref="67739">Slight name change.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy