edits.seer.internal.rules.IFN7045.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="IFN7045" name="EOD Primary Tumor, Testis, Morphology, Tumor Size Summary (SEER)" tag="N7045" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear < '2024' || line.dateOfDiagnosisYear == null || line.schemaId != '00590' || line.schemaId == null || line.typeOfReportingSource == '7') return true if (line.eodPrimaryTumor == null || line.tumorSizeSummary == null || line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == null) return true if (line.eodPrimaryTumor == '100') { if (line.histologicTypeIcdO3 != '9061' || line.behaviorCodeIcdO3 != '3') return false if (!Functions.matches(line.tumorSizeSummary, /^00[1-9]|0[12]\d|99[09]$/)) return false } if (line.eodPrimaryTumor == '150') { if (line.histologicTypeIcdO3 != '9061' || line.behaviorCodeIcdO3 != '3') return false if (!Functions.matches(line.tumorSizeSummary, /^0[3-9]\d|[1-8]\d\d|9[0-8]\d|999$/)) return false } return true]]></expression> <message>Conflict between Tumor Size Summary and EOD Primary Tumor.</message> <description><![CDATA[This edit checks consistency of coding between EOD Primary Tumor code 100 and Histologic Type ICD-O-3, Behavior Code ICD-O-3, and Tumor Size Summary for Schema ID 00590, Testis 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2024, blank (unknown), or invalid. b. Schema ID is blank or not 00590 c. EOD Primary Tumor is blank d. Histologic Type ICD-O-3 or Behavior Code ICD-O-3 is blank e. Tumor Size Summary is blank f. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Primary Tumor = 100 (tumor size < 3cm limited to testis): a. Histologic Type ICD-O-3 and Behavior Code ICD-O-3 must = 90613 (pure seminoma) b. Tumor Size Summary must = 001-029, 990, 999 3. If EOD Primary Tumor = 150 (tumor >= 3cm limited to testis): a. Histologic Type ICD-O-3 and Behavior Code ICD-O-3 must = 90613 (pure seminoma) b. Tumor Size Summary must = 030-989 or 999 ]]></description> <history> <event version="SE24-024-03" user="kirbyk" date="2024-03-20" ref="69435">Edit created.</event> </history> </rule>