edits.seer.internal.rules.IF168_P1.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="IF168_P1" name="CS Reg Nodes Ex, Pos, Site, Hist ICDO3, Report (CS)" tag="N1321" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Version_Input_Current,Histologic_Type_ICD-O-3,Primary_Site,Regional_Nodes_Examined,Regional_Nodes_Positive,Year_of_Diagnosis"> <expression><![CDATA[if (line._csSchemaId == null || line.regionalNodesExamined == null || line.regionalNodesPositive == null) return true if (line.dateOfDiagnosisYear == null ||line.dateOfDiagnosisYear < '2004' || line.dateOfDiagnosisYear > '2017') return true if ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && !['brain','cns_other','intracranial_gland'].contains(line._csSchemaId)) return true if (line.dateOfDiagnosisYear < '2010' && (line.csVersionInputCurrent == '020510' || line.csVersionInputCurrent == null)) { if (line.regionalNodesExamined == '00' && line.regionalNodesPositive != '98') return false if (line.regionalNodesExamined >= '01' && line.regionalNodesExamined <= '90' && line.regionalNodesPositive > line.regionalNodesExamined && line.regionalNodesPositive != '97' && line.regionalNodesPositive != '99') return false if (line.regionalNodesExamined >= '95' && line.regionalNodesExamined <= '98' && ! ((line.regionalNodesPositive >= '00' && line.regionalNodesPositive <= '90') || line.regionalNodesPositive == '95' || line.regionalNodesPositive == '97'|| line.regionalNodesPositive == '99')) return false if (line.regionalNodesExamined == '99' && line.regionalNodesPositive != '99') return false } else { if (line.regionalNodesExamined == '00' && line.regionalNodesPositive != '98') return false if (line.regionalNodesExamined >= '01' && line.regionalNodesExamined <= '90' && line.regionalNodesPositive > line.regionalNodesExamined && line.regionalNodesPositive != '95' && line.regionalNodesPositive != '97' && line.regionalNodesPositive != '99') return false if (line.regionalNodesExamined == '95' && line.regionalNodesPositive != '00' && line.regionalNodesPositive != '95' && line.regionalNodesPositive != '99') return false if (line.regionalNodesExamined >= '96' && line.regionalNodesExamined <= '98' && ! ((line.regionalNodesPositive >= '00' && line.regionalNodesPositive <= '90') || line.regionalNodesPositive == '95' || line.regionalNodesPositive == '97' || line.regionalNodesPositive == '99')) return false if (line.regionalNodesExamined == '99' && line.regionalNodesPositive != '99') return false } return true]]></expression> <message>CS Regional Nodes Positive/Examined conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1) Regional Nodes Examined[830] or Regional Nodes Positive[820] are blank. 2) Year of Date of Diagnosis is less than 2004 or greater than 2017, blank, or invalid 3) Behavior Code ICD-O-3 [523] = 0 (benign) or 1 (borderline) and CS Schema Name is not Brain, CNSOther, or IntracranialGland. If year of Date of Diagnosis is less than 2010 and CS Version Input Current is 020510 (not changed since conversion from CSv01 to CSv02) or blank: 1. If Regional Nodes Examined = 00, Regional Nodes Positive must = 98. 2. If Regional Nodes Examined = 01 - 90, Regional Nodes Positive must = 97 or 99, or be less than or equal to Regional Nodes Examined. 3. If Regional Nodes Examined = 95, 96, 97, or 98, Regional Nodes Positive must = 00 - 90, 95, 97, or 99. 4. If Regional Nodes Examined = 99, then Regional Nodes Positive must = 99. Otherwise: 1. If Regional Nodes Examined = 00 , Regional Nodes Positive must = 98. 2. If Regional Nodes Examined = 01 - 90, Regional Nodes Positive must = 95, 97 or 99, or be less than or equal to Regional Nodes Examined. 3. If Regional Nodes Examined = 95, Regional Nodes Positive must = 00, 95, or 99. 4. If Regional Nodes Examined = 96, 97, or 98, Regional Nodes Positive must = 00 - 90, 95, 97, or 99. 5. If Regional Nodes Examined = 99, then Regional Nodes Positive must = 99.]]></description> <history> <event version="SE11-001-22" user="greend" date="2007-12-15">Edit is skipped if Behavior Code ICD-O-3 [523] = 0 (benign) or 1 (borderline) and Primary Site [400] is not C700-729 (Brain and Other CNS) or C751-C753 (Intracranial Endocrine).</event> <event version="SE11-001-23" user="greend" date="2009-04-03">If Regional Nodes Examined = 96 or 97, then Regional Nodes Positive must be 0-90, 97, or 99. If Regional Nodes Examined = 98, then Regional Nodes Positive must be 0-90, 95, 97, or 99.</event> <event version="SE12-002-01" user="greend" date="2010-03-24">Using CS Schema names instead of site and histologies.</event> <event version="SE12-002-04" user="murphyr" date="2010-07-29">Edit now passes if CS schema is not found.</event> <event version="SE12-004-01" user="murphyr" date="2011-01-27">Edit updated for CSv2 version 02.03.02.</event> <event version="SE12-007-01" user="murphyr" date="2012-03-14" ref="66688">Now using CS Version Input Current instead of CS Version Input Original for pre-2010 cases.</event> <event version="SE14-012-02" user="depryf" date="2014-07-23" ref="67093">Changed condition on DX year to use 020510 instead of 020410 for the CS Version Input Current.</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-018-02" user="schadega" date="2018-05-17" ref="67760">Name change.</event> <event version="SE18-019-03" user="beverung" date="2019-07-19" ref="68236">Edit updated to skip cases diagnosed 2018+</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE18-020-05" user="kirbyk" date="2020-08-18" ref="68506">Updated description.</event> <event version="SE18-020-05" user="beverung" date="2020-08-28" ref="68513">Updated skip conditions for 2018+</event> <event version="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event> <event version="SE21-021-08" user="beverung" date="2021-08-09" ref="68710">Updated skip conditions for 2018+ and Schema ID.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy