edits.seer.internal.rules.IFN6082.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="IFN6082" name="Ipsilateral Adrenal Gland Involvement, Kidney, Surgery 03-2022 (SEER)" tag="N6082" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.dateOfDiagnosisYear > '2022' || line.rxSummSurgPrimSite == null || line.schemaId != '00600' || line.typeOfReportingSource == '6' || line.typeOfReportingSource == '7') 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 String ipsilateralAdrenalGlandInvolvement = line.ipsilateralAdrenalGlandInvolve if (ipsilateralAdrenalGlandInvolvement == null || ipsilateralAdrenalGlandInvolvement == '8') return true if (Functions.matches(line.rxSummSurgPrimSite, /^00|1[0-5]|2[0-7]$/) && (line.rxSummSurgOthRegDis == '0' || line.rxSummSurgOthRegDis == '3')) return ipsilateralAdrenalGlandInvolvement == '9' if (line.rxSummSurgPrimSite == '99' && ['0','3','9'].contains(line.rxSummSurgOthRegDis)) return ipsilateralAdrenalGlandInvolvement == '9' return true]]></expression> <message>Ipsilateral Adrenal Gland Involvement conflicts with RX Summ--Surg Prim Site 03-2022 and RX Summ--Surg Oth Reg/Dis.</message> <description><![CDATA[This edit verifies that the Ipsilateral Adrenal Gland Involvement SSDI is coded consistently with RX Summ--Surg Prim Site 03-2022. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2019 or after 2022, blank (unknown), or invalid. b. Schema ID is not 00600. c. Ipsilateral Adrenal Gland Involvement is blank or 8 (not applicable). d. RX Summ--Surg Prim Site 03-2022 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 2. If RX Summ--Surg Prim Site 03-2022 = 00 (no surgery of primary site) or 10-15 (local tumor destruction (no specimen sent to pathology), or 20-27 (local excision) and RX Summ--Surg Oth Reg/Dis = 0 or 3 (no surgery of other site, surgery of distant lymph nodes) Then the data item must be coded 9 (no surgical resection of primary site). 3. If RX Summ-Surg Prim Site Prim Site 03-2022 = 99 (unknown if surgery performed) and RX Summ-Surg Oth Reg/Dis = 0 or 3 (no surgery of other site, surgery of distant lymph nodes) or 9 (unknown if surgery of other site) then the data item must be coded 9 (no surgical resection of primary site).]]></description> <history> <event version="SE18-019-02" user="kirbyk" date="2019-05-15" ref="68154">Edit created.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</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-01" user="secristc" date="2022-02-14" ref="68793">Add new skip conditions for Type of Reporting Source, Vital Status, and Date of Last Contact.</event> <event version="SE23-023-01" user="cooki" date="2023-01-25" ref="69101">Added 2022+ skip condition, updated name, and added 03-2022 to Surg Prim Site.</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> <event version="SE24-024-01" user="shearerw" date="2024-02-05" ref="69357">Add check for RX Summ-Surg Prim Site 03-2022 when value is 99.</event> </history> </rule>