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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF578" name="TNM N, SSF 5 Testis (COC)" tag="N2249" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_5,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_N,TNM_Path_Descriptor,TNM_Path_N,Type_of_Reporting_Source,Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' ||
    line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1' || line.csSiteSpecificFactor5 == null || line.csSiteSpecificFactor5 == '988')
    return true

//Skip condition 6
if ((line.tnmClinN == null && line.tnmPathN == null) || (line.tnmClinN == '88' && line.tnmPathN == '88'))
    return true

//Skip conditions 7, 8
if ((line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7') || line.tnmPathDescriptor == '4' || line.tnmPathDescriptor == '6')
    return true

//Skip condition 4
if (!(Functions.matches(line.primarySite, /^C62[019]$/)))
    return true
String hist = line.histologicTypeIcdO3
if (!(hist >= '8000' && hist <= '8576') && !(hist >= '8590' && hist <= '8670') && !(hist >= '8940' && hist <= '8950') && hist != '8980' && hist != '8981' &&
    !(hist >= '9060' && hist <= '9090') && !(hist >= '9100' && hist <= '9105'))
    return true

String ssf5 = line.csSiteSpecificFactor5
if (ssf5 == '000')
    return !(Functions.matches(line.tnmClinN, /^c[123]$/)) && !(Functions.matches(line.tnmPathN, /^p[123]$/))
else if (ssf5 == '010')
    return line.tnmClinN == 'c1' || line.tnmPathN == 'p1'
else if (ssf5 == '020')
    return line.tnmClinN == 'c2' || line.tnmPathN == 'p2'
else if (ssf5 == '030')
    return line.tnmClinN == 'c3' || line.tnmPathN == 'p3'
else if (ssf5 == '999')
    return !(line.tnmClinN == 'c0' && line.tnmPathN == 'p0')

return true]]></expression>
            <message>TNM N and SSF 5 conflict for Testis</message>
            <description><![CDATA[Purpose: This edit verifies that TNM Clin N and TNM Path N are coded consistently with CS SSF 5 for Testis (Size of Metastasis in Lymph Nodes).

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. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline)
4. Primary site/histology is not site/histology group 42, Testis
6. TNM Clin N and TNM Path N are blank or 88
5. CS SSF 5 is blank or 988
7. TNM Edition Number not = 07, U7
8. TNM Path Descriptor = 4, 6

For Testis (C620,C621,C629 w/histology 8000-8576,8590-8670,8940-8950,8980-8981,9060-9090,9100-9105):

A.  If CS SSF 5 = 000 (no lymph node metastasis)
        then TNM Clin N must not = c1, c2, or c3 and TNM Path N must not = p1, p2, or p3 (regional lymph node metastasis)

B.  If CS SSF 5 = 010 (Lymph node metastasis mass 2cm or less without pathologic extranodal extension, stated as N1)
        then TNM Clin N must = c1 (Metastasis with lymph node mass 2cm or less in grestest dimension or multiple lymph nodes none more than 2cm in greatest dimension) or TNM Path N must = p1 (Metastasis with lymph node mass 2cm or less in greatest dimension and less than or equal to 5 nodes positive, none more than 2cm in greatest dimension).

C.  If CS SSF 5 = 020 (Lymph node metastasis mass more than 2cm but not more than 5cm in greatest dimension or pathologic extranodal extension of tumor, stated as N2)
        then TNM Clin N must = c2 (Metastasis with lymph node mass more than 2cm but not more than 5cm in greatest dimension or multiple lymph nodes any one mass greater than 2cm but not more than 5cm in greatest dimension) or TNM Path N must = p2 (Metastasis with lymph node mass more than 2cm but not more than 5cm in greatest dimension or more than 5 nodes positive none more than 5cm or evidence of extranodal extension of tumor)

D.  If CS SSF 5 = 030 (Lymph node metastasis mass more than 5cm in greatest dimension, stated as N3)
        then TNM Clin N must = c3 or TNM Path N must = p3 (metastasis with a lymph node mass more than 5cm in greatest dimension)

E.  If CS SSF 5 = 999 (Regional lymph nodes involved, size of lymph node mass not stated, unknown if regional nodes involved)
        then TNM Clin N must not = c0 and TNM Path N must not = p0]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-18" ref="67402">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-23" ref="67629">Added skip conditions; updated logic for part E.</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="schadega" date="2018-04-11" ref="67741">Edit name change.</event>
                <event version="SE18-018-02" user="schadega" date="2018-05-18" ref="67743">Name change.</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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy