edits.seer.internal.rules.IF603.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="IF603" name="TNM T, Clin and Path Stage, Behavior 2 (COC)" tag="N2274" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_T,TNM_Path_Descriptor,TNM_Path_T,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[//Skip conditions 1, 2 if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7') return true //Skip conditions 3, 4 if (line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7')) return true String siteGroup = (String)((Closure)Context.AJCC7CodeLookup16).call(line) if (line.tnmPathT == null) { if (siteGroup == '032' && line.tnmClinT == 'pIS' && Functions.matches(line.histologicTypeIcdO3, /^854[013]$/)) return true else if (siteGroup == '040' && line.tnmClinT == 'pA') return true else if (siteGroup == '045' && line.tnmClinT == 'pIS') return true if (!['014','13A','17A','050'].contains(siteGroup)) if (Functions.matches(line.tnmClinT, /^pA|pIS[UD]?$/) && line.behaviorCodeIcdO3 != '2') return false } else { if (siteGroup == '032' && line.tnmPathT == 'pIS' && Functions.matches(line.histologicTypeIcdO3, /^854[013]$/)) return true else if (siteGroup == '040' && line.tnmPathT == 'pA') return true else if (siteGroup == '045' && line.tnmPathT == 'pIS') return true if (!['014','13A','17A','050'].contains(siteGroup)) if (Functions.matches(line.tnmPathT, /^pA|pIS[UD]?$/) && line.tnmPathDescriptor != '4' && line.tnmPathDescriptor != '6' && line.behaviorCodeIcdO3 != '2') return false } return true]]></expression> <message>TNM T, Clin and Path Stage conflict for Behavior=2</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 Edition Number not = 07, U7 Note: The number next to each TNM group indicates the chapter in the AJCC Cancer Staging Manual, Edition 7. The subheadings (A, B, etc) refer to site/histology groups listed in the edit Primary Site, Stage Group 2016 - Ed 7. A. For the following TNM Group/TNM Clin T or TNM Path T code combinations, Behavior Code ICD-O-3 may = 2 or 3. These TNM Group/TNM Clin T or TNM Path T code combinations are passed (excluded from further editing). If TNM Path T is blank, the edit checks the values in TNM Clin T. If TNM Path T is not blank, the edit checks the values in TNM Path T. 1. TNM Group Breast (32): TNM Clin T = pIS and Histologic Type ICD-O-3 = 8540,8541, and 8543 (codes indicating Paget disease). TNM Path T = pIS and Histologic Type ICD-O-3 = 8540,8541, and 8543 (codes indicating Paget disease). 2. TNM Group Penis (40): TNM Clin T = pA (verrucous carcinoma). TNM Path T = pA (verrucous carcinoma). 3. TNM Group Urinary Bladder (45): TNM Clin T = pIS (tumors described as "confined to mucosa"). TNM Path T = pIS (tumors described as "confined to mucosa") . B. For all other TNM Groups except Colon and Rectum (14), Carcinoma of Appendix (13A), NET Stomach (17A), Melanoma of Conjunctiva (50) 1. If TNM Path T is blank, if TNM Clin T = pA, pIS, pISU, pISD, then Behavior Code ICD-O-3 must = 2. 2. If TNM Path T = pA, pIS, pISU, pISD and TNM Path Descriptor is not = 4 or 6 (Codes indicating pathologic staging after multimodality treatment) Then Behavior Code ICD-O-3 must = 2 Note: The four exceptions listed in B are site/histology groups where AJCC maps an extension considered "invasive" by ICD-O-3 to a "Tis" category.]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-06-03" ref="67436">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67616">Added skip condition for TNM Edition Number; removed check for lung cases.</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> </history> </rule>