edits.seer.internal.rules.IF627.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="IF627" name="Addr at DX-State, Registry ID (SEER IF627)" tag="S010" java-path="lines.line" category="inter-field"> <expression><![CDATA[String state = line.addrAtDxState String registryId = line.registryId if (registryId == null || state == null) return true if ((registryId == '0000001501' || registryId == '0000001531' || registryId == '0000001535' || registryId == '0000001541') && state == 'CA') return true else if (registryId == '0000001502' && state == 'CT') return true else if (registryId == '0000001520' && state == 'MI') return true else if (registryId == '0000001521' && state == 'HI') return true else if (registryId == '0000001522' && state == 'IA') return true else if (registryId == '0000001523' && state == 'NM') return true else if (registryId == '0000001525' && state == 'WA') return true else if (registryId == '0000001526' && state == 'UT') return true else if ((registryId == '0000001527' || registryId == '0000001537' || registryId == '0000001547') && state == 'GA') return true else if (registryId == '0000001529' && state == 'AK') return true else if (registryId == '0000001533' && state == 'AZ') return true else if (registryId == '0000001542' && state == 'KY') return true else if (registryId == '0000001543' && state == 'LA') return true else if (registryId == '0000001544' && state == 'NJ') return true else if (registryId == '0000001551') return true else if (registryId == '0000001561' && state == 'ID') return true else if (registryId == '0000001562' && state == 'NY') return true else if (registryId == '0000001563' && state == 'MA') return true else if (registryId == '0000001565' && state == 'IL') return true else if (registryId == '0000001566' && state == 'TX') return true return false]]></expression> <message>Addr at DX-State and Registry ID conflict</message> <description><![CDATA[Must be correct Addr at DX-State for Registry ID.]]></description> <history> <event version="SE16-016-09" user="kirbyk" date="2017-12-15" ref="67677">Edit created.</event> <event version="SE16-016-11" user="kirbyk" date="2018-01-24" ref="67687">Added registry ID 0000001551 with no corresponding state.</event> <event version="SE18-018-02" user="kirbyk" date="2018-06-21" ref="67940">Added registry ID validation for 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="SE21-021-07" user="beverung" date="2021-07-14" ref="68684">Added registry ID validation for IL, TX, AR, CA, CO, MI, OR, TN, MO, and NH.</event> <event version="SE23-023-10" user="cooki" date="2024-01-25" ref="69375">Removed registry ID validation for WI, AR, CA, CO, MI, OR, TN, MO, and NH.</event> <event version="SE24-024-06" user="kirbyk" date="2024-07-22" ref="69326">Removed edit dependencies.</event> </history> </rule>