edits.seer.internal.rules.IF57.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="IF57" name="Reason for No Surgery, DateDX, RPTSRC (SEER IF57)" tag="N0834" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (line.registryId == '0000001544' && line.dateOfDiagnosisYear < '2000') return true if (line.registryId == '0000001562' && line.dateOfDiagnosisYear < '2003') return true if (line.registryId == '0000001565' && (line.dateOfDiagnosisYear == '2000' || line.dateOfDiagnosisYear == '2003')) return true if (line.registryId == '0000001566' && line.dateOfDiagnosisYear > '2002' && line.dateOfDiagnosisYear < '2006') return true if (line.dateOfDiagnosisYear < '1988') { if (line.typeOfReportingSource == '6') return line.reasonForNoSurgery == '2' if (line.typeOfReportingSource == '7') return line.reasonForNoSurgery == '9' if (line.registryId == '0000001529') return Functions.matches(line.reasonForNoSurgery, /^[0126-9]$/) return Functions.matches(line.reasonForNoSurgery, /^[0689]$/) } if (Functions.between(line.dateOfDiagnosisYear, '1988', '2002')) { if (line.typeOfReportingSource == '6') return line.reasonForNoSurgery == '2' if (line.typeOfReportingSource == '7') return line.reasonForNoSurgery == '9' return Functions.matches(line.reasonForNoSurgery, /^[0126-9]$/) } /* year must be 2003-2017 */ if (line.dateOfDiagnosisYear >= '2003' && line.dateOfDiagnosisYear <= '2017') { if (line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7') return line.reasonForNoSurgery == '9' return Functions.matches(line.reasonForNoSurgery, /^[0125-9]$/) } /* year must be 2018+*/ if (line.dateOfDiagnosisYear >= '2018') { if (line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7') return line.reasonForNoSurgery == '1' || line.reasonForNoSurgery == '9' return Functions.matches(line.reasonForNoSurgery, /^[0125-9]$/) } ]]></expression> <message>Reason No Surgery and Year of Diagnosis conflict</message> <description><![CDATA[This edit is skipped for the following conditions: 1. Registry ID is equal to 0000001544 (New Jersey) and Year of Date of Diagnosis is less than 2000. 2. Registry ID is equal to 0000001562 (New York) and Year of Date of Diagnosis is less than 2003. 3. Registry ID is equal to 0000001565 (Illinois) and Year of Date of Diagnosis is 2000 or 2003. 4. Registry ID is equal to 0000001566 (Texas) and Year of Date of Diagnosis is 2003-2005. 5. Year of Date of Diagnosis is blank. 1. If year of Date of Diagnosis is less than 1988 and Registry ID is not equal to 0000001529 (SEER Alaska Native Tumor): A. If Type of Reporting Source is 6 (autopsy only), then Reason for No Surgery must equal 2 B. If Type of Reporting Source is 7 (death certificate only), then Reason for No Surgery must equal 9 C. For other values of Type of Reporting Source, the Reason for No Surgery may only be 0, 6, 8, 9 2. 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 equal to 1984-2002)): A. If Type of Reporting Source is 6 (autopsy only), then Reason for No Surgery must equal 2 B. If Type of Reporting Source is 7 (death certificate only), then Reason for No Surgery must equal 9 C. For other values of Type of Reporting Source, the Reason for No Surgery may only be 0-2, 6-9 3. If year of Date of Diagnosis is equal to 2003-2017: A. If Type of Reporting Source is 6 (autopsy only) or 7 (death certificate only), then Reason for No Surgery must equal 9 B. For other values of Type of Reporting Source, the Reason for No Surgery may only be 0-2, 5-9 4. If year of Date of Diagnosis is equal to 2018+: A. If Type of Reporting Source is 6 (autopsy only) or 7 (death certificate only), then Reason for No Surgery must equal 1 or 9 B. For other values of Type of Reporting Source, the Reason for No Surgery may only be 0-2, 5-9]]></description> <history> <event version="SE11-001-07" user="greend" date="1991-09-15">Edit now verifies that if reporting source is autopsy only, Reason for No Cancer-Directed Surgery must be 0, 6, 8, or 9.</event> <event version="SE11-001-17" user="greend" date="2003-06-04">For diagnosis years 2003+ the code 5 is valid.</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 was added to the edit.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-16">9-filled year of diagnosis no longer recognized.</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-08" user="beverung" date="2021-08-18" ref="68709">Added skip condition for IL for DX Year 2003 and TX for DX Years 2003-2005.</event> <event version="SE21-021-09" user="secristm" date="2021-09-09" ref="68743">Added skip condition for IL for DX Year 2000.</event> <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68897">Update edit name to match new NAACCR translated edit.</event> <event version="SE22-022-01" user="smithm" date="2022-02-16" ref="68803">Add logic for DX Year 2018+</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy