edits.seer.internal.rules.IF287.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="IF287" name="CS SSF 6, RX Summ--Surg, ColoRectal (CS)" tag="N1753" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_6,RX_Summ--Surg_Prim_Site,Year_of_Diagnosis"> <expression><![CDATA[if (line.csSiteSpecificFactor6 == null || line.csSiteSpecificFactor6 == '988' || line.rxSummSurgPrimSite == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (line._csSchemaId == 'colon' || line._csSchemaId == 'rectum') { Integer ssf6 = Functions.asInt(line.csSiteSpecificFactor6) Integer csVersion = Functions.asInt(line.csVersionInputOriginal) Integer rxSummSurgPrimSite = Functions.asInt(line.rxSummSurgPrimSite) if (line.csVersionInputOriginal != null && csVersion < 20500) { if (rxSummSurgPrimSite == 0 && ssf6 != 998) return false } else if (csVersion >= 20500 || line.dateOfDiagnosisYear > '2015') { if (rxSummSurgPrimSite >= 0 && rxSummSurgPrimSite <= 29 && ssf6 != 998 && ssf6 != 999) return false } if (rxSummSurgPrimSite == 99 && ssf6 != 999) return false if ((ssf6 >= 0 && ssf6 <= 981) || (ssf6 >= 990 && ssf6 <= 996)) return rxSummSurgPrimSite != 0 && rxSummSurgPrimSite != 99 } return true]]></expression> <message>CS SSF6 and RX Summ-surg prim site conflict for ColoRectal</message> <description><![CDATA[This edit verifies that for cases coded using the Colon or Rectum schemas, CS Site-Specific Factor 6 (Circumferential Resection Margin) and RX Summ--Surg Prim Site are coded consistently. This edit is skipped if any of the following conditions are true: 1. CS Site-Specific Factor 6 is blank or = 988 (obsolete data converted, code 888 was used in version 1 and was converted to 988 for version 2) 2. RX Summ--Surgery Prim Site is blank 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. For cases using the Colon or Rectum schemas: 1. If CS Version Input Original is less than 020500 and CS Version Input Original is not blank: If RX Summ--Surg Prim Site = 00 (no surgery of primary site), then CS Site-specific Factor 6 must = 998 (no resection of primary site). If CS Version Input Original is 020500 or higher OR Year of Date of Diagnosis is greater than 2015: If RX Summ--Surg Prim Site = 00-29 (codes indicating no surgery of primary site or not enough tissue to measure the CRM) then CS Site-specific Factor 6 must = 998 (no resection of primary site) or 999 (unknown or CRM not mentioned) 2. If RX Summ-Surg Prim Site = 99, then CS Site-specific Factor 6 must = 999 3. If CS Site-specific Factor 6 = 000-981, 990-996, RX Summ-Surg Prim Site must not = 00 or 99]]></description> <history> <event version="SE12-002-01" user="murphyr" date="2010-03-05">Edit created.</event> <event version="SE12-004-01" user="murphyr" date="2011-01-21">Changed SSF6 range to 000-981, 990-996.</event> <event version="SE12-007-01" user="murphyr" date="2012-03-12" ref="66684">Added 'If RX Summ-Surg Prim Site = 00 then CS Site-specific Factor 6 must = 998'</event> <event version="SE13-009-01" user="murphyr" date="2012-12-21" ref="66792">Added 'If RX Summ-Surg Prim Site = 99 then CS Site-specific Factor 6 must = 999'</event> <event version="SE14-011-01" user="murphyr" date="2013-10-28" ref="67023">Split first condition into two parts, one for before 020500 and one for after 020500 (CS Version Input Original)</event> <event version="SE16-015-01" user="kirbyk" date="2016-04-20" ref="67339">Updated the logic for the split in the first condition.</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