edits.seer.internal.rules.IFN6160.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="IFN6160" name="EOD Mets, Pancreas/NET Pancreas, Primary Site (SEER)" tag="N6160" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.eodMets == null) return true if (line.schemaId == null || (line.schemaId != '00280' && line.schemaId != '00340' && line.schemaId != '09340')) return true if (line.primarySite == null || line.typeOfReportingSource == '7') return true if (line.schemaId == '00280' && !Functions.matches(line.primarySite, /^C25[0-2]$/)) return line.eodMets != '10' if ((line.schemaId == '00340' || line.schemaId == '09340') && !Functions.matches(line.primarySite, /^C25[0-2]$/)) return line.eodMets != '20' return true]]></expression> <message>EOD Mets conflicts with Primary Site</message> <description><![CDATA[This edit verifies that EOD Mets is coded consistently with Primary Site codes C250-C252 for Schema ID 00280, Pancreas and 00340 NET Pancreas. 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 00280 or 00340 or 09340 c. EOD Mets is blank d. Primary Site is blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If Schema ID = 00280: If Primary Site is not C250-C252, then EOD Mets must not = 10 (Distant lymph nodes for Pancreas Head, C250, Pancreas Body, Tail, C251-C252) 3. If Schema ID = 00340 or 09340: If Primary Site is not C250-C252, then EOD Mets must not = 20 (Distant lymph nodes for Pancreas Head, C250, Pancreas Body, Tail, C251-C252]]></description> <history> <event version="SE21-021-04" user="kirbyk" date="2021-04-14" ref="68638">Edit created.</event> <event version="SE24-024-01" user="cooki" date="2024-03-14" ref="69395">Added logic for schema 09340.</event> </history> </rule>