edits.seer.internal.rules.IF346.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="IF346" name="CS Extension, SSF 3, Behavior, Prostate (CS)" tag="N1434" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Extension,CS_Site-Specific_Factor_3,Type_of_Reporting_Source"> <expression><![CDATA[if (line.csExtension == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.typeOfReportingSource == '7') return true if (line._csSchemaId == 'prostate') { Integer ext = Functions.asInt(line.csExtension) Integer ssf3 = Functions.asInt(line.csSiteSpecificFactor3) if ((ext == 0 && ssf3 != 985 && (ssf3 < 200 || ssf3 > 750)) || (ssf3 == 0 && (ext < 100 || ext > 750))) return line.behaviorCodeIcdO3 == '2' } return true]]></expression> <message>CS Exension, SSF 3 & Behavior conflict for Prostate schema</message> <description><![CDATA[The purpose of this edit is to verify that the values coded in Behavior Code ICD-O-3 and CS Extension are consistent. This edit is skipped if any of the following conditions are true: 1. CS Extension is empty. 2. Case is death certificate only (Type of Reporting Source = 7) 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 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. If schema is Prostate: [If CS Extension = 000 and CS Site-Specific Factor 3 not = 200-750, or 985 OR If CS Site-Specific Factor 3 = 000 and CS Extension not = 100-750] then Behavior Code ICD-O-3 must = 2 (in situ).]]></description> <history> <event version="SE12-004-01" user="murphyr" date="2011-01-27">Edit created.</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>