edits.seer.internal.rules.IFN3034.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="IFN3034" name="Circumferential Resection Margin (CRM), Colon, Surg Prim Site 03-2022 (NAACCR)" tag="N3034" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2019' || line.dateOfDiagnosisYear > '2022' || line.schemaId != '00200' || line.behaviorCodeIcdO3 == '2') return true if (line.circumferentialResectionMargin == null || line.circumferentialResectionMargin == 'XX.8') return true if ((line.registryId == '0000001565' && line.dateOfDiagnosisYear < '2023') || (line.registryId == '0000001566' && line.dateOfDiagnosisYear < '2022')) return true if (Functions.matches(line.primarySite, /^C1(8[02-9]|99)$/) && Functions.matches(line.rxSummSurgPrimSite, /^00|1[0-4]|2[0-9]$/) && line.circumferentialResectionMargin != 'XX.7') return false else if (line.primarySite == 'C209' && Functions.matches(line.rxSummSurgPrimSite, /^00|1[0-4]|2[0-68]$/) && line.circumferentialResectionMargin != 'XX.7') return false if (Functions.matches(line.rxSummSurgPrimSite, /^[3-7]\d|80$/) && line.circumferentialResectionMargin == 'XX.7') return false if (line.rxSummSurgPrimSite == '99' && line.circumferentialResectionMargin != 'XX.9') return false return true]]></expression> <message>Circumferential Resection Margin (CRM) conflicts with RX Summ--Surg Prim Site 03-2022.</message> <description><![CDATA[This edit verifies that the Circumferential Resection Margin (CRM) SSDI is coded consistently with RX Summ--Surg Prim Site 03-2022. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2019 or after 2022, blank (unknown), or invalid. b. Schema ID is not 00200 c. Behavior Code = 2 d. Circumferential Resection Margin (CRM) is blank or XX.8 (not applicable). e. Registry ID is 0000001565 (Illinois) and Year of Date of Diagnosis is < 2023 f. Registry ID is 0000001566 (Texas) and Year of Date of Diagnosis is < 2022 2. If Primary Site = C180, C182-C189, C199, If RX Summ--Surg Prim Site 03-2022 = 00 (no surgery of primary site),10-14 (local tumor destruction (no specimen sent to pathology)), or 20-29 (local excision), then the Circumferential Resection Margin must be coded XX.7 (no resection of primary site). 3. If Primary Site = C209, If RX Summ--Surg Prim Site 03-2022 = 00 (no surgery of primary site), 10-14 (local tumor destruction (no specimen sent to pathology), or 20-26, 28 (local excision), then the Circumferential Resection Margin must be coded XX.7 (no resection of primary site). 4. If RX Summ--Surg Prim Site 03-2022 = 30-80 (surgery of primary site), Circumferential Resection Margin must not = XX.7 (no resection of primary site). 5. If RX Summ--Surg Prim Site 03-2022 = 99 (unknown if surgery performed) then Circumferential Resection Margin must be coded XX.9 (Circumferential or radial resection margin not assessed or unknown if assessed.)]]></description> <history> <event version="SE18-019-02" user="kirbyk" date="2019-05-06" ref="68165">Edit created.</event> <event version="SE18-020-05" user="beverung" date="2020-07-22" ref="68376">Added skip condition and updated logic for step 2.</event> <event version="SE22-022-05" user="kirbyk" date="2022-05-17" ref="68995">Replaced non-ASCII characters in description.</event> <event version="SE23-023-01" user="secristc" date="2023-01-25" ref="69090">Added skip condition for DX year > 2022, updated logic for step 4.</event> <event version="SE23-023-02" user="cooki" date="2023-05-03" ref="69255">Removed logic from step 4.</event> <event version="SE23-023-04" user="shearerw" date="2023-06-14" ref="69288">Add registry skip conditions.</event> <event version="SE24-024-01" user="kirbyk" date="2024-02-07" ref="69353">Added condition for Surg Prim Site 03-2022 = 99; removed condition for Surgical Margins; changed name.</event> </history> </rule>