edits.seer.internal.rules.IFN6155.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="IFN6155" name="Tumor Deposits, Colorectal, EOD Regional Nodes, Regional Nodes Positive (SEER)" tag="N6155" 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 != '00200' || line.eodRegionalNodes == null || line.tumorDeposits == null || line.tumorDeposits == 'X8' || line.regionalNodesPositive == null || line.typeOfReportingSource == '7') return true if (Functions.matches(line.tumorDeposits, /^0[1-9]|[1-9]\d|X[12]$/) && line.eodRegionalNodes == '200') return ['00','98','99'].contains(line.regionalNodesPositive) return true]]></expression> <message>Tumor Deposits and EOD Regional Nodes conflict with Regional Nodes Positive</message> <description><![CDATA[This edit verifies that the Tumor Deposits SSDI and EOD Regional Nodes are coded consistently with Regional Nodes Positive for Schema ID 00200,Colon and Rectum. 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 00200 c. Tumor Deposits is blank or = X8 (not applicable) d. EOD Regional Nodes is blank e. Regional Nodes Positive is blank f. Type of Reporting Source is 7 (Death Certificate Only) 2. If Tumor Deposits = 01-99, X1 (100 or more deposits), or X2 (tumor deposits, number unknown), and EOD Regional Nodes = 200 (tumor deposits without regional nodal metastasis), then Regional Nodes Positive must = 00, 98, or 99. ]]></description> <history> <event version="SE21-021-04" user="secristm" date="2021-03-24" ref="68615">Edit created.</event> </history> </rule>