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

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

There is a newer version: 024-13
Show newest version
<rule id="IFN6787" name="Serum Markers, Testis, Post-Orchiectomy 2023, Range (NAACCR)" tag="N6787" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.schemaId != '00590' || line.rxSummSurgPrimSite2023 == null || line.typeOfReportingSource == '7')
    return true

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

if (['A000','A120','A200','A990'].contains(line.rxSummSurgPrimSite2023))
    return line.afpPostOrchiectomyRange == '9' && line.hcgPostOrchiectomyRange == '9' && line.ldhPostOrchiectomyRange == '9' && line.sCategoryPathological == '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 range 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 Range
       hCG Post-Orchiectomy Range
       LDH Post-Orchiectomy Range
       S Category Pathological

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

2.  If RX Summ--Surg Prim Site 2023 = 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 Range          9
       hCG Post-Orchiectomy Range          9
       LDH Post-Orchiectomy Range          9
       S Category Pathological             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 Range not assessed or unknown if assessed):

       AFP Post-Orchiectomy Range          9
       hCG Post-Orchiectomy Range          9
       LDH Post-Orchiectomy Range          9
       S Category Pathological             9]]></description>
            <history>
                <event version="SE23-023-04" user="shearerw" date="2023-06-13" ref="69235">Edit created.</event>
                <event version="SE23-023-05" user="shearerw" date="2023-06-29" ref="69292">Remove logic for when S Category Pathological is 8.</event>
                <event version="SE24-024-01" user="cooki" date="2024-02-09" ref="69372">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