edits.seer.internal.rules.IFN6814.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="IFN6814" name="Perineural Invasion, Surg Prim Site 2023 (NAACCR)" tag="N6814" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2023' || line.perineuralInvasion == null || line.perineuralInvasion == '8') return true if (line.rxSummSurgPrimSite2023 == null || line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == '2') return true if (line.schemaId == null || !['00150', '00200', '00640', '00690'].contains(line.schemaId)) return true if (line.perineuralInvasion == '0') return Functions.matches(line.rxSummSurgPrimSite2023, /^[AB](900|[3-8]\d\d)$/) || (line.primarySite == 'C209' && Functions.matches(line.rxSummSurgPrimSite2023, /^[AB]270$/)) return true]]></expression> <message>Conflict between RX Summ--Surg Prim Site 2023 and Perineural Invasion</message> <description><![CDATA[This edit verifies that the Perineural Invasion SSDI is coded consistently with RX Summ Surg Prim Site 2023, for cutaneous carcinoma of skin, colon, skin of eyelid, and lacrimal gland. 1. This edit is skipped for the following conditions: a. Date of Diagnosis is pre-2023, blank (unknown), or invalid. b. Schema ID is blank or not 00150, 00200,00640, or 00690. c. Perineural Invasion is blank or 8 (not applicable) d. RX Summ--Surg Prim Site 2023 is blank e. Type of Reporting Source = 7 (Death Certificate Only) f. Behavior Code ICD-O-3 = 2 2. If Perineural Invasion = 0 (not identified) a. For Primary Site C209, RX Summ--SurgPrim Site 2023 must = A270, A300-A900 or B270, B300-B900 b. For other sites, RX Summ--Surg Prim Site 2023 must = A300-A900 or B300-B900]]></description> <history> <event version="SE23-023-05" user="shearerw" date="2023-06-16" ref="69240">Edit Created.</event> <event version="SE24-024-01" user="kirbyk" date="2024-02-06" ref="69342">Updated description; added skip condition for Behavior Code ICD-O-3.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-02" ref="69483">Added logic for Primary Site = C209.</event> <event version="SE24-024-06" user="beverung" date="2024-07-10" ref="69513">Replaced non-ASCII characters in description.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy