edits.seer.internal.rules.IF568.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="IF568" name="SEER Derived Items, Date of DX (SEER)" tag="N0701" java-path="lines.line" category="inter-field" depends="Behavior_Code_ICD-O-3,Year_of_Diagnosis"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null || line._csSchemaId == null) return true if (line.registryId == '0000001563' || (Functions.matches(line.registryId , /^000000156[56]$/) && line.dateOfDiagnosisYear > '2015')) return true if ((line.behaviorCodeIcdO3 == '0' || line.behaviorCodeIcdO3 == '1') && !['brain','cns_other','intracranial_gland'].contains(line._csSchemaId)) return true if (line.dateOfDiagnosisYear == '2016' || line.dateOfDiagnosisYear == '2017') { if (line.derivedSeerPathStgGrp == null || line.derivedSeerClinStgGrp == null || line.derivedSeerCmbStgGrp == null) return false else if (line.tnmClinT != null || line.tnmClinN != null || line.tnmClinM != null || line.tnmPathT != null || line.tnmPathN != null || line.tnmPathM != null) return (line.derivedSeerCombinedT != null && line.derivedSeerCombinedN != null && line.derivedSeerCombinedM != null) } else if (line.dateOfDiagnosisYear < '2016') return (line.derivedSeerPathStgGrp == null && line.derivedSeerClinStgGrp == null && line.derivedSeerCmbStgGrp == null && line.derivedSeerCombinedT == null && line.derivedSeerCombinedN == null && line.derivedSeerCombinedM == null && line.derivedSeerCmbTSrc == null && line.derivedSeerCmbNSrc == null && line.derivedSeerCmbMSrc == null) return true]]></expression> <message>SEER Derived Items and Date of DX conflict</message> <description><![CDATA[The purpose of this edit is to verify that SEER Derived items required by SEER are entered (not blank) for cases diagnosed 2016 and later This edit is skipped if: 1. Year of Date of Diagnosis is blank. 2. Behavior Code ICD-O-3 = 0 (benign) or 1 (borderline) and schema is not Brain, CNSOther, or IntracranialGland 3. CS Schema is invalid 4. Registry ID is 0000001563 (Massachusetts) 5. Registry ID is 0000001565 (Illinois) or 0000001566 (Texas) and Year of Date of Diagnosis is 2016 or later. If year of Date of Diagnosis is 2016-2017, then the following Derived data items cannot be blank: Derived SEER Path Stg Grp [3605] Derived SEER Clin Stg Grp [3610] Derived SEER Cmb Stg Grp [3614] If year of Date of Diagnosis is 2016-2017, and any of Clin T, N, M or Path T, N, M have a value, then the following Derived data items cannot be blank: Derived SEER Combined T [3616] Derived SEER Combined N [3618] Derived SEER Combined M [3620] If year of Date of Diagnosis is less than 2016, then the following Derived data items must be blank. Derived SEER Path Stg Grp [3605] Derived SEER Clin Stg Grp [3610] Derived SEER Cmb Stg Grp [3614] Derived SEER Combined T [3616] Derived SEER Combined N [3618] Derived SEER Combined M [3620] Derived SEER Cmb T Src [3622] Derived SEER Cmb N Src [3624] Derived SEER Cmb M Src [3626]]]></description> <history> <event version="SE16-015-01" user="kirbyk" date="2016-05-06" ref="67380">Edit created.</event> <event version="SE16-015-05" user="kirbyk" date="2016-07-18" ref="67495">Changed edit to not require Derived SEER Cmb Src fields for 2015+.</event> <event version="SE16-016-05" user="kirbyk" date="2017-08-25" ref="67662">Changed edit to only require Derived SEER Combined fields if Clin T, N, M or Path T, N, M have a value.</event> <event version="SE18-018-03" user="kirbyk" date="2018-07-20" ref="67961">Removed unnecessary dependencies.</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="SE21-021-01" user="beverung" date="2021-01-07" ref="68545">Added skip condition for MA.</event> <event version="SE21-021-08" user="beverung" date="2021-08-16" ref="68716">Added skip condition for IL and TX for 2016+ cases.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy