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

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

There is a newer version: 024-13
Show newest version
<rule id="IFN7048" name="Tumor Size Summary, EOD Primary Tumor, Schema ID (SEER)" tag="N7048" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2024' || line.tumorSizeSummary == null || line.typeOfReportingSource == '7' || line.eodPrimaryTumor == null)
    return true

if (line.schemaId == null || ['00458','00671','00672','00790','00795','00821','00822','00830'].contains(line.schemaId))
    return true

if (((List)Context.IFN7048_SchemaId_List).contains(line.schemaId))
    return line.tumorSizeSummary != '000'

if (line.schemaId == '00060')
    return line.tumorSizeSummary == '000'

if (line.schemaId == '00360') {
    if (line.tumorSizeSummary == '000')
        return line.eodPrimaryTumor == '800' || line.eodPrimaryTumor == '980'
    if (line.eodPrimaryTumor == '800' || line.eodPrimaryTumor == '980')
        return line.tumorSizeSummary == '000' || line.tumorSizeSummary == '999'
}
else if (line.schemaId == '00580') {
    if (line.tumorSizeSummary == '000')
        return line.eodPrimaryTumor == '800' && ['800','900','950','999'].contains(line.prostatePathologicalExtension)
    if (line.eodPrimaryTumor == '800' && line.prostatePathologicalExtension == '800')
        return line.tumorSizeSummary == '000' || line.tumorSizeSummary == '999'
}
else {
    if (line.tumorSizeSummary == '000' && line.schemaId != '99999')
        return line.eodPrimaryTumor == '800'
    if (line.eodPrimaryTumor == '800')
        return line.tumorSizeSummary == '000' || line.tumorSizeSummary == '999'
}

return true]]></expression>
            <message>Tumor Size Summary is not valid for Schema ID</message>
            <description><![CDATA[This edit checks consistency of coding between Tumor Size codes (000)
and EOD Primary Tumor code (800) indicating no evidence of primary tumor.  For the listed head and neck schemas,
there is no EOD Primary Tumor code of 800, as cases with no evidence of primary tumor are assigned to Schema ID 00060,
Cervical Lymph Nodes, Occult Head and Neck. For 000360, Lung, EOD Primary Tumor is coded 980 for an occult primary tumor.
For 00580, Prostate, EOD Primary Tumor and EOD Prostate Pathologic Extension codes are checked,
as presence of primary tumor could be coded in either data item.

1. This edit is skipped if any of the following conditions is true:
    a. Diagnosis date is invalid, blank (unknown), before 2024.
    b. Schema ID is blank or = 00458, 00671, 00672, 00790, 00795, 00821, 00822, 00830
        (Schema IDs where Tumor Size must = 999)
    c. Tumor Size Summary is blank
    d. Type of Reporting Source is 7 (Death Certificate Only)
    e. EOD Primary Tumor is blank

2. For the Schema IDs in the list below,
    Tumor Size Summary must not = 000.

    00071   Lip
    00072   Tongue Anterior
    00073   Gum
    00074   Floor of Mouth
    00075   Palate Hard
    00076   Buccal Mucosa
    00077   Mouth Other
    00111   Oropharynx
    00112   Hypopharynx
    00118   Pharynx Other
    00119   Middle Ear
    00121   Maxillary Sinus
    00122   Nasal Cavity and Ethmoid Sinus
    00128   Sinus Other
    00131   Larynx Supraglottic
    00132   Larynx Glottic
    00133   Larynx Subglottic
    00140   Melanoma Head and Neck
    00150   Cutaneous Carcinoma Head and Neck

3. If Schema ID = 00060, Cervical Nodes, Unknown Primary
    Tumor Size Summary must = 000

4. If Schema ID = 00360, Lung
    a. If Tumor Size Summary = 000,
        EOD Primary Tumor must =800 or 980
    bc. If EOD Primary Tumor = 800 or 980:
        Tumor Size Summary must = 000, 999

5. If Schema ID = 00580, Prostate,
    a. If Tumor Size Summary = 000
        EOD Primary Tumor must = 800 and EOD Prostate Pathologic Extension must = 800, 900. 950, or 999
    b. If EOD Primary Tumor = 800 and EOD Prostate Pathologic Extension = 800
        Tumor Size Summary must = 000 or 999

6. For all other Schema IDs:
    a. If Tumor Size Summary = 000 and Schema ID not 99999,
        EOD Primary Tumor must = 800
    b. If EOD Primary Tumor = 800:
        Tumor Size Summary must = 000 or 999]]></description>
            <history>
                <event version="SE24-024-03" user="shearerw" date="2024-03-21" ref="69433">Edit Created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy