
edits.seer.internal.rules.IF2610DG_P9.xml Maven / Gradle / Ivy
<rule id="IF2610DG_P9" name="EOD--Reg Nodes Ex,ReNodes Pos, Site, ICDO2 (NAACCR)" tag="N0431" java-path="lines.line" category="inter-field" depends="Behavior_92-00_ICD-O-2,Coding_System_for_EOD,DateDiagnosisEdit,Histology_92-00_ICD-O-2,IF2610DG_P7,IF2610DG_P8,Primary_Site,Regional_Nodes_Examined,Regional_Nodes_Positive,Registry_ID,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[Integer site = Functions.asInt(line.primarySite.substring(1)) Integer histIcdO2 = Functions.asInt(line.histologyIcdO2) if (line.codingSystemForEod != '4' || line.dateOfDiagnosisYear < '1930' || line.dateOfDiagnosisYear > '1997' || (line.registryId == '0000001541' && line.dateOfDiagnosisYear < '1994') || (line.registryId == '0000001535' && line.dateOfDiagnosisYear < '1992') || line.typeOfReportingSource == '7') return true /* SKIP THIS EDIT IF EITHER THE NODES EXAMINED || NODES POSITIVE FIELDS ARE NOT NUMERIC. IF THEY ARE NOT NUMERIC, THEN THEY ARE CAUGHT BY ANOTHER EDIT. */ if (!(Functions.matches(line.regionalNodesPositive, /^[0-9][0-9]$/)) || !(Functions.matches(line.regionalNodesExamined, /^[0-9][0-9]$/))) return true if (line.behaviorIcdO2 == '2' && (((List)Context.IF2610DG_HIST_INSITU_POS_SPECIAL).contains(histIcdO2) || (((Map)Context.IF2610DG_HIST_SITE_POS_SPECIAL).containsKey(histIcdO2) && ((List)((Map)Context.IF2610DG_HIST_SITE_POS_SPECIAL).getOrDefault(histIcdO2, [])).contains(site)) || ((List)Context.IF2610DG_SITE_INSITU_POS_SPECIAL).contains(site))) { if (line.regionalNodesPositive == '98' && line.regionalNodesExamined != '00') return false } if (histIcdO2 != 9140 && (Functions.matches(line.primarySite, /^C(700|71\d)$/) || Functions.matches(line.primarySite, /^C(70[19]|72[0-589])$/) || Functions.matches(line.primarySite, /^C(42\d|76[0-578]|77\d|809)$/) || ((List)Context.Hematopoietic_IF2610DG).contains(histIcdO2) || ((List)Context.Lymphomas_IF2610DG).contains(histIcdO2))) return line.regionalNodesPositive == '99' && line.regionalNodesExamined == '99' if ((line.regionalNodesExamined == '00' && line.regionalNodesPositive != '98') || (line.regionalNodesExamined != '00' && line.regionalNodesPositive == '98')) return false if (line.regionalNodesExamined >= '01' && line.regionalNodesExamined <= '89' && ! (line.regionalNodesPositive == '97' || line.regionalNodesPositive == '99' || line.regionalNodesPositive <= line.regionalNodesExamined)) return false if (Functions.matches(line.regionalNodesExamined, /^9[0678]$/) && ! (Functions.matches(line.regionalNodesPositive, /^([0-8]\d|9[0-79])$/))) return false if (line.regionalNodesExamined == '99' && line.regionalNodesPositive != '99') return false if (line.regionalNodesPositive == '97') return line.regionalNodesExamined >= '02' && line.regionalNodesExamined <= '98' if (Functions.matches(line.regionalNodesPositive, /^([0-8]\d|9[0-6])$/)) return line.regionalNodesPositive <= line.regionalNodesExamined return true]]></expression> <message>Primary Site,Regional nodes positive, Regional nodes examined pre-1998 conflict</message> <description><![CDATA[This edit is skipped if: 1. EOD Coding Sys is not = 4 2. Date of Diagnosis Year is before 1930 or after 1997 3. Registry ID is 1541 (Greater California) and DX year < 1994 4. Registry ID is 1535 (Los Angeles) and DX year < 1992 5. Type of Reporting Source is DCO (7) 6. Regional Nodes Positive or Regional Nodes Examined are not numeric (00-99) For the following sites and histologies (ICD-O-2), Regional Nodes Positive and Regional Nodes Examined must both be coded '99'. 1. Hematopoietic: 9720-9989 2. Lymphomas: 9590-9698, 9702-9717 3. Brain (except for histology 9140 (Kaposi's sarcoma)): C700, C710-C719 4. Other CNS (except for histology 9140 (Kaposi's sarcoma)): C701, C709, C720-C725, C728, C729 5. Other and ill-defined (except for histology 9140 (Kaposi's sarcoma)): C760-C765, C767, C768, C809, C420-C429, C770-C779 For all other cases, Behavior (92-00) ICD-O-2 = 2 (in situ): If Regional Nodes Positive=98, Regional Nodes Examined must be 00 IF Regional Nodes Examined not = 00, Regional Nodes Positive must not be 98 For all cases, the following is checked: If Regional Nodes Examined = 00, Regional Nodes Positive must = 98 If Regional Nodes Examined not = 00, Regional Nodes Positive must not = 98 If Regional Nodes Examined is between 01 and 89, Regional Nodes Positive must be = 97, 99, or a number less than Regional Nodes Examined If Regional Nodes Examined is 90, 96, 97, 98, Regional Nodes Positive must not = 98 If Regional Nodes Examined = 99, Regional Nodes Positive must = 99 If Regional Nodes Positive = 97, Regional Nodes Examined must be a number between 02 and 98 If Regional Nodes Positive is < 97, Regional Nodes Positive must be less than Regional Nodes Examined]]></description> <history> <event version="SE11-001-04" user="greend" date="1988-11-01">'9800' is valid for in situ positive/examined nodes.</event> <event version="SE11-001-05" user="greend" date="1989-02-01">New versions of coding manual (12/88 and 02/89) caused some changes.</event> <event version="SE11-001-05" user="greend" date="1989-08-01">Modified to check for non-numeric values in numeric fields.</event> <event version="SE11-001-06" user="greend" date="1990-12-01">New version of coding manual caused some changes. Most changes were in site = EYE.</event> <event version="SE11-001-07" user="greend" date="1991-09-15">Conversion of topography and morphology code from ICD-O-1 to ICD-O-2.</event> <event version="SE11-001-08" user="greend" date="1992-02-03">For site C31.0 (Maxillary sinus) the extension code 65 is now valid for diagnosis years 1988+.</event> <event version="SE11-001-08" user="greend" date="1992-07-15">For site C24.1 (Ampulla of Vater) the extension codes 55 and 65 are now valid. For site C34.0-C34.3, C34.8-C34.9 (Lung) the extension code 25 is valid and the extension code 55 is not. For site C22.0-C22.1 (interhepatic bile ducts) 5 is no longer valid for lymph node.</event> <event version="SE11-001-08" user="greend" date="1992-12-15">Site C70.9 was grouped with Other parts of CNS instead of Brain. Diagnosis date was added to the edit. For 1991+ new extension codes apply for sites C25.0-C25.4 (Pancreas: head, body, & tail) and sites C25.7-C25.9 (Pancreas: other & unspecified). An error message was added to the edit. There is now a check that if positive lymph nodes = 01 - 97 then the lymph node field must = 1 - 8. The new message is EOD10-NUM REG NODES POS/LYMPH NODES.</event> <event version="SE11-001-09" user="greend" date="1993-02-01">The edit was modified so that when checking 1991+ pancreas extension the histology is considered instead of just the site i.e., pancreas with histology 9680 (lymphoma) would be treated as a lymphoma and therefore would not be checked for a 1991+ pancreas extension.</event> <event version="SE11-001-09" user="greend" date="1993-04-28">The edit was modified so that the definition of lymph node values is character instead of numeric. This allows blanks in the lymph node but they will still be flagged as an error.</event> <event version="SE11-001-10" user="greend" date="1994-01-10">The following check was added: for brain, other CNS, other and ill-defined sites, hematopoletic, and lymphomas, number of nodes examined and number of positive nodes must both be coded to '99'.</event> <event version="SE11-001-10" user="greend" date="1994-07-01">Program modified to include histology 9740, 9741 with the coding scheme used for hematopoietic, reticuloendothelial, immunoproliferative and myeloproliferative neoplasms. New extension codes for prostate cases diagnosed in 1994 are: 00, 10-15, 20-29, 30-31, 40-41, 48, 49, 50-53, 55-56, 60-62, 65, 70, 80, 85, 99.</event> <event version="SE11-001-11" user="greend" date="1995-10-01">Valid codes for the 1995 prostate clinical extension field are: 00, 10-15, 20-24, 30-32, 41-45, 49-53, 60-61, 70, 85, 90. Valid codes for the new 1995 prostate pathological extension field are: 00, 20-23, 30-32, 41-45, 49-53, 60-61, 70, 85, 90, 98, 99. Error message was added for new path extension field. Error message was added for death certificate cases that are coded improperly.</event> <event version="SE11-001-12" user="greend" date="1996-07-17">Program modified to correctly edit Death Certificate Only cases.</event> <event version="SE11-001-13" user="greend" date="1997-01-27">Program modified to include new lymphoma codes.</event> <event version="SE11-001-16" user="greend" date="2002-10-07">Edit skipped for cases diagnosed before 1994 from the California registry.</event> <event version="SE11-001-17" user="greend" date="2003-01-30">Updated to correctly edit behavior and extension for prostate cases.</event> <event version="SE11-001-18" user="greend" date="2004-07-29">For site C77.8 the EOD--extension field cannot be 10 or 11.</event> <event version="SE12-002-01" user="murphyr" date="2009-12-18">Edit no longer checks for 9-filled dates.</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-02" user="schadega" date="2018-05-17" ref="67760">Name change.</event> <event version="SE18-019-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; no change in behavior.</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="SE22-022-04" user="secristc" date="2022-05-03" ref="68228">Updated description.</event> </history> </rule>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy