edits.seer.internal.rules.IFN3986.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="IFN3986" name="Lymphovascular Invasion, Testis, EOD Primary Tumor (SEER)" tag="N3986" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.schemaId != '00590' || line.eodPrimaryTumor == null) return true String lymphVascularInvasion = line.lymphVascularInvasion if (lymphVascularInvasion == null || lymphVascularInvasion == '8') return true if (Functions.matches(lymphVascularInvasion, /^[1-4]$/) && !Functions.matches(line.eodPrimaryTumor, /^[3-6]\d\d|700|999$/)) return false if (line.eodPrimaryTumor == '300' && !Functions.matches(line.lymphVascularInvasion, /^[1-4]$/)) return false if (Functions.matches(line.eodPrimaryTumor, /^[12]00|150$/) && !['0','9'].contains(line.lymphVascularInvasion)) return false return true]]></expression> <message>Lymphovascular Invasion/EOD Primary Tumor conflict for Testis</message> <description><![CDATA[Purpose: This edit verifies that Lymph-vascular Invasion is coded consistently with EOD Primary Tumor for Testis. 1. This edit is skipped if any of the following conditions is true: a. Year of Date of Diagnosis is less than 2019, blank (unknown), or invalid b. Schema ID is not 00590 c. Lymphovascular Invasion is blank or 8 (not applicable) d. EOD Primary Tumor is blank 2. If Lymphovascular Invasion = 1-4 (invasion present) then EOD Primary Tumor must = 300-700 (with lymphovascular invasion or higher) or 999 (unknown extension) 3. If EOD Primary Tumor = 300, Lymphovascular Invasion must = 1-4 (positive) 4. If EOD Primary Tumor = 100, 150, or 200, Lymphovascular Invasion must = 0 (negative) or 9 (unknown)]]></description> <history> <event version="SE18-019-02" user="kirbyk" date="2019-05-13" ref="68147">Edit created.</event> <event version="SE21-021-09" user="beverung" date="2021-09-01" ref="68730">Added conditions 3 and 4 for EOD Primary Tumor.</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event> </history> </rule>