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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF64" name="RX Summ--Other, DateDX, RptSrc (SEER IF64)" tag="N0295" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.registryId == '0000001544' && (line.dateOfDiagnosisYear < '2000' || line.dateOfDiagnosisYear == null))
    return true
if ((line.registryId == '0000001562' && line.dateOfDiagnosisYear < '2003') || (line.registryId == '0000001565' && line.dateOfDiagnosisYear == '2003'))
    return true
if (line.typeOfReportingSource == '6')
    return line.rxSummOther == '0'
if (line.typeOfReportingSource == '7')
    return line.rxSummOther == '9'
if (line.dateOfDiagnosisYear == null)
    return true
if (line.dateOfDiagnosisYear < '1988')
    return Functions.matches(line.rxSummOther, /^[0123689]$/)
/* yr dx >= 1988 */
return Functions.matches(line.rxSummOther, /^[01236789]$/)]]></expression>
            <message>RX Summ--Other and Year of Diagnosis conflict</message>
            <description><![CDATA[This edit is skipped under the following conditions:
    1.  Year of Date of Diagnosis is less than 2000 or blank and Registry ID is equal to 0000001544 (New Jersey) OR
        Year of Date of Diagnosis is less than 2003 and Registry ID is 0000001562 (New York) OR
        Year of Date of Diagnosis is 2003 and Registry ID is equal to 0000001565 (Illinois).
    2.  Year of Date of Diagnosis is blank and Type of Reporting
        Source not equal 6 or 7

1.  If Type of Reporting Source is 6 (autopsy only), then RX Summ--Other
     must be 00 (none).

2.  If Type of Reporting Source is 7 (death certificate only),
    then RX Summ--Other must be 99 (unknown).

3.  For all other values of Type of Reporting Source:
    A. If year of Date of Diagnosis is less than 1988,RX Summ--Other
       must be 0-3, 6, 8, 9.
    B. If year of Date of Diagnosis is greater than 1987,  RX Summ--Other
       must be 0-3, 6-9.]]></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-19" user="greend" date="2005-05-26">Edit checks for Type of Reporting Source values versus RX Summ--Other were added.</event>
                <event version="SE12-002-01" user="murphyr" date="2009-12-03">Changed condition 3 to not allow 9 filled year of diagnosis.</event>
                <event version="SE12-002-01" user="murphyr" date="2009-12-21">Added check for blank year of diagnosis is year of diagnosis &gt; 2000.</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; removed conditions for Alaska.</event>
                <event version="SE18-019-02" user="kirbyk" date="2019-05-16" ref="68185">Updated documentation; no change in behavior.</event>
                <event version="SE21-021-09" user="beverung" date="2021-09-09" ref="68745">Edit now skipped for Illinois cases when DX Year is 2003.</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