edits.seer.internal.rules.IFN6712.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.
The newest version!
<rule id="IFN6712" name="Visceral and Parietal Pleural Invasion, Lung, Surg Prim Site 2023 (SEER)" tag="N6712" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.schemaId != '00360' || line.visceralParietalPleuralInvasion == null || line.visceralParietalPleuralInvasion == '8' || line.rxSummSurgPrimSite2023 == null || line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '2') return true 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 true if (Functions.matches(line.rxSummSurgPrimSite2023, /^(A|B)(1[2-4]\d|150|000|990)$/)) return line.visceralParietalPleuralInvasion == '9' return true]]></expression> <message>Conflict between RX Summ--Surg Prim Site 2023 and Visceral and Parietal Pleural Invasion</message> <description><![CDATA[Purpose: This edit verifies that Visceral and Parietal Pleural Invasion SSDI is coded consistently with RX Summ--Surg Prim Site 2023 for Lung. 1. This edit is skipped if any of the following conditions is true: a. Year of Date of Diagnosis is less than 2023, blank (unknown), or invalid b. Schema ID is not 00360 c. Visceral and Parietal Pleural Invasion is blank or 8 (not applicable) d. RX Summ--Surg Prim Site 2023 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 g. Behavior Code ICD-O-3 = 2 2. If RX Summ--Surg Prim Site 2023 = A000 or B000 (no surgery), A120-A150 or B120-B150 (tumor destruction without pathology specimen), Visceral and Parietal Pleural Invasion must = 9 (no surgical resection of primary site is performed) 3. If RX Summ-Surg Prim Site 2023 = A990 or B990 (unknown if surgery performed) Visceral and Parietal Pleural Invasion must = 9 (Visceral Pleural Invasion not assessed or unknown if assessed)]]></description> <history> <event version="SE23-023-05" user="shearerw" date="2023-06-21" ref="69236">Edit created.</event> <event version="SE24-024-01" user="cooki" date="2024-02-12" ref="69348">Added skip condition g, B-codes to condition 2, and new condition 3.</event> </history> </rule>