All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edits.seer.internal.rules.IF605.xml Maven / Gradle / Ivy

There is a newer version: 024-13
Show newest version
        <rule id="IF605" name="TNM Path T, N, M, In Situ (COC)" tag="N2442" 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.typeOfReportingSource == '7' ||
    line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || !(Functions.matches(line.tnmPathT, /^pA|pIS[UD]?$/)))
    return true

//Skip conditions 5, 6
if ((line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') || line.tnmPathDescriptor == '4' || line.tnmPathDescriptor == '6')
    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

//Group 45 is Bladder
if (siteGroup == '045') {
    if (line.tnmPathN != 'c0' && line.tnmPathN != 'p0' && line.tnmPathN != null)
        return false
    if (line.tnmPathM != 'c0' && line.tnmPathM != null)
        return false
    if (line.tnmPathStageGroup != '0IS' && line.tnmPathStageGroup != '0A' && line.tnmPathStageGroup != '99')
        return false
}
else {
    if (!(Functions.matches(line.tnmPathN, /^p0([IM][\-+])?|c0$/)))
        return false
    if (line.tnmPathM != 'c0' && line.tnmPathM != 'c0I+')
        return false
    if (siteGroup != '049' && siteGroup != '050') {
        if (line.tnmPathStageGroup != '0' && line.tnmPathStageGroup != '0IS' && line.tnmPathStageGroup != '0A' && line.tnmPathStageGroup != '99')
            return false
    }
}

return true]]></expression>
            <message>TNM Path T, N, M conflict for in situ</message>
            <description><![CDATA[The purpose of this edit is to verify that TNM Path N, TNM Path M, and TNM Path Stage Group are coded consistently for cases where TNM Path T indicates an in situ tumor(TNM Path 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.  Therefore, pTis cN0 cM0 should be reported as both clinical and pathologic stage 0."  The statement on page 499 for bladder takes precedence for this site:  "Pathologic staging is based on the histologic review of the radical or partial cystectomy specimen."


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
3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)
4. TNM Path T is not = pIS, pA, pISU, pISD, or pA
5. TNM Editition Number not = 07, U7
6. TNM Path Descriptor = 4, 6

1. If TNM Path T = pIS, pA, pISU, or pISD:

  A. If TNM site/histology group = Bladder:
     TNM Path N must = p0 (negative nodes pathologically), c0 (clinically negative nodes), or blank (criteria not met for pathologic staging of bladder)
     TNM Path M must = c0 (no clinically positive metastasis), or blank
       (criteria not met for pathologic staging of bladder)
     TNM Path Stage Group must = 0IS or 0A (codes indicating
        in situ/noninvasive based on pathologic evaluation of T and N)
        or 99 (criteria not met for pathologic staging of bladder).


  B. For all other AJCC groups:
     TNM Path N must = p0, p0I-, p0I+, p0M-, p0M+ (negative nodes pathologically), or c0 (clinically negative nodes).
     TNM Path M must = c0, c0I+ (no clinically positive metastasis)
     TNM Path Stage Group must = 0, 0A, or 0IS (codes indicating
       pathologic stage group based on AJCC instructions for pTis) or 99

Only TNM Path N and TNM Path 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]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-06-06" ref="67438">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2016-12-01" ref="67545">Moved logic for TNM Clin values to new edit IF623; added skip condition.</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>
                <event version="SE24-024-04" user="kirbyk" date="2024-04-12" ref="69326">Removed several dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy