
edits.seer.internal.rules.IFN6225.xml Maven / Gradle / Ivy
<rule id="IFN6225" name="EOD Regional Nodes, Gynecologic, Reg Nodes Positive, Scope Reg LN (SEER)" tag="N6225" 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 || !Functions.matches(line.schemaId, /^005([0-3]0|28|4[12]|5[123])|09520$/)) return true if (line.eodRegionalNodes == '050') { if (!['00','99'].contains(line.regionalNodesPositive)) return false 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>EOD Regional Nodes/Reg Nodes Pos/Scope conflict for Gynecologic schemas</message> <description><![CDATA[This edit verifies that EOD Regional Nodes code 050 is coded consistently with Regional Nodes Positive and RX Summ--Scope Reg LN Sur for gynecologic schemas: Schema ID 00500 Vulva 00510 Vagina, 00520 Cervix [8th: 2018-2020], 09520 Cervix [9th: 2021+], 00528 Cervix Sarcoma [2021], 00530 Corpus Carcinoma, 00541 Corpus Sarcoma, 00542 Corpus Adenosarcoma, 00551 Ovary, 00552 Primary Peritoneal Carcinoma, and 00553 Fallopian Tube. 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 00500, 00510, 00520, 00528, 09520, 00530, 00541, 00542, 00551, 00552, 00553 c. EOD Regional Nodes is blank d. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Regional Nodes = 050 (Isolated tumor cells in regional lymph node(s) no greater than 0.2 mm) then Regional Nodes Positive must = 00 or 99 3. If EOD Regional Nodes = 050 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="SE21-021-04" user="beverung" date="2021-04-28" ref="68607">Edit created.</event> <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68782">Add Cervix Sarcoma to skip condition and update scope conditions.</event> <event version="SE22-022-05" user="kirbyk" date="2022-05-17" ref="68995">Replaced non-ASCII characters in description.</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</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