edits.seer.internal.rules.IFN6185.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="IFN6185" name="EOD Regional Nodes, Stomach/NET Stomach, Primary Site (SEER)" tag="N6185" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.typeOfReportingSource == '7' || line.eodRegionalNodes == null) return true if (line.schemaId == null || !['00170', '00290', '09290'].contains(line.schemaId) || line.primarySite == null) return true if (line.schemaId == '00170' && line.eodRegionalNodes == '400' && line.primarySite != 'C165') return false if (['00290', '09290'].contains(line.schemaId) && line.eodRegionalNodes == '700' && line.primarySite != 'C165') return false return true]]></expression> <message>EOD Regional Nodes/Site/confict for Stomach</message> <description><![CDATA[This edit verifies that EOD Regional Nodes is coded consistently with Primary Site code C165 for Schema IDs 00170, Stomach, and 00290, NET Stomach. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2021, blank (unknown), or invalid. b. Schema ID is blank or not 00170, 00290, or 09290 d. EOD Regional Nodes is blank e. Primary Site is blank f. Type of Reporting Source is 7 (Death Certificate Only) 2. If Schema ID = 00170, If EOD Regional Nodes = 400 (Lesser Curvature (C165), Hepatoduodenal) then Primary Site must = C165 3. If Schema ID = 00290 or 09290 if EOD Regional Nodes = 700 (Lesser Curvature (C165), Hepatoduodenal) then Primary Site must = C165]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-04-28" ref="68607">Edit created.</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event> <event version="SE24-024-01" user="beverung" date="2024-03-01" ref="69400">Add logic for Schema ID 09290.</event> </history> </rule>