edits.seer.internal.rules.IF63.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="IF63" name="RX Summ--BRM, DateDX, RptSrc (SEER IF63)" tag="N0291" 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.rxSummBrm == '00' if (line.typeOfReportingSource == '7') return line.rxSummBrm == '99' if (line.dateOfDiagnosisYear == null) return true if (line.dateOfDiagnosisYear < '1988') return Functions.matches(line.rxSummBrm, /^(0[01]|88|99)$/) if (Functions.between(line.dateOfDiagnosisYear, '1988', '2002')) return Functions.matches(line.rxSummBrm, /^(0[01]|8[78]|99)$/) /* year dx must be 2003+ */ return Functions.matches(line.rxSummBrm, /^(0[01]|8[25678]|99)$/)]]></expression> <message>RX Summ--BRM 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 Diagnosis is less than 2003 and Registry ID is 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--BRM must be 00 (none). 2. If Type of Reporting Source is 7 (death certificate only), then RX Summ--BRM 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, RX Summ--BRM must be 00, 01, 88, 99. B. If year of Date of Diagnosis is equal to 1988-2002, RX Summ--BRM must be 00, 01, 87, 88, 99. C. If year of Date of Diagnosis is greater than 2002, RX Summ--BRM must be 00, 01, 82, 85-88, 99.]]></description> <history> <event version="SE11-001-13" user="greend" date="1997-07-15">Codes 2-5 were added for cases diagnosed 1996+.</event> <event version="SE11-001-14" user="greend" date="1998-01-29">Code 6 was added for 1996+.</event> <event version="SE11-001-17" user="greend" date="2003-03-14">Edit modified to allow for two character field for RX Summ--BRM.</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-25">Edit checks for Type of Reporting Source values versus RX Summ--BRM 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; removed conditions for Alaska.</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>