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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF594" name="TNM T, SSF 1, 2 Lung (COC)" tag="N2282" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_1,CS_Site-Specific_Factor_2,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_T,TNM_Path_T,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')
    return true

//Skip conditon 5
if ((line.tnmClinT == null && line.tnmPathT == null) || (line.tnmClinT == '88' && line.tnmPathT == '88'))
    return true

//Skip condition 6
if (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7')
    return true

//Edit is skipped if case if not Lung (skip condition 4)
String hist = line.histologicTypeIcdO3
if (!(Functions.matches(line.primarySite, /^C34[0-389]$/)) || !((hist >= '8000' && hist <= '8576') || (hist >= '8940' && hist <= '8950') || hist == '8980' || hist == '8981'))
    return true

if (line.csSiteSpecificFactor1 == '010' || line.csSiteSpecificFactor1 == '040') {
    if (line.tnmClinT != 'c3' && line.tnmClinT != 'c4' && line.tnmPathT != 'p3' && line.tnmPathT != 'p4')
        return false
}
else if (line.csSiteSpecificFactor1 == '020' || line.csSiteSpecificFactor1 == '030') {
    if (line.tnmClinT != 'c4' && line.tnmPathT != 'p4')
        return false
}

if (line.csSiteSpecificFactor2 == '010' || line.csSiteSpecificFactor2 == '020' || line.csSiteSpecificFactor2 == '040') {
    if (!(Functions.matches(line.tnmClinT, /^c[34]|c2[AB]?$/)) && !(Functions.matches(line.tnmPathT, /^p[34]|p2[AB]?$/)))
        return false
}
else if (line.csSiteSpecificFactor2 == '030') {
    if (line.tnmClinT != 'c3' && line.tnmClinT != 'c4' && line.tnmPathT != 'p3' && line.tnmPathT != 'p4')
        return false
}

return true]]></expression>
            <message>TNM T, SSF 1, 2 conflict for Lung</message>
            <description><![CDATA[Purpose: This edit verifies that TNM Clin T and TNM Path T are coded consistently with CS SSF 1, Separate Tumor Nodules Ipsilateral Lung, and CS SSF 2, Pleural/Elastic Layer Invasion by H&E or Elastic Stain

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. Site/Histology group is not Lung
5. TNM Clin T and TNM Path T are blank or 88
6. TNM Edition Number not = 07, U7


For Lung (Site: C340-C343, C348-C349 Histology: 8000-8576,8940-8950,8980-8981), SSF 1:
A. If SSF 1 = 010 (separate tumor nodules in ipsilateral lung, same lobe) or 040 (separate tumor nodules ipsilateral lung unknown if same or different lobe),
    then TNM Clin T must = c3 (tumor with separate tumor nodule(s) in the same lobe) or higher, or TNM Path T must = p3 or higher.

B. If SSF 1 = 020 (separate tumor nodules in ipsilateral lung, different lobe) or 030 (separate tumor nodules ipsilateral lung same and different lobes),
    then TNM Clin T must = c4 (tumor with separate tumor nodule(s) in a different ipsilateral lobe), or TNM Path T must = p4.

For Lung (Site: C340-C343, C348-C349 Histology: 8000-8576,8940-8950,8980-8981), SSF 2:
A. If SSF 2 = 010 (PL1), 020 (PL2), or 040 (invasion of pleura NOS),
    then TNM Clin T must = c2 (invades visceral pleura (PL1 or PL2) or higher, or TNM Path T must = p2 or higher

B. If SSF 2 = 030 (PL3),
    then TNM Clin T must = c3 (invades parietal pleura (PL3)or higher, or TNM Path T must = p3 or higher.]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-24" ref="67417">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67621">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-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