edits.seer.internal.rules.IFN6134.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="IFN6134" name="Tumor Size, EOD Regional Nodes, Mets (SEER)" tag="N6134" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.dateOfDiagnosisYear > '2023' || line.typeOfReportingSource == '7') return true if (line.schemaId == null || ['00458','00671','00672','00790','00795','00821','00822','00830'].contains(line.schemaId)) return true if (line.eodRegionalNodes == null && line.eodMets == null) return true if (line.tumorSizeClinical == null && line.tumorSizePathologic == null && line.tumorSizeSummary == null) return true if ((line.tumorSizeClinical == '000' && line.tumorSizePathologic == '000') || (line.tumorSizeSummary == '000')) { if (line.schemaId == '00480') { if (['000', '030', '050', '070'].contains(line.eodRegionalNodes) && ['00', '05'].contains(line.eodMets)) return false } else if (['00500', '09500', '00510', '00520', '00528', '09520', '00530', '00541', '00542', '00551', '00552', '00553'].contains(line.schemaId)) { if (['000', '040', '050'].contains(line.eodRegionalNodes) && line.eodMets == '00') return false } else { if (line.eodRegionalNodes == '000' && line.eodMets == '00') return false } } return true]]></expression> <message>Tumor Size, EOD Regional Nodes, EOD Mets conflict</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 2021 or after 2023 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 Clinical, Tumor Size Pathologic, and Tumor Size Summary are all blank e. Type of Reporting Source = 7 (Death Certificate Only) 2. If both Tumor Size Clinical and Tumor Size Pathologic = 000 (no evidence of primary tumor), both EOD Regional Nodes and EOD Mets must not indicate no involvement 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 3. 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="SE23-023-04" user="cooki" date="2023-06-02" ref="69273">Edit created.</event> <event version="SE24-024-03" user="beverung" date="2024-04-08" ref="69429">Added skip condition for 2024+ cases; add schema-specific logic.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy