edits.seer.internal.rules.IFN6368.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="IFN6368" name="Reason for No Surgery, Surg Prim Site 03-2022, Primary Site, 2018 (NAACCR)" tag="N6368" 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.reasonForNoSurgery == null) return true if (line.typeOfReportingSource == '7' || line.typeOfReportingSource == '6') return true if (Functions.matches(line.primarySite, /^C(42[0134]|76[0-8]|809)$/)) return line.reasonForNoSurgery == '1' else if (line.rxSummSurgPrimSite == '00' && !Functions.matches(line.reasonForNoSurgery, /^[1-9]$/)) return false else if (Functions.matches(line.rxSummSurgPrimSite, /^[1-8]\d|90$/) && line.reasonForNoSurgery != '0') return false else if (line.rxSummSurgPrimSite == '98' && line.reasonForNoSurgery != '1') return false else if (line.rxSummSurgPrimSite == '99' && !['8','9'].contains(line.reasonForNoSurgery)) return false return true]]></expression> <message>Reason for No Surgery conflicts with RX Summ--Surg Prim Site 03-2022</message> <description><![CDATA[This edit checks that Reason for No Surgery is coded consistently with RX Summ--Surgery Prim Site. 1. This edit is skipped for any of the following conditions: a. Date of diagnosis before 2018 or after 2022, blank (unknown), or invalid. b. Rx Summ--Surg Prim site 03-2022 is blank c. Reason for No Surgery is blank d. Type of Reporting Source = 7 (Death Certificate Only) or 6 (Autopsy Only) 2. If Primary Site = C420, C421, C423, C424, C760-C768, C809, Reason for No Surgery must = 1 3. If RX Summ--Surgery Prim Site 03-2022 = 00 (no surgery performed) Reason for No Surgery must = 1-9 (surgery not performed) 4. If RX Summ--Surgery Prim Site 03-2022 = 10-90 (surgery performed) Reason for No Surgery must = 0 (surgery performed) 5. If RX Summ--Surg Prim Site 03-2022 = 98 (not applicable) Reason for No Surgery must = 1 (surgery not recommended) 6. If RX Summ--Surg Prim Site 03-2022 = 99 (unknown if surgery performed) Reason for No Surgery must = 8 or 9 (unknown if surgery performed)]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-31" ref="68636">Edit created.</event> <event version="SE21-021-06" user="beverung" date="2021-06-11" ref="68682">Updated so subsequent conditions are not checked if conditions 2,3 apply</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="beverung" date="2022-02-25" ref="68866">Update to run for DX Years 2018 and later. Add DCO skip condition and remove DCO logic.</event> <event version="SE22-022-12" user="kirbyk" date="2022-10-13" ref="69041">Added skip condition for Type of Reporting Source = 6.</event> <event version="SE23-023-01" user="shearerw" date="2023-01-26" ref="69108">Update edit name. Add skip condition for DX year after 2022.</event> </history> </rule>