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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF590" name="TNM T, Clin and Path Stage, Behavior 3 (COC)" tag="N2275" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,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 4
if (line.tnmClinT == '88' && line.tnmClinN == '88' && line.tnmClinM == '88' && line.tnmClinStageGroup == '88' &&
    line.tnmPathT == '88' && line.tnmPathN == '88' && line.tnmPathM == '88' && line.tnmPathStageGroup == '88')
    return true

//Skip condition 5
if (line.tnmClinT == 'cX' && line.tnmClinN == 'cX' && line.tnmClinM == 'cX' && line.tnmClinStageGroup == '99' &&
    line.tnmPathT == 'pX' && line.tnmPathN == 'pX' && (line.tnmPathM == 'pX' || line.tnmPathM == 'cX') && line.tnmPathStageGroup == '99')
    return true

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

if (line.tnmPathT == null && line.tnmPathStageGroup == null && line.tnmClinT != null)
    if (!(Functions.matches(line.tnmClinT, /^pA|pIS[UD]?$/)) && !(Functions.matches(line.tnmClinStageGroup, /^0(A|IS)?$/)))
        return line.behaviorCodeIcdO3 == '3'

if (line.tnmPathT != null && line.tnmPathStageGroup != null)
    if (!(Functions.matches(line.tnmPathT, /^pA|pIS[UD]?$/)) && !(Functions.matches(line.tnmClinStageGroup, /^0(A|IS)?$/)) && !(Functions.matches(line.tnmPathStageGroup, /^0(A|IS)?$/)))
        return line.behaviorCodeIcdO3 == '3'

return true]]></expression>
            <message>TNM T, Clin and Path Stage conflict for Behavior 3</message>
            <description><![CDATA[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. All TNM fields are coded 88 (AJCC staging not applicable)
      TNM Clin T = 88
      TNM Clin N = 88
      TNM Clin M = 88
      TNM Clin Stage Group = 88
      TNM Path T = 88
      TNM Path N = 88
      TNM Path M = 88
      TNM Path Stage Group = 88
5. If all of the following conditions are true, fields have probably been defaulted and the edit is skipped:
      TNM Clin T = cX
      TNM Clin N = cX
      TNM Clin M = cX
      TNM Clin Stage Group = 99
      TNM Path T = pX
      TNM Path N = pX
      TNM Path M = pX, cX
      TNM Path Stage Group = 99
6. TNM Edition Number not = 07, U7


Not in situ, Behavior ICD-O-3 = 3

Note:  The edit will pass if TNM Clin T, TNM Clin Stage Group, TNM Path T, and TNM Path Stage Group are blank.  The edit will not pass if some but not all of these 4 fields are coded 88.

For all TNM Groups:


   A.  If TNM Path T and TNM Path Stage Group are empty:
            If TNM Clin T is not pIS, pA, pISU, pISD
            and TNM Clin Stage Group is not 0, 0A, 0IS
        Then Behavior Code ICD-O-3 must = 3.

    B. If TNM Path T and TNM Path Stage Group are not empty:
        If TNM Path T is not pIS, pA, pISU, pISD
          and TNM Clin Stage Group is not 0, 0A, 0IS
        and TNM Path Stage Group is not 0, 0A, 0IS
         Then Behavior Code ICD-O-3 must = 3]]></description>
            <history>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-24" ref="67413">Edit created.</event>
                <event version="SE16-016-01" user="kirbyk" date="2017-01-18" ref="67617">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-04" user="kirbyk" date="2024-04-12" ref="69326">Removed several dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy