edits.seer.internal.rules.IFN6436.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="IFN6436" name="RX Summ--Treatm Stat, Date Initial RX SEER (SEER)" tag="N6436" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.typeOfReportingSource == '7') return true boolean dateInitialRxSeerDateIsBlank = line.dateInitialRxSeerYear == null && line.dateInitialRxSeerMonth == null && line.dateInitialRxSeerDay == null boolean surgPrimSiteCondition = line.dateOfDiagnosisYear >= '2023' ? ['A000', 'B000', 'A980'].contains(line.rxSummSurgPrimSite2023) : ['00', '98'].contains(line.rxSummSurgPrimSite) if (Functions.matches(line.rxSummScopeRegLnSur, /^[0-79]$/) && surgPrimSiteCondition && line.rxSummSurgOthRegDis == '0' && Functions.matches(line.rxSummBrm, /^00|8[0-8]$/) && Functions.matches(line.rxSummChemo, /^00|8[0-8]$/) && Functions.matches(line.rxSummHormone, /^00|8[0-8]$/) && Functions.matches(line.rxSummTransplntEndocr, /^00|8[0-8]$/) && Functions.matches(line.rxSummOther, /^[078]$/) && (line.phase1RadiationTreatmentModality == '00' || Functions.matches(line.reasonForNoRadiation, /^[125-9]$/))) return true if (line.dateOfDiagnosisYear < '2024') { if ((line.rxSummTreatmentStatus == '0' || line.rxSummTreatmentStatus == '2' || line.rxSummTreatmentStatus == '9') && !dateInitialRxSeerDateIsBlank) return false if (!dateInitialRxSeerDateIsBlank && line.rxSummTreatmentStatus != '1') return false } if (line.dateOfDiagnosisYear > '2023') { if (line.rxSummTreatmentStatus == '0' || line.rxSummTreatmentStatus == '9') return dateInitialRxSeerDateIsBlank if (!dateInitialRxSeerDateIsBlank) return line.rxSummTreatmentStatus == '1' || line.rxSummTreatmentStatus == '2' } return true]]></expression> <message>Conflict between treatment status and treatment</message> <description><![CDATA[The purpose of this edit is to verify that RX Summ--Treatment Status and Date Initial RX SEER are coded consistently. This edit is skipped under the following conditions: 1. Type of Reporting Source = 7 2. Date of diagnosis is blank (unknown), invalid, or pre-2021. 3. RX Summ--Scope Reg LN Sur is the only coded treatment type If date of diagnosis is 2021-2023 A. If RX Summ--Treatment Status = 0 (no treatment given), 2 (watchful waiting), or 9 (unknown if treatment given), then Date Initial RX SEER must = blank. B. If Date Initial RX SEER is not blank, RX Summ--Treatment Status must = 1 (treatment given). If date of diagnosis > 2023 A. If RX Summ--Treatment Status = 0 (no treatment) or 9 (unknown if treatment given) then Date Initial RX SEER must = blank. B. If Date Intial RX SEER is not blank,RX Summ--Treatment Status must = 1 (treatment given) or 2 (watchful waiting)]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-31" ref="68636">Edit created.</event> <event version="SE23-023-01" user="shearerw" date="2023-01-25" ref="69082">Update logic to remove date flag.</event> <event version="SE23-023-06" user="shearerw" date="2023-08-01" ref="69298">Add logic for DX years 2024+</event> <event version="SE24-024-03" user="beverung" date="2024-04-05" ref="69345">Added skip condition if Scope Reg LN Sur is the only treatment. Added logic checking Treatment Status for 2024+ cases.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy