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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6226" name="EOD Primary Tumor, Corpus Carcinoma, Morphology ICDO3 (SEER)" tag="N6226" 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 || line.schemaId != '00530')
    return true
if (line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == null)
    return true

String morphTypebehavIcdO3 = line.histologicTypeIcdO3 + line.behaviorCodeIcdO3
if (morphTypebehavIcdO3 == '83802' && !['000', '050'].contains(line.eodPrimaryTumor))
    return false
if (morphTypebehavIcdO3 == '84412' && line.eodPrimaryTumor != '050')
    return false
if (line.eodPrimaryTumor == '050' && !['83802', '84412'].contains(morphTypebehavIcdO3))
    return false
return true]]></expression>
            <message>EOD Primary Tumor/Morphology conflict for Corpus</message>
            <description><![CDATA[This edit verifies that EOD Primary Tumor is coded consistently with Histologic Type ICD-O-3 and Behavior Code ICD-O-3 Code 8380/2
            for Schema ID 00530, Corpus Carcinoma and Carcinosarcoma.

1. The edit is skipped for the following conditions:
    a. Date of Diagnosis before 2021, blank (unknown), or invalid.
    b. Schema ID is blank or not 00530
    c. EOD Primary Tumor is blank
    d. Histologic Type ICD-O-3 or Behavior Code ICD-O-3 is blank
    e. Type of Reporting Source is 7 (Death Certificate Only)


2. If Histologic Type ICD-O-3 and Behavior Code ICD-O-3 = 83802,
   EOD Primary Tumor must = 000 or 050 for Schema ID 00530

3. If Histologic Type ICD-O-3 and Behavior Code ICD-O-3 = 84412
    EOD Primary Tumor must = 050 for Schema ID 00530

4. If EOD Primary Tumor = 050 for Schema ID 00530,
    Histologic Type ICD-O-3 and Behavior Code ICD-O-3 must = 83802 or 84412]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-03-25" ref="68606">Edit created.</event>
                <event version="SE22-022-01" user="smithm" date="2022-03-01" ref="68872">Updated edit logic for NAACCR 22.</event>
                <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-01-26" ref="69111">In description replace Morph with Hist. No logic changed.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy