edits.seer.internal.rules.IFN6587.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="IFN6587" name="LN Status, Vulva, EOD Regional Nodes (SEER)" tag="N6587" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.typeOfReportingSource == '7') return true if ((line.schemaId != '00500' && line.schemaId != '09500') || line.eodRegionalNodes == null) return true if (line.lnStatusFemoralInguinal == null || line.lnStatusFemoralInguinal == '8') return true if (line.lnStatusFemoralInguinal == '1' && ['000','040','050','800','999'].contains(line.eodRegionalNodes)) return false if (line.dateOfDiagnosisYear >= '2022') { if (line.lnStatusFemoralInguinal == '0' && !['000','040','050'].contains(line.eodRegionalNodes)) return false if (['000','040','050'].contains(line.eodRegionalNodes) && line.lnStatusFemoralInguinal != '0') return false } return true]]></expression> <message>LN Status Femoral-Inguinal conflicts with EOD Regional Nodes</message> <description><![CDATA[This edit verifies that LN Status Femoral-Inguinal000 SSDI is coded consistently with EOD Regional Nodes for Vulva. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2019, blank (unknown), or invalid. b. Schema ID is not 00500 or 09500 c. LN Status Femoral-Inguinal is blank or 8 (not applicable) d. EOD Regional Nodes is blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If LN Status Femoral-Inguinal = 1 (lymph nodes positive) EOD Regional Nodes must not = 000 (no nodes involved), 040 or 050 (Isolated Tumor Cells), 800 (nodes NOS), or 999 (unknown if nodes involved) 3. If diagnosis date >= 2022 if LN Status Femoral-Inguinal = 0, EOD Regional Nodes must = 000, 040, or 050 If EOD Regional Nodes = 000, 040, or 050, LN Status Femoral-Inguinal must = 0]]></description> <history> <event version="SE22-022-01" user="beverung" date="2022-02-02" ref="68887">Edit created.</event> <event version="SE22-022-03" user="beverung" date="2022-04-11" ref="68930">Removed CoC Accredited Flag logic; changed edit name.</event> <event version="SE24-024-01" user="shearerw" date="2024-03-11" ref="69406">Add schema 09500 and eod code 040.</event> </history> </rule>