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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6383" name="EOD Primary Tumor, Ovary/Fallopian Tube, Morphology ICDO3 (SEER)" tag="N6383" 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 || !['00551','00553'].contains(line.schemaId))
    return true
if (line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == null)
    return true

String morphTypebehavIcdO3 = line.histologicTypeIcdO3 + line.behaviorCodeIcdO3
if (line.schemaId == '00551') {
    if (morphTypebehavIcdO3 == '84412')
        return ['000','050'].contains(line.eodPrimaryTumor)
    if (line.eodPrimaryTumor == '050')
        return morphTypebehavIcdO3 == '84412'
}
else if (line.schemaId == '00553') {
    if (morphTypebehavIcdO3 == '84412')
        return ['000','050','070','080'].contains(line.eodPrimaryTumor)
    if (['050','070','080'].contains(line.eodPrimaryTumor))
        return morphTypebehavIcdO3 == '84412'
}
return true]]></expression>
            <message>EOD Primary Tumor/Morphology conflct for Fallopian Tube</message>
            <description><![CDATA[This edit verifies that EOD Primary Tumor is coded consistently with Histologic Type ICD-O-3
and Behavior ICD-O-3 code 8441/2 for Schema ID 00551, Ovary, and 00553, Fallopian Tube.

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 00551 or 00553
    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 Schema ID = 00551,
    a. If Histologic Type ICD-O-3 and Behavior Code ICD-O-3 = 84412
       EOD Primary Tumor must = 000 or 050

    b. If EOD Primary Tumor = 050
        Histologic Type ICD-O-3 and Behavior Code ICD-O-3 must = 84412

3. If Schema ID = 00553
    a. If Histologic Type ICD-O-3 and Behavior Code ICD-O-3 = 84412
       EOD Primary Tumor must = 000, 050, 070, or 080

    b. If EOD Primary Tumor = 050, 070, or 080
        Histologic Type ICD-O-3 and Behavior Code ICD-O-3 must = 84412]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-03-25" ref="68606">Edit created.</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="69112">Update description to replace Morph with Hist. No logic changed.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy