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

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

There is a newer version: 024-13
Show newest version
    <rule id="IFN6827" name="EOD Primary Tumor, NET Duodenum, Tumor Size (SEER)" tag="N6827" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear < '2018' || line.dateOfDiagnosisYear > '2023' || line.dateOfDiagnosisYear == null || line.schemaId != '00301' || line.schemaId == null
            || line.eodPrimaryTumor == null || line.typeOfReportingSource == '7' || (line.tumorSizeClinical == null && line.tumorSizePathologic == null))
    return true

if (line.eodPrimaryTumor == '100') {
    if (!Functions.matches(line.tumorSizePathologic, /^(00[1-9]|010|990|999)$/) && !Functions.matches(line.tumorSizeClinical, /^(00[1-9]|010|990|999)$/))
        return false

    if (line.tumorSizeSummary != null && !Functions.matches(line.tumorSizeSummary, /^(00[1-9]|010|990|999)$/))
        return false
}
return true]]></expression>
            <message>EOD Primary Tumor conflicts with Tumor Size Summary</message>
            <description><![CDATA[This edit verifies that EOD Primary Tumor code 100 is coded
consistently with
Tumor Size Clinical, Tumor Size Pathologic, and Tumor Size Summary
for Schema
ID 00301 NET Duodenum

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis before 2018, after 2023, blank (unknown), or invalid.
    b. Schema ID is blank or not 00301
    c. Tumor Size Clinical and Tumor Size Pathologic are both blank
    d. EOD Primary Tumor is blank
    e. Type of Reporting Source is 7 (Death Certificate Only)

2. If EOD Primary Tumor = 100 (Tumor less than or equal to 1cm AND
confined to
   Intramucosal NOS, lamina propria, Mucosa NOS, Muscularis mucosae,
Submucosa;
   Localized NOS)
    a.  Tumor Size Pathologic must = 001-010, 990, 999 or Tumor Size
Clinical must
         = 001-010, 990, 999
    b.  Tumor Size Summary if not blank must = 001-010, 990, 999]]></description>
            <history>
                <event version="SE23-023-04" user="cooki" date="2023-06-14" ref="69230">Edit created.</event>
                <event version="SE24-024-01" user="cooki" date="2024-03-08" ref="69397">Added 2024 skip condition.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy