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

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

There is a newer version: 024-13
Show newest version
        <rule id="IF441" name="Registry, County and Census Tract 2010 (SEER IF441)" tag="S007" java-path="lines.line" category="inter-field" depends="Census_Tract_2010,County_at_DX_Geocode2010">
            <expression><![CDATA[String county = line.countyAtDxGeocode2010 ?: line.countyAtDxAnalysis
if (line.censusTract2010 == null || county == null || line.censusTract2010 == '000000' || line.censusTract2010 == '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_census2010).get(line.addrAtDxState)
if (countyCensusTract == null)
    return true

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


Census Tract 2010[135] must be valid within the given County at DX Geocode2010[96] for each Addr at DX State[547].]]></description>
            <history>
                <event version="SE13-009-03" user="murphyr" date="2013-04-19" ref="66853">Edit created.</event>
                <event version="SE13-010-04" user="murphyr" date="2013-08-21" ref="66926">Edit disabled for CNCP registry.</event>
                <event version="SE16-015-01" user="kirbyk" date="2016-05-13" ref="67382">Edit now uses County at DX Geocode2010 instead of County at DX.</event>
                <event version="SE16-015-04" user="kirbyk" date="2016-07-08" ref="67491">Edit now uses County at DX if County at DX Geocode2010 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-19" ref="67970">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 countyAtDxGeocode2010.</event>
                <event version="SE18-020-09" user="kirbyk" date="2020-10-27" ref="68538">Reverted edit to use countyAtDxGeocode2010.</event>
                <event version="SE21-021-07" user="beverung" date="2021-07-16" ref="68688">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 some 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