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

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

The newest version!
<rule id="IFN6786" name="Serum Markers, Testis, Post-Orchiectomy 2023, Lab Value (NAACCR)" tag="N6786" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.rxSummSurgPrimSite2023 == null || line.schemaId != '00590'
            || line.typeOfReportingSource == '7')
    return true
if ((line.afpPostOrchiectomyLabValue == null || line.afpPostOrchiectomyLabValue == 'XXXXX.8') && (line.hcgPostOrchiectomyLabValue == null || line.hcgPostOrchiectomyLabValue == 'XXXXX.8'))
    return true

if (['A000','A120','A200','A990'].contains(line.rxSummSurgPrimSite2023))
    return line.afpPostOrchiectomyLabValue == 'XXXXX.9' && line.hcgPostOrchiectomyLabValue == 'XXXXX.9'

return true]]></expression>
            <message>Testis Serum Markers must be coded &quot;no orchiectomy performed&quot; if no orchiectomy performed</message>
            <description><![CDATA[This edit verifies that the testis tumor marker lab value SSDIs are coded consistently
with surgery code.

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis before 2023, blank (unknown), or invalid.
    b. Schema ID not = 00590
    c. The following SSDIs are blank or not applicable:

       AFP Post-Orchiectomy Lab Value
       hCG Post-Orchiectomy Lab Value

    d. RX Summ--Surg Prim Site 2023 is blank
    e. Type of Reporting Source = 7 (death certificate only)

2.  If Primary Site Surgery = A000 (no surgery of primary site), A120 (local tumor
    destruction NOS (no specimen sent to pathology), or A200 (local excision of
    testicle),
     Then the data items must be coded as follows (no orchiectomy performed):

       AFP Post-Orchiectomy Lab Value          XXXXX.9
       hCG Post-Orchiectomy Lab Value          XXXXX.9

3. If RX Summ-Surg Prim Site 2023 = A990 ,
    Then the data items must be coded as follows (no orchiectomy performed, or AFP Post-Orchiectomy Lab Value not assessed or unknown if assessed):

       AFP Post-Orchiectomy Lab Value          XXXXX.9
       hCG Post-Orchiectomy Lab Value          XXXXX.9]]></description>
            <history>
                <event version="SE23-023-04" user="shearerw" date="2023-06-13" ref="69235">Edit created.</event>
                <event version="SE24-024-01" user="cooki" date="2024-02-09" ref="69371">Added condition 3. for code A990.</event>
                <event version="SE24-024-06" user="shearerw" date="2024-06-20" ref="69499">Updated name.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy