edits.seer.internal.rules.IF385.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="IF385" name="CS SSF 5, Lymph Nodes, Testis (CS)" tag="N1585" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Lymph_Nodes,CS_Site-Specific_Factor_25,CS_Site-Specific_Factor_5,Histologic_Type_ICD-O-3,Primary_Site"> <expression><![CDATA[if (line.csSiteSpecificFactor5 == '988' || line.csSiteSpecificFactor5 == null || line.csLymphNodes == null || line._csSchemaId == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (line._csSchemaId == 'testis') { if (line.csSiteSpecificFactor5 == '000') return line.csLymphNodes == '000' if (Functions.matches(line.csSiteSpecificFactor5, /(^0[12]\d|030$)/)) return Functions.matches(line.csLymphNodes, /(^[1-7]\d\d|800$)/) if (line.csLymphNodes == '510') return Functions.matches(line.csSiteSpecificFactor5, /(^010|999$)/) if (line.csLymphNodes == '520') return Functions.matches(line.csSiteSpecificFactor5, /(^020|999$)/) if (line.csLymphNodes == '530') return Functions.matches(line.csSiteSpecificFactor5, /(^030|999$)/) } return true]]></expression> <message>CS SSF5 and Lymph Nodes conflict for Testis schema</message> <description><![CDATA[This edit verifies that for cases using the Testis schema, SSF 5 (Size of Metastasis in Lymph Nodes) and CS Lymph Nodes are coded consistently. If CS schema is Testis: 1. If CS Site-Specific Factor 5 = 000 (no regional lymph nodes involved), then CS Lymph Nodes must = 000 (no regional lymph nodes involved) 2. If CS Site-Specific Factor 5 = 010-030 (regional lymph nodes involved), then CS Lymph Nodes must = 100-800 (regional nodes involved) 3. a. IF CS Lymph Nodes = 510 (stated as N1), then CS Site-Specific Factor 5 must = 010 or 999. b. IF CS Lymph Nodes = 520 (stated as N2), then CS Site-Specific Factor 5 must = 020 or 999. c. IF CS Lymph Nodes = 530 (stated as N3), then CS Site-Specific Factor 5 must = 030 or 999. This edit is skipped if any of the following conditions are true: 1. CS Site-Specific Factor 5 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 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 name is returned.]]></description> <history> <event version="SE12-006-01" user="murphyr" date="2011-12-21" ref="66566">Edit created.</event> <event version="SE12-006-02" user="murphyr" date="2012-01-09" ref="66651">Fixed error message.</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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> </history> </rule>