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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF616" name="TNM Clin T, Clin Size, Site Spec - Ed 7 (SEER)" tag="N2238" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site,Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' ||
    line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1')
    return true

//Skip condition 6, 7
if (line.tnmClinT == null || line.tnmClinT == '88' || line.tumorSizeClinical == null || line.tumorSizeClinical == '999')
    return true

//Skip condition 8
if (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 clinT = line.tnmClinT
if ((clinT == 'c1' || clinT == 'c1A' || clinT == 'c1MI') && line.tumorSizeClinical == '990')
    return true

Map groupMap = (Map)((Map)Context.TNM_Clin_T_Tumor_Size_Table).getOrDefault(siteGroup, [:])
if (groupMap.containsKey(clinT))
    return ((List)groupMap.getOrDefault(clinT, [])).contains(Functions.asInt(line.tumorSizeClinical))

return true]]></expression>
            <message>TNM Clin T and Tumor Size Clinical 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 Clin T is not dependent on clinical tumor size
6. TNM Clin T is blank or 88
7. Tumor Size Clinical is blank or 999
8. TNM Edition Number is not = 07, U7

Skip 7 applied after determination of site/histology group

TNM Clin T  may be blank.  If entered, it will be edited site-specifically.   A cT category entered in TNM Clin T will be compared to Tumor Size Clinical.  An edit failure will be returned if the clinical tumor size is outside the range of tumor size for the listed cT category.  "989", "989 millimeters or larger", is the highest possible size for Tumor Size Clinical.  990 (microscopic focus) will be accepted for c1 (c1A, c1MI) for all sites/histologies included in this edit.

The site-specific TNM Clinical 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 clinical T is based on clinical 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 Clin      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 Clin      001-020, 990        021-040
    4E.  Hypopharynx
    Sites: C129, C130-C139

TNM T:                 1
Tumor Size Clin      001-020, 990

    4D. Oropharynx

TNM T:                 1                    2
Tumor Size Clin      001-020, 990        021-040

7. Major Salivary Glands

TNM T:                 1                    2
Tumor Size Clin      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 Clin      001-020, 990    001-010, 990    011-020        021-040

13. Appendix

    13B. Appendix: Carcinoid

TNM T:                 1                1A                1B
Tumor Size Clin      001-020, 990    001-010, 990    011-020

15. Anus

TNM T:                 1                2            3
Tumor Size Clin      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 Clin      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 Clin      001-010, 990

    17D.  NET: Ampulla

TNM T:                 1                2
Tumor Size Clin      001-010, 990    011-989

24. Exocrine and Endocrine Pancreas

TNM T:                 1                2
Tumor Size Clin      001-020, 990    021-989

25. Lung

TNM T:                 1                1A                1B            2A              2B
Tumor Size Clin     001-030, 990    001-020, 990    021-030        001-050, 990    051-070

27. Bone

TNM T:                 1                2
Tumor Size Clin      001-080, 990    081-989

28. Soft Tissue Sarcoma

TNM T:                 1                2
Tumor Size Clin     001-050, 990    051-989

29. Cutaneous Squamous Cell Carcinoma and other Cutaneous Carcinomas

TNM T:                 1
Tumor Size Clin      001-020, 990

30. Merkel Cell Carcinoma

TNM T:                 1                2            3
Tumor Size Clin      001-020, 990    021-050        051-989

32. Breast

TNM T:                 1                1M                1A                1B            1C            2            3
Tumor Size Clin      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 Clin      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 Clin      001-050, 990    051-989

49. Conjunctiva

TNM T:                 1                2
Tumor Size Clin      001-005, 990    006-989

53. Carcinoma of the Lacrimal Gland

TNM T:                 1                2            3
Tumor Size Clin      001-020, 990    021-040        041-989

54. Sarcoma of the Orbit

TNM T:                 1                2
Tumor Size Clin      001-015, 990    016-989]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-06-17" ref="67449">Edit created.</event>
                <event version="SE16-015-07" user="kirbyk" date="2016-08-25" ref="67510">Removed code &apos;2A&apos; for Chapter 25.</event>
                <event version="SE16-015-07" user="kirbyk" date="2016-09-13" ref="67524">Fixed logic for Clin T values not based on size.</event>
                <event version="SE16-015-08" user="kirbyk" date="2016-09-26" ref="67529">Added code &apos;2A&apos; for Chapter 25.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-13" ref="67587">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>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy