edits.seer.internal.rules.IFN6135.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="IFN6135" name="Tumor Size, EOD Primary Tumor, Schema ID (SEER)" tag="N6135" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.dateOfDiagnosisYear > '2023' || (line.tumorSizeClinical == null && line.tumorSizePathologic == null) || line.typeOfReportingSource == '7' || line.eodPrimaryTumor == null) return true if (line.schemaId == null || ['00458','00671','00672','00790','00795','00821','00822','00830'].contains(line.schemaId)) return true if (((List)Context.IFN_6135_SchemaId_List).contains(line.schemaId)) return (line.tumorSizeClinical != '000' || line.tumorSizePathologic != '000') && line.tumorSizeSummary != '000' else if (line.schemaId == '00060') return (line.tumorSizeClinical == '000' || line.tumorSizePathologic == '000') && (line.tumorSizeSummary == null || line.tumorSizeSummary == '000') else if (line.schemaId == '00360') { if ((line.tumorSizeClinical == '000' && line.tumorSizePathologic == '000') || line.tumorSizeSummary == '000') if (line.eodPrimaryTumor != '800' && line.eodPrimaryTumor != '980') return false if (line.eodPrimaryTumor == '800' || line.eodPrimaryTumor == '980') return (line.tumorSizeClinical == '000' || line.tumorSizeClinical == '999' || line.tumorSizePathologic == '000' || line.tumorSizePathologic == '999') && (line.tumorSizeSummary == null || line.tumorSizeSummary == '000' || line.tumorSizeSummary == '999') } else if (line.schemaId == '00580') { if (line.tumorSizeClinical == '000' && line.eodPrimaryTumor != '800') return false if (line.eodPrimaryTumor == '800' && line.tumorSizeClinical != '000' && line.tumorSizeClinical != '999') return false if (line.tumorSizePathologic == '000' && line.prostatePathologicalExtension != null && line.prostatePathologicalExtension != '800') return false if (line.prostatePathologicalExtension == '800' && line.tumorSizePathologic != '000' && line.tumorSizePathologic != '999') return false if (line.tumorSizeClinical == '000' && line.tumorSizePathologic == '000' && line.tumorSizeSummary != null && line.tumorSizeSummary != '000') return false if (line.tumorSizeClinical != '000' && line.tumorSizeClinical != '999' && line.tumorSizePathologic != '000' && line.tumorSizePathologic != '999') return line.tumorSizeSummary != '000' && line.tumorSizeSummary != '999' } else { if ((line.tumorSizeClinical == '000' && line.tumorSizePathologic == '000') || line.tumorSizeSummary == '000') { if (line.schemaId != '99999' && line.eodPrimaryTumor != '800') return false } if (line.eodPrimaryTumor == '800') return (line.tumorSizeClinical == '000' || line.tumorSizeClinical == '999' || line.tumorSizePathologic == '000' || line.tumorSizePathologic == '999') && (line.tumorSizeSummary == null || line.tumorSizeSummary == '000' || line.tumorSizeSummary == '999') } return true]]></expression> <message>Tumor Size Clinical, Tumor Size Pathologic, and Tumor Size Summary inconsistent with EOD Primary Tumor</message> <description><![CDATA[This edit checks consistency of coding between Tumor Size codes (000) and EOD Primary Tumor code (800) indicating no evidence of primary tumor. For the listed head and neck schemas, there is no EOD Primary Tumor code of 800, as cases with no evidence of primary tumor are assigned to Schema ID 00060, Cervical Lymph Nodes, Occult Head and Neck. For 000360, Lung, EOD Primary Tumor is coded 980 for an occult primary tumor. For 00580, Prostate, EOD Primary Tumor and EOD Prostate Pathologic Extension codes are checked, as presence of primary tumor could be coded in either data item. 1. This edit is skipped if any of the following conditions is true: a. Diagnosis date is invalid, blank (unknown), before 2021 or after 2023. b. Schema ID is blank or = 00458, 00671, 00672, 00790, 00795, 00821, 00822, 00830 (Schema IDs where Tumor Size must = 999) c. Tumor Size Clinical and Tumor Size Pathologic are both blank d. Type of Reporting Source is 7 (Death Certificate Only) e. EOD Primary Tumor is blank 2. For the Schema IDs in the list below, a. Tumor Size Clinical and Tumor Size Pathologic must not both = 000 b. Tumor Size Summary must not = 000. 00071 Lip 00072 Tongue Anterior 00073 Gum 00074 Floor of Mouth 00075 Palate Hard 00076 Buccal Mucosa 00077 Mouth Other 00111 Oropharynx p16- 00112 Hypopharynx 00118 Pharynx Other 00119 Middle Ear 00121 Maxillary Sinus 00122 Nasal Cavity and Ethmoid Sinus 00128 Sinus Other 00131 Larynx Supraglottic 00132 Larynx Glottic 00133 Larynx Subglottic 00140 Melanoma Head and Neck 00150 Cutaneous Carcinoma Head and Neck 3. If Schema ID = 00060, Cervical Nodes, Unknown Primary a. Tumor Size Clinical or Tumor Size Pathologic must = 000 b. Tumor Size Summary if not blank must = 000 4. If Schema ID = 00360, Lung a. If Tumor Size Clinical = 000 and Tumor Size Pathologic= 000, EOD Primary Tumor must = 800 or 980 b. If Tumor Size Summary = 000, EOD Primary Tumor must = 800 or 980 c. If EOD Primary Tumor = 800 or 980: i. Tumor Size Clinical or Tumor Size Pathologic must = 000 or 999 ii. Tumor Size Summary must = 000, 999, or blank 5. If Schema ID = 00580, Prostate, a. If Tumor Size Clinical = 000, EOD Primary Tumor must = 800 b. If EOD Primary Tumor = 800, Tumor Size Clinical must = 000 or 999 c. If Tumor Size Pathologic = 000, EOD Prostate Pathological Extension if not blank must = 800 d. If EOD Prostate Pathological Extension = 800, Tumor Size Pathologic must = 000 or 999 e. If Tumor Size Clinical = 000 and Tumor Size Pathologic = 000, Tumor Size Summary must = 000 or blank f. If Tumor Size Clinical not = 000 or 999 and Tumor Size Pathologic not = 000 or 999, Tumor Size Summary if not blank must not = 000 or 999 6. For all other Schema IDs: a. If Tumor Size Clinical = 000 and Tumor Size Pathologic = 000 and Schema ID not 99999, EOD Primary Tumor must = 800 b. If Tumor Size Summary = 000 and Schema ID not 99999, EOD Primary Tumor must = 800 c. If EOD Primary Tumor = 800: i. Tumor Size Clinical or Tumor Size Pathologic must = 000 or 999 ii. Tumor Size Summary must = 000, 999, or blank]]></description> <history> <event version="SE23-023-04" user="shearerw" date="2023-06-14" ref="69269">Edit Created.</event> <event version="SE24-024-01" user="shearerw" date="2024-03-12" ref="69428">Skip edit for diagnosis years after 2023.</event> </history> </rule>