edits.seer.internal.rules.IF61.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="IF61" name="RX Summ--Chemo, DateDX, RptSrc (SEER IF61)" tag="N0292" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.registryId == '0000001544' && (line.dateOfDiagnosisYear < '2000' || line.dateOfDiagnosisYear == null)) return true if ((line.registryId == '0000001562' && line.dateOfDiagnosisYear < '2003') || (line.registryId == '0000001565' && line.dateOfDiagnosisYear == '2003')) return true if (line.typeOfReportingSource == '6') return line.rxSummChemo == '00' if (line.typeOfReportingSource == '7') return line.rxSummChemo == '99' if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear < '1988') { if (line.registryId == '0000001529') return Functions.matches(line.rxSummChemo, /^(0[0-3]|8[78]|99)$/) return Functions.matches(line.rxSummChemo, /^(0[01]|88|99)$/) } if (Functions.between(line.dateOfDiagnosisYear, '1988', '2002')) return Functions.matches(line.rxSummChemo, /^(0[0-3]|8[78]|99)$/) /* dx year must be 2003+ */ return Functions.matches(line.rxSummChemo, /^(0[0-3]|8[25678]|99)$/)]]></expression> <message>RX Summ--Chemo and Year of Diagnosis conflict</message> <description><![CDATA[This edit is skipped under the following conditions: 1. Year of Date of Diagnosis is less than 2000 or blank and Registry ID is equal to 0000001544 (New Jersey) OR Year of Date of Diagnosis is less than 2003 and Registry ID is equal to 0000001562 (New York) OR Year of Date of Diagnosis is 2003 and Registry ID is equal to 0000001565 (Illinois). 2. Year of Date of Diagnosis is blank and Type of Reporting Source not equal 6 or 7 1. If Type of Reporting Source is 6 (autopsy only), then RX Summ--Chemo must be 00 (none). 2. If Type of Reporting Source is 7 (death certificate only), then RX Summ--Chemo must be 99 (unknown). 3. For all other values of Type of Reporting Source: A. If year of Date of Diagnosis is less than 1988 and Registry ID is not equal to 0000001529 (SEER Alaska Native Tumor), RX Summ--Chemo must be 00, 01, 88, 99. B. If year of Date of Diagnosis is equal to 1988-2002 or (Registry ID is equal to 0000001529 (SEER Alaska Native Tumor) and year of Date of Diagnosis is less than 2003), RX Summ--Chemo must be 00-03, 87, 88, 99. C. If year of Date of Diagnosis is greater than 2002, RX Summ--Chemo must be 00-03, 82, 85-88, 99.]]></description> <history> <event version="SE11-001-17" user="greend" date="2003-03-14">Edit modified to allow for two character field for RX Summ--Chemo.</event> <event version="SE11-001-17" user="greend" date="2003-09-22">Edit modified to skip cases from New Jersey diagnosed before 2000.</event> <event version="SE11-001-19" user="greend" date="2005-05-26">Edit checks for Type of Reporting Source values versus RX Summ--Chemo were added.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-04">Edit changed to not bypass edit if diagnosis year is 9 filled and Type of Reporting Source values are not 6 or 7.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-21">Added check for blank year of diagnosis is year of diagnosis > 2000.</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-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-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; no change in behavior.</event> <event version="SE21-021-09" user="beverung" date="2021-09-09" ref="68745">Edit now skipped for Illinois cases when DX Year is 2003.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>