
edits.seer.internal.rules.IFN6320.xml Maven / Gradle / Ivy
<rule id="IFN6320" name="Extranodal Extension Path (non-Head and Neck), Scope Nodes (NAACCR)" tag="N6320" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[ 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.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || !['00460', '00570'].contains(line.schemaId) || line.extranodalExtensionPath == null || line.extranodalExtensionPath == '8' || line.rxSummScopeRegLnSur == null || line.typeOfReportingSource == '6'|| line.typeOfReportingSource == '7' || (line.vitalStatus == '0' && (Boolean)((Closure)Context.compareDatesWithinMonths).call(dolcYear, dolcMonth, dolcDay, dxYear, dxMonth, dxDay, 5))) return true if (line.dateOfDiagnosisYear < '2023' && ['0', '1', '7'].contains(line.extranodalExtensionPath)) return Functions.matches(line.rxSummScopeRegLnSur, /^[3-7]$/) if (line.dateOfDiagnosisYear >= '2023') { if (line.extranodalExtensionPath == '0') return Functions.matches(line.rxSummScopeRegLnSur, /^[3-7]$/) if (['1', '7'].contains(line.extranodalExtensionPath)) return Functions.matches(line.rxSummScopeRegLnSur, /^[2-7]$/) } return true]]></expression> <message>Extranodal Extension Path (non-Head and Neck) conflicts with RX Summ--Scope Reg LN Sur</message> <description><![CDATA[This edit verifies that the Extranodal Extension Path (non-Head and Neck) SSDI with codes indicating nodal procedure is coded consistently with RX Summ--Scope Reg LN Sur, for Schema IDs 00460, Merkel Cell Skin, and 00570, Penis. 1. This edit is skipped for the following conditions: a. Date of Diagnosis is pre-2021, blank (unknown), or invalid. b. Schema ID is blank or not 00460, 00570 c. Extranodal Extension Path (non-Head and Neck) is blank or 8 (not applicable) d. RX Summ--Scope Reg LN Sur is blank e. Type of Reporting Source = 6 (Autopsy Only) or 7 (Death Certificate Only) f. Vital Status = 0 and Date of Last Contact within 5 months of Date of Diagnosis Extranodal Extension Path (non-Head and Neck) is required by SEER only if collected by a CoC-accredited facility on an analytic case (CoC Accredited Flag = 1). 2. If diagonsis date 2021-2022 If Extranodal Extension Path (non-Head and Neck) = 0, 1 or 7 (assessment from surgical resection) RX Summ--Scope Reg LN Sur must = 3-7 (surgical node procedures) 3. If diagnosis date >= 2023, a. if Extranodal Extension Path (non-Head and Neck) = 0 (positive nodes, ENE not identified) RX Summ--Scope Reg LN Sur must = 3-7. b. If diagnosis date >= 2023, if Extranodal Extension Path (non-Head and Neck) = 1 (nodes involved,ENE present) or 7 (no nodal involvement) RX Summ--Scope Reg LN Sur must = 2-7.]]></description> <history> <event version="SE22-022-05" user="secristc" date="2022-05-04" ref="68938">Edit created.</event> <event version="SE23-023-01" user="secristc" date="2023-02-21" ref="69183">Updated logic for 2023+.</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>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy