edits.seer.internal.rules.IFN7049.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="IFN7049" name="Tumor Size Summary, EOD Regional Nodes, Mets (SEER)" tag="N7049" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2024' || (line.eodRegionalNodes == null && line.eodMets == null) || line.tumorSizeSummary == null || line.typeOfReportingSource == '7') return true if (line.schemaId == null || ['00458','00671','00672','00790','00795','00821','00822','00830'].contains(line.schemaId)) return true if (line.tumorSizeSummary == '000') { if (line.schemaId == '00480') return !['000','030','050','070'].contains(line.eodRegionalNodes) || !['00','05'].contains(line.eodMets) if (['00500','09500','00510','00520','00528','09520','00530','00541','00542','00551','00552','00553'].contains(line.schemaId)) return !['000','040','050'].contains(line.eodRegionalNodes) || line.eodMets != '00' return line.eodRegionalNodes != '000' || line.eodMets != '00' } return true]]></expression> <message>EOD Regional Nodes and EOD Mets must not both indicate no involvement if Tumor Size Summary = 000</message> <description><![CDATA[This edit checks consistency of coding between Tumor Size codes of 000 and EOD Regional Nodes and EOD Mets data items. If all Tumor Size codes indicate 000 (no primary tumor), tumor must be identified in either regional nodes or metastases. 1. This edit is skipped if any of the following conditions is true: a. Diagnosis date is invalid, blank (unknown), before 2024. b. Schema ID is blank or = 00458, 00671, 00672, 00790, 00795, 00821, 00822, 00830 (Schema IDs where Tumor Size must = 999) c. EOD Regional Nodes and EOD Mets are both blank. d. Tumor Size Summary is blank e. Type of Reporting Source = 7 (Death Certificate Only) 2. If Tumor Size Summary = 000 (no evidence of primary tumor), a. If Schema ID = 00480 (Breast), EOD Regional Nodes must not = 000, 030, 050, or 070 or EOD Mets must not = 00 or 05 b. If Schema ID = 00500, 09500, 00510, 00520, 00528, 09520, 00530, 00541, 00542, 00551, 00552, or 00553, EOD Regional Nodes must not = 000 or 040 or 050 or EOD Mets must not = 00 c. For all other Schema IDs, EOD Regional Nodes must not = 000 or EOD Mets must not = 00]]></description> <history> <event version="SE24-024-03" user="shearerw" date="2024-03-21" ref="69433">Edit Created.</event> </history> </rule>