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

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

There is a newer version: 024-13
Show newest version
<rule id="IFN6793" name="EOD Primary Tumor, Appendix, Histologic Subtype (SEER)" tag="N6793" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.schemaId != '09190' || line.eodPrimaryTumor == null
            || line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == null || line.histologicSubtype == null || line.typeOfReportingSource == '7')
    return true

if (line.histologicTypeIcdO3 == '8480') {
    if (line.behaviorCodeIcdO3 == '2') {
        if (line.histologicSubtype == '1')
            return line.eodPrimaryTumor == '050'
        if (line.eodPrimaryTumor == '050')
            return line.histologicSubtype == '1'
        if (line.histologicSubtype == '2')
            return line.eodPrimaryTumor == '000'
        if (line.eodPrimaryTumor == '000')
            return Functions.matches(line.histologicSubtype, /^[234]$/)
    }
    else if (line.behaviorCodeIcdO3 == '3') {
        if (line.histologicSubtype == '1')
            return !['070','100','200'].contains(line.eodPrimaryTumor)
    }
}

return true]]></expression>
            <message>Conflict between EOD Primary Tumor and Histologic Subtype</message>
            <description><![CDATA[This edit verifies that the Histologic Subtype (Appendix 8480) SSDI is coded consistently
with EOD Primary Tumor.

1. This edit is skipped for the following:
    a. Date of diagnosis is blank (invalid), unknown, or before 2023.
    b. Schema ID is not 09190
    c. EOD Primary Tumor is blank
    d. Histologic Type ICD-O-3 is blank
    e. Behavior Code ICD-O-3 is blank
    f. Histologic Subtype is blank
    g. Type of Reporting Source = 7 (Death Certificate Only)

2. If Histologic Type ICD-O-3/Behavior Code ICD-O-3 is 84802

    A. If Histologic Subtype = 1 (LAMN)
        EOD Primary Tumor must = 050 (LAMN)

    B. If EOD Primary Tumor = 050,
        Histologic Subtype must = 1

    C. If Histologic Subtype = 2 (HAMN),
        EOD Primary Tumor must = 000

    D. If EOD Primary Tumor = 000
        Histologic Subtype must = 2, 3, or 4.

3. If Histologic Type ICD-O-3/Behavior Code ICD-O-3 is 84803
    A. If Histologic Subtype = 1 (LAMN)
        EOD Primary Tumor must not = 070 (Lamina propria, mucosa), 100 (Submucosa),
        200 (Muscularis propria)]]></description>
            <history>
                <event version="SE23-023-03" user="shearerw" date="2023-05-24" ref="69228">Edit Created.</event>
                <event version="SE24-024-06" user="shearerw" date="2024-06-27" ref="69474">Remove references to Appendix 8480. Add logic for behavior code 3.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy