edits.seer.internal.rules.IFN6282.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="IFN6282" name="Visceral and Parietal Pleural Invasion, Lung, Derived SS 2018 (SEER)" tag="N6282" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || line.schemaId != '00360' || line.derivedSummaryStage2018 == null || line.visceralParietalPleuralInvasion == null || line.visceralParietalPleuralInvasion == '8' || line.typeOfReportingSource == '7') return true if (Functions.matches(line.visceralParietalPleuralInvasion, /^[4-6]$/)) return !Functions.matches(line.derivedSummaryStage2018, /^[013]$/) return true]]></expression> <message>Visceral and Parietal Pleural Invasion conflicts with Derived Summary Stage 2018</message> <description><![CDATA[Purpose: This edit verifies that Visceral and Parietal Pleura Invasion SSDI, with positive invasion, is coded consistently with Derived Summary Stage 2018 for Lung. 1. This edit is skipped if any of the following conditions is true: a. Year of Date of Diagnosis is less than 2021, blank (unknown), or invalid b. Schema ID is not 00360 c. Visceral and Parietal Pleura Invasion is blank or 8 (not applicable) d. Derived Summary Stage 2018 is blank e. Type of Reporting Source = 7 2. If Visceral and Parietal Pleura Invasion = 4 invasion of visceral pleura), 5 (invasion of parietal pleura), or 6 (invasion of pleura NOS) then Derived Summary Stage 2018 must = not = 0, 1, or 3 (in situ, local, regional by nodal involvement only)]]></description> <history> <event version="SE21-021-04" user="secristm" date="2021-03-25" ref="68616">Edit created.</event> <event version="SE22-022-04" user="secristc" date="2022-05-03" ref="68965">Added skip condition for Type of Reporting Source = 7.</event> </history> </rule>