edits.seer.internal.rules.IFN6295.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="IFN6295" name="EOD Regional Nodes, Kaposi Sarcoma, Scope Nodes (SEER)" tag="N6295" 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 != '00458') return true if (line.rxSummScopeRegLnSur == null) return true if (['200','300'].contains(line.eodRegionalNodes)) { if (['00','98','99'].contains(line.regionalNodesPositive)) return false 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.typeOfReportingSource == '6') return line.rxSummScopeRegLnSur == '0' else 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>EOD Regional Nodes conflicts with RX Summ--Scope Reg LN Sur and/or RX Summ--Surg Oth Reg/Dis</message> <description><![CDATA[This edit verifies that EOD Regional Nodes codes for pathologic involvement only are coded consistently with RX Summ-Scope Reg LN Sur for Schema ID 00458, Kaposi Sarcoma. 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 00458 c. EOD Regional Nodes is blank d. RX Summ-Scope Reg LN Sur is blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Regional Nodes = 200 or 300 (pathological only) Regional Nodes Positive must not = 00, 98, or 99 (no nodes positive) 3. If EOD Regional Nodes = 200 or 300 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="SE21-021-04" user="beverung" date="2021-04-28" ref="68607">Edit created.</event> <event version="SE22-022-01" user="smithm" date="2022-02-07" ref="68784">Add skip condition</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> <event version="SE24-024-06" user="cooki" date="2024-07-16" ref="69495">Update name, logic, and description to v24a.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy