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

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

The newest version!
        <rule id="IFN5027" name="Grade Clin, Grade Path 03-2022 (NAACCR)" tag="N5027" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis">
            <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.dateOfDiagnosisYear > '2022')
    return true

if (line.gradePathological == null || line.gradePathological == '9' || line.gradeClinical == null || line.gradeClinical == '8' || line.gradeClinical == '9')
    return true

if (Functions.matches(line.schemaId, /^0072[123]$/))
    return true

if (Functions.matches(line.rxSummSurgPrimSite, /^[3-8]\d|90$/) && line.gradePostTherapy == null && Functions.matches(line.gradeClinical, /^\d$/) && Functions.matches(line.gradePathological, /^\d$/))
    return line.gradePathological != '8' && line.gradeClinical <= line.gradePathological

return true]]></expression>
            <message>Grade Pathological must not be less than Grade Clinical and not = 8 if Grade Clinical = 1-5, Grade Post Therapy (yp) is blank, and RX Summ--Surg Prim Site 03-2022 = 30-90.</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 = pre-2019 or after 2022, blank (unknown) or invalid.
    b. Grade Pathological is blank or 9.
    c. Grade Clinical = 8, 9, or blank.
    d. Schema ID = 00721, 00722, 00723

2. If surgery is performed (RX Summ--Surg prim Site 03-2022 = 30-90),
   if Grade Clinical and Grade Pathological are numeric and Grade Post Therapy (yp) =
    blank, Grade Pathological must not be less than Grade Clinical and must not
   = 8.]]></description>
            <history>
                <event version="SE18-019-02" user="kirbyk" date="2019-05-03" ref="68157">Edit created.</event>
                <event version="SE18-020-02" user="beverung" date="2020-03-31" ref="68298">Add skip condition for schemaIds 00721, 00722, 00723 and remove Grade Pathological must not = 9 from step 2.</event>
                <event version="SE18-020-04" user="beverung" date="2020-06-30" ref="68363">Updated error message to remove Grade Pathological must not = 9.</event>
                <event version="SE18-020-05" user="beverung" date="2020-07-30" ref="68398">Update skip condition and change Grade Post Therapy to Grade Post Therapy (yp).</event>
                <event version="SE22-022-05" user="kirbyk" date="2022-05-17" ref="68995">Replaced non-ASCII characters in message.</event>
                <event version="SE23-023-01" user="shearerw" date="2023-01-25" ref="69099">Name change and add skip condition for DX year after 2022.</event>
                <event version="SE23-023-01" user="secristc" date="2023-02-22" ref="69198">Add skip condition for blank Grade Clinical.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy