edits.seer.internal.rules.IF60.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="IF60" name="RX Summ--Surg/Rad Seq, DateDX, RptSrc (SEER IF60)" tag="N0304" java-path="lines.line" category="inter-field" depends="RX_Summ--Surg-Rad_Seq,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[if (line.registryId == '0000001562' && line.dateOfDiagnosisYear < '2003') return true if (line.registryId == '0000001544' && line.dateOfDiagnosisYear < '2000') return true if (line.registryId == '0000001565' && (line.dateOfDiagnosisYear == '2000' || line.dateOfDiagnosisYear == '2003')) return true if (line.registryId == '0000001566' && line.dateOfDiagnosisYear > '1999' && line.dateOfDiagnosisYear < '2012') return true if (line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7') return line.rxSummSurgRadSeq == '0' if (line.dateOfDiagnosisYear != null && line.dateOfDiagnosisYear < '1988') return Functions.matches(line.rxSummSurgRadSeq, /^[02349]$/) if ((line.dateOfDiagnosisYear > '1987' && line.dateOfDiagnosisYear < '2012')) return Functions.matches(line.rxSummSurgRadSeq, /^[0234569]$/) if (line.dateOfDiagnosisYear > '2011' && line.dateOfDiagnosisYear != null) return Functions.matches(line.rxSummSurgRadSeq, /^[02345679]$/) return true]]></expression> <message>RX Summ--Surg/Rad Seq and Year of Diagnosis conflict</message> <description><![CDATA[Edit is skipped for the following conditions: a. Registry ID = 0000001562 (New York) and Year of Diagnosis is < 2003. b. Registry ID = 0000001544 (New Jersey) and Year of Diagnosis is < 2000. c. Registry ID = 0000001565 (Illinois) and Year of Diagnosis is 2000 or 2003. d. Registry ID = 0000001566 (Texas) and Year of Diagnosis is 2000-2011. 1. If Type of Reporting Source[500] indicates an autopsy only case (6) or death certificate only case (7), RX Summ--Surg/Rad Seq[1380] must be 0. 2. For all other values of Type of Reporting Source[500]: A. If Year of Diagnosis[390] is less than 1988 and not blank, RX Summ-Surg/Rad Seq[1380] may be 0,2,3,4,9. B. If Year of Diagnsosis[390] is greater than 1987 and less than 2012, RX Summ-Surg/Rad Seq[1380] must be 0, 2-6, 9. C. If Year of Diagnosis[390] is greater than 2011 and not blank RX Summ-Surg/Rad Seq[1380] must be 0, 2-7, 9.]]></description> <history> <event version="SE11-001-19" user="greend" date="2005-05-26">Edit checks for Type of Reporting Source values versus RX Summ--Surg/Rad Seq were added.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-03">Changed to no longer recognize 9 filled year of diagnosis.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-21">Blank year of diagnosis is checked now if year of diagnosis is > 1987.</event> <event version="SE12-006-01" user="murphyr" date="2011-12-16" ref="66635">Allow code 7 for cases greater than 2011</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-018-07" user="kirbyk" date="2018-10-08" ref="68039">Removed special conditions for Alaska.</event> <event version="SE18-019-02" user="kirbyk" date="2019-05-07" ref="68179">Edit now skipped for New York cases when DX Year < 2003.</event> <event version="SE18-019-04" user="beverung" date="2019-08-30" ref="68247">Edit now skipped for New Jersey cases when DX Year < 2000.</event> <event version="SE21-021-08" user="beverung" date="2021-08-18" ref="68709">Added skip conditions for IL for DX Year 2000 and TX for DX Years 2000-2003.</event> <event version="SE21-021-09" user="secristm" date="2021-09-09" ref="68746">Added skip condition for IL for DX Year 2003.</event> <event version="SE22-022-05" user="secristc" date="2022-05-11" ref="68992">Updated skip condition for TX to DX Year 2011.</event> </history> </rule>