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

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

There is a newer version: 024-13
Show newest version
    <rule id="IFN7090" name="Grade, Bladder, Morphology (SEER)" tag="N7090" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId != '00620' || line.typeOfReportingSource == '7')
    return true
if (line.gradeClinical == null && line.gradePathological == null && line.gradePostTherapyClin == null && line.gradePostTherapy == null)
    return true

if (['8020', '8031', '8082', '8120', '8122', '8130', '8131'].contains(line.histologicTypeIcdO3)) {
    String[] gradeList = ['L', 'H', '9']
    if (line.gradeClinical != null && !gradeList.contains(line.gradeClinical))
        return false
    if (line.gradePathological != null && !gradeList.contains(line.gradePathological))
        return false
    if (line.gradePostTherapyClin != null && !gradeList.contains(line.gradePostTherapyClin))
        return false
    if (line.gradePostTherapy != null && !gradeList.contains(line.gradePostTherapy))
        return false
}
else {
    String[] gradeList = ['1', '2', '3', '9']
    if (line.gradeClinical != null && !gradeList.contains(line.gradeClinical))
        return false
    if (line.gradePathological != null && !gradeList.contains(line.gradePathological))
        return false
    if (line.gradePostTherapyClin != null && !gradeList.contains(line.gradePostTherapyClin))
        return false
    if (line.gradePostTherapy != null && !gradeList.contains(line.gradePostTherapy))
        return false
}

return true
]]></expression>
            <message>Grade and Histology conflict for Bladder</message>
            <description><![CDATA[This edit verifies that Grade Clinical, Grade Pathological, Grade Post Therapy Clin (yc), and Grade Post Therapy Path (yp) are coded consistently with histologic Type ICD-O-3 for Bladder. 
 
1. The edit is skipped for the following conditions: 
    a. Date of Diagnosis before 2018, blank (unknown), or invalid. 
    b. Schema ID is blank or not 00620 
    c. Grade Clinical, Grade Pathological, Grade Post Therapy Clinical, and Grade Post Therapy Pathological are all blank 
    d. Type of Reporting Source = 7 (Death Certificate Only) 
 
2. If Histologic Type ICD-O-3 = 8020, 8031, 8082, 8120, 8122, 8130, or 8131 
    Grade Clinical if not empty must = L, H or 9 
    Grade Pathological if not empty must = L, H, or 9 
    Grade Post Therapy Clin (yc) if not empty must = L, H, or 9 
    Grade Post Therapy Path (yp) if not empty must = L, H, or 9 
 
3. If Histologic Type ICD-O-3 not = 8020, 8031, 8082, 8120, 8122, 8130, or 8131 
    Grade Clinical if not empty must = 1, 2, 3, or 9 
    Grade Pathological if not empty must = 1, 2, 3, or 9 
    Grade Post Therapy Clin (yc) if not empty must = 1, 2, 3, or 9 
    Grade Post Therapy Path (yp) if not empty must = 1, 2, 3, or 9]]></description>
            <history>
                <event version="SE23-023-10" user="beverung" date="2024-01-22" ref="69327">Edit created.</event>
                <event version="SE24-024-06" user="beverung" date="2024-07-10" ref="69514">Edit name changed.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy