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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6757" name="Invasion Beyond Capsule, Kidney, Surgery 2023 (SEER)" tag="N6757" 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 < '2023' || line.rxSummSurgPrimSite2023 == null || line.schemaId != '00600' || 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.invasionBeyondCapsule == null || line.invasionBeyondCapsule == '8')
    return true

if (Functions.matches(line.rxSummSurgPrimSite2023, /^A000|A1[0-4]\d|A150|A2[0-6]\d|A270|A990$/))
    return line.invasionBeyondCapsule == '9'

return true]]></expression>
            <message>Conflict between RX Summ--Surg Prim Site 2023 and Invasion Beyond Capsule</message>
            <description><![CDATA[Purpose: This edit verifies that Invasion Beyond Capsule SSDI is
coded consistently with RX Summ--Surg Prim Site 2023 for Kidney Parenchyma.

1. This edit is skipped if any of the following conditions is true:

    a. Year of Date of Diagnosis is less than 2023, blank (unknown),
or invalid
    b. Schema ID is not 00600
    c. Invasion Beyond Capsule is blank or 8 (not applicable)
    d. RX Summ--Surg Prim Site 2023 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 RX Summ-Surg Prim Site 2023 = A000 (no surgery) or A100-A150 (tumor
destruction
     without pathology specimen)or A200-A270 (local excision),
   Invasion Beyond Capsule must = 9 (no surgical resection of
primary site)

3. If RX Summ-Surg Prim Site 2023 = A990 (unknown if surgery performed),
    Invasion Beyond Capsule must = 9 (Invasion beyond capsule not assessed or unknown if assessed)
]]></description>
            <history>
                <event version="SE23-023-05" user="cooki" date="2023-06-21" ref="69232">Edit created.</event>
                <event version="SE24-024-01" user="shearerw" date="2024-02-05" ref="69356">Add check for RX Summ-Surg Prim Site 2023 when value is A990.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy