edits.seer.internal.rules.IF319.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="IF319" name="CS Lymph Nodes, SSF 3, Nodes Eval, MerkelCell (CS)" tag="N1371" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Lymph_Nodes,CS_Reg_Node_Eval,CS_Site-Specific_Factor_25,CS_Site-Specific_Factor_3,Histologic_Type_ICD-O-3,Primary_Site"> <expression><![CDATA[if (line.csSiteSpecificFactor3 == null || line.csSiteSpecificFactor3 == '988' || line.csLymphNodes == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (line._csSchemaId == 'merkel_cell_penis') { if (line.csSiteSpecificFactor3 == '000' || line.csSiteSpecificFactor3 == '005') return line.csLymphNodes == '000' || line.csLymphNodes == '410' || line.csLymphNodes == '420' if (line.csLymphNodes == '110') return Functions.matches(line.csLymphNodesEval, /^0|1|5|9$/) if (Functions.matches(line.csLymphNodes, /^1[245]0$/)) return Functions.matches(line.csLymphNodesEval, /^2|3|6|8$/) if (line.csSiteSpecificFactor3 == '020') return line.csLymphNodesEval != '8' } if (line._csSchemaId == 'merkel_cell_scrotum' || line._csSchemaId == 'merkel_cell_skin') { if (line.csSiteSpecificFactor3 == '000' || line.csSiteSpecificFactor3 == '005') return line.csLymphNodes == '000' || line.csLymphNodes == '390' || line.csLymphNodes == '400' if (line.csLymphNodes == '310') return Functions.matches(line.csLymphNodesEval, /^0|1|5|9$/) if (Functions.matches(line.csLymphNodes, /^3[245]0$/)) return Functions.matches(line.csLymphNodesEval, /^2|3|6|8$/) if (line.csSiteSpecificFactor3 == '020') return line.csLymphNodesEval != '8' } if (line._csSchemaId == 'merkel_cell_vulva') { if (line.csSiteSpecificFactor3 == '000' || line.csSiteSpecificFactor3 == '005') return line.csLymphNodes == '000' || line.csLymphNodes == '510' || line.csLymphNodes == '520' if (line.csLymphNodes == '114') return Functions.matches(line.csLymphNodesEval, /^0|1|5|9$/) if (Functions.matches(line.csLymphNodes, /^1[12]5|120$/)) return Functions.matches(line.csLymphNodesEval, /^2|3|6|8$/) if (line.csSiteSpecificFactor3 == '020') return line.csLymphNodesEval != '8' } return true]]></expression> <message>CS Lymph Nodes & CS Site-Specific Factor 3 conflict for MerkelCell Schemas.</message> <description><![CDATA[The purpose of this edit is to compare CS Lymph Nodes, CS Site-Specific 3, and CS Lymph Nodes Eval for cases coded using the MerkelCellScrotum, MerkelCellSkin, MerkelCellPenis,and MerkelCellVulva schemas. If CS schema is MerkelCellScrotum, MerkelCellSkin, MerkelCellPenis, or MerkelCellVulva: 1. If CS schema is MerkelCellScrotum or MerkelCellSkin: A. If CS Site-Specific Factor 3 = 000 or 005 (see definitions below) then CS Lymph Nodes must = 000, 390, or 400, indicating no lymph node mets. B. If CS Lymph Nodes = 310 (evaluated clinically) then CS Lymph Nodes Eval must = 0, 1, 5 (codes that indicate case does not meet criteria for AJCC pathological stage)or 9 (unknown) C. If CS Lymph Nodes = 320, 340, 350 (codes that indicate case was evaluated pathologically) then CS Lymph Nodes Eval must = 2, 3, 6, 8 (codes that indicate case meets requirement for AJCC pathologic staging) or 9 (unknown) D. If CS Site-Specific Factor 3 = 020 (clinically apparent) then CS Lymph Nodes Eval must not = 8 (diagnosed at autopsy) 2. If CS schema is MerkelCellPenis: A. If CS Site-Specific Factor 3 = 000 or 005 (see definitions below) then CS Lymph Nodes must = 000, 410, 420, indicating no lymph node mets. B. If CS Lymph Nodes = 110 (evaluated clinically) then CS Lymph Nodes Eval must = 0, 1, 5 (codes that indicate case does not meet criteria for AJCC pathological stage) or 9 (unknown) C. If CS Lymph Nodes = 120, 140, 150 (codes that indicate case was evaluated pathologically) then CS Lymph Nodes Eval must = 2, 3, 6, 8 (codes that indicate case meets requirement for AJCC pathologic staging) or 9 (unknown) D. If CS Site-Specific Factor 3 = 020 (clinically apparent) then CS Lymph Nodes Eval must not = 8 (diagnosed at autopsy) 3. If CS schema is MerkelCellVulva: A. If CS Site-Specific Factor 3 = 000 or 005 (see definitions below) then CS Lymph Nodes must = 000, 510, 520, indicating no lymph node mets. B. If CS Lymph Nodes = 114 (evaluated clinically) then CS Lymph Nodes Eval must = 0, 1, 5 (codes that indicate case does not meet criteria for AJCC pathological stage)or 9 (unknown) C. If CS Lymph Nodes = 115, 120, 125(codes that indicate case was evaluated pathologically) then CS Lymph Nodes Eval must = 2, 3, 6, 8 (codes that indicate case meets requirement for AJCC pathologic staging) or 9 (unknown) D. If CS Site-Specific Factor 3 = 020 (clinically apparent) then CS Lymph Nodes Eval must not = 8 (diagnosed at autopsy) ************************************************************* CS Site-Specific Factor 3 definitions for codes 000 and 005: 000 = OBSOLETE DATA RETAINED V0204 No lymph node metastasis 005 = Clinically negative lymph node metastasis AND No pathologic examination performed Or unknown if pathologic examination performed Or nodes negative on pathologic examination ************************************************************* This edit is skipped if any of the following conditions are true: 1. CS Site-Specific Factor 3 is blank or 988 2. CS Lymph Nodes is blank 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 4. CS schema is invalid This edit first determines the 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 name is returned.]]></description> <history> <event version="SE12-004-01" user="murphyr" date="2010-12-15">Edit created.</event> <event version="SE12-004-01" user="murphyr" date="2011-01-24">Removed 988 from statement 1.</event> <event version="SE12-006-01" user="murphyr" date="2011-12-20" ref="66600">Logic reworked for CSv0204</event> <event version="SE13-009-01" user="murphyr" date="2013-01-25" ref="66826">Edit name changed.</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="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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> </history> </rule>