edits.seer.internal.rules.IFN6464.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="IFN6464" name="Grade, Breast, Behavior ICD-O-3 (NAACCR)" tag="N6464" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2022' || line.schemaId != '00480' || line.histologicTypeIcdO3 == null || line.behaviorCodeIcdO3 == null) return true if (line.typeOfReportingSource == '7') return true if (line.gradeClinical == null && line.gradePathological == null) return true if (Functions.matches(line.gradeClinical, /^[123]$/) && Functions.matches(line.gradePathological, /^[LMH]$/)) return false boolean summaryStageCondition = line.summaryStage2018 == '1' || line.derivedSummaryStage2018 == '1' boolean tnmCondition = (line.ajccTnmClinN == 'cN0' || ['cN0','pN0'].contains(line.ajccTnmPathN)) && (line.ajccTnmClinM == 'cM0' || line.ajccTnmPathM == 'cM0') if (line.behaviorCodeIcdO3 == '3' && line.histologicTypeIcdO3 != '8543' && (summaryStageCondition || tnmCondition)) return !(Functions.matches(line.gradeClinical, /^[LMH]$/) && Functions.matches(line.gradePathological, /^[LMH]$/)) return true]]></expression> <message>If Behavior Code ICD-O-3, Morph--Type&Behav ICD-O-3 not 8543, tumor is invasive, Grade Clinical and Grade Pathological must not both = L, M, or H</message> <description><![CDATA[This edit verifies that Grade Clinical and Grade Pathological are coded consistently for Breast. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2022, blank (unknown), or invalid. b. Schema ID is not 00480. c. Grade Clinical and Grade Pathological are both blank. d. Histologic Type ICD-O-3 or Behavior Code ICD-O-3 is blank e. Type of Reporting Source = 7 (death certificate only) 2. If Grade Clinical = 1-3, Grade Pathological cannot be L, M, or H. 3. If Behavior ICD-O-3 = 3 (invasive) and Histologic Type ICD-O-3 is not = 8543 (Paget) and (Summary Stage 2018 = 1 (local) or Derived Summary Stage 2018 = 1) or ((AJCC TNM Clin N = cN0 or AJCC TNM Path N = cN0 or pN0) and (AJCC TNM Clin M = cM0 or AJCC TNM Path M = cM0)), both Grade Clinical and Grade Pathological must not = "L", "M", or "H" (nuclear grades for in situ only).]]></description> <history> <event version="SE22-022-01" user="beverung" date="2022-03-04" ref="68896">Edit Created</event> <event version="SE22-022-03" user="beverung" date="2022-04-11" ref="68924">Add skip condition for Type of Reporting Source = 7 (DCO).</event> <event version="SE22-022-03" user="beverung" date="2022-04-12" ref="68943">Update part 3 to check whether Grade Clinical and Grade Pathological are L/M/H at the same time.</event> <event version="SE23-023-01" user="secristc" date="2023-01-26" ref="69115">Updated logic and description to use histology</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy