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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF179" name="Date Initial RX SEER, Ca Dir RX 98-02 (SEER IF179)" tag="N0895" java-path="lines.line" category="inter-field" depends="DateTherapyEdit,Year_of_Diagnosis">
            <expression><![CDATA[if ((line.registryId == '0000001544' && line.dateOfDiagnosisYear < '2000') || line.dateOfDiagnosisYear < '1998' || line.dateOfDiagnosisYear > '2002')
    return true

if (['0000001562','0000001563','0000001565'].contains(line.registryId))
    return true

boolean isDateOfTherapyKnown = line.dateInitialRxSeerDay != null || line.dateInitialRxSeerMonth != null || line.dateInitialRxSeerYear != null

if (isDateOfTherapyKnown) {
    if (line.rxSummSurgRadSeq == '0' && Functions.matches(line.rxSummRadiation, /^[078]$/) && Functions.matches(line.rxSummChemo, /^(00|8[25678])$/)
         && Functions.matches(line.rxSummHormone, /^(00|8[25678])$/) && Functions.matches(line.rxSummBrm, /^(00|8[25678])$/) && Functions.matches(line.rxSummOther, /^[078]$/)
         && Functions.matches(line.rxSummTransplntEndocr, /^(00|8[25678])$/) && line.rxSummSurgPrimSite == '00' && (line.rxSummScopeReg9802 == '0'
         || (line.rxSummScopeReg9802 == '9' && Functions.matches(line.primarySite, /^C77\d$/))) && line.rxSummSurgOth9802 == '0')
        return false

    if ((Functions.matches(line.rxSummSurgRadSeq, /^[2-69]$/) || Functions.matches(line.rxSummRadiation, /^[1-6]$/) || Functions.matches(line.rxSummChemo, /^0[1-3]$/)
         || line.rxSummHormone == '01' || line.rxSummBrm == '01' || Functions.matches(line.rxSummTransplntEndocr, /^(1[012]|[234]0)$/) || Functions.matches(line.rxSummOther, /^[1236]$/)
         || Functions.matches(line.rxSummSurgPrimSite, /^([1-8]\d|90)$/) || Functions.matches(line.rxSummScopeReg9802, /^[1-8]$/) || Functions.matches(line.rxSummSurgOth9802, /^[1-8]$/)))
        return true
    else
        return false
}

return true]]></expression>
            <message>Date of Init RX--SEER, Cancer-Directed Therapy 98-02 conflict</message>
            <description><![CDATA[This edit is skipped if any of the following is true:
   1)  Year of Diagnosis [390] is prior to 1998 or after 2002.
   2)  Any case from New Jersey (0000001544) diagnosed prior to 2000
   3)  Any case from New York (0000001562), Massachusetts (0000001563), or Illinois (0000001565).
   4)  Inter-Field edit flag "Date of Initial RX--SEER is not valid." has been triggered

The following table specifies the values for each treatment field for known to have not been performed (NO), and for known to have been performed(YES).

If all treatment fields specify NO, then Date Initial RX SEER must specify no therapy performed (Date Initial RX SEER is blank).

If Date of Therapy Initiated is a known date (not blank) then ALL treatment fields cannot specify NO.

==========================================================================
RX Summ--Surg Prim Site

  NO:   00
  YES:  10-90
==========================================================================
RX Summ--Scope 98-02

   NO:  9 (for sites C770-C779)
        0 for all other sites
   YES: 1-8
==========================================================================
RX Summ--Surg Oth 98-02

   NO:  0
   YES: 1-8
==========================================================================
RX Summ--Radiation

  NO:      0,7,8
  YES:     1-6
==========================================================================
RX Summ--Surg/Rad Seq

  NO:        0
  YES:       2-6,9
==========================================================================
RX Summ--Chemo

  NO:      0,82,85,86,87,88
  YES:     01-03
==========================================================================
RX Summ--Hormone

  NO:      0,82,85,86,87,88
  YES:     01
==========================================================================
RX Summ--BRM

  NO:      0,82,85,86,87,88
  YES:     01
==========================================================================
RX Summ--Other

  NO:      0,7,8
  YES:     1,2,3,6
==========================================================================
RX Summ--Transplant/Endocr

  NO:      0,82,85,86,87,88
  YES:     10-12,20,30,40]]></description>
            <history>
                <event version="SE11-001-22" user="greend" date="2008-01-22">Edit now uses the entire Date of Therapy [1260] (day, month, and year).</event>
                <event version="SE12-002-01" user="murphyr" date="2009-12-22">Date of initial Rx flag added.  0 and 9 filled dates no longer checked.  Instead checks for blanks and checks the flag.</event>
                <event version="SE12-002-01" user="murphyr" date="2010-01-06">Corrected logic to check that Date of initial Rx flag is NOT set to 11.</event>
                <event version="SE13-009-01" user="murphyr" date="2012-12-20" ref="66776">Updated edit name.</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-019-02" user="kirbyk" date="2019-05-07" ref="68179">Edit now skipped for New York cases when DX Year &lt; 2003.</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-04" user="beverung" date="2020-06-04" ref="68348">Use rxSummSurgPrimSite.</event>
                <event version="SE21-021-08" user="beverung" date="2021-08-09" ref="68708">Add skip condition for Illinois. Remove date restriction on NY skip condition.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-01-20" ref="69077">Update logic to not use date flags.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-03-02" ref="69078">Update logic to be consistent with IF34 and IF180 by not considering invalid/blank values to be NO.</event>
                <event version="SE23-023-04" user="kirbyk" date="2023-06-08" ref="69289">Fixed behavior when values are neither "YES" or "NO".</event>
                <event version="SE23-023-08" user="shearerw" date="2023-10-09" ref="69316">Add skip condition for Massachusetts.</event>
                <event version="SE24-024-04" user="kirbyk" date="2024-04-12" ref="69326">Removed several dependencies.</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