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

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

The newest version!
        <rule id="IFN6099" name="LN Distant Assessment Method, Surgery Other Site (SEER)" tag="N6099" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.rxSummSurgOthRegDis == 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.lnDistantAssessMethod == null || line.lnDistantAssessMethod == '8' || !['00510', '00520', '09520'].contains(line.schemaId))
    return true

if (line.lnDistantAssessMethod == '2' && line.rxSummSurgOthRegDis != '3' && line.rxSummSurgOthRegDis != '5')
    return false

return true]]></expression>
            <message>LN Distant Assessment Method conflicts with RX Summ--Surg Oth Reg/Dis.</message>
            <description><![CDATA[This edit verifies that LN Distant Assessment Method SSDI is coded consistently
with RX Summ-Surg Oth Reg/Dis.

1. The edit is skipped for the following conditions:
   a. Date of Diagnosis before 2019, blank (unknown), or invalid.
   b. Schema ID is not 00510, 00520, 09520.
   c. LN Distant Assessment Method is blank or 8 (not applicable).
   d. RX Summ--Surg Oth Reg/Dis 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 LN Distant Assessment Method = 2 (lymphadenectomy)
    RX Summ--Surg Oth Reg/Dis must = 3 (resection of distant lymph nodes) or
   5 (any combination of codes 2, 3, or 4)]]></description>
            <history>
                <event version="SE22-022-05" user="secristc" date="2022-05-04" ref="68938">Edit created.</event>
                <event version="SE23-023-03" user="shearerw" date="2023-05-26" ref="69279">Change edit from IFN3041 to IFN6099. Add skip condition.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy