edits.seer.internal.rules.IFN6188.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="IFN6188" name="EOD Primary Tumor, NET Jejunum and Ileum, Tumor Size (SEER)" tag="N6188" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.dateOfDiagnosisYear > '2023' || line.eodPrimaryTumor == null) return true if (line.typeOfReportingSource == '7' || line.schemaId == null || line.schemaId != '00310') return true if (line.tumorSizeClinical == null && line.tumorSizePathologic == null) return true if (line.eodPrimaryTumor == '100') { if (!Functions.matches(line.tumorSizeClinical, /^00[1-9]|010|99[09]$/) && !Functions.matches(line.tumorSizePathologic, /^00[1-9]|010|99[09]$/)) return false if (line.tumorSizeSummary != null && !Functions.matches(line.tumorSizeSummary, /^00[1-9]|010|99[09]$/)) return false } return true]]></expression> <message>EOD Primary Tumor/Tumor Size conflict for NET Jejunum and Ileum</message> <description><![CDATA[This edit verifies that EOD Primary Tumor code 100 is coded consistently with Tumor Size Clinical, Tumor Size Pathologic, and Tumor Size Summary for Schema ID 00310 NET Jejunum and Ileum. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2021, after 2023, blank (unknown), or invalid. b. Schema ID is blank or not 00310 c. Tumor Size Clinical and Tumor Size Pathologic are both blank d. EOD Primary Tumor is blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Primary Tumor = 100 (Tumor less than or equal to 1cm AND confined to Intramucosal NOS, lamina propria, Mucosa NOS, Muscularis mucosae, Submucosa; Localized NOS) a. Tumor Size Pathologic must = 001-010, 990, 999 or Tumor Size Clinical must = 001-010, 990, 999 b. Tumor Size Summary if not blank must = 001-010, 990, 999]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-25" ref="68606">Edit created.</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event> <event version="SE24-024-01" user="cooki" date="2024-03-08" ref="69397">Added 2024 skip condition.</event> </history> </rule>