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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF35" name="Date Initial RX SEER, Date Last Cont (NAACCR IF35)" tag="N0096" java-path="lines.line" category="inter-field" depends="DateFollowUpEdit,DateTherapyEdit,Year_of_Diagnosis">
            <expression><![CDATA[Integer iLastContactYear = Functions.asInt(line.dateOfLastContactYear)
Integer iLastContactMonth = Functions.asInt(line.dateOfLastContactMonth)
Integer iLastContactDay = Functions.asInt(line.dateOfLastContactDay)
Integer iRxYear = Functions.asInt(line.dateInitialRxSeerYear)
Integer iRxMonth  = Functions.asInt(line.dateInitialRxSeerMonth)
Integer iRxDay = Functions.asInt(line.dateInitialRxSeerDay)

if ((line.registryId == '0000001544' && line.dateOfDiagnosisYear < '1995') || iRxYear == null
        || iLastContactYear == null)
    return true

if (iRxYear == null && iRxMonth == null && iRxDay == null)
    return true

if (iRxYear == 0 && iRxMonth == 0 && iRxDay == 0)
    return true

if (iRxYear > iLastContactYear)
   return false

if (iRxYear < iLastContactYear || iRxMonth == null || line.dateOfLastContactMonth == null)
   return true

if (iRxMonth > iLastContactMonth)
   return false

if (iRxMonth < iLastContactMonth || iRxDay == null ||
     line.dateOfLastContactDay == null)
   return true

return iRxDay <= iLastContactDay]]></expression>
            <message>Date of Init RX--SEER and Date of Last Contact conflict</message>
            <description><![CDATA[This edit is skipped if any of the following conditions is true:
1.  Date Initial RX SEER is blank
2.  Date of Last Contact is blank.
3.  If Registry ID = 0000001544 (New Jersey) and year of Date of Diagnosis is < 2000

Date Initial RX SEER must be less than or equal to Date of Last Contact. If both years are known, but either month is blank, then only the years are compared. If either day is blank, then only the years and months are compared.]]></description>
            <history>
                <event version="SE11-001-17" user="greend" date="2003-09-22">Edit modified to skip cases from New Jersey diagnosed before 2000.</event>
                <event version="SE11-001-22" user="greend" date="2008-01-21">Edit now uses Day of Initial RX--SEER and Day of Last Contact.</event>
                <event version="SE12-002-01" user="murphyr" date="2009-12-17">Edit no longer accepts 9 filled dates.</event>
                <event version="SE12-003-03" user="murphyr" date="2011-02-10">Updated documentation.</event>
                <event version="SE13-009-01" user="murphyr" date="2012-12-20" ref="66776">Updated edit name.</event>
                <event version="SE15-013-01" user="kirbyk" date="2015-01-07" ref="67156">Updated documentation.</event>
                <event version="SE16-016-01" user="kirbyk" date="2016-11-29" ref="67544">Edit modified to only skip cases from New Jersey diagnosed before 1995.</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-17" ref="67760">Name change.</event>
                <event version="SE18-019-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; no change in behavior.</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