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

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

The newest version!
        <rule id="IF591" name="TNM T, Descriptor, SSF 1 Thyroid (COC)" tag="N2277" java-path="lines.line" category="inter-field" depends="Histologic_Type_ICD-O-3,Primary_Site,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.tnmPathT == null && line.tnmClinT == null) || (line.tnmPathT == '88' && line.tnmClinT == '88'))
    return true

//Skip conditions 6, 7
if (line.csSiteSpecificFactor1 == null || line.csSiteSpecificFactor1 == '988' || (line.tnmClinDescriptor == null && line.tnmPathDescriptor == null))
    return true

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

//Edit is skipped if case is not Thyroid (skip condition 4)
String hist = line.histologicTypeIcdO3
if (line.primarySite != 'C739' || !((hist >= '8000' && hist <= '8576') || (hist >= '8940' && hist <= '8950') || hist == '8980' || hist == '8981'))
    return true

if (line.csSiteSpecificFactor1 == '010' && line.tnmClinDescriptor != '0' && line.tnmPathDescriptor != '0')
    return false
else if (line.csSiteSpecificFactor1 == '020' && line.tnmClinDescriptor != '3' && line.tnmPathDescriptor != '3' && line.tnmPathDescriptor != '6')
    return false
else if (line.tnmClinDescriptor == '0' && line.tnmPathDescriptor == '0' && line.csSiteSpecificFactor1 != '010')
    return false
else if (line.tnmClinDescriptor == '3' && (line.tnmPathDescriptor == '3' || line.tnmPathDescriptor == '6') && line.csSiteSpecificFactor1 != '020')
    return false

return true]]></expression>
            <message>TNM T, Descriptor, SSF 1 conflict for Thyroid</message>
            <description><![CDATA[Purpose: This edit verifies that CS Site-Specific Factor 1 (Solitary vs Multifocal Tumor) is coded consistently with TNM Clin Descriptor and TNM Path Descriptor for Thyroid.

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

For Thyroid(Site: C739 Histology: 8000-8576, 8940-8950, 8980-8981):

A. if CS SSF 1 = 010 (Solitary tumor),
    then TNM Clin Descriptor or TNM Path Descriptor must = 0 (none).

3. If CS SSF 1 = 020,( Multifocal tumor),
    then TNM Clin Descriptor must = 3 (M, multiple primary tumors in a single site) or TNM Path Descriptor must = 3 (M, multiple primary tumors in a single site) or 6 (M&Y, multiple primary tumors and initial multimodality therapy).

C.  If TNM Clin Descriptor and TNM Path Descriptor = 0 (none)
    then CS SSF 1 must = 010 (Solitary tumor)

D.  If TNM Clin Descriptor = 3 (Multiple primary tumors in a single site) and TNM Path Descriptor = 3 (multiple tumors in a single site) or 6 (Multiple primary tumors and initial multimodality therapy)
    then CS SSF 1 must = 020 (Multifocal tumor)]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-24" ref="67414">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67619">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>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed some edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy