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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN7016" name="RX Summ--Surg Prim Site 2023, Breast, Recon Breast (NAACCR)" tag="N7016" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2024' || line.typeOfReportingSource == '7')
    return true
if (line.primarySite == null || !Functions.matches(line.primarySite, /^C50\d$/))
    return true
if (line.rxSummSurgPrimSite2023 == null && line.rxSummReconBreast == null)
    return true

if (line.rxSummSurgPrimSite2023 == 'B000' && line.rxSummReconBreast != 'A000')
    return false
if (line.rxSummSurgPrimSite2023 == 'B990' && line.rxSummReconBreast != 'A990')
    return false
if (Functions.matches(line.rxSummReconBreast, /^A6[0-4]0$/))
    return Functions.matches(line.rxSummSurgPrimSite2023, /^B([3-7]\d\d|800)$/)
return true
]]></expression>
            <message>RX Summ--Surg Prim Site 2023 conflicts with RX Summ--Recon Breast</message>
            <description><![CDATA[This edit verifies that RX Summ--Surg Prim Site 2023 for breast and RX Summ--Recon Breast are coded consistently with each other.

1. This edit is skipped if any of the following conditions are true:
    a. Diagnosis date is blank (unknown), invalid, or before 2024
    b. Primary Site is blank or not C500-C509
    c. RX Summ--Surg Prim Site 2023 and RX Summ--Recon Breast are both blank
    d. Type of Reporting Source = 7 (Death Certificate Only)


2. If RX Summ--Surg Prim Site 2023 = B000 (no procedure performed),
    RX Summ--Recon Breast must = A000 (no reconstruction)

3. If RX Summ--Surg Prim Site 2023 = B990 (unknown if surgery performed)
    RX Summ--Recon Breast must = A990 (unknown if reconstruction performed)

4. If RX Summ--Recon Breast = A600, A610, A620, A630, or A640 (mastectomy reconstruction)
    RX Summ--Surg Surg Prim Site 2023 must = B300 through B800 (mastectomy procedures)
]]></description>
            <history>
                <event version="SE24-024-01" user="beverung" date="2024-03-11" ref="69434">Edit created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy