edits.seer.internal.rules.IF180.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="IF180" name="Date Initial RX SEER, Ca Dir RX 2003-2017 (SEER IF180)" tag="N0896" java-path="lines.line" category="inter-field" depends="DateTherapyEdit,Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[Integer site = Functions.asInt(line.primarySite.substring(1)) Integer hist = Functions.asInt(line.histologicTypeIcdO3) if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2003' || line.dateOfDiagnosisYear > '2017' || line.registryId == '0000001565' || line.registryId == '0000001566') return true boolean isDateOfTherapyKnown = line.dateInitialRxSeerDay != null || line.dateInitialRxSeerMonth != null || line.dateInitialRxSeerYear != null if (isDateOfTherapyKnown) { if (line.rxSummSurgRadSeq == '0' && Functions.matches(line.rxSummRadiation, /^[078]$/) && Functions.matches(line.rxSummChemo, /^(00|8[25678])$/) && Functions.matches(line.rxSummHormone, /^(00|8[25678])$/) && Functions.matches(line.rxSummBrm, /^(00|8[25678])$/) && Functions.matches(line.rxSummOther, /^[078]$/) && Functions.matches(line.rxSummTransplntEndocr, /^(00|8[25678])$/) && (line.rxSummSurgPrimSite == '00' || line.rxSummSurgPrimSite == '98') && ((line.rxSummScopeRegLnSur == '0' && !(((List)Context.IF180Hist1Bypass).contains(hist) || ((List)Context.IF180CertainSites).contains(site) || (Functions.between(site, 770, 779) && ((List)Context.IF180Hist2).contains(hist)))) || (line.rxSummScopeRegLnSur == '9' && (((List)Context.IF180Hist1Bypass).contains(hist) || ((List)Context.IF180CertainSites).contains(site) || (Functions.between(site, 770, 779) && ((List)Context.IF180Hist2).contains(hist)))) || (line.rxSummScopeRegLnSur == '2' && line.dateOfDiagnosisYear >= '2012' && Functions.matches(line.regionalNodesExamined, /(^00|99$)/))) && line.rxSummSurgOthRegDis == '0') return false if ((Functions.matches(line.rxSummSurgRadSeq, /^[2-69]$/) || Functions.matches(line.rxSummRadiation, /^[1-6]$/) || Functions.matches(line.rxSummChemo, /^0[1-3]$/) || line.rxSummHormone == '01' || line.rxSummBrm == '01' || Functions.matches(line.rxSummTransplntEndocr, /^(1[012]|[234]0)$/) || Functions.matches(line.rxSummOther, /^[1236]$/) || Functions.matches(line.rxSummSurgPrimSite, /^([1-8]\d|90)$/) || (line.dateOfDiagnosisYear < '2012' && Functions.matches(line.rxSummScopeRegLnSur, /^[1-7]$/)) || (line.dateOfDiagnosisYear >= '2012' && Functions.matches(line.regionalNodesExamined, /(^0[1-9]|[1-8]\d|9[0-8]$)/) && line.rxSummScopeRegLnSur == '2') || (line.dateOfDiagnosisYear >= '2012' && Functions.matches(line.rxSummScopeRegLnSur, /(^[13-7]$)/)) || Functions.matches(line.rxSummSurgOthRegDis, /^[1-5]$/))) return true else return false } return true]]></expression> <message>Date of Init RX--SEER, Cancer-Directed Therapy 2003+ conflict</message> <description><![CDATA[This edit is skipped if one of the following is true: 1. Year of diagnosis [390] is blank. 2. Year of diagnosis [390] is less than 2003 or greater than 2017. 3. Inter-Field edit flag "Date of Initial RX--SEER is not valid." has been triggered. 4. Registry ID is 0000001565 (Illinois). 5. Registry ID is 0000001566 (Texas). The following table specifies the values for each treatment field for known to have not been performed (NO), and for known to have been performed(YES). If all treatment fields specify NO, then Date Initial RX SEER must specify no therapy performed (Date Initial RX SEER is blank). If Date of Therapy Initiated is a known date (not blank) then ALL treatment fields cannot specify NO. ========================================================================== RX Summ--Surg Prim Site NO: 00,98 YES: 10-90 ========================================================================== RX Summ--Scope Reg LN Sur NO: 9 (for sites C770-C779 and Histologic Type ICD-O-3 of 9590-9729) 9 (for Histologic Type ICD-O-3 of 9750, 9760-9764, 9800-9820, 9826, 9831-9920, 9931-9964) 9 (for sites C420, C421, C423, C424, C700-C729, C760-C768, C809) 0 for all other sites/histology combinations 2 (if diagnosed 2012 or later and Regional Nodes Examined = 00 or 99) YES: For cases diagnosed 2003-2011 1-7 For cases diagnosed 2012 and later 1, 2 (only if Regional Nodes Examined = 01-98), 3-7 ========================================================================== RX Summ--Surg Oth Reg/Dis Sites NO: 0 YES: 1-5 ========================================================================== RX Summ--Radiation NO: 0,7,8 YES: 1-6 ========================================================================== RX Summ--Surg/Rad Seq NO: 0 YES: 2-6,9 ========================================================================== RX Summ--Chemo NO: 0,82,85,86,87,88 YES: 01-03 ========================================================================== RX Summ--Hormone NO: 0,82,85,86,87,88 YES: 01 ========================================================================== RX Summ--BRM NO: 0,82,85,86,87,88 YES: 01 ========================================================================== RX Summ--Other NO: 0,7,8 YES: 1,2,3,6 ========================================================================== RX Summ--Transplant/Endocr NO: 0,82,85,86,87,88 YES: 10-12,20,30,40]]></description> <history> <event version="SE11-001-21" user="greend" date="2007-02-01">The definition of NO for RX Summ--Surg Prim Site was changed from 00 to 00,98.</event> <event version="SE11-001-22" user="greend" date="2008-01-07">This edit is skipped if Year of diagnosis [390] is equal to 9999.</event> <event version="SE11-001-22" user="greend" date="2008-01-22">Edit now uses the entire Date of Therapy [1260] (day, month, and year).</event> <event version="SE12-002-01" user="murphyr" date="2009-12-22">Date of initial Rx flag added. 0 and 9 filled dates no longer checked. Instead checks for blanks and checks the flag.</event> <event version="SE12-002-01" user="murphyr" date="2010-01-05">Fixed to make sure Date of initial Rx flag is NOT be set to 11 when therapy is performed.</event> <event version="SE12-008-01" user="murphyr" date="2012-08-10" ref="66714">Changed 'yes/no' surgery definition for Scope field for 2012+</event> <event version="SE13-009-01" user="murphyr" date="2012-12-20" ref="66776">Updated edit name.</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="smithm" date="2018-07-25" ref="67967">Added case to ignore all cases 2018+.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE18-020-05" user="kirbyk" date="2020-08-12" ref="68497">Fixed logic that checks RX Summ--Scope Reg LN Sur.</event> <event version="SE21-021-08" user="beverung" date="2021-08-09" ref="68708">Add skip condition for IL.</event> <event version="SE21-021-08" user="beverung" date="2021-08-18" ref="68709">Add skip condition for TX.</event> <event version="SE23-023-01" user="shearerw" date="2023-03-02" ref="69078">Change name and update logic to stop using date flag. Update IF180Hist1Bypass and IF180Hist2 lists.</event> <event version="SE23-023-04" user="kirbyk" date="2023-06-08" ref="69289">Fixed behavior when values are neither "YES" or "NO".</event> <event version="SE24-024-04" user="kirbyk" date="2024-04-12" ref="69326">Removed several dependencies.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy