edits.seer.internal.rules.IF610.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="IF610" name="Primary Site, M 2016 - Ed 7 (SEER)" tag="N2337" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_25,Grade,Histologic_Type_ICD-O-3,Primary_Site,Sex,TNM_Clin_M,TNM_Path_M,Type_of_Reporting_Source,Year_of_Diagnosis"> <expression><![CDATA[boolean skipCondition4 = line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' boolean skipCondition5 = !(line.tnmEditionNumber == '07' || line.tnmEditionNumber == 'U7' || line.tnmEditionNumber == '88') boolean skipCondition6 = line.tnmClinM == null && line.tnmPathM == null if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' || line.histologicTypeIcdO3 == null || skipCondition4 || skipCondition5 || skipCondition6) return true if (line.tnmEditionNumber == '88' && (line.tnmClinM == null || line.tnmClinM == '88') && (line.tnmPathM == null || line.tnmPathM == '88') && line.overRideSiteTnmStggrp == '1') return true String siteGroup = (String)((Closure)Context.AJCC7CodeLookup16).call(line) List validCodes = (List)((Map)Context.IF610_Table).getOrDefault(siteGroup, ['88']) // Special Case for group 28 and 37B if ((siteGroup == '028' || siteGroup == '37B') && Functions.matches(line.histologicTypeIcdO3, /^905[0-5]$/)) { if (line.tnmClinM != null && !validCodes.contains(line.tnmClinM) && line.tnmClinM != '88') return false if (line.tnmPathM != null && !validCodes.contains(line.tnmPathM) && line.tnmPathM != '88') return false return true } if (line.tnmClinM != null) if (!validCodes.contains(line.tnmClinM)) return false if (line.tnmPathM != null) if (!validCodes.contains(line.tnmPathM)) return false return true]]></expression> <message>TNM M code is invalid for site/hist combination</message> <description><![CDATA[TNM Clin M and TNM Path M may be blank. If TNM Clin M is entered, it is edited by the criteria below. If TNM Path M is entered, it is edited by the criteria below. 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. TNM Edition Number is not = 07, U7, or 88 6. TNM Clin M and TNM Path M are both blank The allowable values for Clin M: (blank), c0, c0I+, c1, c1A, C1B, c1C, c1D, c1E, p1, p1A, p1B, p1C, p1D, p1E, 88 Path M: (blank), c0, c0I+, c1, c1A, C1B, c1C, c1D, c1E, p1, p1A, p1B, p1C, p1D, p1E, 88 This edit checks the subset of values that are valid for each of the site/histology groups that have a TNM M defined and checks for "88" if the site/histology group does not have a TNM M defined. Pediatric cases not staged according to AJCC are skipped and are identified in this edit by TNM Edition Number = 88, AJCC Clin M = 88 or blank, AJCC Path M = 88 or blank, and Over-ride Site/TNM-Stgrp = 1. The use of over-ride for cases over age 24 is checked in other edits. The number next to each site group indicates the chapter in the AJCC Cancer Staging Manual, Edition 7. The sites for each chapter are listed along with the histologies for which M is defined. Site/histology group names are taken from UICC. The site-specific TNM values are listed below for each group or subgroup. The edit checks that "c" or "p" precedes the value given for both the Clin M and Path M except for "88" and blank. The list of site/hist specific valid values does not list the appropriate c and p but the edit checks for it. For clin M unless stated otherwise, the list of valid values can have either a "c" or "p" and for Path M all values can have either a "c" or "p" except p0 (pM0), which is not valid for either the Clin or Path evaluation for any site/hist. This edit allows a blank as a valid code for either the Clin M or Path M. For example if the documentation shows: M: 0,1 Then the case passes for: Clin M: c0, c1, p1, (blank) Path M: c0, c1, p1, (blank) Breast lists both a clin and path set of values because c0I+ (cM0I+) is only valid for breast Clin or Path M and p0I+ is not valid. This edit differs from the COC-NPCR edit of the same name in that it includes NOS categories for M that are not listed in the AJCC 7th Edition - see SEER comparison documentation. 3. Lip and Oral Cavity Sites: C000-C006,C008,C009 C020-C023,C028,C029 C030,C031,C039 C040,C041,C048,C049 C050,C058,C059 C060-C062,C068,C069 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 4. Pharynx 4A. Oropharynx and Hypopharynx Sites: C019, C024 C051-C052 C090-C091, C098-C099 C100, C102-C104, C108-C109 C129 C130-C132, C138-C139 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 4B. Nasopharynx Sites: C110, C112-C113, C118-C119 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 4C. Nasopharynx Sites: C111 Discriminator (Site-Specific Factor25): 010 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 4D. Oropharynx - Pharyngeal Tonsil Sites: C111 Discriminator (Site-Specific Factor25): 020 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 Sites/histologies are assigned to group 4D from 4C based on Site-Specific Factor 25 TNM M: 0,1 5. Larynx 5A. Supraglottis, Subglottis, Other Sites: C101, C321-C322 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 5B. Glottis Sites: C320, C328-C329 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980, 8981 TNM M: 0,1 6. Nasal Cavity and Paranasal Sinuses Sites: C300, C310-C311 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 7. Major Salivary Glands Sites: C079 C080,C081,C088,C089 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8982 TNM M: 0,1, 88 8. Thyroid Gland 8A. Thyroid: Papillary/follicular, age less than 045 Sites: C739 Histologies Requiring AJCC Staging: 8000-8015, 8022, 8033-8344, 8350-8420, 8440-8508, 8514-8576, 8940-8950, 8980-8981 Age at Diagnosis: less than 045 Grade: 1-3 or 9 Site/histologies are assigned to group 8A from group 8 based on grade, age at diagnosis TNM M: 0,1, 88 8B. Thyroid: Papillary/follicular, age greater than or equal 045 but not 999 Sites: C739 Histologies Requiring AJCC Staging: 8000-8015, 8022, 8033-8344, 8350-8420, 8440-8508, 8514-8576, 8940-8950, 8980-8981 Age at Diagnosis: greater than or equal to 045, but not equal 999 Grade: 1-3 or 9 Site/histologies are assigned to group 8B from group 8 based on grade, age at diagnosis TNM M: 0,1, 88 8C. Thyroid: Papillary/follicular, age equal 999 (unknown) Sites: C739 Histologies Requiring AJCC Staging: 8000-8015, 8022, 8033-8344, 8350-8420, 8440-8508, 8514-8576, 8940-8950, 8980-8981 Age at Diagnosis: equal 999 Grade: 1-3 or 9 Site/histologies are assigned to group 8C from group 8 based on grade, age at diagnosis TNM M: 0,1, 88 8D. Thyroid: Medullary Sites: C739 Histologies Requiring AJCC Staging: 8345-8347, 8430, 8510, 8512-8513 Grade: 1-3 or 9 TNM M: 0,1, 88 8E. Thyroid: Anaplastic Sites: C739 Histologies Requiring AJCC Staging: 8020-8021, 8030-8032 TNM M: 0,1 8F. Thyroid: Anaplastic Sites: C739 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 Grade: 4 Site/histologies are assigned to group 8F from group 8 and group 8D based on grade TNM M: 0,1 9. Malignant Melanoma of Upper Aerodigestive Tract Sites: C000-C006, C008-C009 C019 C020-C024, C028-C029 C030-C031, C039 C040-C041, C048-C049 C050-C052, C058-C059 C060-C062, C068-C069 C090-C091, C098-C099 C100-C104, C108-C109 C110-C113, C118-C119 C129, C130-C132 C138-C139 C140, C142, C148 C300 C310-C311 C320-C323, C328-C329 Histologies Requiring AJCC Staging: 8720-8790 TNM M: 0,1, 88 10. Oesophagus including Oesophagogastric Junction 10A. Oesophagus Sites: C150-C155, C158-C159 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 10B. Oesophagogastric Junction Sites: C160-C162 Histologies Requiring AJCC Staging: 8000-8152, 8154-8231, 8243-8245, 8247-8248, 8250-8576, 8940-8950, 8980-8981 Discriminator (Site-Specific Factor25): 020, 040, 060 (for C161-C162) Site/histologies are assigned to group 10B from group 11 based on site and site-specific factor 25 as well as table lookup TNM M: 0,1 11. Stomach Sites: C161-C162 and Discriminator (Site-Specific Factor 25) = 000, 030, 999 C163-C166, C168-C169 Histologies Requiring AJCC Staging: 8000-8152, 8154-8231, 8243-8245, 8247-8248, 8250-8576, 8940-8950, 8980-8990 TNM M: 0,1 12. Small Intestine Sites: C170-C172, C178-C179 Histologies Requiring AJCC Staging: 8000-8152, 8154-8231, 8243-8245, 8247-8248, 8250-8576, 8940-8950, 8980-8981 TNM M: 0,1 13. Appendix 13A. Appendix: Carcinoma Sites: C181 Histologies Requiring AJCC Staging: 8000-8152, 8154-8231, 8243-8245, 8247-8248, 8250-8576, 8940-8950, 8980-8981 TNM M: 0,1,1A,1B 13B. Appendix: Carcinoid Sites: C181 Histologies Requiring AJCC Staging: 8240-8242, 8246, 8249, 8153 TNM M: 0,1, 88 14. Colon and Rectum Sites: C180, C182-C189 C199 C209 Histologies Requiring AJCC Staging: 8000-8152, 8154-8231, 8243-8245, 8247-8248, 8250-8576, 8940-8950, 8980-8981 TNM M: 0,1,1A,1B 15. Anal Canal Sites: C210-C212, C218 Histologies Requiring AJCC Staging: 8000-8152, 8154-8231, 8243-8245, 8250-8576, 8940-8950, 8980-8981 TNM M: 0,1 16. Gatrointestinal Stromal Tumor (GIST) 16A. GIST: Gastric Sites: C160-C169 C480-C488 and Site-Specific Factor 10 = 020 (Omentum) Histologies Requiring AJCC Staging: 8935-8936 Sites/histologies are assigned to group 16A from group 16B based on site-specific factor 10 as well as table lookup TNM M: 0,1, 88 16B. GIST: Small Intestine Sites: C150-C159 C170-C172, C178, C179 C180-C189 C199 C209 C480-C488 and Site-Specific Factor 10 not = 020 (Omentum) Histologies Requiring AJCC Staging: 8935-8936 TNM M: 0,1, 88 17. Gastric, Small & Large Intestinal Carcinoid Tumours 17A. Gastric, Small & Large Intestinal Carcinoid Tumours-Stomach Sites: C160-C169 Histologies Requiring AJCC Staging: 8153, 8240-8242, 8246, 8249 TNM M: 0,1 17B. Gastric, Small & Large Intestinal Carcinoid Tumours-Duodenum/Ampulla/Jejunum/Ileum Sites: C170-C179 C241 Histologies Requiring AJCC Staging: 8153, 8240-8242, 8246, 8249 TNM M: 0,1, 88 17C. Gastric, Small & Large Intestinal Carcinoid Tumours-Large Intestine Sites: C180, C182-C189 C199, C209 Histologies Requiring AJCC Staging: 8153, 8240-8242, 8246, 8249 TNM M: 0,1, 88 18. Liver-Hepatocellular Carcinoma Sites: C220 Histologies Requiring AJCC Staging: 8170-8175 TNM M: 0,1, 88 19. Liver-Intrahepatic Bile Ducts Sites: C221 Histologies Requiring AJCC Staging: 8160, 8161, 8180 TNM M: 0,1 20. Gallbladder Sites: C239 C240 and Discriminator (Site-Specific Factor 25) = 030 Histologies Requiring AJCC Staging: 8000-8152,8154-8231, 8243-8245, 8250-8576, 8940-8950, 8980-8981 Sites/histologies are assigned to group 20 from group 21 based on site-specific factor 25 as well as table lookup TNM M: 0,1 21. Extrahepatic Bile Ducts-Perihilar Sites: C240 and Discriminator (Site-Specific Factor 25) = 010, 020, 050, 060, 999 Histologies Requiring AJCC Staging: 8000-8152, 8154-8231, 8243-8245, 8250-8576, 8940-8950, 8980-8981 TNM M: 0,1 22. Extrahepatic Bile Ducts-Distal Sites: C240 and Discriminator (Site-Specific Factor 25) = 040, 070 Histologies Requiring AJCC Staging: 8000-8152, 8154-8231, 8243-8245, 8250-8576, 8940-8950, 8980-8981 Sites/histologies are assigned to group 22 from group 21 based on site-specific factor 25 as well as table lookup TNM M: 0,1 23. Ampulla of Vater Sites: C241 Histologies Requiring AJCC Staging: 8000-8152, 8154-8231, 8243-8245, 8250-8576, 8940-8950, 8980-8981 TNM M: 0,1 24. Pancreas Sites: C250-C254, C257-C259 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8971, 8980-8981 TNM M: 0,1 25. Lung Sites: C340-C343,C348,C349 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1,1A,1B 26. Pleural Mesothelioma Sites: C384 Histologies Requiring AJCC Staging: 9050-9053 TNM M: 0,1,88 27. Bone Sites: C400-C403, C408-C409 C410-C414, C418-C419 Histologies Permitting AJCC Staging: 8800-9136, 9142-9582 TNM M: 0,1,1A,1B 28. Soft Tissues Peritoneum - not female Sites: C481-C482, C488 Histologies: 8800-8820, 8823-8934, 8940-9136, 9142-9582 Sex = 1, 3-5, 9 (not female) Peritoneum - female Sites: C481-C482, C488 Histologies: 8800-8820, 8823-8921, 9120-9136, 9142-9582 Sex = 2, 6 (female) Heart,Mediastinum, Soft Tissue Sites: C380-C383, C388 C470-C476, C478-C479 C490-C496, C498-C499 Histologies: 8800-8820, 8823-8935, 8940-9136, 9142-9582 Retroperitoneum Sites: C480 Histologies: 8800-8820, 8823-8934, 8940-9136, 9142-9582 Specific sites/histologies assigned to group 28 based on sex TNM M: 0,1 NOTE: TNM M 88 allowed for Mesothelioma, 9050-9055 29. Carcinoma of Skin Sites: C440, C442-C449, C632 Histologies Requiring AJCC Staging: 8000-8246, 8248-8576, 8940-8950, 8980-8981 TNM M: 0,1 30. Merkel Cell Carcinoma Sites: C440, C442-C449, C510-C512, C518-C519 C600-C602, C608-C609 C632 Histologies Requiring AJCC Staging: 8247 TNM M: 0,1,1A,1B,1C 31. Malignant Melanoma of the Skin Sites: C440-C449 C510-C512,C518,C519 C600-C602, C608, C609 C632 Histologies Requiring AJCC Staging: 8720-8790 TNM M: 0,1,1A,1B,1C 32. Breast Tumours Sites: C500-C506,C508,C509 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981, 9020 TNM M: Clin: c0,c0I+,c1,p1 Path: c0,c0I+,c1,p1 33. Vulva Sites: C510-C512,C518,C519 Histologies Requiring AJCC Staging: 8000-8246, 8248-8576, 8940-8950, 8980-8981 TNM M: 0,1 34. Vagina Sites: C529 Histologies Requiring AJCC Staging: 8000-8576, 8800-8801, 8940-8950, 8980-8981 TNM M: 0,1 35. Cervix Uteri Sites: C530,C531,C538,C539 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 36. Uterus 36A. Uterus-Endometrium Sites C540-C543, C548-C549 C559 Histologies Requiring AJCC Staging: 8000-8790, 8950-8951, 8980-8981 TNM M: 0,1 36B. Uterus-Uterine Sarcomas: Leiomyosarcoma and Endometrial Stromal Sarcoma Sites: C540-C543, C548-C549 C559 Histologies Requiring AJCC Staging: 8800, 8890-8898, 8900-8921, 8930-8931, 8935 TNM M: 0,1, 88 36C. Uterus-Uterine Sarcomas: Adenosarcoma Sites: C540-C543, C548-C549 C559 Histologies Requiring AJCC Staging: 8933 TNM M: 0,1, 88 37. Ovary 37A. Ovary Sites: C569 Histologies Requiring AJCC Staging: 8000-8576, 8590-8671, 8930-9110 TNM M: 0,1, 88 37B. Peritoneal Carcinomas Sites: C481-C482, C488 Sex = 2, 6 (female) Histologies Requiring AJCC Staging: 8000-8576, 8590-8671, 8930-8934, 8940-9110 Sex code checked for assignment to group 37B TNM M: 0,1 NOTE: TNM M 88 allowed for Mesothelioma, 9050-9055 38. Fallopian Tube Sites: C570 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 39. Gestational Trophoblastic Tumors Sites: C589 Histologies Requiring AJCC Staging: 9100-9105 TNM M: 0,1,1A,1B, 88 40. Penis Sites: C600-C602,C608,C609 Histologies Requiring AJCC Staging: 8000-8246, 8248-8576, 8940-8950, 8980-8981 TNM M: 0,1 41. Prostate Sites: C619 Histologies Requiring AJCC Staging: 8000-8110, 8140-8576, 8940-8950, 8980-8981 TNM M: 0,1,1A,1B,1C, 88 42. Testis Sites: C620,C621,C629 Histologies Requiring AJCC Staging: 8000-8576, 8590-8670, 8940-8950, 8980-8981, 9060-9090, 9100-9105 TNM M: 0,1,1A,1B 43. Kidney Sites: C649 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1, 88 44. Renal Pelvis and Ureter Sites: C659 C669 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 45. Bladder Sites: C670-C679 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 46. Urethra Sites: C680 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 47. Adrenal Cortex Tumours 47A. Adrenal Cortex Sites: C740 Histologies Requiring AJCC Staging: 8010, 8140, 8370 TNM M: 0,1, 88 47B. Adrenal Cortical Carcinoma Sites: C749 Histologies Requiring AJCC Staging: 8370 TNM M: 0,1, 88 48. Carcinoma of Skin of Eyelid Sites: C441 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 49. Carcinoma of Conjunctiva Sites: C690 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1 50. Malignant Melanoma of Conjunctiva Sites: C690 Histologies Requiring AJCC Staging: 8720-8790 TNM M: 0,1 51. Malignant Melanoma of Uvea 51A. Ciliary Body and Choroid Sites: C693 C694 (CS Site-Specific Factor 25 = 010) Histologies Requiring AJCC Staging: 8720-8790 Sites/histologies are assigned to group 51A from group 51 based on site-specific factor 25 TNM M: 0,1,1A,1B,1C,88 51B. Iris Sites: C694 (Site-Specific Factor 25 = 020) Histologies Requiring AJCC Staging: 8720-8790 Sites/histologies are assigned to group 51B from group 51 based on site-specific factor 25 TNM M: 0,1,1A,1B,1C,88 52. Retinoblastoma Sites: C692 Histologies Requiring AJCC Staging: 9510-9514 TNM M: 0,1,1A,1B,1C,1D,1E 53. Carcinoma of Lacrimal Gland Sites: C695 and Site-Specific Factor25 = 015 Histologies Requiring AJCC Staging: 8000-8576, 8940-8950, 8980-8981 TNM M: 0,1,88 54. Sarcoma of Orbit Sites: C696 Histologies Requiring AJCC Staging: 8800-8936, 8940-9136, 9141-9508, 9520-9582 TNM M: 0,1, 88 55. Hodgkin and Non-Hodgkin Lymphoma (Ocular Adnexal Lymphoma) Sites: C441, C690, C695-C696 Histologies Requiring AJCC Staging: 9590-9699, 9702-9738, 9811-9818, 9820-9837 TNM M: 0,1,1A,1B,1C,88 56. Brain and Spinal Cord Sites: C700, C701, C709, C710-C719, C720-C729, C751-C753 Histologies Requiring AJCC Staging: 8000, 8680-9136,9141-9582 TNM T: 88 57. Lymphoid Neoplasms 57A. Hodgkin and Non-Hodgkin Lymphoma Sites: C000-C440, C442-C689, C691-C694, C698-C809 Histologies Requiring AJCC Staging: 9590-9699, 9702-9727, 9735, 9737-9738 Sites: C000-C419, C422-C423, C425-C440, C442-C689, C691-C694, C698-C809 Histologies Requiring AJCC Staging: 9811-9818, 9823, 9827, 9837 Sites/histologies are assigned to group 57A based on combinations of site and histology TNM M: 88 57B. Mycosis Fungoides (EORTC Staging System) Sites: C440-C449 C510-C512, C518-C519 C600-C602, C608-C609, C632 Histologies Requiring EORTC Staging: 9700,9701 TNM M: 0,1,88 57C. Lymphoid/Hematopoietic Sites: C420, C421, C424 Histologies Requiring AJCC Staging: 9811-9818, 9837 TNM M: 88 All Other Schemas and/or Primary Site/Histologies TNM M: 88]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-06-13" ref="67443">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2016-10-27" ref="67540">Added code '57C' to table.</event> <event version="SE16-016-01" user="kirbyk" date="2016-12-09" ref="67572">Updated description.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-24" ref="67630">88 is now valid code for some cases for group 28.</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-01" user="kirbyk" date="2018-04-24" ref="67774">88 is now valid code for some cases for group 37B.</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="beverung" date="2021-03-05" ref="68574">Add code 88 for group 26 and add pediatric skip condition.</event> </history> </rule>