edits.seer.internal.rules.IFN6207.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="IFN6207" name="Behavior Code ICDO3, EOD Tumor/Nodes/Mets, Prostate (SEER)" tag="N6207" java-path="lines.line" category="inter-field"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2021' || line.schemaId == null || line.schemaId != '00580' || line.typeOfReportingSource == '7') return true if (line.behaviorCodeIcdO3 == null || ['0','1'].contains(line.behaviorCodeIcdO3)) return true if (line.eodPrimaryTumor == null && line.prostatePathologicalExtension == null && line.eodRegionalNodes == null && line.eodMets == null) return true if (line.behaviorCodeIcdO3 == '2') { boolean condition1 = line.eodPrimaryTumor == '000' && Functions.matches(line.prostatePathologicalExtension, /^[089]00|9(50|99)$/) boolean condition2 = ['800','999'].contains(line.eodPrimaryTumor) && line.prostatePathologicalExtension == '000' return (condition1 || condition2) && line.eodRegionalNodes == '000' && line.eodMets == '00' } else if (line.behaviorCodeIcdO3 == '3') return !['000','800'].contains(line.eodPrimaryTumor) || !['000','800','900','950'].contains(line.prostatePathologicalExtension) || line.eodRegionalNodes != '000' || line.eodMets != '00' return true]]></expression> <message>Behavior Code ICD-O-3 conflicts with EOD Primary Tumor, EOD Prostate Pathologic Extension, EOD Regional Nodes, and EOD Mets</message> <description><![CDATA[This edit checks consistency of coding between Behavior Code ICD-O-3, codes 2 and 3, and EOD Primary Tumor, EOD Prostate Patholgical Extension, EOD Regional Nodes, and EOD Mets for Schema ID 00580, Prostate. 1. This edit is skipped if any of the following conditions is true: a. Diagnosis date is invalid, blank (unknown), or before 2021. b. Schema ID is blank or not 00580 c. Behavior Code ICD-O-3 is blank or = 0 or 1 d. EOD Primary Tumor, EOD Prostate Pathological Extension, EOD Regional Nodes, and EOD Mets are all blank e. Type of Reporting Source = 7 (Death Certificate Only) 2. If Behavior Code ICD-O-3 = 2 (in situ) EOD Primary Tumor must = 000 (in situ) and EOD Prostate Pathologic Extension must = 000 (in situ), 800 (no evidence of primary tumor), 900 (no prostatectomy or autopsy performed), 950 (prostatectomy not part of first course of treatment) or 999 (unknown extension) OR EOD Primary Tumor must = 800 (no evidence of primary tumor) or 999 (unknown extension) and EOD Prostate Pathologic Extension must = 000 (in situ) AND EOD Regional Nodes must = 000 and EOD Mets must = 00 3. If Behavior Code ICD-O-3 = 3 (invasive) EOD Primary Tumor must not = 000 or 800 or EOD Prostate Pathologic Extension must not = 000, 800, 900, or 950 or EOD Regional Nodes must not = 000 or EOD Mets must not = 00]]></description> <history> <event version="SE21-021-04" user="beverung" date="2021-03-23" ref="68600">Edit created.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy