edits.seer.internal.rules.IF618.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="IF618" name="TNM Path T, Path Size, Site Spec - Ed 7 (SEER)" tag="N2267" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Histologic_Type_ICD-O-3,Primary_Site,TNM_Path_T,Tumor_Size_Pathologic,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[//Skip conditions 1, 2, 3 if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' || line.histologicTypeIcdO3 == null) return true //Skip conditions 4, 6 if (line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.tnmPathT == null || line.tnmPathT == '88') return true //Skip conditions 7, 8 if (line.tumorSizePathologic == null || line.tumorSizePathologic == '999' || (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7')) return true //Get site group code- special conditions for tumor size edit String siteGroup = (String)((Closure)Context.AJCC7CodeLookup16).call(line) if (siteGroup == '04A') { if (Functions.matches(line.primarySite, /^C129|C13\d$/)) siteGroup = '04E' } else if (siteGroup == '17B') { if (line.primarySite == 'C241') siteGroup = '17D' } //If this site group is not in the table, pass edit (skip condition 5) if (!(siteGroup ==~ /^00[37]|04[ADE]|08[ABCD]|13B|015|16[AB]|17[ABD]|02[45789]|03[02]|04[39]|47[AB]|05[34]$/)) return true String pathT = line.tnmPathT if ((pathT == 'p1' || pathT == 'p1A' || pathT == 'p1MI') && line.tumorSizePathologic == '990') return true Map groupMap = (Map)((Map)Context.TNM_Path_T_Tumor_Size_Table).getOrDefault(siteGroup, [:]) if (groupMap.containsKey(pathT)) return ((List)groupMap.getOrDefault(pathT, [])).contains(Functions.asInt(line.tumorSizePathologic)) return true]]></expression> <message>TNM Path T and Path Size conflict for site/hist combination</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. Histologic Type ICD-O-3 is blank 4. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 5. Site/Histology where Path T is not dependent on pathologic tumor size 6. TNM Path T is blank or 88 7. Tumor Size Pathologic is blank or 999 8. TNM Edition Number not = 07, U7 TNM Path T may be blank. If entered, it will be edited site-specifically. A pT category entered in TNM Path T will be compared to Tumor Size Pathologic. An edit failure will be returned if the pathologic tumor size is outside the range of tumor size for the listed pT category. "989", "989 millimeters or larger", is the highest possible size for Tumor Size Pathologic. 990 (microscopic focus) will be accepted for p1 (p1A, p1MI) for all sites/histologies included in this edit. The site-specific TNM Pathologic T values with the corresponding clinical tumor size in millimeters are listed below. The number next to each site title indicates the respective chapter in the AJCC Cancer Staging Manual, Edition 7. The list includes only those sites/histology groups where pathologic T is based on pathologic tumor size. The site/histology groups are identified by site and histology in the edit Primary Site, Stage Group 2016 - Ed 7. Subdivision of the 4A site/histology group, Oropharynx and Hypopharynx, was required for this edit; the site codes for Hypopharynx were removed to site group 4E. 3. Lip and Oral Cavity TNM T: 1 2 3 Tumor Size Path 001-020, 990 021-040 041-989 4. Pharynx 4A. Oropharynx and Hypopharynx Division for T category: 4A. Oropharynx only Sites: C019, C024, C051-C052, C090-C091, C098-C099, C100, C102-C104, C108-C109 TNM T: 1 2 Tumor Size Path 001-020, 990 021-040 4E. Hypopharynx Sites: C129, C130-C139 TNM T: 1 Tumor Size Path 001-020, 990 4D. Oropharynx TNM T: 1 2 Tumor Size Path 001-020, 990 021-040 7. Major Salivary Glands TNM T: 1 2 Tumor Size Path 001-020, 990 021-040 8. Thyroid Gland 8A. Thyroid: Papillary/follicular, age less than 045 8B. Thyroid: Papillary/follicular, age greater than or equal 045 but not 999 8C. Thyroid: Papillary/follicular, age equal 999 (unknown 8D. Thyroid: Medullary TNM T: 1 1A 1B 2 Tumor Size Path 001-020, 990 001-010, 990 011-020 021-040 13. Appendix 13B. Appendix: Carcinoid TNM T: 1 1A 1B Tumor Size Path 001-020, 990 001-010, 990 011-020 15. Anus TNM T: 1 2 3 Tumor Size Path 001-020, 990 021-050 051-989 16. Gastrointestinal Stromal Tumor (GIST) 16A. GIST: Gastric 16B. GIST: Small Intestine TNM T: 1 2 3 4 Tumor Size Path 001-020, 990 021-050 051-100 101-989 17. Neuroendocrine Tumors (NET) 17A. NET: Stomach 17B. NET: Small Intestine TNM T: 1 Tumor Size Path 001-010, 990 17D. NET: Ampulla TNM T: 1 2 Tumor Size Path 001-010, 990 011-989 24. Exocrine and Endocrine Pancreas TNM T: 1 2 Tumor Size Path 001-020, 990 021-989 25. Lung TNM T: 1 1A 1B 2A 2B Tumor Size Path 001-030, 990 001-020, 990 021-030 001-050, 990 051-070 27. Bone TNM T: 1 2 Tumor Size Path 001-080, 990 081-989 28. Soft Tissue Sarcoma TNM T: 1 2 Tumor Size Path 001-050, 990 051-989 29. Cutaneous Squamous Cell Carcinoma and other Cutaneous Carcinomas TNM T: 1 Tumor Size Path 001-020, 990 30. Merkel Cell Carcinoma TNM T: 1 2 3 Tumor Size Path 001-020, 990 021-050 051-989 32. Breast TNM T: 1 1M 1A 1B 1C 2 3 Tumor Size Path 001-020, 990 001-001, 990 001-005, 990 005-010 011-020 021-050 051-989 43. Kidney TNM T: 1 1A 1B 2 2A 2B Tumor Size Path 001-070, 990 001-040, 990 041-070 071-989 071-100 101-989 47. Adrenal 47A. Adrenal Cortex 47B. Adrenal Cortical Carcinoma TNM T: 1 2 Tumor Size Path 001-050, 990 051-989 49. Conjunctiva TNM T: 1 2 Tumor Size Path 001-005, 990 006-989 53. Carcinoma of the Lacrimal Gland TNM T: 1 2 3 Tumor Size Path 001-020, 990 021-040 041-989 54. Sarcoma of the Orbit TNM T: 1 2 Tumor Size Path 001-015, 990 016-989]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-06-17" ref="67452">Edit created.</event> <event version="SE16-015-07" user="kirbyk" date="2016-08-25" ref="67510">Removed code '2A' for Chapter 25.</event> <event version="SE16-015-07" user="kirbyk" date="2016-09-13" ref="67524">Fixed logic for Path T values not based on size.</event> <event version="SE16-015-08" user="kirbyk" date="2016-09-26" ref="67530">Added code '2A' for Chapter 25.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67610">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-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> </history> </rule>