edits.seer.internal.rules.IF313.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="IF313" name="CS Mets at DX, Colon Schema (CS)" tag="N1171" java-path="lines.line" category="inter-field"> <expression><![CDATA[if (line.csMetsAtDx == null) return true int i = 0 if (line.csMetsAtDxBone == '1') i++ if (line.csMetsAtDxBrain == '1') i++ if (line.csMetsAtDxLiver == '1') i++ if (line.csMetsAtDxLung == '1') i++ if (line._csSchemaId == 'colon') { if (i >= 1 && Functions.matches(line.csMetsAtDx, /^00|08|16|18|31|33$/)) return false if (i > 1) return line.csMetsAtDx != '26' && line.csMetsAtDx != '27' } return true]]></expression> <message>Conflict among CS Mets at DX and CS Mets at DX-Bone, Lung, Brain, or Liver codes for Colon schema</message> <description><![CDATA[The purpose of this edit is to verify that CS Mets at DX and CS Mets at DX-Bone, Lung, Brain, and Liver are coded consistently for the Colon schema. This edit is skipped if CS Mets at DX is empty. This edit first determines the correct 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 schema is Colon: If CS Mets at DX-Bone, CS Mets at DX-Lung, CS Mets at DX-Brain, or CS Mets at DX-Liver = 1 (yes), then CS Mets at DX must not = 00, 08, 16, 18, 31, or 33 If more than one of CS Mets at DX-Bone, CS Mets at DX-Lung, CS Mets at DX-Brain, or CS Mets at DX-Liver = 1 (yes), then CS Mets at DX must not = 26 or 27.]]></description> <history> <event version="SE12-002-01" user="murphyr" date="2010-03-10">Edit created.</event> <event version="SE12-004-01" user="murphyr" date="2011-02-14">Edit updated for CSv2 version 02.03.02.</event> <event version="SE12-006-01" user="murphyr" date="2011-12-16" ref="66601">Removed 29 from list of codes for Mets at DX</event> <event version="SE12-007-01" user="murphyr" date="2012-03-12" ref="66683">Removed 'If CS Mets at DX-Liver = 1, then CS Mets at DX must = 26, 27, 36, 40, 45, or 48.' logic.</event> <event version="SE14-011-01" user="murphyr" date="2013-11-26" ref="67057">Fixed condition checking for CS Mets at DX 26 or 27; it wasn't always properly executed because previous condition could sometimes return early.</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-018-01" user="schadega" date="2018-04-11" ref="67741">Edit name change.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed edit dependencies.</event> </history> </rule>