edits.seer.internal.rules.IF623.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="IF623" name="TNM Clin T, N, M, In Situ (COC)" tag="N2443" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.dateOfDiagnosisYear > '2017') return true if (line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || !(Functions.matches(line.tnmClinT, /^pA|pIS[UD]?$/))) return true if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') return true if (line.overRideTnmTis == '1') return true String siteGroup = (String)((Closure)Context.AJCC7CodeLookup16).call(line) if (siteGroup ==~ /^00[79]|08[ABCDEF]|13B|16[AB]|17[BC]|018|36[BC]|37A|039|04[13]|47[AB]|51[AB]|05[34]|57B$/) return true if (line.tnmClinN != 'c0' && line.tnmClinN != 'c0A' && line.tnmClinN != 'c0B') return false if (line.tnmClinM != 'c0' && line.tnmClinM != 'c0I+') return false if (siteGroup != '049' && siteGroup != '050') if (line.tnmClinStageGroup != '0' && line.tnmClinStageGroup != '0IS' && line.tnmClinStageGroup != '0A') return false return true]]></expression> <message>TNM Clin T, N, M conflict for in situ</message> <description><![CDATA[The purpose of this edit is to verify that TNM Clin N, TNM Clin M, and TNM Clin Stage Group are coded consistently for cases where TNM Clin T indicates an in situ tumor(TNM Clin T = pIS, pA, pISU, pISD, or pA). This edit enforces the statement in the AJCC manual on page 12: Carcinoma in situ (CIS) is an exception to the stage grouping guidelines. By definition, CIS has not involved any structure in the primary organ that would allow tumor cells to spread to regional nodes or distant sites. This edit is skipped if any of the following conditions is true: 1. Year of Date of Diagnosis is less than 2016 or greater than 2017, blank (unknown), or invalid 2. Type of Reporting Source = 7 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) 4. TNM Clin T is not = pIS, pA, pISU, pISD, or pA 5. TNM Edition Number not = 07, U7 If the case is reviewed and accepted as coded (Over-ride TNM Tis = 1) no further editing is done. See "Additional Information" in this description. If TNM Clin T = pIS, pA, pISU, or pISD: TNM Clin N must = c0, c0A, c0B (no clinically positive nodes) TNM Clin M must = c0, c0I+ (metastasis clinically negative) TNM Clin Stage Group must = 0, 0A, or 0IS (stage group clinical = in situ) Only TNM Clin N and TNM Clin M are edited for the following TNM groups. In situ carcinomas are recognized by AJCC, but there is no stage grouping. 49. Carcinoma of Conjunctiva 50. Malignant Melanoma of Conjunctiva This edit is skipped for the following TNM groups (AJCC does not recognize or does not stage in situ tumors for these sites, though in situ may be assigned by a pathologist): 7. Major Salivary Glands 8. Thyroid Gland (08A-08F) 9. Mucosal Melanoma Head and Neck 13B. Appendix, Carcinoid 16. GIST 17. NET Small Intestine and Ampulla of Vater, NET Colon and Rectum (17B, 17C) 18. Liver 36B. Corpus Sarcoma 36C. Corpus Adenosarcoma 37A. Ovary 39. Gestational Trophoblastic Tumors 41. Prostate 43. Kidney 47. Adrenal (47A, 47B) 51A. Melanoma of Choroid 51B. Melanoma of Iris 53. Carcinoma of the Lacrimal Gland 54. Sarcoma of the Orbit 57B. Primary Cutaneous Lymphoma Additional Information: As noted above, Carcinoma in situ (CIS) is an exception to the stage grouping guidelines. By definition, CIS has not involved any structure in the primary organ that would allow tumor cells to spread to regional nodes or distant sites. Therefore, pTis cN0 cM0 should be reported as both clinical and pathologic stage 0. Traditional registry coding rules have recommended that registrars assign at least a category of T1 to cases where in situ behavior is found on pathologic examination of tissue from the primary site but other findings indicate regional or distant involvement, based on the concept that primary tumor invasion must be present but not identified. AJCC is interested in identifying such cases where in situ behavior on pathologic examination of the primary site is accompanied by findings of regional nodal or distant involvement, and the AJCC consultant recommends coding Tis with relevant N and M categories and unknown stage group. An over-ride has been added to this edit to allow this coding. First check that T, N, and M values are coded correctly. Review all pathology reports and verify T, N, and M categories with the staging physician. Also contact the AJCC forum for staging questions or consult published training materials for guidance on handling specific case circumstances. If, after careful review and consultation, the coding that generated an edit failure is determined to be correct, set the Over-ride TNM Tis to 1 and rerun the edit.]]></description> <history> <event version="SE16-016-01" user="kirbyk" date="2016-12-01" ref="67546">Edit created.</event> <event version="SE16-016-01" user="kirbyk" date="2017-01-13" ref="67589">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-018-10" user="kirbyk" date="2018-12-13" ref="68075">Updated description; edit now skipped for DX year > 2017; added logic to over-ride edit.</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="SE24-024-04" user="kirbyk" date="2024-04-12" ref="69326">Removed several dependencies.</event> </history> </rule>