edits.seer.internal.rules.IFN6181.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.
The newest version!
<rule id="IFN6181" name="EOD Regional Nodes, Bladder, Regional Nodes Positive (SEER)" tag="N6181" 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 || line.schemaId != '00620' || line.regionalNodesPositive == null) return true if (line.eodRegionalNodes == '300' && !['00','01','95','97','98','99'].contains(line.regionalNodesPositive)) return false if (Functions.matches(line.regionalNodesPositive, /^0[2-9]|[1-8]\d|90$/) && !['400','700'].contains(line.eodRegionalNodes)) return false return true]]></expression> <message>EOD Regional Nodes/Reg Nodes Pos conflict for Bladder</message> <description><![CDATA[This edit verifies that EOD Regional Nodes codes 300 and 400 are coded consistently with Regional Nodes Positive for Schema ID 00620, Bladder. 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 00620 d. EOD Regional Nodes is blank e. Regional Nodes Positive is blank f. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Regional Nodes = 300 (single regional node) then Regional Nodes Positive must = 00, 01, 95, 97, 98, or 99 3. If Regional Nodes Positive = 02-90 then EOD Regional Nodes must = 400 (multiple regional nodes) or 700 (common iliac nodes)]]></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="SE23-023-01" user="secristc" date="2023-02-22" ref="69184">Added 97 as a valid code for EOD Regional Nodes = 300</event> </history> </rule>