edits.seer.internal.rules.IFN7068.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="IFN7068" name="EOD Primary Tumor, Bladder, RX Summ--Surg Prim Site 2023 (SEER)" tag="N7068" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.schemaId != '00620' || line.eodPrimaryTumor == null || line.rxSummSurgPrimSite2023 == null || line.typeOfReportingSource == '7') return true if (['200', '250', '300', '350'].contains(line.eodPrimaryTumor) && !Functions.matches(line.rxSummSurgPrimSite2023, /^A([3-7]\d|80)0$/)) return false return !Functions.matches(line.rxSummSurgPrimSite2023, /^A([01]\d|2[0-7]|9\d)0$/) || !['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 2023 for Schema ID 00620, Bladder. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2023, blank (unknown), or invalid. b. Schema ID is blank or not 00620 c. EOD Primary Tumor is blank d. RX Summ--Surg Prim Site 2023 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 2023 must = A300-A800 (cystectomy) 3. If RX Summ--Surg Prim Site 2023 = A000-A270 or A900-A990 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>