edits.seer.internal.rules.IFN7091.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of validation-edits-seer Show documentation
Show all versions of validation-edits-seer Show documentation
Java implemenation of the SEER edits.
<rule id="IFN7091" name="Grade, Bladder, RX Summ--Surg Prim Site 2023 (SEER)" tag="N7091" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.schemaId != '00620' || line.gradePathological == null || line.rxSummSurgPrimSite2023 == null || line.typeOfReportingSource == '7') return true if (Functions.matches(line.rxSummSurgPrimSite2023, /^A([01]\d|2[0-7]|9\d)0$/) && ['00', '99'].contains(line.eodMets)) return line.gradePathological == '9' return true]]></expression> <message>Grade and Surgery 2023+ conflict for Bladder</message> <description><![CDATA[This edit verifies that Grade Pathological is coded consistently with RX Summ--Surg Prim Site 2023 for Bladder. Transurethral Resection of Bladder (TURB) (or less severe surgeries) is not sufficient to assign Grade Pathological without presence of metastasis. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2023, blank (unknown), or invalid. b. Schema ID is not 00620 c. Grade Pathological is blank d. RX Summ--Surg Prim Site 2023 is blank e. Type of Reporting Source = 7 (Death Certificate Only) 2. If RX Summ--Surg Prim Site 2023 = A000-A270, A900-A990 and EOD Mets = 00, 99 Grade Pathological must = 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>