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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF18" name="Date Initial RX SEER, Date of DX (NAACCR IF18)" tag="N0095" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit,DateTherapyEdit">
            <expression><![CDATA[Integer iRxDay   = Functions.asInt(line.dateInitialRxSeerDay)
Integer iRxMonth = Functions.asInt(line.dateInitialRxSeerMonth)
Integer iRxYear  = Functions.asInt(line.dateInitialRxSeerYear)
Integer iDxDay   = Functions.asInt(line.dateOfDiagnosisDay)
Integer iDxMonth = Functions.asInt(line.dateOfDiagnosisMonth)
Integer iDxYear  = Functions.asInt(line.dateOfDiagnosisYear)

if (iDxYear == null || iRxYear == null || (line.registryId == '0000001544' && iDxYear < 2000))
    return true
if  (iRxDay == null && iRxMonth == null && iRxYear == null)
   return true
if  (iRxDay == 0 && iRxMonth == 0 && iRxYear == 0)
   return true
if (iRxYear < iDxYear)
    return false
if (iRxYear > iDxYear || iRxMonth == null || iDxMonth == null)
   return true
if (iRxMonth < iDxMonth)
    return false
if (iRxMonth > iDxMonth || iRxDay == null || iDxDay == null)
   return true
return (iRxDay >= iDxDay)]]></expression>
            <message>Date of Init RX--SEER and Date of Diagnosis 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 Diagnosis is blank.
3.  If Registry ID = 0000001544 (New Jersey) and year of Date of Diagnosis is < 2000

Date Initial RX SEER must be greater than or equal to Date of Diagnosis. 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-08">Edit no longer uses the &quot;Month of Initial RX--SEER is not valid.&quot;, &quot;Year of Initial RX--SEER is not valid.&quot;, and &quot;Date of Initial RX--SEER is not valid.&quot; flags.</event>
                <event version="SE11-001-22" user="greend" date="2008-01-21">Edit now uses Day of Diagnosis and Day of Initial Rx.</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="67157">Updated documentation.</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-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