edits.seer.internal.rules.IF576.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="IF576" name="TNM N, SSF 3, 5 Corpus Uteri (COC)" tag="N2247" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_3,CS_Site-Specific_Factor_5,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_N,TNM_Path_N,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') return true //Skip condition 5 if ((line.tnmClinN == null && line.tnmPathN == null) || (line.tnmClinN == '88' && line.tnmPathN == '88')) return true //Skip condition 6 if ((line.csSiteSpecificFactor3 == null && line.csSiteSpecificFactor5 == null) || (line.csSiteSpecificFactor3 == '988' && line.csSiteSpecificFactor5 == '988')) return true //Skip condition 7 if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') return true if (!(Functions.matches(line.primarySite, /^C54[0-389]|C559$/))) return true if (!Functions.between(line.histologicTypeIcdO3, '8000','8790') && line.histologicTypeIcdO3 != '8950' && line.histologicTypeIcdO3 != '8951' && line.histologicTypeIcdO3 != '8980' && line.histologicTypeIcdO3 != '8981') return true String ssf3 = line.csSiteSpecificFactor3 String ssf5 = line.csSiteSpecificFactor5 if (ssf3 == '000' && ssf5 == '000') return line.tnmPathN == null || line.tnmPathN == 'p0' else if (ssf3 ==~ /^00[1-9]|0[1-8]\d|09[057]$/ || ssf5 ==~ /^00[1-9]|0[1-8]\d|09[057]$/) return line.tnmClinN != 'c0' || (line.tnmPathN != 'c0' && line.tnmPathN != 'p0') else if ((ssf3 == '098' || ssf3 == '999') && (ssf5 == '098' || ssf5 == '999')) return line.tnmPathN == null || line.tnmPathN == 'pX' || line.tnmPathN == 'c0' return true]]></expression> <message>TNM N, SSF 3, SSF 5 conflict for Corpus Carcinoma</message> <description><![CDATA[Purpose: This edit verifies that TNM Path N and TNM Clin N are coded consistently with nodal information in CS Site-Specific Factors 3 (Number of Positive Pelvic Nodes) and 5 (Number of Positive Para-Aortic Nodes) for Corpus Uteri. 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. Site/histology group not 36A, Corpus Uteri CarcinomaS 5. TNM Path N and TNM Clin N are blank or 88 6. CS Site-Specific Factors 3 and 5 are blank or 988. 7. TNM Edition Number not = 07, U7. The site/histology groups are identified by site and histology in the edit Primary Site, Stage Group 2016 - Ed 7. For Corpus Carcinoma (C540-C543,C548-C549,C559 with histology 8000-8790,8950-8951,8980-8981): 1. If CS Site-Specific Factors 3 and 5 = 000 (all nodes examined negative), TNM Path N must = p0 or blank. 2. If CS Site-Specific Factor 3 or 5 = 001-090, 095, 097 (positive nodes), TNM Clin N and TNM Path N must not both indicate no nodes involved. 3. If both CS Site-Specific Factors 3 and 5 = 098 (no nodes examined) or 999 (unknown if nodes positive) TNM Path N must = blank, pX, or c0.]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-05-18" ref="67400">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-17" ref="67599">Added skip condition for TNM Edition Number.</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-02" user="schadega" date="2018-05-18" ref="67743">Name change.</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="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy