edits.seer.internal.rules.IFN5017.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="IFN5017" name="Mets at DX-BBDLLO, Schema ID, Primary Site, 2018 (NAACCR)" tag="N5017" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.schemaId == null || line.primarySite == null || line.typeOfReportingSource == '7') return true if (['0', '1', '2'].contains(line.behaviorCodeIcdO3)) 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.dateOfDiagnosisYear >= '2018' && line.dateOfDiagnosisYear <= '2021' && ['00790', '00795', '00830', '99999'].contains(line.schemaId) && line.metsAtDxBone == '8' && line.metsAtDxBrain == '8' && line.metsAtDxDistantLn == '8' && line.metsAtDxLiver == '8' && line.metsAtDxLung == '8' && line.metsAtDxOther == '8') return true if (line.schemaId == '00822' || ['C420', 'C421', 'C423', 'C424'].contains(line.primarySite)) return line.metsAtDxBone == '8' && line.metsAtDxBrain == '8' && line.metsAtDxDistantLn == '8' && line.metsAtDxLiver == '8' && line.metsAtDxLung == '8' && line.metsAtDxOther == '8' else if (Functions.matches(line.primarySite, /^C77\d$/)) return line.metsAtDxDistantLn == '8' && line.metsAtDxBone != '8' && line.metsAtDxBrain != '8' && line.metsAtDxLiver != '8' && line.metsAtDxLung != '8' && line.metsAtDxOther != '8' else return line.metsAtDxBone != '8' && line.metsAtDxBrain != '8' && line.metsAtDxDistantLn != '8' && line.metsAtDxLiver != '8' && line.metsAtDxLung != '8' && line.metsAtDxOther != '8' ]]></expression> <message>Mets at DX fields are invalid for Schema ID or Primary Site</message> <description><![CDATA[The purpose of this edit is to verify that the Mets at DX-Bone, Brain, Distant LN, Liver, Lung, and Other fields are coded to 8 (not applicable) for the appropriate Schema IDs. 1. This edit is skipped under the following conditions: a. Year of Date of Diagnosis is less than 2018, blank (unknown), or invalid b. Type of Reporting Source = 7 (Death Certificate Only) c. Schema ID is blank d. Primary Site is blank e. Mets at DX fields are all blank f. Behavior Code ICD-O-3 = 0, 1, or 2 g. Diagnosis date = 2018-2021, Schema ID = 00790, 00795, 00830, 99999, and all Mets at DX fields = 8. 2. 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 must = 8 if Schema ID = 00822 or Primary Site = C420, C421, C423, or C424. 3. If Schema ID not = 00822, if Primary Site = C770-C779, Mets at DX-Distant LN must = 8. All other Mets at DX fields must not = 8. 4. For all other Primary sites, Mets at DX fields must not = 8.]]></description> <history> <event version="SE18-019-02" user="kirbyk" date="2019-05-09" ref="68160">Edit created.</event> <event version="SE18-020-01" user="depryf" date="2020-02-04" ref="68281">Changed property names to align with NAACCR XML IDs.</event> <event version="SE18-020-05" user="beverung" date="2020-08-03" ref="68431">Changed name; removed 00821, 00830 from schema ID logic.</event> <event version="SE18-020-05" user="kirbyk" date="2020-08-19" ref="68510">Updated logic for 2021.</event> <event version="SE21-021-03" user="beverung" date="2021-02-17" ref="68565">Add 00821, 00830 to schema IDs for steps 2 and 3.</event> <event version="SE21-021-03" user="secristm" date="2021-03-09" ref="68592">Add logic for C770-779, Behavior ICDO3</event> <event version="SE22-022-01" user="beverung" date="2022-01-20" ref="68897">Update edit name to match new NAACCR translated edit.</event> <event version="SE22-022-01" user="beverung" date="2022-02-07" ref="68865">Update logic for 2022.</event> <event version="SE23-023-01" user="shearerw" date="2023-02-17" ref="69164">Remove skip condition for when Histologic Type is 9671.</event> </history> </rule>