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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6287" name="EOD Regional Nodes, Head/Neck, Reg Nodes Positive, Scope Nodes (SEER)" tag="N6287" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.typeOfReportingSource == '7' || line.eodRegionalNodes == null)
    return true
if (line.schemaId == null || !Functions.matches(line.schemaId, /^00(0(60|7[1-7]|80)|1(00|[12][12]|3[0-3]|50))$/))
    return true

if (Functions.matches(line.eodRegionalNodes, /^150|[567]00$/)) {
    if (['00','98','99'].contains(line.regionalNodesPositive))
        return false
    if (line.typeOfReportingSource == '6')
        return line.rxSummScopeRegLnSur == '0'
    else {
        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 Functions.matches(line.rxSummScopeRegLnSur, /^[0-7]$/)
        else
            return Functions.matches(line.rxSummScopeRegLnSur, /^[1-7]$/)
    }
}
return true]]></expression>
            <message>EOD Regional Nodes/Reg Nodes Pos/Scope conflict for Head and Neck schemas</message>
            <description><![CDATA[This edit verifies that EOD Regional Nodes codes for pathologic involvement
only are coded consistently with Regional Nodes Positive and RX Summ-Scope Reg LN
Sur for Head and Neck Schema IDs.

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 00060, 00071, 00072, 00073, 00074, 00075, 00076,
       00077, 00080, 00100, 00111, 00112, 00121, 00122, 00130, 00131 00132,
        00133, 00150
    d. EOD Regional Nodes is blank
    e. Type of Reporting Source is 7 (Death Certificate Only)


2. If EOD Regional Nodes = 150, 500, 600, 700 (pathological only)
    a. Regional Nodes Positive must not = 00, 98, or 99 (no nodes positive)

3. If EOD Regional Nodes = 150, 500, 600, 700
    If Type of Reporting Source = 6 (autopsy only) then RX Summ--Scope Reg LN Sur must =0
    Else if vital Status = 0 and Date of Last Contact within 5 months of Date of Diagnosis then RX Summ--Scope Reg LN Sur must = 0-7
    Else RX Summ--Scope Reg LN Sur must = 1-7

NOTE:  Schema ID 00100 has only code 500]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-04-28" ref="68607">Edit created.</event>
                <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68783">Update RX Summ-Scope Reg LN Sur conditions.</event>
                <event version="SE22-022-05" user="kirbyk" date="2022-05-17" ref="68995">Replaced non-ASCII characters in description.</event>
                <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</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 - 2024 Weber Informatics LLC | Privacy Policy