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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF107" name="Surgery 98-02, Reason for No Surg (SEER IF107)" tag="N0636" java-path="lines.line" category="inter-field">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '1998' || line.dateOfDiagnosisYear > '2002')
    return true
if (line.registryId == '0000001562' || line.registryId == '0000001566' || (line.registryId == '0000001544' && (line.dateOfDiagnosisYear == '1998' || line.dateOfDiagnosisYear == '1999')))
    return true

if (line.registryId == '0000001565' && line.dateOfDiagnosisYear == '2000')
    return true

if ((line.rxSummSurgPrimSite == '00' || line.rxSummSurgPrimSite == '99')
        && (line.rxSummScopeReg9802 == '0' || line.rxSummScopeReg9802 == '9')
        && (line.rxSummSurgOth9802 == '0' || line.rxSummSurgOth9802 == '9')
        && line.reasonForNoSurgery == '0')
    return false
if (line.rxSummSurgPrimSite == '00' && line.rxSummScopeReg9802 == '0'
        && line.rxSummSurgOth9802 == '0')
    return Functions.matches(line.reasonForNoSurgery, /^[12678]$/)
if (Functions.matches(line.rxSummSurgPrimSite, /^([1-8]\d|90)$/) || Functions.matches(line.rxSummScopeReg9802, /^[1-8]$/)
        || Functions.matches(line.rxSummSurgOth9802, /^[1-8]$/))
    return line.reasonForNoSurgery == '0'

return true]]></expression>
            <message>Surgery 98-02 and Reason No Surgery conflict</message>
            <description><![CDATA[This edit is skipped for the following conditions:
    1. Diagnosis year not 1998-2002..
    2. Registry is NY (0000001562) or TX (0000001566)
    3. Registry is NJ (0000001544) and Diagnosis Year is 1998, 1999.
    4. Registry is IL (0000001565) and Diagnosis Year is 2000.

If RX Summ--Surg Prim Site[1290]= 00 and RX Summ--Scope Reg 98-02[1647]=0 and RX Summ--Surg Oth 98-02[1648]=0 (no surgery), Reason for surgery[1340] must specify be 1,2,6,7, or 8 (surgery not performed).

If RX Summ--Surg Prim Site[1290]= 00 or 99 and RX Summ--Scope Reg 98-02[1647]=0 or 9 and RX Summ--Surg Oth 98-02[1648]=0 or 9 (no/unk surgery), Reason for surgery[1340] cannot be 0 (surgery performed).

If RX Summ--Surg Prim Site[1290] =10-90 or RX Summ--Scope Reg
98-02[1647]= 1-8 or RX Summ--Surg Oth 98-02[1648]= 1-8 (surgery performed), Reason for no surgery[1340] must be 0 (surgery performed).]]></description>
            <history>
                <event version="SE11-001-20" user="greend" date="2006-07-20">The following logic was added to the edit:
            If RX Summ--Surg Site 98-02[1646]= 00 or 99 and RX Summ--Scope Reg 98-02[1647]=0 or 9 and RX Summ--Surg Oth 98-02[1648]=0 or 9 (no/unk surgery), Reason for surgery[1340] cannot be 0 (surgery performed).</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-020-04" user="beverung" date="2020-06-04" ref="68347">Use rxSummSurgPrimSite and add skip conditions.</event>
                <event version="SE21-021-08" user="beverung" date="2021-08-18" ref="68709">Added skip condition for TX.</event>
                <event version="SE21-021-09" user="secristm" date="2021-09-09" ref="68744">Added skip condition for IL and diagnosis year = 2000.</event>
                <event version="SE22-022-05" user="kirbyk" date="2022-05-17" ref="68995">Replaced non-ASCII characters in description.</event>
                <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed edit dependencies.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy