edits.seer.internal.rules.IF195.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="IF195" name="CS Extension, Lymphoma Schema (CS)" tag="N0923" java-path="lines.line" category="inter-field" depends="CS_Extension,CS_Site-Specific_Factor_25,Histologic_Type_ICD-O-3,Primary_Site,Type_of_Reporting_Source"> <expression><![CDATA[if (line.csExtension == null || line.typeOfReportingSource == '7') return true if (line._csSchemaId == 'lymphoma') { if (line.csExtension == '100' && ! (Functions.matches(line.primarySite, /^C(024|09\d|111|1[47]2|181|379|77[0-5]|779)$/))) return false if (line.csExtension == '110' && Functions.matches(line.primarySite, /^C(379|422|77[0-5]|779)$/)) return false if (line.csExtension == '120' && line.primarySite != 'C422') return false if (line.primarySite == 'C778') return Functions.matches(line.csExtension, /^[2-9]\d\d$/) if (line.primarySite == 'C422') return [120,220,230,320,330,800,999].contains(Functions.asInt(line.csExtension)) } return true]]></expression> <message>Conflict between CS Extension and Lymphoma Schema</message> <description><![CDATA[The purpose of this edit is to verify that CS Extension is coded properly for lymphomas. This edit is skipped if any of the following conditions is true: 1. CS Extension [2810] is blank. 2. Case is death certificate only (Type of Reporting Source [500] = 7). 3. Schema is not Lymphoma. If CS Extension [2810] = 100, then Primary Site [400] must be one of the following: C770-C775, C779 (single lymph node region), C024 (lingual tonsil), C090-C099 (tonsil), C111 (pharyngeal tonsil), C142 (Waldeyer's ring), C172 (illeum), C181 (appendix) or C379 (thymus). If CS Extension [2810] = 110, then Primary Site [400] must NOT be one of the following: C770-C775, C779, C379, or C422. If CS Extension [2810] = 120, then Primary Site [400] must be C422 (Spleen). Additionally, If Primary Site [400] = C778 (Multiple LNs), then CS Extension [2810] must by > or = 200. If Primary Site [400] = C422 (Spleen), then CS Extension [2810] must be 120, 220, 230, 320, 330, 800, or 999.]]></description> <history> <event version="SE11-001-22" user="greend" date="2008-10-07">Extension code 11 is now considered valid for C172.</event> <event version="SE11-001-23" user="greend" date="2009-01-26">CS Extension code 11 is now considered valid for C024, C090-C099, C111, C142, and C181.</event> <event version="SE12-002-01" user="murphyr" date="2010-02-02">Extension codes chaned to 3 digits. Schema is now skipped if not a Lymphoma case.</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> </history> </rule>