edits.seer.internal.rules.IF152.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="IF152" name="Type of Reporting Source, Date of DX (SEER IF152)" tag="N0792" java-path="lines.line" category="inter-field" depends="Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[if (line.typeOfReportingSource == null || line.dateOfDiagnosisYear == null || line.registryId == '0000001562') return true if (line.dateOfDiagnosisYear < '2006') return Functions.matches(line.typeOfReportingSource, /^[13-7]$/) return Functions.matches(line.typeOfReportingSource, /^[1-8]$/)]]></expression> <message>Type of reporting source and Year of Diagnosis Conflict</message> <description><![CDATA[This edit is skipped if Type of Reporting Source[500] is blank, if Year of Diagnosis[390] is blank, or if Registry ID = 0000001562 (New York). If Year of Diagnosis[390] < 2006 and, then Type of Reporting Source[500] must be 1,3-7. If Year of Diagnosis[390] > 2005 and, then Type of Reporting Source[500] must be 1-8.]]></description> <history> <event version="SE12-002-01" user="murphyr" date="2009-12-21">Removed year of diagnosis 'is not blank' and 'is not 9999'. The edit is still skipped if year of diagnosis is blank.</event> <event version="SE16-016-08" user="depryf" date="2017-11-22" ref="67674">Edit syntax updated to allow pre-compilation optimization; no change in behavior.</event> <event version="SE18-019-01" user="kirbyk" date="2019-03-28" ref="68129">Edit is now skipped for New York cases.</event> </history> </rule>