edits.seer.internal.rules.IF285.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="IF285" name="CS Mets at DX-Liver, CS Mets at DX (CS)" tag="N1947" java-path="lines.line" category="inter-field"> <expression><![CDATA[if (line.csMetsAtDx == null || line.csMetsAtDxLiver == null || line._csSchemaId == null) return true // this condition is missing from the description, but the metafile contains it... if ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && line._csSchemaId != 'brain' && line._csSchemaId != 'cns_other' && line._csSchemaId != 'intracranial_gland') return true if (line.csMetsAtDxLiver == '1' && (line.csMetsAtDx == '00' || line.csMetsAtDx == '99')) return false if (line.csMetsAtDx == '00' && line.csMetsAtDxLiver != '0') return false if (line.csMetsAtDx == '98' && line._csSchemaId != 'ill_defined_other' && line.csMetsAtDxLiver != '8') return false return true]]></expression> <message>CS Mets at Dx-Liver and CS Mets at DX conflict</message> <description><![CDATA[Purpose: This edit verifies that CS Mets at DX-Liver and CS Mets at DX are coded consistently. This edit is skipped if either field is empty. This edit is skipped if any of the following conditions are true: 1. CS Mets at DX-Liver 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-Liver = 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-Liver must = 0 (none: no liver metastases). If CS Mets at DX = 98 (not applicable) and CS schema is not IllDefinedOther, then CS Mets at DX-Liver 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="66686">Added 99 as an invalid code for CS Mets at DX</event> <event version="SE12-008-01" user="murphyr" date="2012-08-15" ref="66725">Added 'If CS Mets at DX = 00, then CS Mets at DX-Liver must = 0''</event> <event version="SE13-010-01" user="murphyr" date="2013-05-13" ref="66875">Added logic for site C809</event> <event version="SE14-012-02" user="depryf" date="2014-07-23" ref="67091">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="67126">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>