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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6253" name="EOD Primary Tumor, Lymphoma (SEER)" tag="N6253" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.eodPrimaryTumor == null)
    return true
if (line.typeOfReportingSource == '7' || line.schemaId == null || !['00790','00795'].contains(line.schemaId))
    return true

if (line.eodPrimaryTumor == '100' && !Functions.matches(line.primarySite, /^C(0(24|9\d)|111|142|379|422|77[0-59])$/))
    return false
if (line.eodPrimaryTumor == '200' && Functions.matches(line.primarySite, /^C(0(24|9\d)|111|142|379|422|77[0-589])$/))
    return false

if (line.primarySite == 'C778' && line.eodPrimaryTumor < '300')
    return false
if (line.primarySite == 'C421' && line.eodPrimaryTumor != '750' && line.eodPrimaryTumor != '800')
    return false
if (line.primarySite == 'C220' && line.eodPrimaryTumor != '800')
    return false

return true]]></expression>
            <message>Conflict between EOD Primary Tumor and Primary Site</message>
            <description><![CDATA[The purpose of this edit is to verify that EOD Primary Tumor is coded
correctly for Schema ID 00790, Lymphoma, and 00795, Lymphoma CLL/SLL.

1. This edit is skipped if any of the following conditions is true:
    a. Date of diagnosis is pre-2021, blank (unknown), or invalid.
    b. Schema ID is blank or not 00790 or 00795
    c. EOD Primary Tumor is blank
    d. Case is death certificate only (Type of Reporting Source = 7).

2. If Schema ID = 00790 or 00795:

a. If EOD Primary Tumor = 100 (Involvement of a single lymph node region),
    then Primary Site must be one of the following:
    C770-C775, C779 (single lymph node region), C024 (lingual tonsil),
    C090-C099 (tonsil), C111 (pharyngeal tonsil), C142 (Waldeyer's ring),
    C379 (thymus), or C422 (spleen)


b. If EOD Primary Tumor  = 200 (Involvement of a single extralymphatic
    site without nodal involvement, multifocal involvement of one
    extralymphatic organ/site (except multifocal lung involvement) without
    nodal involvement),
    then Primary Site must NOT be one of the following:
    C770-C775, C778, C779 (lymph node regions), C024 (lingual tonsil),
    C090-C099 (tonsil), C111 (pharyngeal tonsil), C142 (Waldeyer ring),
    C379 (thymus), or C422 (spleen)

c. If Primary Site = C778 (multiple lymph nodes),
    then EOD Primary Tumor must be > or = 300.

d. If Primary Site = C421 (bone marrow),
    then EOD Primary Tumor must = 750 (Peripheral blood involvement only) or
    800 (Any involvement of bone marrow)

e. If Primary Site = C220 (liver),
    then EOD Primary Tumor must = 800 (Any involvement of liver)]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-03-25" ref="68606">Edit created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy