
edits.seer.internal.rules.IFN6204.xml Maven / Gradle / Ivy
<rule id="IFN6204" name="EOD Primary Tumor, Lung, Tumor Size (SEER)" tag="N6204" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.eodPrimaryTumor == null) return true if (line.typeOfReportingSource == '7' || line.schemaId == null || line.schemaId != '00360') return true if (line.tumorSizeClinical == null && line.tumorSizePathologic == null) return true if (line.eodPrimaryTumor == '100') { if (!Functions.matches(line.tumorSizeClinical, /^00[1-9]|0[12]\d|030|99[09]$/) && !Functions.matches(line.tumorSizePathologic, /^00[1-9]|0[12]\d|030|99[09]$/)) return false if (line.tumorSizeSummary != null && !Functions.matches(line.tumorSizeSummary, /^00[1-9]|0[12]\d|030|99[09]$/)) return false } return true]]></expression> <message>Tumor Size Clinical and Tumor Size Pathologic are inconsistent with EOD Primary Tumor</message> <description><![CDATA[This edit checks consistency of coding between EOD Primary Tumor code 100 and Tumor Size Clinical, Tumor Size Pathologic, and Tumor Size Summary for Schema ID 00360, Lung. 1. This edit is skipped if any of the following conditions is true: a. Diagnosis date is invalid, blank (unknown), or before 2021. b. Schema ID is blank or not = 00360 c. EOD Primary Tumor is blank d. Tumor Size Clinical and Tumor Size Pathologic are both blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Primary Tumor = 100 (Minimally invasive adenocarcinoma: Adenocarcinoma tumor WITH predominantly lepidic pattern measuring less than or equal to 3 cm in greatest dimension WITH invasive component measuring less than or equal to 5 mm in greatest dimension) a. Tumor Size Clinical or Tumor Size Pathological must = 001-030, 990,999 b. Tumor Size Summary if not blank must = 001-030, 990, 999]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-25" ref="68606">Edit created.</event> </history> </rule>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy