edits.seer.internal.rules.IFN6075.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="IFN6075" name="EOD Regional Nodes, Thyroid, Reg Nodes Positive, Scope Nodes (SEER)" tag="N6075" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.eodRegionalNodes == null || line.regionalNodesPositive == null || line.typeOfReportingSource == '7') return true if (line.schemaId != '00730' && line.schemaId != '00740') return true String positive = line.regionalNodesPositive if (line.eodRegionalNodes == '000') { if (positive != '00') return false if (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]$/) } } } else if (line.eodRegionalNodes == '050') return positive == '98' || positive == '99' return true]]></expression> <message>EOD Regional Nodes conflicts with RX Summ--Scope Reg LN Sur.</message> <description><![CDATA[This edit verifies that EOD Regional Nodes is coded consistently with Regional Nodes Positive and RX Summ--Scope Reg LN Sur for Thyroid. 1. This edit is skipped if any of the following conditions is true: a. Year of Date of Diagnosis is less than 2019, blank (unknown), or invalid b. Schema ID is not 00730, 00740 c. EOD Regional Nodes is blank d. Regional Nodes Positive is blank e. Type of Reporting Source = 7 (Death Certificate Only) 2. If EOD Regional Nodes = 050 (no regional node involvement radiologically or clinically confirmed), Regional Nodes Positive must = 98 (no nodes examined) or 99 (no information about positive nodes). 3. If EOD Regional Nodes = 000 (cytologically or histologically confirmed benign) Regional Nodes Positive must = 00 (all nodes examined negative) 4. If EOD Regional Nodes = 000 and RX Summ--Scope Reg LN Sur is not blank if Type of Reporting Source = 6 (autopsy only) 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 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-02" user="kirbyk" date="2019-05-15" ref="68146">Edit created.</event> <event version="SE22-022-01" user="beverung" date="2022-01-13" ref="68789">Added skip conditions for regional nodes positive and DCO records.</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="SE23-023-03" user="shearerw" date="2023-05-26" ref="69216">Remove Regional Nodes Examined logic. Add logic for RX Summ--Scope Reg LN Sur.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy