edits.seer.internal.rules.IF75.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="IF75" name="Surgery 03-2022, Rad, Surg/Rad Seq (SEER IF75)" tag="N0429" java-path="lines.line" category="inter-field" depends="RX_Summ--Radiation,RX_Summ--Scope_Reg_LN_Sur,RX_Summ--Surg-Rad_Seq,RX_Summ--Surg_Oth_Reg-Dis,RX_Summ--Surg_Prim_Site,Regional_Nodes_Examined,Year_of_Diagnosis"> <expression><![CDATA[if (line.rxSummSurgPrimSite == null || line.rxSummScopeRegLnSur == null || line.rxSummSurgOthRegDis == null || line.dateOfDiagnosisYear > '2017') return true if (line.rxSummRadiation == null) return true if (line.registryId == '0000001565' && (line.dateOfDiagnosisYear == '2000' || line.dateOfDiagnosisYear == '2003')) return true if (line.registryId == '0000001566' && line.dateOfDiagnosisYear < '2012') return true if ((Functions.matches(line.rxSummSurgPrimSite, /^([1-8]\d|90)$/) || (line.dateOfDiagnosisYear < '2012' && Functions.matches(line.rxSummScopeRegLnSur, /^[1-7]$/)) || (line.dateOfDiagnosisYear >= '2012' && ((line.regionalNodesExamined >= '01' && line.regionalNodesExamined <= '98' && line.rxSummScopeRegLnSur == '2') || Functions.matches(line.rxSummScopeRegLnSur, /^1|[3-7]$/))) || Functions.matches(line.rxSummSurgOthRegDis, /^[1-5]$/)) && Functions.matches(line.rxSummRadiation, /^[1-6]$/)) return Functions.matches(line.rxSummSurgRadSeq, /^[2345679]$/) if (((line.rxSummSurgPrimSite == '00' || line.rxSummSurgPrimSite == '99') && ((line.dateOfDiagnosisYear < '2012' && line.rxSummScopeRegLnSur == '0') || (line.dateOfDiagnosisYear >= '2012' && ((Functions.matches(line.regionalNodesPositive, /^(00|99)$/) && line.rxSummScopeRegLnSur == '2') || line.rxSummScopeRegLnSur == '0'))) && line.rxSummSurgOthRegDis == '0') || (line.rxSummRadiation == '0' || line.rxSummRadiation == '9')) return line.rxSummSurgRadSeq == '0' return true]]></expression> <message>Surgery 2003+, RX Summ--Radiation, RX Summ--Surg/Rad Seq conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1) RX Summ--Surg Prim Site 03-2022 is blank. 2) RX Summ--scope reg LN sur[1292] is blank. 3) RX Summ--surg oth reg/dis[1294] is blank. 4) RX Summ--Radiation[1360] is blank. 5) Year of Date of Diagnosis is > 2017. 6) Registry ID is 0000001565 (Illinois) and Year of Date of Diagnosis is 2000 or 2003. 7) Registry ID is 0000001566 (Texas) and Year of Date of Diagnosis is < 2012. If surgery was performed and if radiation was given (RX Summ-Radiation = 1-6), then RX Summ-Surg/Rad Seq must specify sequence (codes 2-7, 9). Surgery is considered "performed" if ANY of the following three conditions are true: 1. RX Summ-Surg Prim Site 03-2022 = 10-90 2. RX Summ-Scope Reg LN Sur: For cases diagnosed prior to 2012: 1-7 For cases diagnosed 2012 or later: 1, 2 (only if Regional Nodes Examined = 01-98), 3-7 3. RX Summ-Surg Oth Reg/Dis = 1-5 If surgery was not performed or no radiation was given (Rx Summ-Radiation = 0 or 9), then RX Summ-Surg/Rad Seq must specify no (0). Surgery is considered "not performed" if ALL of the following three conditions are true: 1. RX Summ-Surg Prim Site 03-2022 = 00 or 99 2. RX Summ-Scope Reg LN Sur: For cases diagnosed prior to 2012: 0 For cases diagnosed 2012 or later: 0 (for all cases) 2 (only if Regional Nodes Examined = 00 or 99) 3. RX Summ-Surg Oth Reg = 0]]></description> <history> <event version="SE11-001-18" user="greend" date="2004-09-15">RX Summ--Scope Reg LN Sur[1292] range was changed from 1-8 to 1-7. RX Summ--Surg Oth Reg/Dis[1294] was changed from 1-8 to 1-5.</event> <event version="SE11-001-18" user="greend" date="2004-12-28">This edit is now skipped if any of the three surgery fields are blank.</event> <event version="SE11-001-22" user="greend" date="2008-01-07">Fixed ranges in source code to reflect documentation.</event> <event version="SE12-006-01" user="murphyr" date="2011-12-16" ref="66641">Added code 7.</event> <event version="SE12-008-01" user="murphyr" date="2012-08-10" ref="66715">Changed 'yes/no' surgery definition for scope for 2012+ cases.</event> <event version="SE13-010-01" user="murphyr" date="2013-06-28" ref="66896">Fixed issue in surgery not performed condition.</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-03" user="kirbyk" date="2018-07-23" ref="67966">Fixed inaccurate skip conditions in description.</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-10" user="beverung" date="2021-10-13" ref="68754">Added DX Year 2003 to skip condition for IL.</event> <event version="SE21-021-11" user="beverung" date="2022-01-05" ref="68772">Updated TX skip condition to skip for any year before 2012.</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-03" user="secristc" date="2022-04-26" ref="68972">Added Rx Summ-Radiation = 9 and Rx Summ-Surg Prim Site = 99 as valid values for no surg/no rad.</event> <event version="SE22-022-09" user="beverung" date="2022-06-30" ref="69014">Added skip condition for Rx Summ-Radiation = blank.</event> <event version="SE23-023-01" user="secristc" date="2023-01-27" ref="69110">Updated name and description to use RX Summ--Surg Prim Site 03-2022.</event> </history> </rule>