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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF574" name="TNM N, SSF 3 Melanoma of Skin (COC)" tag="N2245" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_3,Histologic_Type_ICD-O-3,Primary_Site,TNM_Clin_N,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')
    return true

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

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

if (line._tnmSchemaId != 'melanoma_skin')
   return true

String ssf3 = line.csSiteSpecificFactor3
if (ssf3 == '005')
    return line.tnmClinN == 'c0' && (line.tnmPathN == null || Functions.matches(line.tnmPathN, /^[cp]0|pX|p2C$/))
else if (ssf3 == '010')
    return line.tnmClinN == 'c0' && (line.tnmPathN == null || Functions.matches(line.tnmPathN, /^pX|p[12]A|p3$/))
else if (ssf3 == '043')
    return line.tnmClinN == 'c1'
else if (ssf3 == '045')
    return line.tnmClinN == 'c2'
else if (ssf3 == '048')
    return line.tnmClinN == 'c3'
else if (ssf3 == '100')
    return line.tnmClinN == 'c2C'
else if (ssf3 == '999')
    return line.tnmClinN == 'cX'

return true]]></expression>
            <message>TNM N and SSF 3 conflict for Melanoma Skin</message>
            <description><![CDATA[Purpose: This edit verifies that TNM Clin N and TNM Path N are coded consistently with CS SSF 3 for Melanoma of Skin(Clinical Status of 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 Melanoma of Skin.
5. TNM Clin N is blank
6. TNM Clin N and TNM Path N are 88
7. CS SSF 3 is blank or 988
8. TNM Edition Number not = 07, U7
9. TNM Path Descriptor = 4, 6

For melanoma of skin:

A.  If CS SSF 3 = 005 (Clinically negative nodes and no pathologic exam or pathologic exam negative or unknown if pathologic exam),
    then TNM Clin N must = c0 and TNM Path N must = c0, p0, p2C, pX, or blank (no pathologic exam or unknown if performed, no pathologic node metastasis)

B.  If CS SSF 3 = 010 (Clinically occult (microscopic) lymph node metastasis only)
    then TNM Clin N must = c0 (no regional lymph node metastasis) and TNM Path N must = pX, p1A, p2A, p3, or blank.

C.  If CS SSF 3 = 043 (Clinically apparent nodal metastasis in 1 regional node)
    then TNM Clin N must = c1

D.    If CS SSF 3 = 045 (Clinically apparent nodal metastasis in 2-3 regional nodes)
    then TNM Clin N must = c2

E.  If CS SSF 3 = 048 (Clinically apparent nodal metastasis in 4+ regional nodes)
    then TNM Clin N must = c3

G.  If CS SSF 3 = 100 (Clinically apparent in transit metastasis with or without occult lymph node metastasis
    then TNM Clin N must = c2C

H.  If CS SSF 3 = 999 (Unknown clinically if nodes involved)
    then TNM Clin N must = cX]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-16" ref="67396">Edit created.</event>
                <event version="SE16-015-08" user="kirbyk" date="2016-09-20" ref="67531">Added valid code &apos;p2C&apos; for TNM Path N when SSF3=005.</event>
                <event version="SE16-016-01" user="kirbyk" date="2016-12-01" ref="67550">Added valid codes &apos;pX&apos; and &apos;p3&apos; for TNM Path N when SSF3=010.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-17" ref="67597">Added skip conditions for TNM Edition Number, TNM Path Descriptor.</event>
                <event version="SE16-016-02" user="kirbyk" date="2017-02-21" ref="67639">Stopped skipping edit when TNM Path N is blank.</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-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