edits.seer.internal.rules.IF632.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="IF632" name="Registry, County and Census Tract 2020 (SEER IF632)" tag="S060" java-path="lines.line" category="inter-field" depends="Census_Tract_2020"> <expression><![CDATA[String county = line.countyAtDxGeocode2020 ?: line.countyAtDxAnalysis if (line.censusTract2020 == null || county == null || line.censusTract2020 == '000000' || line.censusTract2020 == '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_census2020).get(line.addrAtDxState) if (countyCensusTract == null) return true return ((List)countyCensusTract.getOrDefault(county, [])).contains(Functions.asInt(line.censusTract2020))]]></expression> <message>Registry, County and Census Tract 2020 conflict</message> <description><![CDATA[This edit is skipped if any of the following conditions are true: 1) Census Tract 2020 is blank, 000000, or 999999 2) County at DX Geocode2020 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 Geocode2020 is 900 Census Tract 2020 must be valid within the given County at DX Geocode2020 for each Addr at DX State[547].]]></description> <history> <event version="SE24-024-01" user="cooki" date="2024-03-05" ref="69376">Edit created.</event> <event version="SE24-024-02" user="beverung" date="2024-03-21" ref="69443">Fix table for Connecticut (0000001502).</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>