edits.seer.internal.rules.IF02.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="IF02" name="Type of Report Srce (AO), Date of Dx (SEER IF02)" tag="N0017" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit,DateFollowUpEdit"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfLastContactYear == null) return true if (line.typeOfReportingSource == '6') return (line.dateOfDiagnosisYear == line.dateOfLastContactYear && line.dateOfDiagnosisMonth == line.dateOfLastContactMonth && line.dateOfDiagnosisDay == line.dateOfLastContactDay) return true]]></expression> <message>Type of Report Srce, Date of Diagnosis, Date of Last Contact conflict</message> <description><![CDATA[This edit is bypassed if any of the following inter-field edit flags have been triggered: 1) Date of Diagnosis is not valid or blank. 2) Date of Last Contact is not valid or blank. The edit is skipped if Year of Diagnosis[390] or Year of Last Contact[1750] is blank. If the Type of Reporting Source[500] specifies an autopsy only case (6), the Date of Last Contact[1750] must equal the Date of Diagnosis[390].]]></description> <history> <event version="SE11-001-22" user="greend" date="2008-01-21">Edit now uses Day of Diagnosis and Day of Last Contact.</event> <event version="SE12-002-01" user="murphyr" date="2010-01-06">Edit now skipped if year of diagnosis or year of last contact is blank.</event> <event version="SE12-003-03" user="murphyr" date="2011-02-10">Updated documentation.</event> <event version="SE12-005-04" user="murphyr" date="2011-10-06" ref="66505">Removed 'Date of Last Contact[1750] must equal the Date of Diagnosis[390]' check for death certificate only cases.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>