edits.seer.internal.rules.IF286.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="IF286" name="CS Mets at DX-Lung, CS Mets at DX (CS)" tag="N1948" java-path="lines.line" category="inter-field"> <expression><![CDATA[if (line.csMetsAtDx == null || line.csMetsAtDxLung == 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.csMetsAtDxLung == '1' && (line.csMetsAtDx == '00' || line.csMetsAtDx == '99')) return false if (line.csMetsAtDx == '00' && line.csMetsAtDxLung != '0') return false if (line.csMetsAtDx == '98' && line._csSchemaId != 'ill_defined_other' && line.csMetsAtDxLung != '8') return false return true]]></expression> <message>CS Mets at Dx-Lung and CS Mets at DX conflict</message> <description><![CDATA[Purpose: This edit verifies that CS Mets at DX-Lung 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-Lung 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-Lung = 1 (yes), the CS Mets at DX must not = 00 (none) or 99 (unknown). If CS Mets at DX = 98 (not applicable) and CS schema is not IllDefinedOther, then CS Mets at DX-Lung must = 8 (not applicable). If CS Mets at DX = 00, then CS Mets at DX-Lung must = 0.]]></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="66687">Added 99 as an invalid code for CS Mets at DX</event> <event version="SE12-008-01" user="murphyr" date="2012-08-15" ref="66726">Added 'If CS Mets at DX = 00, then CS Mets at DX-Lung must = 0'</event> <event version="SE13-010-01" user="murphyr" date="2013-05-13" ref="66876">Added logic for site C809. Fixed doc.</event> <event version="SE14-012-02" user="depryf" date="2014-07-23" ref="67092">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="67127">Updated description.</event> <event version="SE15-013-02" user="kirbyk" date="2015-03-04" ref="67199">Added 'If CS Mets at DX = 00, then CS Mets at DX-Lung must = 0' to logic and 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 edit dependencies.</event> </history> </rule>