edits.seer.internal.rules.IFN6776.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="IFN6776" name="RX Summ--Surgical Margins, Surg Prim Site 2023, Primary Site (NAACCR)" tag="N6776" java-path="lines.line" category="inter-field"> <expression><![CDATA[ if(line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.primarySite == null) return true if (line.rxSummSurgicalMargins == null || line.rxSummSurgPrimSite2023 == null || line.typeOfReportingSource == '7') return true if (line.rxSummSurgPrimSite2023 == 'A980' && line.rxSummSurgicalMargins != '9') return false if (Functions.matches(line.primarySite, /^C(42[0134]|76[0-8]|77\d|809)$/)) { if (line.rxSummSurgicalMargins != '9') return false } else { if ((line.rxSummSurgPrimSite2023 == 'A000' || line.rxSummSurgPrimSite2023 == 'B000') && line.rxSummSurgicalMargins != '8') return false if (line.rxSummSurgicalMargins == '8' && !(line.rxSummSurgPrimSite2023 == 'A000' || line.rxSummSurgPrimSite2023 == 'B000')) return false } return true ]]></expression> <message>Primary Site conflicts with RX Summ--Surgical Margins</message> <description><![CDATA[This edit verifies that RX Summ--Surgical Margins is coded appropriately by Primary Site code. 1. The edit is skipped for any of the following conditions: a. Date of Diagnosis before 2023, blank (unknown), or invalid. b. Primary Site is blank c. RX Summ--Surgical Margins is blank. d. RX Summ--Surg Prim Site 2023 is blank e. Type of Reporting Source = 7 (Death Certificate Only) 2. If RX Summ--Surg Prim Site 2023 = A980, RX Summ--Surgical Margins must = 9 3. If Primary Site = C420, C421, C423, C424, C760-C768, C770-C779, or C809 RX Summ--Surgical Margins must = 9 4. For any other primary site, if RX Summ--Surg Prim Site 2023 = A000 or B000, then RX Summ--Surgical Margins must = 8 if RX Summ--Surgical Margins = 8, then RX Summ--Surg Prim Site 2023 must = A000 or B000]]></description> <history> <event version="SE23-023-05" user="shearerw" date="2023-06-26" ref="69234">Edit created.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy