edits.seer.internal.rules.IFN6309.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="IFN6309" name="Mets at DX, Lymphoma, EOD Primary Tumor (SEER)" tag="N6309" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.typeOfReportingSource == '7') return true if (line.eodPrimaryTumor == null || line.schemaId == null || !['00790','00795'].contains(line.schemaId)) return true if (line.metsAtDxBone == null && line.metsAtDxBrain == null && line.metsAtDxLiver == null && line.metsAtDxLung == null && line.metsAtDxOther == null) return true if ((line.metsAtDxBone == '1' || line.metsAtDxBrain == '1' || line.metsAtDxLung == '1' || line.metsAtDxOther == '1' || line.metsAtDxOther == '2') && !['700','800'].contains(line.eodPrimaryTumor)) return false if (line.metsAtDxLiver == '1' && line.eodPrimaryTumor != '800') return false return true]]></expression> <message>Mets at DX fields conflict with Schema ID</message> <description><![CDATA[This edit verifies that Mets at DX-Bone, Mets at DX-Brain, Mets at DX-Distant LN, Mets at DX-Liver, Mets at DX-Lung, and Mets at DX-Other are coded consistently with EOD Primary T umor for Schema ID 00790, Lymphoma, and 00795, Lymphoma CLL/SLL. 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 00790 or 00795 c. Mets at DX-Bone, Mets at DX-Brain, Mets at DX-Liver, Mets at DX-Lung, and Mets at DX-Other are all blank d. EOD Primary Tumor is blank e. Type of Reporting Source is 7 (Death Certificate Only) 2. If Mets at DX-Bone = 1 or Mets at DX-Brain = 1 or Mets at DX-Lung = 1 or Mets at DX-Other = 1 or 2, then EOD Primary Tumor must = 700 or 800 3. If Mets at DX-Liver = 1, then EOD Primary Tumor must = 800]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-04-14" ref="68608">Edit created.</event> <event version="SE21-021-04" user="kirbyk" date="2021-05-11" ref="68658">Updated skip condition for EOD Primary Tumor.</event> <event version="SE21-021-09" user="beverung" date="2021-09-01" ref="68731">Update logic for Mets at DX-Liver = 1.</event> </history> </rule>