edits.seer.internal.rules.IFN6256.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="IFN6256" name="Grade, Brain, CNS, Behavior (NAACCR)" tag="N6256" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.behaviorCodeIcdO3 == null) return true if (line.gradeClinical == null && line.gradePathological == null) return true if (!Functions.matches(line.schemaId, /^0072[123]|0972[1-4]$/) || line.typeOfReportingSource == '7') return true if (line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') { if (!['1','2','3','L','9'].contains(line.gradePathological)) return false if (!['1','2','3','L','9'].contains(line.gradeClinical)) return false return true } return true]]></expression> <message>Grade/Behavior conflict for Brain/CNS</message> <description><![CDATA[This edit verifies that Grade Clinical and Grade Pathological are coded consistently with Behavior ICD-O-3 for benign and borderline tumors of the Brain, Central Nervous System, and Intracranial Glands 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2021, blank (unknown), or invalid. b. Schema ID is not 00721, 00722, 00723, 09721, 09722, 09723, or 09724 c. Grade Clinical and Grade Pathological are both blank. d. Behavior ICD-O-3 is blank e. Type of Reporting Source = 7 (Death Certificate Only) 2. If Behavior ICD-O-3 = 0 (benign), or 1 (borderline) a. Grade Pathological must = 1, 2, 3, L, or 9. b. Grade Clinical must = 1, 2, 3, L, or 9.]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-29" ref="68625">Edit created.</event> <event version="SE21-021-06" user="beverung" date="2021-06-10" ref="68680">Added skip condition for Type of Reporting Source = 7 (Death Certificate Only).</event> <event version="SE21-021-09" user="beverung" date="2021-08-26" ref="68722">Updated logic to require Grade Clinical and Grade Pathological to be 1, 2, L, or 9 when Behavior is 1.</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event> <event version="SE23-023-01" user="shearerw" date="2023-02-03" ref="69129">Add Schema IDs for skip condition.</event> <event version="SE23-023-01" user="secristc" date="2023-02-22" ref="69199">Combine logic for Behavior ICD-O-3 = 0, 1.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy