edits.seer.internal.rules.IFN6182.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="IFN6182" name="Behavior Code ICDO3, EOD Tumor/Mets, CNS (SEER)" tag="N6182" java-path="lines.line" category="inter-field"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021'|| line.typeOfReportingSource == '7' || line.behaviorCodeIcdO3 == null) return true if (line.schemaId == null || !Functions.matches(line.schemaId, /^0072[123]|0972[1234]$/)) return true if (line.eodPrimaryTumor == null && line.eodMets == null) return true if (['0','1'].contains(line.behaviorCodeIcdO3) && !(line.eodPrimaryTumor == '050' && line.eodMets == '00')) return false if (line.eodPrimaryTumor == '050' && !['0','1'].contains(line.behaviorCodeIcdO3)) return false return true]]></expression> <message>Behavior Code ICD-O-3 conflicts with EOD Primary Tumor</message> <description><![CDATA[This edit verifies that Behavior Code ICD-O-3, codes 0 and 1, is coded consistently with EOD Primary Tumor and EOD Mets for Schema ID 00721 and 09721, Brain, 00722 and 09722, CNS Other, 00723 and 09723, Intracranial Gland and 09724, Medulloblastoma 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 00721, 00722, 00723, 09721, 09722, 09723, or 09724 c. EOD Primary Tumor and EOD Mets are both blank d. Behavior Code ICD-O-3 is blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If Behavior Code ICD-O-3 = 0 (benign) or 1 (uncertain) then EOD Primary Tumor must = 050 (benign or borderline) and EOD Mets must = 00 (no metastasis) 3. If EOD Primary Tumor = 050 (benign or borderline) then Behavior Code ICD-O-3 must = 0 (benign) or 1 (uncertain)]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-23" ref="68600">Edit created.</event> <event version="SE23-023-01" user="cooki" date="2023-02-10" ref="69122">Updated description and added skip conditions for Schema IDs 09721, 09722, 09723, and 09724</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy