edits.seer.internal.rules.IF217.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="IF217" name="CS Mets at DX, Lung, Laterality (CS)" tag="N0962" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site"> <expression><![CDATA[if (line.csMetsAtDx == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') return true if (line._csSchemaId == 'lung' && line.laterality == '4') return Functions.matches(line.csMetsAtDx, /^23|25|26|36|38|40|41|42|43|50|51|52|53|70|75$/) return true]]></expression> <message>CS Mets at DX, Laterality, and Lung Schema conflict</message> <description><![CDATA[Purpose: This edit verifies that, for lung cases, if bilateral involvement, then CS Mets at DX is coded to bilateral as well. This edit is skipped if any of the following conditions are true: 1. CS Mets at DX is empty 2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 3. CS schema is invalid If schema is Lung: If Laterality = 4 (Bilateral involvement), then CS Mets at DX must = 23, 25, 26, 36, 38, 40, 41, 42, 43, 50, 51, 52, 53, 70, or 75. Per the multiple primary rules, involvement of diffuse bilateral nodules "is the only condition when laterality = 4."]]></description> <history> <event version="SE11-001-23" user="greend" date="2009-01-13">This edit was created.</event> <event version="SE12-002-01" user="murphyr" date="2010-03-10">Edit now uses CS Schema name. 23 added as a valid mets dx code.</event> <event version="SE12-002-01" user="murphyr" date="2010-03-24">39 removed as a valid mets dx code.</event> <event version="SE12-002-01" user="murphyr" date="2010-03-30">Added some mets dx codes.</event> <event version="SE12-004-01" user="murphyr" date="2011-01-21">Added mets dx codes 36 and 38.</event> <event version="SE12-006-01" user="murphyr" date="2011-12-16" ref="66602">Removed code 37 & add code 41 for mets at dx</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> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event> </history> </rule>