edits.seer.internal.rules.IFN7162.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="IFN7162" name="Cancer Items, Type Reporting Source-DCO (SEER)" tag="N7162" java-path="lines.line" category="inter-field" depends="Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line.dateOfDiagnosisYear < '2018' || line.typeOfReportingSource != '7' || line.schemaId == null) return true if (line.behaviorCodeIcdO3 == '2' || ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && !Functions.matches(line.schemaId, /^0072[123]|0972[1-4]$/))) return true if ((line.gradeClinical != null && line.gradeClinical != '8' && line.gradeClinical != '9')) return false if (line.gradePathological != null && line.gradePathological != '8' && line.gradePathological != '9') return false if (line.gradePostTherapy != null || line.gradePostTherapyClin != null) return false if ((line.metsAtDxBone != null && line.metsAtDxBone != '8' && line.metsAtDxBone != '9') || (line.metsAtDxBrain != null && line.metsAtDxBrain != '8' && line.metsAtDxBrain != '9')) return false if ((line.metsAtDxDistantLn != null && line.metsAtDxDistantLn != '8' && line.metsAtDxDistantLn != '9') || (line.metsAtDxLiver != null && line.metsAtDxLiver != '8' && line.metsAtDxLiver != '9')) return false if ((line.metsAtDxLung != null && line.metsAtDxLung != '8' && line.metsAtDxLung != '9') || (line.metsAtDxOther != null && line.metsAtDxOther != '8' && line.metsAtDxOther != '9')) return false if (line.lymphVascularInvasion != null && line.lymphVascularInvasion != '8' && line.lymphVascularInvasion != '9') return false if ((line.neoadjuvantTherapy != null && line.neoadjuvantTherapy != '9') || (line.neoadjuvTherapyTreatmentEffect != null && line.neoadjuvTherapyTreatmentEffect != '9')) return false if (line.neoadjuvTherapyClinicalResponse != null && line.neoadjuvTherapyClinicalResponse != '9') return false if ((line.regionalNodesPositive != null && line.regionalNodesPositive != '99') || (line.regionalNodesExamined != null && line.regionalNodesExamined != '99')) return false if ((line.tumorSizeClinical != null && line.tumorSizeClinical != '999') || (line.tumorSizePathologic != null && line.tumorSizePathologic != '999')) return false if (line.tumorSizeSummary != null && line.tumorSizeSummary != '999') return false if (line.vitalStatus == null || line.vitalStatus != '0') return false if (line.icdRevisionNumber == null || !Functions.matches(line.icdRevisionNumber, /^[1789]$/)) return false if (line.diagnosticConfirmation != null && !['3','9'].contains(line.diagnosticConfirmation)) return false if (line.dateOfDiagnosisYear >= '2023' && line.summaryStage2018 != null && line.summaryStage2018 != '9') return false return true]]></expression> <message>One or more fields contain incorrect codes for DCO cases.</message> <description><![CDATA[The purpose of this edit is to verify that cancer data items, when populated, are correctly coded for Death Certificate Only cases (Type of Reporting Source = 7). This edit is skipped if: 1. Year of Date of Diagnosis is less than 2018, blank, or invalid. 2. Type of Reporting Source is not = 7 (Death Certificate Only) 3. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) and Schema ID is not 00721 or 09721 (Brain), 00722 or 09722 (CNSOther), 00723 or 09723 (Intracranial Gland), or 09724 (Medulloblastoma) 4. Behavior Code ICD-O-3 is 2 (in situ) 5. Schema ID is blank The following data items must be equal to one of the values specified below or may be left blank. [Please note that although this edit sometimes allows more than one "correct" code or blanks for DCO cases, there are other edits that will only allow codes (for instance, 888 OR 999) based on valid codes for the Schema ID. This edit allows blanks for all of the fields except Vital Status and ICD Code. There are other edits that check for allowable blanks based on standard setter requirements. Grade Clinical: 8, 9, or blank Grade Pathological: 8, 9, or blank Grade Post Therapy Clin (yc): Blank Grade Post Therapy Path (yp): blank Mets at DX-Bone: 8, 9, or blank Mets at DX-Brain: 8, 9, or blank Mets at DX-Distant LN: 8, 9, or blank Mets at DX-Liver: 8, 9, or blank Mets at DX-Lung: 8, 9, or blank Mets at DX-Other: 8, 9, or blank Lymphovascular Invasion: 8, 9, or blank Neoadjuvant Therapy: 9 or blank Neoadjuvant Therapy-Clinical Response: 9 or blank Neoadjuvant Therapy-Treatment Effect: 9 or blank Regional Nodes Positive: 99 or blank Regional Nodes Examined: 99 or blank Tumor Size Clinical: 999, or blank Tumor Size Pathological: 999, or blank Tumor Size Summary: 999, or blank Diagnostic Confirmation: 3, 9 or blank Vital Status: 0 ICD Revision Number: 1, 7, 8, 9 For diagnosis year 2023+, Summary Stage 2018 must = 9 or blank]]></description> <history> <event version="SE24-024-06" user="shearerw" date="2024-07-05" ref="69511">Edit created.</event> </history> </rule>