edits.seer.internal.rules.IFN3062.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="IFN3062" name="Visceral and Parietal Pleural Invasion, Lung, EOD Primary Tumor (SEER)" tag="N3062" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.schemaId != '00360' || line.eodPrimaryTumor == null) return true String visceralAndParietalPleuralInvasion = line.visceralParietalPleuralInvasion if (visceralAndParietalPleuralInvasion == null || visceralAndParietalPleuralInvasion == '8') return true if (Functions.matches(visceralAndParietalPleuralInvasion, /^[46]$/)) return Functions.matches(line.eodPrimaryTumor, /^4[5-9]\d|[56]\d\d|700|999$/) else if (visceralAndParietalPleuralInvasion == '5') return Functions.matches(line.eodPrimaryTumor, /^[56]\d\d|700|999$/) return true]]></expression> <message>Visceral and Parietal Pleural Invasion conflicts with EOD Primary Tumor.</message> <description><![CDATA[Purpose: This edit verifies that Visceral and Parietal Pleural Invasion SSDI is coded consistently with EOD Primary Tumor for Lung. 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 00360 c. Visceral and Parietal Pleural Invasion is blank or 8 (not applicable) d. EOD Primary Tumor is blank 2. If Visceral and Parietal Pleural Invasion = 4 (invasion of visceral pleura), or 6 (invasion of pleura NOS) then EOD Primary Tumor must = 450-700 (visceral pleura or higher), or 999 (unknown extension) 3. If Visceral and Parietal Pleural Invasion = 5 (invasion of parietal pleura) then EOD Primary Tumor must = 500-700 (parietal pleura or higher) or 999 (unknown extension)]]></description> <history> <event version="SE18-019-02" user="kirbyk" date="2019-05-13" ref="68147">Edit created.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE21-021-01" user="beverung" date="2021-01-12" ref="68477">Fixed typo and updated codes.</event> </history> </rule>