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

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

The newest version!
        <rule id="IF587" name="TNM Path T, SSF 2, 7 Melanoma Skin (COC)" tag="N2270" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_2,CS_Site-Specific_Factor_7,Histologic_Type_ICD-O-3,Primary_Site,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' || line.tnmPathT == null || line.tnmPathT == '88')
    return true

//Skip condition 6
if ((line.csSiteSpecificFactor2 == null && line.csSiteSpecificFactor7 == null) || (line.csSiteSpecificFactor2 == '988' && line.csSiteSpecificFactor7 == '988'))
    return true

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

//Skip condition 4
if (line._tnmSchemaId != 'melanoma_skin')
    return true

if (Functions.matches(line.tnmPathT, /^p[1234]A$/))
    return line.csSiteSpecificFactor2 == '000'
else if (Functions.matches(line.tnmPathT, /^p[234]B$/))
    return line.csSiteSpecificFactor2 == '010'
else if (line.tnmPathT == 'p1B')
    return line.csSiteSpecificFactor2 != '000' || (line.csSiteSpecificFactor7 != '000' && line.csSiteSpecificFactor7 != '990' && line.csSiteSpecificFactor7 != '998')

return true]]></expression>
            <message>TNM Path T, SSF 2,7 conflict for Melanoma Skin</message>
            <description><![CDATA[Purpose: This edit verifies that TNM Path T is coded consistently with CS SSF 2, Ulceration, and CS SSF 7, Primary Tumor Mitotic Count/Rate for Melanoma of Skin. For pT1B, the edit verifies that either ulceration is present or mitotic rate is greater than or equal to 1 mitosis per square millimeter.

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 is not Melanoma of Skin
5. TNM Path T is blank or 88
6. CS SSF 2 and CS SSF 7 are blank or 988
7. TNM Edition Number not = 07, U7
8. TNM Path Descriptor = 4,6


For TNM Schema Melanoma Skin, CS SSF 2:

A.  If TNM Path T = p1A, p2A, p3A, p4A (without ulceration)
        then SSF 2 must = 000 (no ulceration present)

B.  If TNM Path T = p2B, p3B, p4B (with ulceration)
        then SSF 2 must = 010 (ulceration present)

C.  If TNM Path T = p1B (with ulceration or mitosis >1/sq mm)
        then SSF 2 must = ulceration or
        SSF 7 must = positive mitoses

    [Implemented in edit logic as
        SSF 2 must not = 000 (without ulceration)
        and SSF 7 must not = 000 (no mitoses), 990 (stated as < 1 mitosis/sq mm),
        or 998 (no histologic examination of primary site)]]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-20" ref="67410">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-17" ref="67614">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-17" ref="67760">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