edits.seer.internal.rules.IF200.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="IF200" name="CS Extension, TS/Ext Eval, Prostate Schema (CS)" tag="N0950" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Extension,CS_Tumor_Size_Ext_Eval,Histologic_Type_ICD-O-3,Primary_Site"> <expression><![CDATA[if (line.csExtension == null || line.csTumorSizeExtEval == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (line._csSchemaId != 'prostate') return true if ((line.csExtension == '130' || line.csExtension == '140') && line.csTumorSizeExtEval == '0') return false if (line.csTumorSizeExtEval == '2' && !Functions.between(line.csExtension,'410','700')) return false if (line.csTumorSizeExtEval == '8' && line.csExtension != '999') return false return true]]></expression> <message>CS Extension, CS Tumor Size/Ext Eval, and Prostate Schema conflict</message> <description><![CDATA[This edit verifies that for cases coded using the CS Prostate schema, CS Extension and CS Tumor Size/Ext Eval are consistent. This edit is skipped if any of the following conditions are true: 1. CS Extension is blank 2. CS Tumor Size/Ext Eval is blank 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) For cases using the CS Prostate schema: 1. If CS Extension is coded 130 [Incidental histologic finding in 5% or less of tissue resected (clinically inapparent); Stated as cT1a], 140 [Incidental histologic finding more than 5% of tissue resected (clinically inapparent); Stated as cT1b] then: CS Tumor Size/Ext Eval must NOT = 0 (No surgical resection or biopsy done. Evaluation based on physical examination, imaging examination, or other non-invasize clinical evidence. No autopsy evidence used). 2. If CS Tumor Size/Ext Eval = 2 (No surgical resection done, but positive biopsy of extraprostatic tissue allows assignment to CS Extension Codes 410-700 (see note 2)) then: CS Extension must = 410-700. 3. If CS Tumor Size/Ext Eval = 8 (Evidence from autopsy only) then: CS Extension must = 999 (Extension unknown).]]></description> <history> <event version="SE11-001-23" user="greend" date="2009-01-06">If CS Tumor Size/Ext Eval = 2, CS Extension must = 41-70.</event> <event version="SE11-001-23" user="greend" date="2009-01-26">Removed CS Extension code of 15 from Prostate logic (was extension = 13 or 14 or 15).</event> <event version="SE12-002-01" user="murphyr" date="2010-02-03">Extension codes changed to 3 digits. Now using schema name insread of site and hist.</event> <event version="SE12-002-01" user="murphyr" date="2010-05-26">Added a 3rd rule for CS Tumor Size/Ext Eval = 8.</event> <event version="SE12-008-05" user="murphyr" date="2012-11-28" ref="66771">Fixed issue where cases with CS Extension as 130 or 140 and CS Tumor Size/Ext Eval as 2 would pass instead of fail.</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="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> </history> </rule>