edits.seer.internal.rules.IF284.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.
The newest version!
<rule id="IF284" name="CS Mets at DX-Brain, CS Mets at DX (CS)" tag="N1945" java-path="lines.line" category="inter-field"> <expression><![CDATA[if (line.csMetsAtDx == null || line.csMetsAtDxBrain == null || line._csSchemaId == null) return true if ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && line._csSchemaId != 'brain' && line._csSchemaId != 'cns_other' && line._csSchemaId != 'intracranial_gland') return true if (line.csMetsAtDxBrain == '1' && (line.csMetsAtDx == '00' || line.csMetsAtDx == '99')) return false if (line.csMetsAtDx == '00' && line.csMetsAtDxBrain != '0') return false if (line.csMetsAtDx == '98' && line._csSchemaId != 'ill_defined_other' && line.csMetsAtDxBrain != '8') return false return true]]></expression> <message>CS Mets at Dx-Brain and CS Mets at DX conflict</message> <description><![CDATA[Purpose: This edit verifies that CS Mets at DX-Brain and CS Mets at DX are coded consistently. This edit is skipped if any of the following conditions are true: 1. CS Mets at DX-Brain is empty 2. CS Mets at DX is empty 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) and schema is not Brain, CNSOther, or IntracranialGland This edit first determines the 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 CS Mets at DX-Brain = 1 (yes), the CS Mets at DX must not = 00 (none) or 99 (unknown). If CS Mets at DX = 00 (none), then CS Mets at DX-Brain must = 0 (none: no brain metastases). If CS Mets at DX = 98 (not applicable) and CS schema is not IllDefinedOther, then CS Mets at DX-Brain must = 8 (not applicable).]]></description> <history> <event version="SE12-002-01" user="murphyr" date="2010-03-05">Edit created.</event> <event version="SE12-007-01" user="murphyr" date="2012-03-12" ref="66685">Added 99 as an invalid code for CS Mets at DX</event> <event version="SE12-008-01" user="murphyr" date="2012-08-15" ref="66724">Added 'If CS Mets at DX = 00 then CS Mets at DX-Brain must = 0'</event> <event version="SE13-010-01" user="murphyr" date="2013-05-13" ref="66874">Added logic for site C809</event> <event version="SE14-012-02" user="depryf" date="2014-07-23" ref="67090">Now checking 'IllDefinedOther' instead of 'C809'; added exclusion for behavior 0/1 for some CS schemas.</event> <event version="SE15-013-01" user="kirbyk" date="2015-01-08" ref="67125">Updated description.</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-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>