edits.seer.internal.rules.IF446.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="IF446" name="CS SSF 11, Lymph Nodes, Vulva (CS)" tag="N1780" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Lymph_Nodes,CS_Site-Specific_Factor_11"> <expression><![CDATA[if (line.csSiteSpecificFactor11 == null || line.csSiteSpecificFactor11 == '988' || line.csLymphNodes == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.behaviorCodeIcdO3 == '2' || line._csSchemaId != 'vulva') return true Integer csLymphNodesInt = Functions.asInt(line.csLymphNodes) Integer ssf11Int = Functions.asInt(line.csSiteSpecificFactor11) if (ssf11Int == 0) return csLymphNodesInt == 0 || csLymphNodesInt == 999 if (csLymphNodesInt == 0 && ssf11Int != 0 && ssf11Int != 998 && ssf11Int != 999) return false if (ssf11Int == 998) return !(csLymphNodesInt >= 110 && csLymphNodesInt <= 800) if (ssf11Int == 10 || ssf11Int == 20 || ssf11Int == 30) return csLymphNodesInt != 0 && csLymphNodesInt != 999 if (ssf11Int == 999) return csLymphNodesInt == 999 return true]]></expression> <message>CS SSF 11 and Lymph Nodes conflict for Vulva schema</message> <description><![CDATA[This edit verifies that for cases coded using the Vulva schema, CS Site-Specific Factor 11 (Regional Lymph Node - Laterality) and CS Lymph Nodes are coded consistently. This edit is skipped if any of the following conditions are true: 1. CS Site-Specific Factor11 is blank or 988 2. CS Lymph Nodes is blank 3. Behavior Code ICD-O-3 = 0 (benign), 1 (borderline), or 2 (in situ) 4. CS schema is invalid If CS schema = Vulva: 1. If CS Site-Specific Factor11 = 000 (all regional lymph nodes negative), then CS Lymph Nodes must = 000 (no regional lymph node involvement) or 999 (unknown). The vice versa condition is also true: If CS Lymph Nodes = 000, then CS Site-Specific Factor11 must = 000, 998, or 999. 2. If CS Site-Specific Factor11 = 998 (lymph nodes not assessed), then CS Lymph Nodes must not = 110-800 (positive involvement of regional nodes). 3. If CS Site-Specific Factor11 = 010, 020, or 030 (codes indicating positive nodes), then CS Lymph Nodes must not = 000 or 999. 4. If CS Site-Specific Factor11 = 999 (unknown or no information), then CS Lymph Nodes must = 999 (unknown if nodes involved). 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="SE13-010-01" user="murphyr" date="2013-05-08" ref="66861">Edit created.</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>