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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF170" name="Derived CS Items, Date of DX (SEER)" tag="N2408" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && !['brain','cns_other','intracranial_gland'].contains(line._csSchemaId)))
   return true

if (line._csSchemaId == null || ['0000001562', '0000001563', '0000001566', '0000001565'].contains(line.registryId))
    return true

if (line.dateOfDiagnosisYear >= '2010' && (line.dateOfDiagnosisYear < '2016' || ((line.dateOfDiagnosisYear == '2016' || line.dateOfDiagnosisYear == '2017') && line.csExtension != null)) &&
   (line.derivedAjcc7M == null || line.derivedAjcc7MDescript == null || line.derivedAjcc7N == null ||
    line.derivedAjcc7NDescript == null || line.derivedAjcc7StageGrp == null || line.derivedAjcc7T == null ||
    line.derivedAjcc7TDescript == null || line.derivedAjcc6TDescript == null || line.derivedAjcc6NDescript == null ||
    line.derivedAjcc6MDescript == null || line.derivedAjcc6T == null || line.derivedAjcc6N == null ||
    line.derivedAjcc6M == null || line.derivedAjcc6StageGrp == null || line.derivedSs1977 == null ||
    line.derivedSs2000 == null || line.csVersionDerived == null))
   return false

if (line.dateOfDiagnosisYear >= '2008' && (line.dateOfDiagnosisYear < '2016' || ((line.dateOfDiagnosisYear == '2016' || line.dateOfDiagnosisYear == '2017') && line.csExtension != null)) &&
   (line.derivedAjcc6TDescript == null || line.derivedAjcc6NDescript == null ||
    line.derivedAjcc6MDescript == null || line.derivedAjcc6T == null || line.derivedAjcc6N == null ||
     line.derivedAjcc6M == null || line.derivedAjcc6StageGrp == null || line.derivedSs1977 == null ||
     line.derivedSs2000 == null || line.csVersionDerived == null))
   return false

if (line.dateOfDiagnosisYear >= '2004' && (line.dateOfDiagnosisYear < '2016' || ((line.dateOfDiagnosisYear == '2016' || line.dateOfDiagnosisYear == '2017') && line.csExtension != null)) &&
     (line.derivedAjcc6T == null || line.derivedAjcc6N == null ||
     line.derivedAjcc6M == null || line.derivedAjcc6StageGrp == null ||
     line.derivedSs1977 == null || line.derivedSs2000 == null ||
     line.csVersionDerived == null))
   return false

if (line.dateOfDiagnosisYear <= '2003' &&
      (line.derivedAjcc6T != null || line.derivedAjcc6N != null ||
      line.derivedAjcc6M != null || line.derivedAjcc6StageGrp != null ||
      line.derivedSs1977 != null || line.derivedSs2000 != null ||
      line.csVersionDerived != null))
   return false

return true]]></expression>
            <message>Conflict between Date of Diagnosis and Derived CS Items</message>
            <description><![CDATA[This edit differs from the COC and NPCR edits of the same name in that it edits all of the derived Collaborative Stage data items as required by SEER.

This edit is skipped if any of the following conditions are true:
   1)  Year of Diagnosis[390] is blank.
   2)  Behavior Code ICD-O-3 [523] = 0 (benign) or 1 (borderline) and CS Schema is not Brain, CNSOther, or Intracranial Gland.
   3)  CS Schema is invalid
   4)  Registry ID = 0000001562 (New York), 0000001563 (Massachusetts), 0000001566 (Texas), or 0000001565 (Illinois)

If Year of Diagnosis[390] is greater than 2003 and less than 2016 or year of diagnosis is 2016-2017 and CS Extension is not blank, then the following CS Data Items cannot be blank:
   1)  Derived AJCC-6 T[2940]
   2)  Derived AJCC-6 N[2960]
   3)  Derived AJCC-6 M[2980]
   4)  Derived AJCC-6 Stage Groups[3000]
   5)  Derived SS1977[3010]
   6)  Derived SS2000[3020]
   7)  CS Version Derived[2936]

If Year of Diagnosis[390] is less than or equal to 2003, then the CS Data Items mention above must be blank.

If Year of Diagnosis[390] is greater than 2007 and less than 2016 or year of diagnosis is 2016-2017 and CS Extension is not blank, then the following CS data items cannot be blank:
   1)  Derived AJCC-6 T Descriptor [2950]
   2)  Derived AJCC-6 N Descriptor [2970]
   3)  Derived AJCC-6 M Descriptor [2990]

If Year of Diagnosis[390] is greater than 2009 and less than 2016 or year of diagnosis is 2016-2017 and CS Extension is not blank, then the following CS data items cannot be blank:
   1)  Derived AJCC-7 T [3400]
   2)  Derived AJCC-7 T Descriptor [3402]
   3)  Derived AJCC-7 N [3410]
   4)  Derived AJCC-7 N Descriptor [3412]
   5)  Derived AJCC-7 M [3420]
   6)  Derived AJCC-7 M Descriptor [3422]
   7)  Derived AJCC-7 Stage Group [3430]]]></description>
            <history>
                <event version="SE11-001-22" user="greend" date="2008-01-16">Edit is now skipped if Behavior Code ICD-O-3 [523] = 0 (benign) or 1 (borderline) and Primary Site [400] is not C700-729 (Brain and Other CNS) or C751-C753 (Intracranial Endocrine).  If Year of Diagnosis[390] is greater than 2007, then the following CS data items cannot be blank:
               1)  Derived AJCC T Descriptor
               2)  Derived AJCC N Descriptor
               3)  Derived AJCC M Descriptor</event>
                <event version="SE12-002-01" user="murphyr" date="2010-03-22">Added if year dx is greater than 2009 then the CS 7th Ed data items cannot be blank.  Also edit is now using CS Schema name.</event>
                <event version="SE12-002-01" user="murphyr" date="2010-03-24">Removed CS Input Original.</event>
                <event version="SE12-002-04" user="murphyr" date="2010-07-29">Edit now passes if CS schema is not found.</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-03-31" ref="67236">Derived items can be blank for DX year 2016+.</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-04" ref="67370">Changed edit to use schema IDs instead of schema names</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-05" ref="67379">Derived items cannot be blank for DX year 2016 when CS is collected.</event>
                <event version="SE16-016-01" user="kirbyk" date="2016-12-07" ref="67559">Derived items cannot be blank for DX year 2017 when CS is collected.</event>
                <event version="SE18-018-02" user="kirbyk" date="2018-05-31" ref="67806">Changed edit name and message to specify Derived CS Items.</event>
                <event version="SE18-018-03" user="kirbyk" date="2018-07-20" ref="67961">Removed unnecessary dependencies.</event>
                <event version="SE18-019-01" user="kirbyk" date="2019-03-28" ref="68129">Edit is now skipped for New York cases.</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-09" user="beverung" date="2021-09-07" ref="68736">Added skip condition for Texas.</event>
                <event version="SE22-022-11" user="beverung" date="2022-09-09" ref="69030">Added skip condition for Illinois.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy