edits.seer.internal.rules.IF322.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="IF322" name="CS SSF 17, MerkelCell Schemas (CS)" tag="N1633" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Lymph_Nodes,CS_Site-Specific_Factor_17,CS_Site-Specific_Factor_25,Histologic_Type_ICD-O-3,Primary_Site,RX_Summ--Scope_Reg_LN_Sur,Regional_Nodes_Positive"> <expression><![CDATA[if (line.csSiteSpecificFactor17 == null || line.csSiteSpecificFactor17 == '988' || line.csLymphNodes == null || line.regionalNodesPositive == null || line.rxSummScopeRegLnSur == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (line._csSchemaId == 'merkel_cell_penis' || line._csSchemaId == 'merkel_cell_scrotum' || line._csSchemaId == 'merkel_cell_skin' || line._csSchemaId == 'merkel_cell_vulva') { if (line.csSiteSpecificFactor17 == '000') { if (line.regionalNodesPositive != '00' && line.regionalNodesPositive != '98') return false if (line._csSchemaId == 'merkel_cell_penis' && !['000', '420', '999'].contains(line.csLymphNodes)) return false if (line._csSchemaId == 'merkel_cell_scrotum' && !['000', '400', '999'].contains(line.csLymphNodes)) return false if (line._csSchemaId == 'merkel_cell_vulva' && !['000', '520', '999'].contains(line.csLymphNodes)) return false if (line._csSchemaId == 'merkel_cell_skin' && !['000', '400', '480', '999'].contains(line.csLymphNodes)) return false } if (line.csSiteSpecificFactor17 == '010' || line.csSiteSpecificFactor17 == '040' || line.csSiteSpecificFactor17 == '070') return line.rxSummScopeRegLnSur != '0' && line.rxSummScopeRegLnSur != '9' if (line.csTumorSizeExtEval != '2' && line.csTumorSizeExtEval != '8' && line.rxSummScopeRegLnSur == '0') return Functions.matches(line.csSiteSpecificFactor17, /(^0[0235689]0|999$)/) } return true]]></expression> <message>CS Lymph Nodes,RX Summ--Scope Reg LN Sur,CS SSF 17 conflict for MerkelCell Schemas.</message> <description><![CDATA[This edit verifies that for cases coded using the MerkelCellPenis, MerkelCellScrotum, MerkelCellSkin, and MerkelCellVulva schemas, CS Site-Specific Factor 17 (Extracapsular Extension of Regional Lymph Nodes), RX Summ--Scope Reg LN Sur, and CS Lymph Nodes are coded consistently. This edit is skipped if any of the following conditions are true: 1. CS Site-Specific Factor 17 is blank or 988 2. CS Lymph Nodes is blank 3. RX Summ--Scope Reg LN Sur is blank 4. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 5. Regional Nodes Positive is blank 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. If CS schema is MerkelCellPenis, MerkelCellScrotum, MerkelCellSkin, or MerkelCellVulva: 1. If CS Site-Specific Factor17 = 000 (no lymph nodes involved) then A. Regional Nodes Positive must = 00 (all nodes examined negative) or 98 (no nodes examined). B. If CS schema is MerkelCellPenis: CS Lymph Nodes must be one of the following: 000 (no regional lymph node involvement) 420 (in-transit metastasis WITHOUT regional lymph node involvement) 999 (unknown) If CS schema is MerkelCellScrotum: CS Lymph Nodes must be one of the following: 000 (no regional lymph node involvement) 400 (in-transit metastasis WITHOUT regional lymph node involvement) 999 (unknown) If CS schema is MerkelCellVulva: CS Lymph Nodes must be one of the following: 000 (no regional lymph node involvement) 520 (in-transit metastasis WITHOUT regional lymph node involvement) 999 (unknown) If CS schema is MerkelCellSkin: CS Lymph Nodes must be one of the following: 000 (no regional lymph node involvement) 400 (in-transit metastasis WITHOUT regional lymph node involvement) 480 (stated as N2 [NOS] with no other information on regional lymph nodes) 999 (unknown) 2. If CS Site-Specific Factor17 = 010, 040, or 070, indicating nodes assessed pathologically, then RX Summ--Scope Reg LN Sur must not = 0 (none) or 9 (unknown or not applicable). 3. If CS Tumor Size/Ext Eval does not = 2 and does not = 8 (codes indicating autopsy) If RX Summ-Scope Reg LN Sur = 0 (none), then CS Site-Specific Factor17 must = 000, 020, 030, 050, 060, 080, 090, or 999, indicating nodes may not have been assessed pathologically.]]></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-02-07">Changed error message.</event> <event version="SE12-005-04" user="murphyr" date="2011-10-05" ref="66529">Now skips if SSF17 is 988. Broke down SSF17 equals 000 branch by schema. Deleted 'If CS Lymph Nodes = 999, then SSF17 must = 988 or 999'.</event> <event version="SE12-008-01" user="murphyr" date="2012-08-08" ref="66711">Rearranged logic for condition #3</event> <event version="SE13-009-01" user="murphyr" date="2012-12-21" ref="66794">Added 'If CS Tumor Size/Ext Eval != 2 and != 8' before 3rd condition.</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>