edits.seer.internal.rules.IFN6311.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="IFN6311" name="EOD Primary Tumor/Nodes, Plasma Cell Disorders, Histology (SEER)" tag="N6311" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || line.schemaId != '00822' || line.histologicTypeIcdO3 == null || (line.eodPrimaryTumor == null && line.eodRegionalNodes == null)) return true if (line.histologicTypeIcdO3 == '9731') { if (line.typeOfReportingSource == '7') return line.eodPrimaryTumor == '999' && (line.eodRegionalNodes == '987' || line.eodRegionalNodes == '999') else return (line.eodPrimaryTumor == '100' || line.eodPrimaryTumor == '999') && line.eodRegionalNodes == '987' } else if (line.histologicTypeIcdO3 == '9734') { if (line.typeOfReportingSource == '7') return line.eodPrimaryTumor == '999' && line.eodRegionalNodes == '999' else return (line.eodPrimaryTumor == '200' || line.eodPrimaryTumor == '999') && (line.eodRegionalNodes == '000' || line.eodRegionalNodes == '800' || line.eodRegionalNodes == '999') } else if (line.histologicTypeIcdO3 == '9671' || line.histologicTypeIcdO3 == '9761') { if (line.typeOfReportingSource == '7') return (line.eodPrimaryTumor == '999' || line.eodPrimaryTumor == '700') && (line.eodRegionalNodes == '999' || line.eodRegionalNodes == '987') else return line.eodPrimaryTumor == '700' && line.eodRegionalNodes == '987' } return true]]></expression> <message>EOD Primary Tumor/Histology conflict for Plasma Cell Disorders</message> <description><![CDATA[This edit verifies that EOD Primary Tumor is coded consistently with Histologic Type ICD-O-3 codes for histologies 9731, 9734, 9671, and 9761 for Schema ID 00822, Plasma Cell Disorders. 1. The edit is skipped for the following conditions: a. Date of Diagnosis before 2021, blank (unknown), or invalid. b. Schema ID is blank or not 00822 c. EOD Primary Tumor is blank and EOD Regional Nodes is blank d. Histologic Type ICD-O-3 is blank 2. If Histologic Type ICD-O-3 = 9731 (Plasmacytoma NOS) a. If Type of Reporting Source = 7 (Death Certificate Only) then EOD Primary Tumor must = 999 and EOD Regional Nodes must = 987 (not applicable) or 999 (unknown) b. If Type of Reporting Source not = 7, then EOD Primary Tumor must = 100 or 999 and EOD Regional Nodes must = 987. 3. If Histologic Type ICD-O-3 = 9734 (Plasmacytoma Extramedullary) a. If Type of Reporting Source = 7 then EOD Primary Tumor must = 999 and EOD Regional Nodes must = 999 b. If Type of Reporting Source not = 7 then EOD Primary Tumor must = 200 or 999 (single extramedullary plasmacytomas or unknown) and EOD Regional Nodes must = 000, 800, or 999 (positive or negative nodal involvement or unknown) 4. If Histologic Type ICD-O-3 = 9671 (Lymphoplasmacytic Lymphoma) or 9761 (Waldenstrom Macroglobulinemia) a. If Type of Reporting Source = 7, EOD Primary Tumor must = 700 or 999 and EOD Regional Nodes must = 987 or 999. b. If Type of Reporting Source not = 7, EOD Primary Tumor must = 700 and EOD Regional Nodes must = 987.]]></description> <history> <event version="SE21-021-04" user="smithm" date="2021-04-20" ref="68623">Edit created.</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event> </history> </rule>