edits.seer.internal.rules.IFN7062.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="IFN7062" name="Neoadjuvant Therapy, Treatment Effect, Surgery 2023 (SEER)" tag="N7062" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2024' || line.neoadjuvantTherapy == null || line.neoadjuvTherapyTreatmentEffect == null) return true if ((line.neoadjuvantTherapy == '0' || line.neoadjuvantTherapy == '3') && line.neoadjuvTherapyTreatmentEffect != '0') return false if ((line.neoadjuvantTherapy == '1' || line.neoadjuvantTherapy == '2') && !Functions.matches(line.neoadjuvTherapyTreatmentEffect, /^[1-4679]$/)) return false if (Functions.matches(line.neoadjuvTherapyTreatmentEffect, /^[1-46]$/) && Functions.matches(line.rxSummSurgPrimSite2023, /^(A0\d\d|A1[0-8]\d|A[19]90|B000|B990)$/)) return false if (line.neoadjuvantTherapy == '9' && line.neoadjuvTherapyTreatmentEffect != '9') return false return true]]></expression> <message>Conflict between Neoadjuvant Therapy and Neoadjuvant Therapy-Treatment Effect</message> <description><![CDATA[This edit enforces consistency of coding between Neoadjuvant Therapy and Neoadjuvant Therapy-Treatment Effect. 1. The edit is skipped for any of the following: a. Diagnosis date blank (unknown), invalid, or pre-2024 b. Neoadjuvant Therapy is blank. c. Neoadjuvant Therapy-Treatment Effect is blank 2. If Neoadjuvant Therapy = 0 (no neoadjuvant therapy) or 3 (limited systemic exposure when intent not neoadjuvant) Neoadjuvant Therapy-Treatment Effect must = 0 (Neoadjuvant therapy not given) 3. If Neoadjuvant Therapy = 1 (therapy completed) or 2 (therapy started but not completed), Neoadjuvant Therapy-Treatment Effect must = 1-4, 6 (therapy done,response described), or 7, 9 (planned surgical resection not performed or unknown if performed) 4. If Neoadjuvant Therapy Treatment Effect = 1-4 (response types) or 6 (therapy completed and surgical resection performed) RX Summ--Surg Prim Site 2023 must not = A000-A190, A990, B000, or B990 5. If Neoadjuvant Therapy = 9 (unknown if performed), Neoadjuvant Therapy-Treatment Effect must = 9 (unknown if neoadjuvant therapy performed)]]></description> <history> <event version="SE24-024-03" user="cooki" date="2024-03-18" ref="69437">Edit Created.</event> </history> </rule>