edits.seer.internal.rules.IFN6150.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="IFN6150" name="Esophagus and EGJ Tumor Epicenter, Esophagus, EOD Primary Tumor (SEER)" tag="N6150" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021') return true if (line.typeOfReportingSource == '7' || line.schemaId == null || line.schemaId != '00161' || line.esophagusAndEgjTumorEpicenter == null) return true return line.eodPrimaryTumor != '800' || line.esophagusAndEgjTumorEpicenter == '9']]></expression> <message>EOD Primary Tumor and Esophagus and EGJ Tumor Epicenter conflict for Esophagus Squamous</message> <description><![CDATA[This edit verifies that the Esophagus and EGJ Tumor Epicenter SSDI is coded consistently with EOD Primary Tumor code 800 for Schema ID 00161, Esophagus Squamous. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2021, blank (unknown), or invalid. b. Schema ID is blank or not 00161 c. Esophagus and EGJ Tumor Epicenter is blank d. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Primary Tumor = 800 (No evidence of primary tumor), then Esophagus and EGJ Tumor Epicenter must = 9 (Esophagus NOS, Specific location of Esophagus and EGJ Tumor Epicenter not documented)]]></description> <history> <event version="SE21-021-04" user="kirbyk" date="2021-04-14" ref="68638">Edit created.</event> <event version="SE22-022-03" user="beverung" date="2022-04-11" ref="68934">Change edit name and update logic to stop using Primary Site.</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event> </history> </rule>