All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edits.seer.internal.rules.IF167.xml Maven / Gradle / Ivy

There is a newer version: 024-13
Show newest version
        <rule id="IF167" name="Registry, County and Census Tract (SEER IF167)" tag="S005" java-path="lines.line" category="inter-field">
            <expression><![CDATA[String county = line.countyAtDxGeocode2000 ?: line.countyAtDxAnalysis
if (line.censusTract2000 == null || county == null || line.censusTract2000 == '000000' || line.censusTract2000 == '999999' || line.registryId < '0000001500' || line.registryId > '0000001599' || line.registryId == '0000001551')
    return true
if (line.addrAtDxState == 'AK' && county == '900')
    return true

Map countyCensusTract = (Map)((Map)Context.registry_county_census2000).get(line.addrAtDxState)
if (countyCensusTract == null)
    return true

return ((List)countyCensusTract.getOrDefault(county, [])).contains(Functions.asInt(line.censusTract2000))]]></expression>
            <message>Registry, County and Census Tract 2000 conflict</message>
            <description><![CDATA[This edit is skipped if any of the following conditions are true:
  1)  Census Tract 2000[130] is blank, 000000, or 999999
  2)  County at DX Geocode2000[95] is blank
  3)  Registry is Cherokee Nation
  4)  Addr at DX State[547] is blank or invalid
  5)  Addr at DX State[547] is AK and County at DX Geocode2000[95] is 900


Census Tract 2000[130] must be valid within the given County at DX Geocode2000[95] for each Addr at DX State[547].]]></description>
            <history>
                <event version="SE12-003-02" user="depryf" date="2011-01-10">Added valid Census2000 codes for Greater Georgia (see census2000_1547 context table).</event>
                <event version="SE12-007-03" user="murphyr" date="2012-08-02" ref="66705">Added &apos;line.censusTract2000 == &apos;000000&apos;&apos; to skip condition</event>
                <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-12" ref="67381">Edit now uses County at DX Geocode2000 instead of County at DX.</event>
                <event version="SE16-015-04" user="kirbyk" date="2016-07-08" ref="67490">Edit now uses County at DX if County at DX Geocode2000 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-03" user="kirbyk" date="2018-07-20" ref="67969">Edit updated for new registries ID, NY, MA, and WI.</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 countyAtDxGeocode2000.</event>
                <event version="SE18-020-09" user="kirbyk" date="2020-10-27" ref="68538">Reverted edit back to use countyAtDxGeocode2000.</event>
                <event version="SE21-021-07" user="beverung" date="2021-07-16" ref="68687">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>
                <event version="SE24-024-11" user="beverung" date="2024-09-26" ref="69537">Add skip condition for Addr at DX State AK with county 900.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy