edits.seer.internal.rules.IF26E98_3_P5.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.
The newest version!
<rule id="IF26E98_3_P5" name="EOD--Lymph Node Involv, Prim Site, ICDO3 (NAACCR)" tag="N2363" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,IF26E98_3_P1,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[if (line.codingSystemForEod != '4' || line.dateOfDiagnosisYear < '1998' || line.dateOfDiagnosisYear == null || (line.histologicTypeIcdO3 == null && line.behaviorCodeIcdO3 == null) || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '2') return true if (! (Functions.matches(line.eodLymphNodeInvolv, /^[0-9]$/))) return false Integer siteNum = Functions.asInt(line.primarySite.substring(1)) Integer histNum = Functions.asInt(line.histologicTypeIcdO3) Integer eodLymphNodesNum = Functions.asInt(line.eodLymphNodeInvolv) List<Integer> histList = (List)((Map)Context.If26E98_3_HIST_MALIG_LN).get(histNum) if (histList != null) return histList.contains(eodLymphNodesNum) List<Integer> histSiteList = (List)((Map)((Map)Context.If26E98_3_HIST_SITE_MALIG_LN).getOrDefault(histNum, [:])).get(siteNum) if (histSiteList != null) return histSiteList.contains(eodLymphNodesNum) List<Integer> siteList = (List)((Map)Context.If26E98_3_SITE_MALIG_LN).get(siteNum) if (siteList != null) return siteList.contains(eodLymphNodesNum) return false]]></expression> <message>Primary Site and Malig EOD--lymph node involv 98+ ICD-O-3 conflict</message> <description><![CDATA[This edit is only performed if Coding System for EOD = 4, indicating that 10-digit EOD is coded and year of diagnosis after 1997. However, the edit is skipped if any of the single field edits for Primary Site, Histologic Type ICD-O-3, Behavior Code ICD-O-3, Type of Reporting Source, or Date of Diagnosis have failed. The edit is skipped if Morph--Type&Behav ICD-O-3 is blank. The edit validates the Extent of Disease according to the 10-digit EOD for each site as defined in the "SEER Extent of Disease--1988: Codes and Coding Instructions," 3rd ed., 1998. The edit is skipped if year of diagnosis is blank. The behavior code is checked against the extent of disease fields to verify validity (1, 2, or 3). A behavior code of 1 is allowed because the behavior codes of some morphologies changed from 3 to 1 when converted from ICD-O-2 to ICD-O-3.) If Death Certificate only case (Type of Reporting Source = '7') the SEER 10-digit Extent of Disease must be '999909999990' for prostate cases and '9999999999 ' for all other cases. If Number of Regional Nodes Positive is 01-97, then Lymph Nodes must be = 1-8. This check is not performed for the following sites and types. Kaposi sarcoma, M-9140 Hematopoietic, M-9731-9989 Lymphomas, M-9590-9699,9702-9729 Mycosis fungoides, M-9700-9701 Brain, T-C70.0,C71._ Other CNS, T-C70.1,C70.9,C72.0-C72.5,C72.8 Other and ill-defined, T-C76.0-C76.8,C80.9,C42._,C77._ For the following sites and types, Regional Nodes Positive and Regional Nodes Examined must both be coded '99'. Brain, T-C70.0,C71._ Other CNS, T-C70.1,C70.9,C72.0-C72.5,C72.8,C72.9 Other and ill-defined, T-C76.0-C76.5,C76.7,C76.8, C80.9,C42._,C77._ Hematopoietic, etc., M-9731-9989 Lymphomas, M-9590-9699,9702-9729 For site C77.8 the EOD--Extension[790] field cannot be 10 or 11.]]></description> <history> <event version="SE11-001-16" user="greend" date="2002-04-15">Tables modified to allow the following extensions for Breast (C50.0 - C50.9): 11,13-18,21,23-28,31,33-38.</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-29">Edit is no longer skipped if year of diagnosis is 9-filled. Instead it is skipped if year of diagnosis is blank.</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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE23-023-02" user="shearerw" date="2023-05-02" ref="69276">Update tag from N2365 to N2363. Change edit name.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>