edits.seer.internal.rules.IFN6132.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="IFN6132" name="EOD Primary Tumor, Primary Site NOS (SEER)" tag="N6132" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.eodPrimaryTumor == null) return true if (line.typeOfReportingSource == '7' || ['00790','00795','00470'].contains(line.schemaId)) return true if (line.primarySite == null || Functions.matches(line.primarySite, /^C(14[0-8]|2(1\d|2[01])|3(0[01]|8[0-8])|4(2[0-4]|8[0-8])|76[0-8])$/)) return true return line.eodPrimaryTumor != '800' || line.primarySite.endsWith('9')]]></expression> <message>Primary Site is not valid for EOD Primary Tumor</message> <description><![CDATA[This edit checks consistency of coding between EOD Primary Tumor code 800 and Primary Site NOS codes. 1. This edit is skipped if any of the following conditions is true: a. Diagnosis date is invalid, blank (unknown), or before 2021. b. EOD Primary Tumor is blank. c. Primary Site is blank or Primary Site group does not include NOS code (C140-C148,C210-C221,C300-C301,C380-C388, C420-C424,C480-C488,C760-C768) d. Schema ID = 00790 (Lymphoma) or 00795 (Lymphoma CLL/SLL) e. Type of Reporting Source = 7 (Death Certificate Only) f. Schema ID = 00470 (regressed melanoma may be coded to specific site) 2. If EOD Primary Tumor = 800 (no evidence of primary tumor), then the final digit of Primary Site must = 9]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-25" ref="68606">Edit created.</event> <event version="SE24-024-01" user="beverung" date="2024-02-08" ref="69334">Added skip condition for Schema ID = 00470.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy