edits.seer.internal.rules.IFN6782.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="IFN6782" name="Surgery 2023, Reason for No Surg (SEER)" tag="N6782" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[ if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || ['6','7'].contains(line.typeOfReportingSource)) return true if (Functions.matches(line.rxSummSurgPrimSite2023, /^[AB](000)|A980$/)) return Functions.matches(line.reasonForNoSurgery, /^[125-8]$/) if (Functions.matches(line.rxSummSurgPrimSite2023, /^[AB]([1-8]\d\d|900)$/)) return line.reasonForNoSurgery == '0' if (line.rxSummSurgPrimSite2023 == 'A990' || line.rxSummSurgPrimSite2023 == 'B990') return line.reasonForNoSurgery != '0' return true]]></expression> <message>Conflict between Surgery and Reason for No Surgery</message> <description><![CDATA[This edit is skipped if any of the following conditions is true: 1. Year of Date of Diagnosis is less than 2023, blank, or invalid 2. Type of Reporting Source is equal to 6 (autopsy only) or 7 (death certificate only) If RX Summ--Surg Prim Site 2023 = A000, A980, or B000 (no surgery to primary site), then Reason for No Surgery must specify why primary site surgery was not performed (1, 2, 5, 6, 7, or 8). If RX Summ--Surg Prim Site 2023 = A100-A900, B100-B900 (surgery performed), Reason for No Surgery must be 0 (surgery performed). If RX Summ--Surg Prim Site = A990 or B990 (unknown), Reason for No Surgery cannot be 0 (surgery performed).]]></description> <history> <event version="SE23-023-05" user="shearerw" date="2023-06-26" ref="69234">Edit created.</event> </history> </rule>