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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6294" name="Extranodal Extension Head and Neck Path, Head/Neck, Scope Nodes (SEER)" tag="N6294" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || !((List)Context.IFN_6294_SchemaId_List).contains(line.schemaId)
|| line.extranodalExtensionHeadNeckPath == null || line.extranodalExtensionHeadNeckPath == 'X.8' || line.rxSummScopeRegLnSur == null || line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7')
    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

if (line.extranodalExtensionHeadNeckPath == '0.0')
    return Functions.matches(line.rxSummScopeRegLnSur, /^[3-7]$/)
else if (Functions.matches(line.extranodalExtensionHeadNeckPath, /^\d\.\d|X\.[1-7]$/))
    return Functions.matches(line.rxSummScopeRegLnSur, /^[2-7]$/)

return true]]></expression>
            <message>Extranodal Extension Head and Neck Pathological conflicts with RX Summ--Scope Reg LN Sur</message>
            <description><![CDATA[This edit verifies that the Extranodal Extension Head and Neck Pathological SSDI
with codes indicating nodal procedure is coded consistently with RX Summ--Scope
Reg LN Sur, for head and neck Schema IDs.

1. This edit is skipped for the following conditions:
    a. Date of Diagnosis is pre-2021, blank (unknown), or invalid.
    b. Schema ID is blank or not 00060, 00071, 00072, 00073, 00074, 00075, 00076,
        00077,00080, 00090, 00100, 00111, 00112, 00121, 00122, 00130, 00131, 00132,
        00133, 00140.
    c. Extranodal Extension Head and Neck Pathological is blank or X.8 (not
        applicable)
    d. RX Summ--Scope Reg LN Sur is blank
    e. Type of Reporting Source = 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 Extranodal Extension Head and Neck Pathological = 0.0 (lymph nodes positive but ENE not identified),
    RX Summ--Scope Reg LN Sur must = 3-7.

3. If Extranodal Extension Head and Neck Pathological = 0.1-9.9, X.1-X.7,
    RX Summ--Scope Reg LN Sur must = 2-7. Sentinel node biopsy may assess presence of ENE.]]></description>
            <history>
                <event version="SE21-021-04" user="smithm" date="0011-11-11" ref="68624">Edit created.</event>
                <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68897">Update edit name to match new NAACCR translated edit.</event>
                <event version="SE22-022-01" user="smithm" date="2022-02-07" ref="68790">Add skip conditions.</event>
                <event version="SE23-023-01" user="cooki" date="2023-02-23" ref="69182">Updated logic to be dependent on DX year.</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>
                <event version="SE24-024-01" user="shearerw" date="2024-02-22" ref="69336">Remove year conditions in non-skip condition logic.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy