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

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

There is a newer version: 024-13
Show newest version
        <rule id="IFN6902" name="Grade Clin, Grade Path 2023 (NAACCR)" tag="N6902" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.gradePathological == null || line.gradePathological == '9'
            || line.gradeClinical == null || line.gradeClinical == '8' || line.gradeClinical == '9' || ['00721','00722','00723','09721','09722','09723','09724'].contains(line.schemaId))
    return true

boolean isGradeClinValid = Functions.matches(line.gradeClinical, /^[0-9]$/)
boolean isGradePathValid = Functions.matches(line.gradePathological, /^[0-9]$/)

if (Functions.matches(line.rxSummSurgPrimSite2023, /^A[3-8]\d\d|A900|B[3-8]\d\d|B900$/)) {
    if (line.gradePostTherapy == null && isGradeClinValid && isGradePathValid)
        return line.gradeClinical <= line.gradePathological && line.gradePathological != '8'
}

return true]]></expression>
            <message>Grade Pathological must not be less than Grade Clinical and not = 8 if Grade Clinical = 1-5, Grade Post Therapy Path (yp) is blank, and RX Summ--Surg Prim Site 2023 = A300-A900</message>
            <description><![CDATA[This edit checks that Grade Clinical is used to code Grade Pathological if the
grade on clinical pathology is higher than the grade on surgical pathology.

From the Grade Manual:
"Record the highest grade documented from any microscopic specimen of the primary
site whether from the clinical workup or the surgical resection."

1. This edit is skipped under the following conditions:
    a. Date of diagnosis = before 2023, blank (unknown) or invalid.
    b. Grade Pathological is blank or = 9.
    c. Grade Clinical is blank or = 8 or 9.
    d. Schema ID = 00721, 00722, 00723, 09721, 09722, 09723, 09724

2. If surgery is performed (RX Summ--Surg Prim Site 2023 = A300-A900, B300-B900),
   if Grade Clinical and Grade Pathological are numeric and Grade Post Therapy
   Path (yp) = blank,
    Grade Pathological must not be less than Grade Clinical and must not = 8
    (not applicable)]]></description>
            <history>
                <event version="SE23-023-05" user="cooki" date="2023-06-26" ref="69247">Edit created.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy