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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6356" name="Grade, Ovary/PPC/FT, Morphology (NAACCR)" tag="N6356" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.typeOfReportingSource == '7')
    return true
if (line.gradeClinical == null && line.gradePathological == null)
    return true
if (!Functions.matches(line.schemaId, /^0055[123]$/))
    return true
if (line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == null || line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1')
    return true

String morphTypeAndBehIcdO3 = line.histologicTypeIcdO3 + line.behaviorCodeIcdO3
if (['84412','84413','84603','84613','84743','90803'].contains(morphTypeAndBehIcdO3)) {
    if (line.gradePathological != null && !['L','H','9'].contains(line.gradePathological))
        return false
    if (line.gradeClinical != null && !['L','H','9'].contains(line.gradeClinical))
        return false
}
else {
    if (line.gradePathological != null && !['1','2','3','9'].contains(line.gradePathological))
        return false
    if (line.gradeClinical != null && !['1','2','3','9'].contains(line.gradeClinical))
        return false
}
return true]]></expression>
            <message>Grade Clinical is not valid for Morph--Type&amp;Behav ICD-O-3</message>
            <description><![CDATA[This edit verifies that Grade Clinical and Grade Pathological are coded
consistently with Histologic Type ICD-O-3 and Behavior Code ICD-O-3 for Ovary, Primary Peritoneal
Carcinoma, and 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 not 00551, 00552, or 00553.
    c. Grade Clinical and Grade Pathological are both blank.
    d. Histologic Type ICD-O-3 is blank
    e. Behavior Code ICD-O-3 is blank or = /0 or /1
    f. Type of Reporting Source = 7 (Death Certificate Only)

2. If Histologic Type ICD-O-3 and Behavior Code ICD-O-3 = 8441/2, 8441/3, 8460/3, 8461/3,
    8474/3, or 9080/3
   Grade Clinical if not empty must = L, H or 9
    Grade Pathological if not empty must = L, H, or 9

3. If Histologic Type ICD-O-3 and Behavior Code ICD-O-3 not = 8441/2, 8441/3, 8460/3, 8461/3,
    8474/3 or 9080/3,
    Grade Clinical if not empty must = 1, 2, 3, or 9
    Grade Pathological if not empty must = 1, 2, 3, or 9]]></description>
            <history>
                <event version="SE21-021-04" user="beverung" date="2021-03-29" ref="68625">Edit created.</event>
                <event version="SE23-023-01" user="cooki" date="2023-01-27" ref="69116">Updated description with Histologic Type and Behavior Code.</event>
                <event version="SE23-023-03" user="shearerw" date="2023-05-23" ref="69265">Add skip condition for Behavior Code /0 and /1.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy