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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6640" name="Macroscopic Evaluation of Mesorectum, Rectum, Surgery 03-2022 (SEER)" tag="N6640" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear != '2022' || line.primarySite != 'C209' || line.macroscopicEvalOfTheMesorectum == null ||
            line.rxSummSurgPrimSite == null || line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7')
    return true

if (Functions.matches(line.rxSummSurgPrimSite, /^00|1[0-5]|2[0-8]$/))
    return line.macroscopicEvalOfTheMesorectum == '00'

if (line.rxSummSurgPrimSite == '99')
    return line.macroscopicEvalOfTheMesorectum == '99'

return true]]></expression>
            <message>Macroscopic Evaluation of Mesorectum conflicts with RX Summ--Surg Prim Site 03-2022</message>
            <description><![CDATA[This edit verifies that Macroscopic Evaluation of
Mesorectum is coded consistently with RX Summ--Surg Prim Site 03-2022 for Rectum.

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

    a. Year of Date of Diagnosis is not 2022
    b. Primary Site is not C209
    c. Macroscopic Evaluation of Mesorectum is blank
    d. RX Summ--Surg Prim Site 03-2022 is blank
    e. Type of Reporting Source = 6 (Autopsy Only) or 7 (Death Certificate Only)

2. If RX Summ--Surg Prim Site 03-2022 = 00 (no surgery), 10-15 (tumor
    destruction without pathology specimen), or 20-28 (local excision)
    Macroscopic Evaluation of Mesorectum must = 00 (Patient did not
    receive TME)

3. If RX Summ--Surg Prim Site 03-2022 = 99 (unknown if surgery performed),
    Macroscopic Evaluation of Mesorectum must = 99 (Unknown if TME performed)
            ]]></description>
            <history>
                <event version="SE22-022-05" user="secristc" date="2022-05-04" ref="68938">Edit created.</event>
                <event version="SE23-023-01" user="cooki" date="2023-01-26" ref="69109">Name changed, skip condition year changed to not 2022, Surg Prim Site 03-2022 label added.</event>
                <event version="SE23-023-04" user="cooki" date="2023-05-30" ref="69280">Changed ID, Tag, Name. Added skip conditon for Type of Reporting Source = 7.</event>
                <event version="SE24-024-01" user="shearerw" date="2024-02-05" ref="69361">Add logic for code 99 for RX Summ-Surg Prim Site 03-2022.</event>
                <event version="SE24-024-04" user="beverung" date="2024-04-12" ref="69449">Don't allow Macroscopic Evaluation of Mesorectum must = 99 in condition 2.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy