edits.seer.internal.rules.IFN6763.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="IFN6763" name="Reason for No Surgery, Surg Prim Site 2023, Primary Site (NAACCR)" tag="N6763" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.rxSummSurgPrimSite2023 == 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.rxSummSurgPrimSite2023 == 'A000' || line.rxSummSurgPrimSite2023 == 'B000') && !Functions.matches(line.reasonForNoSurgery, /^[1-9]$/)) return false else if (Functions.matches(line.rxSummSurgPrimSite2023, /^A[1-8]\d\d|A900|B[1-8]\d\d|B900$/) && line.reasonForNoSurgery != '0') return false else if (line.rxSummSurgPrimSite2023 == 'A980' && line.reasonForNoSurgery != '1') return false else if ((line.rxSummSurgPrimSite2023 == 'A990' || line.rxSummSurgPrimSite2023 == 'B990') && !['8','9'].contains(line.reasonForNoSurgery)) return false return true]]></expression> <message>Conflict between Primary Site and Reason for No Surgery</message> <description><![CDATA[This edit checks that Reason for No Surgery is coded consistently with RX Summ--Surgery Prim Site 2023. 1. This edit is skipped for any of the following conditions: a. Date of diagnosis before 2023, blank (unknown), or invalid. b. RX Summ--Surg Prim Site 2023 is blank c. Reason for No Surgery is blank d. Type of Reporting Source = 6 (Autopsy Only) or 7 (Death Certificate Only) 2. If Primary Site = C420, C421, C423, C424, C760-C768, C809, Reason for No Surgery must = 1 3. If RX Summ--Surg Prim Site 2023 = A000 or B000 (no surgery performed) Reason for No Surgery must = 1-9 (surgery not performed) 4. If RX Summ--Surg Prim Site 2023 = A100-A900 or B100-B900 (surgery performed) Reason for No Surgery must = 0 (surgery performed) 5. If RX Summ--Surg Prim Site 2023 = A980 (not applicable) Reason for No Surgery must = 1 (surgery not recommended) 6. If RX Summ--Surg Prim Site 2023 = A990 or B990 (unknown if surgery performed) Reason for No Surgery must = 8 or 9 (unknown if surgery performed)]]></description> <history> <event version="SE23-023-05" user="cooki" date="2023-06-22" ref="69233">Edit created.</event> </history> </rule>