edits.seer.internal.rules.IFN4929.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="IFN4929" name="Surgery 03-2022, Phase I Rad, Surg/Rad Seq (SEER)" tag="N4929" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.dateOfDiagnosisYear > '2022' || line.rxSummSurgPrimSite == null || line.rxSummScopeRegLnSur == null || line.rxSummSurgOthRegDis == null) return true boolean primSiteIndicatesPerformed = Functions.matches(line.rxSummSurgPrimSite, /^[1-8]\d|90$/) boolean scopeIndicatesPerformed = Functions.matches(line.rxSummScopeRegLnSur, /^[3-7]$/) || (line.rxSummScopeRegLnSur == '2' && line.dateOfDiagnosisYear >= '2021') || (line.rxSummScopeRegLnSur == '2' && line.dateOfDiagnosisYear >= '2018' && Functions.matches(line.regionalNodesExamined, /^0[1-9]|[1-8]\d|9[0-8]$/)) boolean othIndicatesPerformed = Functions.matches(line.rxSummSurgOthRegDis, /^[1-5]$/) boolean surgeryPerformed = primSiteIndicatesPerformed || scopeIndicatesPerformed || othIndicatesPerformed if (surgeryPerformed && Functions.matches(line.phase1RadiationTreatmentModality, /^0[1-9]|1[0-6]|98$/)) return Functions.matches(line.rxSummSurgRadSeq, /^[2-79]$/) boolean surgeryNotPerformed = (line.rxSummSurgPrimSite == '00' || line.rxSummSurgPrimSite == '98' || line.rxSummSurgPrimSite == '99') && (line.rxSummScopeRegLnSur == '0' || (line.rxSummScopeRegLnSur == '1' && line.dateOfDiagnosisYear >= '2021')) && line.rxSummSurgOthRegDis == '0' if (surgeryNotPerformed || line.phase1RadiationTreatmentModality == '00' || line.phase1RadiationTreatmentModality == '99') return line.rxSummSurgRadSeq == '0' return true]]></expression> <message>Conflict among surgery, radiation, and surgery radiation sequence items.</message> <description><![CDATA[1. This edit is skipped for the following conditions: a. Any of the three surgery code fields (RX Summ--Surg Prim Site 03-2022, RX Summ-- Scope Reg LN Sur, RX Summ--Surg Oth Reg/Dis) is blank. b. Diagnosis date < 2018 or > 2022. If surgery was performed and if radiation was given (Phase I Radiation Treatment Modality = 01-16,98), then RX Summ--Surg/Rad Seq must specify sequence (codes 2-7, 9). Surgery is considered "performed" if ANY of the following three conditions are true: 1. RX Summ--Surg Prim Site 03-2022 = 10-90 2. RX Summ--Scope Reg LN Sur: 2 (if Regional Nodes Examined = 01-98, 2018-2020) 2 (2021+) 3-7 3. RX Summ--Surg Oth Reg/Dis = 1-5 If surgery was not performed or no radiation was given (Phase I Radiation Treatment Modality = 00 or 99),then RX Summ--Surg/Rad Seq must specify no (0). Surgery is considered "not performed" if ALL of the following three conditions are true: 1. RX Summ--Surg Prim Site 03-2022 = 00, 98 or 99 2. RX Summ--Scope Reg LN Sur: For cases diagnosed 2018 or later: 0 (for all cases) For cases diagnosed 2021 or later: 0-1 for all cases 3. RX Summ--Surg Oth Reg = 0]]></description> <history> <event version="SE18-019-02" user="kirbyk" date="2010-04-26" ref="68154">Edit created.</event> <event version="SE18-020-05" user="kirbyk" date="2020-08-03" ref="68471">Added code '98' for Phase I Radiation Treatment Modality, surgery was performed.</event> <event version="SE21-021-03" user="beverung" date="2021-02-24" ref="68563">Remove pre-2012 logic and add 2021+ logic.</event> <event version="SE21-021-09" user="beverung" date="2021-09-09" ref="68748">Fixed logic for RX Summ--Surg/Rad Seq check when surgery was not performed or no radiation was given.</event> <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68897">Update edit name to match new NAACCR translated edit.</event> <event version="SE22-022-03" user="secristc" date="2022-04-26" ref="68971">Added 99 to valid no surg/no rad values for Phase 1 Radiation Treatment Modality</event> <event version="SE23-023-01" user="cooki" date="2023-01-20" ref="69092">Updated edit name, DX Year skip condition, and RX Summ--Surg Prim Site 03-2022 values.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy