edits.seer.internal.rules.IFN6302.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="IFN6302" name="EOD Primary Tumor/Mets, Conjunctiva, Mets at DX-Bone, Brain (SEER)" tag="N6302" 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 != '00650' || (line.eodPrimaryTumor == null && line.eodMets == null) || (line.metsAtDxBrain == null && line.metsAtDxBone == null) || line.typeOfReportingSource == '7') return true if (line.eodPrimaryTumor == '500' && line.eodMets == '00') return line.metsAtDxBone == null || line.metsAtDxBone == '0' if (line.eodPrimaryTumor == '650' && line.eodMets == '00') return line.metsAtDxBrain == null || line.metsAtDxBrain == '0' return true]]></expression> <message>EOD Primary Tumor and EOD Mets are inconsistent with Mets at DX-Brain</message> <description><![CDATA[This edit verifies that EOD Primary Tumor indicating bone or brain involvement and EOD Mets indicating no metastases are coded consistently with Mets at DX-Bone/Brain for Schema ID 00650, Conjunctiva. 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 00650 c. EOD Primary Tumor and EOD Mets are both blank d. Mets at DX-Bone and Mets at DX-Brain are both blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Primary Tumor = 500 (Bone, Bone of Orbit) and EOD Mets = 00 (no metatasis) then Mets at DX-Bone if not blank must = 0 (no bone metastasis) 3. If EOD Primary Tumor = 650 (Brain) and EOD Mets = 00 (no metatasis) then Mets at DX-Brain if not blank must = 0 (no brain metastasis)]]></description> <history> <event version="SE21-021-04" user="smithm" date="2021-04-20" ref="68623">Edit created.</event> </history> </rule>