edits.seer.internal.rules.IF260.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="IF260" name="CS Lymph Nodes, Nodes Pos, ColoAppRectal (CS)" tag="N1060" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Lymph_Nodes,CS_Site-Specific_Factor_25,Histologic_Type_ICD-O-3,Primary_Site,Regional_Nodes_Positive"> <expression><![CDATA[if (line.csLymphNodes == null || line.regionalNodesPositive == null || line.histologicTypeIcdO3 == null || line.primarySite == null) return true if (line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (line._csSchemaId == 'colon' || line._csSchemaId == 'appendix' || line._csSchemaId == 'rectum') { if (line.regionalNodesPositive >= '01' && line.regionalNodesPositive <= '90' && ['400','410','420','430','450','460','470','480'].contains(line.csLymphNodes)) return false if (['400','410','420','430','450','460','470','480'].contains(line.csLymphNodes) && (line.regionalNodesPositive != '95' && line.regionalNodesPositive != '97')) return false } return true]]></expression> <message>CS Lymph Nodes and regional pos nodes conflict for ColoAppRectal</message> <description><![CDATA[This edit verifies that for cases coded using the Colon, Appendix, or Rectum schemas, the following Table Note from CS Lymph Nodes is enforced: "The number of positive regional nodes is required to calculate the correct N category for this site. Codes 400-470 are for use when this number is not available, but the pathology report assigns an N1 or N2 category. If information about the number of positive nodes is available, use codes 100, 200, or 300 rather than codes 400 - 470. The actual number of involved nodes will be coded in Reg LN Pos." This edit is skipped if any of the following conditions are true: 1. CS Lymph Nodes is blank 2. Regional Nodes Positive is blank 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) This edit first determines the correct CS schema by doing a function call to the CS Dynamic Link Library (dll). The function call passes Primary Site, Histologic Type ICD-O-3, and CS Site-Specific Factor25 (schema discriminator) to the dll and the CS schema number is returned. For cases using the Colon, Appendix, or Rectum schemas: If Regional Nodes Positive = 01 - 90 (number of positive nodes are known), CS Lymph Nodes must not = 400, 410, 420, 430, 450, 460, 470, 480. If CS Lymph Nodes = 400, 410, 420, 430, 450, 460, 470, 480, then Regional Nodes Positive must = 95 (positive aspiration of lymph node(s) was performed) or 97 (Positive nodes are documented, but the number is unspecified).]]></description> <history> <event version="SE12-002-01" user="murphyr" date="2010-02-03">Edit created.</event> <event version="SE12-004-01" user="murphyr" date="2011-01-21">Added 430, 480 to list of lymph node values.</event> <event version="SE16-015-01" user="kirbyk" date="2016-05-04" ref="67370">Changed edit to use schema IDs instead of schema names</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> </history> </rule>