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

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

The newest version!
        <rule id="IF593" name="TNM T, SSF 1 Conjunctiva (COC)" tag="N2281" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,CS_Site-Specific_Factor_1,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 condition 5
if ((line.tnmClinT == null && line.tnmPathT == null) || (line.tnmClinT == '88' && line.tnmPathT == '88'))
    return true

//Skip conditions 6, 7
if (line.csSiteSpecificFactor1 == null || line.csSiteSpecificFactor1 == '988' || (line.tnmEditionNumber != '07' && line.tnmEditionNumber != 'U7'))
    return true

//Skip condition 4
String hist = line.histologicTypeIcdO3
if (line.primarySite != 'C690' || !((hist >= '8000' && hist <= '8576') || (hist >= '8940' && hist <= '8950') || hist == '8980' || hist == '8981'))
    return true

Integer ssf1 = Functions.asInt(line.csSiteSpecificFactor1)
if ((ssf1 > 0 && ssf1 <= 50) || ssf1 == 990 || ssf1 == 991)
    return !((line.tnmPathT == null && line.tnmClinT == 'c2') || (line.tnmClinT == null && line.tnmPathT == 'p2') || (line.tnmClinT == 'c2' && line.tnmPathT == 'p2'))
else if ((ssf1 > 50 && ssf1 <= 980) || ssf1 == 992)
    return !((line.tnmPathT == null && line.tnmClinT == 'c1') || (line.tnmClinT == null && line.tnmPathT == 'p1') || (line.tnmClinT == 'c1' && line.tnmPathT == 'p1'))

return true]]></expression>
            <message>TNM T and SSF 1 conflict for Conjunctiva</message>
            <description><![CDATA[Purpose:  THis edit verifies that TNM Clin T and TNM Path T are coded consistently with CS SSF 1, Tumor Size, for Conjunctiva.

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 carcinoma of conjunctiva
5. TNM Clin T and TNM Path T are both blank or 88
6. CS Site-Specific Factor 1 is blank or 988
7. TNM Edition Number not = 07, U7


"980", "980 millimeters or larger", is the largest possible size for CS SSF 1.  990 = microscopic focus. "991" = described as less than 5mm, stated as T1. "992" = described as greater than 5mm, stated as T2.

The site-specific TNM T values as coded in CS SSF 1 are listed below.

For Conjunctiva(Site: 690 Histology: 8000-8576, 8940-8950, 8980-8981):

TNM T:                 1                        2
Tumor Size Summ        001-050, 990-991        051-980,992

A. If CS SSF 1 is within the range for T1:
    If TNM Path T is empty, TNM Clin T must not = c2.
    If TNM Clin T is empty, TNM Path T must not = p2.
    If both coded, both TNM Path T and TNM Clin T must not = 2.

B. If CS SSF 1 is within the range for T2:
    If TNM Path T is empty, TNM Clin T must not = c1.
    If TNM Clin T is empty, TNM Path T must not = p1.
    If both coded, both TNM Path T and TNM Clin T must not = 1.]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-24" ref="67416">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67620">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