edits.seer.internal.rules.IFN6736.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="IFN6736" name="Clinical Margin Width, Surg Prim Site 2023 (NAACCR)" tag="N6736" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.schemaId != '00470' || line.clinicalMarginWidth == null || line.rxSummSurgPrimSite2023 == null || line.rxSummSurgPrimSite2023 == 'B600' || line.typeOfReportingSource == '7') return true if (Functions.matches(line.rxSummSurgPrimSite2023, /^B([0-2]\d\d|3[0-1]\d|320|900|990)$/)) return line.clinicalMarginWidth == 'XX.9' if (Functions.matches(line.clinicalMarginWidth, /^(0\.[1-9]|[1-9]\.\d|XX\.1)$/)) return Functions.matches(line.rxSummSurgPrimSite2023, /^B(5[0-3]\d|540)$/) return true]]></expression> <message>Clinical Margin Width must be coded for wide excision only</message> <description><![CDATA[This edit verifies consistency of coding between Clinical Margin Width SSDI and RX Summ--Surg Prim Site 2023. This edit is skipped for any of the following conditions: 1. Diagnosis date blank (unknown), invalid, or before 2023. 2. Schema ID is not 00470. 3. Clinical Margin Width is blank 4. RX Summ--Surg Prim Site 2023 is blank or B600 5. Type of Reporting Source = 7 (Death Certificate Only) A. If RX Summ--Surg Prim Site 2023 = B000-B320, B900, or B990 (no surgery, surgery other than wide excision, or unknown),Clinical Margin Width must = XX.9. B. If Clinical Margin Width = 0.1-9.9 or XX.1, RX Summ--Surg Prim Site 2023 must = B500-B540 (wide excision)]]></description> <history> <event version="SE23-023-02" user="cooki" date="2023-05-10" ref="69224">Edit created.</event> <event version="SE24-024-04" user="beverung" date="2024-05-01" ref="69458">Add skip condition for RX Summ--Surg Prim Site 2023 = B600.</event> </history> </rule>