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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF583" name="TNM Path N, SSF 4 Colon (COC)" tag="N2261" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_4,Histologic_Type_ICD-O-3,Primary_Site,TNM_Path_N,Type_of_Reporting_Source,Year_of_Diagnosis">
            <expression><![CDATA[//Skip conditions 1, 2, 3
if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2016' || line.typeOfReportingSource == '7' ||
    line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1')
    return true

//Skip conditions 5, 6
if (line.tnmPathN == null || line.tnmPathN == '88' || line.csSiteSpecificFactor4 == null || line.csSiteSpecificFactor4 == '988')
    return true

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

//Skip condition 4
String hist = line.histologicTypeIcdO3
if (!(Functions.matches(line.primarySite, /^C18[02-9]|C199|C209$/)) || !((hist >= '8000' && hist <= '8152') || (hist >= '8154' && hist <= '8231') || hist ==~ /^824[34578]|894\d|8950|898[01]$/ ||
    (hist >= '8250' && hist <= '8576')))
   return true

String ssf4 = line.csSiteSpecificFactor4
if (ssf4 == '000' && line.tnmPathN == 'p1C')
    return false

if (line.tnmPathN == 'p1C')
    return ssf4 != '000' && ssf4 != '998' && ssf4 != '999'
else if (line.tnmPathN == 'p0')
    return ssf4 == '000' || ssf4 == '998' || ssf4 == '999'

return true]]></expression>
            <message>TNM Path N and SSF 4 conflict for Colon and Rectum</message>
            <description><![CDATA[Purpose: This edit verifies that TNM Path N is coded consistently with CS SSF 4 for Colon and Rectum (Tumor Deposits).

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 group is not 14, Colorectal.
5. TNM Path N is blank or 88
6. CS SSF 4 is blank or 988.
7. TNM Edition Number not = 07, U7
8. TNM Path Descriptor = 4,6

For Colon and Rectum (Site:C180,C182-C189,C199,C209 Histology: 8000-8152, 8154-8231, 8243-8245,8247-8248,8250-8576, 8940-8950, 8980-8981):

A.  If SSF 4 = 000 (no tumor deposits) ,
    then TNM Path N must not = p1C (Tumor deposit(s) in the subserosa, mesentery, or nonperitonealized pericolic or perirectal tissues without regional nodal metastasis).

B.  If TNM Path N = p1C,
    then CS SSF 4 must not = 000 (none), 998 (no surgical resection of primary site), or 999 (unknown or no information.

C.  If TNM Path N = p0,
    then CS SSF 4 must = 000, 998, or 999.]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-19" ref="67406">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-17" ref="67607">Added skip conditions for TNM Edition Number and TNM Path Descriptor.</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-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