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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN5018" name="RX Summ--Surgical Margins, Surg Prim Site 03-2022, Primary Site, 2018 (NAACCR)" tag="N5018" java-path="lines.line" category="inter-field">
            <expression><![CDATA[ if(line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.dateOfDiagnosisYear > '2022' || line.primarySite == null)
    return true
if (line.rxSummSurgicalMargins == null || line.rxSummSurgPrimSite == null || line.typeOfReportingSource == '7')
    return true

if (line.rxSummSurgPrimSite == '98' && line.rxSummSurgicalMargins != '9')
    return false

if (Functions.matches(line.primarySite, /^C(42[0134]|76[0-8]|77\d|809)$/)) {
    if (line.rxSummSurgicalMargins != '9')
        return false
}
else {
    if (line.rxSummSurgPrimSite == '00' && line.rxSummSurgicalMargins != '8')
        return false
    if (line.rxSummSurgicalMargins == '8' && line.rxSummSurgPrimSite != '00')
        return false
}

return true ]]></expression>
            <message>Conflict among RX Summ--Surgical Margins, RX Summ--Surg Prim Site 03-2022 and Site</message>
            <description><![CDATA[This edit verifies that RX Summ--Surgical Margins is coded appropriately by
Primary Site code.

1. The edit is skipped for any of the following conditions:
    a. Date of Diagnosis before 2018 or after 2022, blank (unknown), or invalid.
    b. Primary Site is blank
    c. RX Summ--Surgical Margins is blank.
    d. RX Summ--Surg Prim Site 03-2022 is blank
    e. Type of Reporting Source = 7 (Death Certificate Only)


2. If RX Summ--Surg Prim Site 03-2022 = 98, RX Summ--Surgical Margins must = 9

3. If Primary Site = C420, C421, C423, C424, C760-C768, C770-C779, or C809
    RX Summ--Surgical Margins must = 9

4. For any other primary site,
    if RX Summ--Surg Prim Site 03-2022  = 00, then RX Summ--Surgical Margins must = 8
    if RX Summ--Surgical Margins = 8, then RX Summ--Surg Prim Site 03-2022 must = 00]]></description>
            <history>
                <event version="SE21-021-04" user="secristm" date="2021-03-18" ref="68599">Edit created.</event>
                <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68897">Update edit name to match new NAACCR translated edit.</event>
                <event version="SE22-022-06" user="beverung" date="2022-05-26" ref="68997">Update edit to for 2022.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-01-25" ref="69094">Update edit name and add skip condition for DX year after 2022.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy