edits.seer.internal.rules.IFN5031.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="IFN5031" name="EOD Regional Nodes, Breast, Reg Nodes Positive, Scope Nodes (SEER)" tag="N5031" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.eodRegionalNodes == null || line.schemaId != '00480' || line.typeOfReportingSource == '7') return true String eodRegNodes = line.eodRegionalNodes if (['030', '050', '070'].contains(eodRegNodes)) { if (line.regionalNodesPositive != null && line.regionalNodesPositive != '00' && line.regionalNodesPositive != '99') return false } if (['200', '250', '300'].contains(eodRegNodes)) { if (['00', '98', '99'].contains(line.regionalNodesPositive)) return false } if (['030', '050', '070', '200', '250', '300'].contains(eodRegNodes) && line.rxSummScopeRegLnSur != null) { if (line.typeOfReportingSource == '6') return line.rxSummScopeRegLnSur == '0' else { Integer dolcYear = Functions.asInt(line.dateOfLastContactYear) Integer dolcMonth = Functions.asInt(line.dateOfLastContactMonth) Integer dolcDay = Functions.asInt(line.dateOfLastContactDay) Integer dxYear = Functions.asInt(line.dateOfDiagnosisYear) Integer dxMonth = Functions.asInt(line.dateOfDiagnosisMonth) Integer dxDay = Functions.asInt(line.dateOfDiagnosisDay) if (line.vitalStatus == '0' && (Boolean)((Closure)Context.compareDatesWithinMonths).call(dolcYear, dolcMonth, dolcDay, dxYear, dxMonth, dxDay, 5)) return Functions.matches(line.rxSummScopeRegLnSur, /^[0-7]$/) else return Functions.matches(line.rxSummScopeRegLnSur, /^[1-7]$/) } } return true]]></expression> <message>Regional Nodes Positive and Regional Nodes Examined conflict with EOD Regional Nodes.</message> <description><![CDATA[This edit verifies that EOD Regional Nodes codes for pathological assessment are coded consistently with RX Summ--Scope Reg LN Surg and Regional Nodes Positive for Schema ID 00480, Breast. 1. This edit is skipped if any of the following conditions are true: a. Year of Date of Diagnosis is less than 2019, blank (unknown), or invalid b. Schema ID is not 00480 c. EOD Regional Nodes is blank d. Type of Reporting Source = 7 (Death Certificate Only) 2. If EOD Regional Nodes = 030, 050, or 070 (pathological assessment of nodes with ITCs only or negative nodes) a. Regional Nodes Positive if not blank must = 00 (no nodes positive) or 99 (unknown or no information) 3. If EOD Regional Nodes = 200 (pathologic assessment only, positive axillary nodes), 250, or 300 (pathologic assessment only, internal mammary nodes positive on sentinel node biopsy without and with axillary nodes) a. Regional Nodes Positive must not = 00 (no nodes positive), 98 (no nodes examined) or 99 (unknown or no information) 4. If EOD Regional Nodes = 030, 050, 070, 200, 250. or 300 and RX Summ--Scope Reg LN Sur is not blank If Type of Reporting Source = 6 (autopsy only) then RX Summ--Scope Reg LN Sur must =0 Else if vital Status = 0 and Date of Last Contact within 5 months of Date of Diagnosis then RX Summ--Scope Reg LN Sur must = 0-7 Else RX Summ--Scope Reg LN Sur must = 1-7]]></description> <history> <event version="SE18-019-01" user="kirbyk" date="2019-03-29" ref="68143">Edit created.</event> <event version="SE18-019-06" user="beverung" date="2019-10-14" ref="68262">Edit no longer checks EOD Regional Nodes based on Regional Nodes Examined/Positive.</event> <event version="SE18-020-02" user="beverung" date="2020-03-27" ref="68316">Changed name.</event> <event version="SE18-020-05" user="beverung" date="2020-07-27" ref="68378">Update name and logic.</event> <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68781">Update conditions for RX Summ-Scope Reg LN Sur.</event> <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68897">Update edit name to match new NAACCR translated edit.</event> <event version="SE22-022-05" user="kirbyk" date="2022-05-17" ref="68995">Replaced non-ASCII characters in description.</event> <event version="SE23-023-03" user="shearerw" date="2023-05-24" ref="69216">Fix logic for DOLC within 5 months of DX date to allow difference in year.</event> </history> </rule>