edits.seer.internal.rules.IF599.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="IF599" name="TNM Clin Descriptor, Histologies - Ed 7 (COC)" tag="N2223" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_Descriptor,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.tnmClinDescriptor == null || !(Functions.matches(line.tnmClinDescriptor, /^[125]$/))) return true //Ocular Adnexal Lymphoma String hist = line.histologicTypeIcdO3 String site = line.primarySite if (site ==~ /^C441|C69[056]$/ && ((hist >= '9590' && hist <= '9699') || (hist >= '9702' && hist <= '9738') || (hist >= '9811' && hist <= '9818') || (hist >= '9820' && hist <= '9837'))) return true //Primary Cutaneous Lymphoma if (site ==~ /^C44\d|C51[01289]|C60[01289]|C632$/ && (hist == '9700' || hist == '9701')) return true //Neoplasms Integer siteInt = Functions.asInt(site?.substring(1)) if (((siteInt >= 0 && siteInt <= 419) || siteInt == 422 || siteInt == 423 || siteInt == 440 || (siteInt >= 442 && siteInt <= 689) || (siteInt >= 691 && siteInt <= 694) || (siteInt >= 698 && siteInt <= 809)) && (hist == '9823' || hist == '9827' || (hist >= '9811' && hist <= '9818') || hist == '9837')) return true if ((siteInt == 420 || siteInt == 421 || siteInt == 424) && ((hist >= '9811' && hist <= '9818') || hist == '9837')) return true //Other if (!(site ==~ /^C441|C69[056]$/) && ((hist >= '9590' && hist <= '9699') || (hist >= '9702' && hist <= '9727') || hist == '9735' || hist == '9737' || hist == '9738')) return true return false]]></expression> <message>TNM Clin Descriptor, Site, Histology conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1. Year of Date of Diagnosis is less than 2016, blank (unknown), or invalid 2. Type of Reporting Source = 7 (Death Certificate Only) 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 4. TNM Clin Descriptor is blank 5. TNM Clin Descriptor not = 1, 2, 5 This edit verifies that TNM Clin Descriptor codes 1 [E (Extranodal, lymphomas only)], 2 [S (Spleen, lymphomas only)], and 5 [E & S (Extranodal and spleen, lymphomas only)] are coded only for lymphoma cases. If TNM Clin Descriptor = 1, 2, 5 and case is not a lymphoma as specified below, an error is generated. Ocular Adnexal Lymphoma: Primary Site: C441, C690, C695-C696 Histologic Type ICD-O-3 9590-9699, 9702-9738, 9811-9818, 9820-9837 Primary Cutaneous Lymphomas: Primary Site: C440-C449 C510-C512, C518-C519 C600-C602, C608-C609, C632 Histologic Type ICD-O-3: 9700,9701 Neoplasms manifesting as leukemia or lymphoma: Primary Site: C000-C419,C422-C423, C440,C442-C689, C691-C694,C698-C809 Histologic Type ICD-O-3: 9823,9827,9811-9818, 9837 Primary Site: C420,C421,C424 Histologic Type ICD-O-3: 9811-9818, 9837 Other lymphomas: Primary Site: All except C441, C690, C695-C696 Histologic Type ICD-O-3 9590-9699, 9702-9727, 9735, 9737-9738]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-06-01" ref="67432">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2016-12-01" ref="67547">Added more neoplasm site/hist combinations.</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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> </history> </rule>