edits.seer.internal.rules.IFN6319.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="IFN6319" name="Mets at DX, Mycosis Fungoides, EOD Nodes/Mets (SEER)" tag="N6319" 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.schemaId == null || line.schemaId != '00811') return true if (line.metsAtDxBone == null && line.metsAtDxBrain == null && line.metsAtDxDistantLn == null && line.metsAtDxLiver == null && line.metsAtDxLung == null && line.metsAtDxOther == null) return true if (line.eodMets != null) { if ((line.metsAtDxBone == '1' || line.metsAtDxBrain == '1' || line.metsAtDxLiver == '1' || line.metsAtDxLung == '1' || line.metsAtDxOther == '1') && line.eodMets != '70') return false if (line.metsAtDxOther == '2' && !['10','70'].contains(line.eodMets)) return false if (line.eodMets == '10' && line.metsAtDxOther != '2') return false } if (line.eodRegionalNodes != null) { if (line.metsAtDxDistantLn == '1' && !Functions.matches(line.eodRegionalNodes, /^[1-8]00$/)) return false } return true]]></expression> <message>Mets at DX fields conflict with EOD Nodes/Mets for Mycosis Fungoides</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 Mets for Schema ID 00811, Mycosis Fungoides. 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 00811 c. 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 all blank d. Type of Reporting Source is 7 (Death Certificate Only) 2. If EOD Mets is blank, this part is skipped. Otherwise: a. If Mets at DX-Bone = 1, Mets at DX-Brain = 1, Mets at DX-Liver = 1, Mets at DX-Lung = 1, or Mets at DX-Other = 1, then EOD Mets must = 70 b. If Mets at DX-Other = 2, then EOD Mets must = 10 or 70 c. If EOD Mets = 10 (Carcinomatosis) then Mets at DX-Other must = 2 3. If EOD Regional Nodes is blank, this part is skipped. Otherwise: a. If Mets at DX-Distant LN = 1, then EOD Regional Nodes must = 100, 200, 300, 400, 500, 600, 700 (clinically abnormal, pathologically positive nodes), or 800 (distant nodes NOS) ]]></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-12" ref="68657">Edit will not fail for EOD Mets being blank or EOD Regional Nodes being blank.</event> <event version="SE22-022-03" user="secristc" date="2022-04-26" ref="68981">Updated message.</event> <event version="SE22-022-08" user="secristc" date="2022-06-23" ref="69011">Updated error message.</event> </history> </rule>