edits.seer.internal.rules.IF320.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="IF320" name="CS SSF 16, MerkelCell Schemas (CS)" tag="N1632" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Lymph_Nodes,CS_Site-Specific_Factor_16,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.csSiteSpecificFactor16 == null || line.csSiteSpecificFactor16 == '988' || line.csLymphNodes == null || line.rxSummScopeRegLnSur == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.regionalNodesPositive == null) 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.csSiteSpecificFactor16 == '000') { if (line._csSchemaId == 'merkel_cell_skin' && !(Functions.matches(line.csLymphNodes, /(^000|390|4[08]0|999$)/))) return false if (line._csSchemaId == 'merkel_cell_penis' && !(Functions.matches(line.csLymphNodes, /(^000|4[12]0|550|999$)/))) return false if (line._csSchemaId == 'merkel_cell_scrotum' && !(Functions.matches(line.csLymphNodes, /(^000|4[05]0|999$)/))) return false if (line._csSchemaId == 'merkel_cell_vulva' && !(Functions.matches(line.csLymphNodes, /(^000|5[12]0|700|999$)/))) return false if (line.regionalNodesPositive != '00' && line.regionalNodesPositive != '98') return false } if (line.csTumorSizeExtEval != '2' && line.csTumorSizeExtEval != '8' && line.rxSummScopeRegLnSur == '0') return (line.csSiteSpecificFactor16 == '998' || line.csSiteSpecificFactor16 == '999') && line.regionalNodesPositive == '98' } return true]]></expression> <message>CS Lymph Nodes,RX Summ--Scope Reg LN Sur,CS SSF 16 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 16 (Size of Metastasis in 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 16 is blank or 988 2. CS Lymph Nodes is blank 3. RX Summ-Scope Reg LN Sur is blank 4. Regional Nodes Positive is blank 5. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 6. 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. If CS schema is MerkelCellPenis, MerkelCellScrotum, MerkelCellSkin, or MerkelCellVulva: 1. If CS Site-Specific Factor16 = 000 (no regional lymph nodes involved): A. CS Lymph Nodes must be coded as specified below: MerkelCellSkin: CS Lymph Nodes must = 000, 390, 400, 480, or 999 MerkelCellPenis: CS Lymph Nodes must = 000, 410, 420, 550, or 999 MerkelCellScrotum: CS Lymph Nodes must = 000, 400, 450, or 999 MerkelCellVulva: CS Lymph Nodes must = 000, 510, 520, 700, or 999 B. Regional Nodes Positive must = 00 (all nodes examined negative) or 98 (no nodes examined). 2. If CS Tumor Size/Ext Eval not = 2 or 8 (codes indicating autopsy): If RX Summ-Scope Reg LN Sur = 0 (none), then CS Site-Specific Factor16 must = 998 (no histologic exam of regional nodes) or 999 (unknown) and Regional Nodes Positive must = 98 (no nodes examined).]]></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">Edit updated for CSv2 version 02.03.02.</event> <event version="SE12-004-01" user="murphyr" date="2011-02-03">Changed error message.</event> <event version="SE12-008-01" user="murphyr" date="2012-08-08" ref="66710">Rearranged logic for condition #2</event> <event version="SE13-009-01" user="murphyr" date="2012-12-21" ref="66793">Added: 'If CS Tumor Size/Ext Eval does not = 2 and does not = 8' before condition 2.</event> <event version="SE13-009-01" user="murphyr" date="2013-01-25" ref="66826">Edit name changed.</event> <event version="SE13-010-03" user="murphyr" date="2013-08-05" ref="66913">Updated edit to V13A.</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>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy