edits.seer.internal.rules.IF408.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="IF408" name="CS Extension, SSF 2, Lung Schema (CS)" tag="N1745" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Extension,CS_Site-Specific_Factor_2,CS_Site-Specific_Factor_25,Histologic_Type_ICD-O-3,Primary_Site"> <expression><![CDATA[if (line.csExtension == null || line.csSiteSpecificFactor2 == null || line.csSiteSpecificFactor2 == '988') return true if (line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (line._csSchemaId != 'lung') return true Integer extInt = Functions.asInt(line.csExtension) if (extInt >= 0 && extInt <= 410) { if (!(['000','998','999'].contains(line.csSiteSpecificFactor2))) return false } if (Functions.matches(line.csSiteSpecificFactor2, /(^0[124]0$)/)) { if (!(extInt >= 420 && extInt <= 810) && extInt != 999) return false } if (line.csSiteSpecificFactor2 == '030') { if (!(extInt >= 600 && extInt <= 810) && extInt != 999) return false } return true]]></expression> <message>Extension and SSF 2 are not coded consistently for Lung</message> <description><![CDATA[This edit verifies that for cases coded using the Lung schema, extension and SSF 2 (pleural/elastic layer invasion) are coded consistently. If SSF 2 is coded, a path report is required. If schema is Lung: 1. If CS Extension code = 000-410 (410 = Extension to but not into pleura, including invasion of elastic layer BUT not through the elastic layer) then CS Site-Specific Factor 2 must = 000 (no evidence of visceral invasion),998 (no histologic examination), or 999 (unknown if PL present) 2. If CS Site-Specific Factor 2 = 010, 020, 040 (codes indicating involvement of pleura or more extensive involvement). then CS Extension must = 420-810 or 999. 3. If CS Site-Specific Factor 2 = 030 (involvement of parietal pleura) then CS Extension must = 600-810 (involvement of parietal pleura or more extensive involvement) or 999. This edit is skipped if any of the following conditions are true: 1. CS Extension is empty 2. CS Site-Specific Factor 2 is blank or 988 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 4. CS schema is invalid 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.]]></description> <history> <event version="SE13-009-01" user="murphyr" date="2012-12-05" ref="66774">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>