edits.seer.internal.rules.IF83.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="IF83" name="Registry and Census Tract (SEER IF83)" tag="S004" java-path="lines.line" category="inter-field"> <expression><![CDATA[if (line.censusCodSys19708090 != '3' || line.registryId == '0000001551' || line.registryId == '0000001561') return true String county = line.countyAtDxGeocode1990 ?: line.countyAtDxAnalysis Map countyCensusTract = (Map)((Map)Context.registry_county_censusTract).get(line.addrAtDxState) if (countyCensusTract == null) return true List validCensusTracts = (List)countyCensusTract.getOrDefault(county, []) if (line.censusTract19708090 != '999999' && line.registryId >= '0000001500' && line.registryId <= '0000001599' && !validCensusTracts.contains(Functions.asInt(line.censusTract19708090)) ) return false return true]]></expression> <message>Registry, County and Census Tract 1970/80/90 conflict</message> <description><![CDATA[This edit is only performed for cases coded to 1990 Census tract(Census cod sys 1970/80/90[120] = 3) and is skipped for Cherokee Nation and Idaho. This edit is also skipped if Addr at DX State is blank or invalid. A 9-filled Census tract 1970/80/90[110] is valid for all registries. Census tract 1970/80/90[110] must be valid within the given County at DX Geocode1990[94] for each Addr at DX State[547].]]></description> <history> <event version="SE13-010-03" user="murphyr" date="2013-07-29" ref="66767">Edit now skipped for Cherokee Nation.</event> <event version="SE16-015-01" user="kirbyk" date="2016-05-11" ref="67377">Edit now uses County at DX Geocode1990 instead of County at DX.</event> <event version="SE16-015-04" user="kirbyk" date="2016-07-08" ref="67489">Edit now uses County at DX if County at DX Geocode1990 is blank.</event> <event version="SE16-016-08" user="depryf" date="2017-11-22" ref="67674">Edit syntax updated to allow pre-compilation optimization; no change in behavior.</event> <event version="SE18-018-08" user="kirbyk" date="2018-10-30" ref="68047">Edit updated for new registries ID, NY, MA, and WI.</event> <event version="SE18-018-09" user="kirbyk" date="2018-11-05" ref="68051">Fixed table values for registries ID, NY, MA, and WI.</event> <event version="SE18-018-10" user="kirbyk" date="2018-12-05" ref="68071">Edit now skipped for Idaho.</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-07" user="beverung" date="2020-10-01" ref="68527">Edit now uses countyAtDxAnalysis instead of countyAtDxGeocode1990.</event> <event version="SE18-020-09" user="kirbyk" date="2020-10-27" ref="68538">Reverted edit back to use countyAtDxGeocode1990.</event> <event version="SE21-021-07" user="beverung" date="2021-07-16" ref="68686">Edit updated for new registries IL and TX.</event> <event version="SE23-023-06" user="cooki" date="2023-07-31" ref="69294">Updated countyAtDx to countyAtDxAnalysis.</event> <event version="SE24-024-05" user="beverung" date="2024-05-23" ref="69467">Update edit to use Addr at DX State instead of Registry ID to determine valid Census tract codes.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-03" ref="69326">Removed edit dependencies.</event> </history> </rule>