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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF169" name="Derived AJCC--Flag, Derived AJCC (SEER)" tag="N0708" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || ((line.dateOfDiagnosisYear == '2016' || line.dateOfDiagnosisYear == '2017') && line.csExtension == null))
        return true

if (Functions.matches(line.registryId, /^000000156[2356]$/))
    return true

if (line.derivedAjccFlag == null)
   return (line.derivedAjcc6T == null && line.derivedAjcc6N == null
     && line.derivedAjcc6M == null && line.derivedAjcc6StageGrp == null
     && line.derivedAjcc7T == null && line.derivedAjcc7N == null
     && line.derivedAjcc7M == null && line.derivedAjcc7StageGrp == null
     && line.derivedAjcc6TDescript == null && line.derivedAjcc6NDescript == null
     && line.derivedAjcc6MDescript == null && line.derivedAjcc7TDescript == null
     && line.derivedAjcc7NDescript == null && line.derivedAjcc7MDescript == null)

if (line.derivedAjccFlag != null && line.dateOfDiagnosisYear > '2009' &&
     (line.derivedAjcc7T == null || line.derivedAjcc7N == null
     || line.derivedAjcc7M == null || line.derivedAjcc7StageGrp == null
     || line.derivedAjcc7TDescript == null || line.derivedAjcc7NDescript == null
     || line.derivedAjcc7MDescript == null))
   return false

if (line.derivedAjccFlag != null && line.dateOfDiagnosisYear > '2007' &&
    (line.derivedAjcc6TDescript == null || line.derivedAjcc6NDescript == null
     || line.derivedAjcc6MDescript == null))
   return false

return (line.derivedAjccFlag != null && line.derivedAjcc6T != null && line.derivedAjcc6N != null
     && line.derivedAjcc6M != null && line.derivedAjcc6StageGrp != null)]]></expression>
            <message>Conflict between Derived AJCC--Flag and Derived AJCC fields</message>
            <description><![CDATA[This edit checks the AJCC--Flag against the derived data items as required by
    SEER.

    This edit is skipped if any of the following conditions are true:
    1. Date of Diagnosis is blank
    2. Year of Diagnosis = 2016-2017 and CS Extension is blank.
    3. Registry ID = 0000001562 (New York), 0000001563 (Massachusetts), 0000001565 (Illinois), or 0000001566 (Texas)

    If Derived AJCC--Flag is blank (not derived), then the following fields must be
    blank:
        Derived AJCC-6 T
        Derived AJCC-6 T Descript
        Derived AJCC-6 N
        Derived AJCC-6 N Descript
        Derived AJCC-6 M
        Derived AJCC-6 M Descript
        Derived AJCC-6 Stage Grp
        Derived AJCC-7 T
        Derived AJCC-7 T Descript
        Derived AJCC-7 N
        Derived AJCC-7 N Descript
        Derived AJCC-7 M
        Derived AJCC-7 M Descript
        Derived AJCC-7 Stage Grp

    If Derived AJCC--Flag is not blank, then the following fields must not be blank:
        Derived AJCC-6 T
        Derived AJCC-6 N
        Derived AJCC-6 M
        Derived AJCC-6 Stage Group

    If Derived AJCC--Flag is not blank and year of Date of Diagnosis is 2008 or
    later, then the following fields must also not be blank:
        Derived AJCC-6 T Descript
        Derived AJCC-6 N Descript
        Derived AJCC-6 M Descript

    If Derived AJCC--Flag is not blank and year of Date of Diagnosis is 2010 or
    later, then the following fields must also not be blank:
        Derived AJCC-7 T
        Derived AJCC-7 T Descript
        Derived AJCC-7 N
        Derived AJCC-7 N Descript
        Derived AJCC-7 M
        Derived AJCC-7 M Descript
        Derived AJCC-7 Stage Group]]></description>
            <history>
                <event version="SE12-002-01" user="murphyr" date="2010-03-05">Changed logic.  Added 7th edition fields.</event>
                <event version="SE16-015-06" user="kirbyk" date="2016-08-01" ref="67502">Added skip condition for DX year 2016 when CS is not collected</event>
                <event version="SE16-016-01" user="kirbyk" date="2016-12-07" ref="67558">Added skip condition for DX year 2017 when CS is not collected</event>
                <event version="SE18-018-03" user="kirbyk" date="2018-07-20" ref="67961">Removed unnecessary dependencies.</event>
                <event version="SE18-019-03" user="beverung" date="2019-07-18" ref="68203">Added skip condition for New York.</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="SE18-020-08" user="kirbyk" date="2020-10-13" ref="68530">Added skip condition for Massachusetts.</event>
                <event version="SE21-021-08" user="beverung" date="2021-08-16" ref="68715">Added skip condition for Illinois.</event>
                <event version="SE21-021-08" user="beverung" date="2021-08-16" ref="68717">Added skip condition for Texas.</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