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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6321" name="Extranodal Extension Path (non-Head and Neck), Scope Nodes (SEER)" tag="N6321" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[
        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.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || !['00460', '00570'].contains(line.schemaId)
|| line.extranodalExtensionPath == null || line.extranodalExtensionPath == '8' || line.rxSummScopeRegLnSur == null || line.typeOfReportingSource == '6'|| line.typeOfReportingSource == '7' ||
(line.vitalStatus == '0' && (Boolean)((Closure)Context.compareDatesWithinMonths).call(dolcYear, dolcMonth, dolcDay, dxYear, dxMonth, dxDay, 5)))
    return true

if (line.extranodalExtensionPath == '0')
    return Functions.matches(line.rxSummScopeRegLnSur, /^[3-7]$/)
else if (['1', '7'].contains(line.extranodalExtensionPath))
    return Functions.matches(line.rxSummScopeRegLnSur, /^[2-7]$/)

return true]]></expression>
            <message>Extranodal Extension Path (non-Head and Neck) conflicts with RX Summ--Scope Reg LN Sur</message>
            <description><![CDATA[This edit verifies that the Extranodal Extension Path (non-Head and Neck) SSDI
with codes indicating nodal procedure is coded consistently with RX Summ--Scope
Reg LN Sur, for Schema IDs 00460, Merkel Cell Skin, and 00570, Penis.

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 00460, 00570
    c. Extranodal Extension Path (non-Head and Neck) is blank or 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 Path (non-Head and Neck) = 0 (positive nodes, ENE not identified)
    RX Summ--Scope Reg LN Sur must = 3-7.

3. If Extranodal Extension Path (non-Head and Neck) = 1 (nodes involved, ENE present) or 7 (no nodal involvement)
    RX Summ--Scope Reg LN Sur must = 2-7]]></description>
            <history>
                <event version="SE22-022-05" user="secristc" date="2022-05-04" ref="68938">Edit created.</event>
                <event version="SE23-023-01" user="secristc" date="2023-02-21" ref="69183">Updated logic for 2023+.</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="SE23-023-04" user="cooki" date="2023-05-30" ref="69278">Updated name, ID, and tag.</event>
                <event version="SE23-023-06" user="shearerw" date="2023-08-01" ref="69299">Remove separate behaviors for DX year before and after 2023.</event>
                <event version="SE24-024-01" user="cooki" date="2024-03-07" ref="69337">Removed clause from description about Coc-Accredited.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy