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

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

There is a newer version: 024-13
Show newest version
<rule id="IFN6830" name="Serum Tumor Markers, Testis, RX Summ--Surg Prim Site 2023 (SEER)" tag="N6830" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.schemaId == null || line.schemaId != '00590' || line.rxSummSurgPrimSite2023 == null
            || line.typeOfReportingSource == '7')
    return true

if ((line.afpPostOrchiectomyLabValue == null || line.afpPostOrchiectomyLabValue == 'XXXXX.8') && (line.afpPostOrchiectomyRange == null || line.afpPostOrchiectomyRange == '8')
    && (line.hcgPostOrchiectomyLabValue == null || line.hcgPostOrchiectomyLabValue == 'XXXXX.8') && (line.hcgPostOrchiectomyRange == null || line.hcgPostOrchiectomyRange == '8')
    && (line.ldhPostOrchiectomyRange == null || line.ldhPostOrchiectomyRange == '8') && (line.sCategoryPathological == null || line.sCategoryPathological == '9'))
    return true

if (Functions.matches(line.afpPostOrchiectomyLabValue, /^XXXXX\.[17]|(0|[1-9]\d{0,4})\.\d$/) || Functions.matches(line.afpPostOrchiectomyRange, /^[0-47]$/)
    || Functions.matches(line.hcgPostOrchiectomyLabValue, /^XXXXX\.[17]|(0|[1-9]\d{0,4})\.\d$/) || Functions.matches(line.hcgPostOrchiectomyRange, /^[0-47]$/)
    || Functions.matches(line.ldhPostOrchiectomyRange, /^[0-47]$/) || Functions.matches(line.sCategoryPathological, /^[0-3]$/))
    return ['A300','A400','A800'].contains(line.rxSummSurgPrimSite2023)

return true]]></expression>
            <message>Conflict between RX Summ--Surg Prim Site 2023 and Serum Tumor Marker values</message>
            <description><![CDATA[This edit verifies that Serum Tumor Marker SSDIs are coded consistently with RX Summ--Surg Prim Site 2023 for Schema ID 00590, Testis.

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis before 2023, blank (unknown), or invalid.
    b. Schema ID is blank or not 00590
    c. All tumor marker SSDIs are blank or not applicable [S Category Pathological blank or 9]
    d. RX Summ--Surg Prim Site 2023 is blank
    e. Type of Reporting Source is 7 (Death Certificate Only)


2. If Tumor Marker SSDIs = Post-Orchiectomy values:
    AFP Post-Orchiectomy Lab Value = 0.0-99999.9 or XXXXX.1 or XXXXX.7 or
    AFP Post-Orchiectomy Range = 0-4 or 7 or
    hCG Post-Orchiectomy Lab Value = 0.0-99999.9 or XXXXX.1 or XXXXX.7 or
    hCG Post-Orchiectomy Range = 0-4 or 7 or
    LDH Post-Orchiectomy Range = 0-4 or 7 or
    S Category Pathological = 0-3
        RX Summ--Surg Prim Site 2023 must = A300, A400, or A800 (orchiectomy)]]></description>
            <history>
                <event version="SE23-023-05" user="shearerw" date="2023-06-26" ref="69241">Edit Created.</event>
                <event version="SE24-024-01" user="kirbyk" date="2024-02-06" ref="69347">Added S Category Pathological = 9 to skip condition.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy