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

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

        <rule id="IFN6295" name="EOD Regional Nodes, Kaposi Sarcoma, Scope Nodes/Distant Nodes (SEER)" tag="N6295" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7' || line.eodRegionalNodes == null)
    return true
if (line.schemaId == null || line.schemaId != '00458')
    return true
if (line.rxSummScopeRegLnSur == null && line.rxSummSurgOthRegDis == null)
    return true

Integer dolcYear = Functions.asInt(line.dateOfLastContactYear)
Integer dolcMonth = Functions.asInt(line.dateOfLastContactMonth)
Integer dolcDay = Functions.asInt(line.dateOfLastContactDay)
Integer dxYear = Functions.asInt(line.dateOfDiagnosisYear)
Integer dxMonth = Functions.asInt(line.dateOfDiagnosisMonth)
Integer dxDay = Functions.asInt(line.dateOfDiagnosisDay)

if (line.vitalStatus == '0' && (Boolean)((Closure)Context.compareDatesWithinMonths).call(dolcYear, dolcMonth, dolcDay, dxYear, dxMonth, dxDay, 5))
    return true

return (!['200','300'].contains(line.eodRegionalNodes) || Functions.matches(line.rxSummScopeRegLnSur, /^[1-7]$/) || line.rxSummSurgOthRegDis == '3')]]></expression>
            <message>EOD Regional Nodes conflicts with RX Summ--Scope Reg LN Sur and/or RX Summ--Surg Oth Reg/Dis</message>
            <description><![CDATA[This edit verifies that EOD Regional Nodes codes for pathologic involvement only
are coded consistently with RX Summ-Scope Reg LN Sur for Schema ID 00458, Kaposi
Sarcoma.

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis before 2021, blank (unknown), or invalid.
    b. Schema ID is blank or not 00458
    c. EOD Regional Nodes is blank
    d. RX Summ--Scope Reg LN Sur and RX Summ--Oth Reg/Dis are both blank
    e. Type of Reporting Source is 6 (Autopsy only) or 7 (Death Certificate Only)
    f. Vital Status = 0 and Date of Last Contact within 5 months of Date of Diagnosis


2. If EOD Regional Nodes = 200 or 300 (pathological only)
    Then RX Summ--Scope Reg LN Sur must = 1-7  (nodal procedure
    performed) or RX Summ--Surg Oth Reg/Dis must = 3 (surgery of distant nodes)]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-04-28" ref="68607">Edit created.</event>
                <event version="SE22-022-01" user="smithm" date="2022-02-07" ref="68784">Add skip condition</event>
                <event version="SE23-023-03" user="shearerw" date="2023-05-24" ref="69216">Fix logic for DOLC within 5 months of DX date to allow difference in year.</event>
            </history>
        </rule>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy