edits.seer.internal.rules.IFN6398.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="IFN6398" name="Derived Summary Stage 2018, Plasma Cell Disorders, Histology (SEER)" tag="N6398" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.derivedSummaryStage2018 == null) return true if (line.schemaId == null || line.schemaId != '00822' || line.histologicTypeIcdO3 == null) return true if (line.histologicTypeIcdO3 == '9731') { if (line.typeOfReportingSource == '7') return line.derivedSummaryStage2018 == '9' else return ['1','9'].contains(line.derivedSummaryStage2018) } else if (line.histologicTypeIcdO3 == '9734') { if (line.typeOfReportingSource == '7') return line.derivedSummaryStage2018 == '9' else return ['1','3','9'].contains(line.derivedSummaryStage2018) } else if (['9671','9761'].contains(line.histologicTypeIcdO3)) { if (line.typeOfReportingSource == '7') return ['7','9'].contains(line.derivedSummaryStage2018) else return line.derivedSummaryStage2018 == '7' } return true]]></expression> <message>Derived Summary Stage 2018 not valid for Histologic Type ICD-O-3</message> <description><![CDATA[This edit verifies that Derived Summary Stage 2018 is coded correctly by histology for Schema ID 00822, Plasma Cell Disorder 1. This edit is skipped for any of the following conditions: a. Diagnosis date is pre-2021, blank (unknown), or invalid b. Schema ID is blank or not 00822 c. Histologic Type ICD-O-3 is blank d. Derived Summary Stage 2018 is blank 2. If Histologic Type ICD-O-3 = 9731 (Plasmacytoma NOS) a. If Type of Reporting Source = 7 (Death certificate only) Derived Summary Stage 2018 must = 9. b. If Type of Reporting Source not = 7 Derived Summary Stage 2018 must = 1 or 9 3. If Histologic Type ICD-O-3 = 9734 (Plasmacytoma Extramedullary, a. If Type of Reporting Source = 7 Derived Summary Stage must = 9 b. If Type of Reporting Source not = 7 Derived Summary Stage 2018 must = 1, 3, or 9 4. If Histologic Type ICD-O-3 = 9671 (Lymphoplasmacytic Lymphoma), or 9761 (Waldenstrom Macroglobulinemia), a. If Type of Reporting Source = 7 (Death Certificate Only) Derived Summary Stage 2018 must = 7 or 9 b. If Type of Reporting Source not = 7, Derived Summary Stage 2018 must = 7]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-22" ref="68603">Edit created.</event> </history> </rule>