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

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

There is a newer version: 025-01
Show newest version
    <rule id="IFN7057" name="AFP Post-Orchiectomy Lab Value, Range, Testis (NAACCR)" tag="N7057" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2024' || line.schemaId == null || line.schemaId != '00590' || line.typeOfReportingSource == '7')
    return true

if (line.afpPostOrchiectomyLabValue == null || line.afpPostOrchiectomyRange == null || line.afpPreOrchiectomyLabValue == 'XXXXX.8' || line.afpPreOrchiectomyRange == '8')
    return true

if (Functions.matches(line.afpPostOrchiectomyLabValue, /^[1-9]\d\d\d\.\d|10000\.0$/))
    return line.afpPostOrchiectomyRange == '2'

if (Functions.matches(line.afpPostOrchiectomyLabValue, /^[1-9]\d\d\d\d\.\d|XXXXX\.1$/) && line.afpPreOrchiectomyLabValue != '10000.0')
    return line.afpPostOrchiectomyRange == '3'

if (line.afpPostOrchiectomyRange == '5')
    return line.afpPostOrchiectomyLabValue == 'XXXXX.9'

return true]]></expression>
            <message>Conflict between AFP Post-Orchiectomy Lab Value and AFP Post-Orchiectomy Range</message>
            <description><![CDATA[This edit verifies that AFP Post-Orchiectomy Lab Value and AFP Post-Orchiectomy Range SSDIs are coded consistently with each other

1. The edit is skipped for any of the following conditions:
    a. Date of Diagnosis Pre-2024, blank (unknown), or invalid.
    b. Schema ID is blank or not 00590
    c. Type of Reporting Source = 7 (Death Certificate Only)
    d. AFP Post-Orchiectomy Lab Value or AFP Post-Orchiectomy Range is blank or coded not applicable

2. If AFP Post-Orchiectomy Lab Value= 1,000.0 - 10,000.0 ng/mL
    AFP Post-Orchiectomy Range must = 2 (1,000-10,000 ng/mL)

3. If AFP Post-Orchiectomy Lab Value  10,000.1-99,999.9 ng/mL or XXXXX.1 (100,000 ng/ml or greater)
    AFP Post-Orchiectomy Range must = 3 (greater than 10,000 ng/ml)

4.  If AFP Post-Orchiectomy Range = 5 (unknown or not done, pre-orchiectomy normal)
    AFP Post-Orchiectomy Lab Value must = XXXXX.9 (not assessed or unknown)]]></description>
            <history>
                <event version="SE24-024-06" user="cooki" date="2024-07-22" ref="69503">Edit Created.</event>
            </history>
        </rule>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy