edits.seer.internal.rules.IFN7089.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.
The newest version!
<rule id="IFN7089" name="EOD Primary Tumor, Bladder, RX Summ--Surg Prim Site 03-2022 (SEER)" tag="N7089" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.dateOfDiagnosisYear > '2022' || line.schemaId != '00620' || line.eodPrimaryTumor == null || line.rxSummSurgPrimSite == null || line.typeOfReportingSource == '7') return true if (['200', '250', '300', '350'].contains(line.eodPrimaryTumor) && !Functions.matches(line.rxSummSurgPrimSite, /^[3-7]\d|80$/)) return false return !Functions.matches(line.rxSummSurgPrimSite, /^[01]\d|2[0-7]|9\d$/) || !['200', '250', '300', '350'].contains(line.eodPrimaryTumor)]]></expression> <message>Surgery code conflicts with EOD Primary Tumor for Bladder</message> <description><![CDATA[This edit verifies that EOD Primary Tumor is coded consistently with RX Summ--Surg Prim Site 03-2022 for Schema ID 00620, Bladder. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2018 or after 2022, blank (unknown), or invalid. b. Schema ID is blank or not 00620 c. EOD Primary Tumor is blank d. RX Summ--Surg Prim Site 03-2022 is blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Primary Tumor = 200, 250, 300, or 350 (codes requiring cystectomy) then RX Summ--Surg Prim Site 03-2022 must = 30-80 (cystectomy) 3. If RX Summ--Surg Prim Site 03-2022 = 00-27 or 90-99 a. EOD Primary Tumor must not = 200 or 300 (370 should be used) b. EOD Primary Tumor must not = 250 or 350 (400 should be used)]]></description> <history> <event version="SE23-023-10" user="beverung" date="2024-01-22" ref="69327">Edit created.</event> </history> </rule>