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

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

The newest version!
        <rule id="IF400" name="Birthplace--Country, Birthplace--State (NAACCR)" tag="N1672" java-path="lines.line" category="inter-field">
            <expression><![CDATA[if (line.birthplaceCountry == null || line.birthplaceState == null)
    return true

if (line.birthplaceState == 'XX' && line.birthplaceCountry == 'ZZX')
    return false

if (((Map)((Map)Context.Country_State).getOrDefault(line.birthplaceCountry, [:])).containsKey(line.birthplaceState))
    return true

return false]]></expression>
            <message>Birthplace--Country and Birthplace--State conflict</message>
            <description><![CDATA[This edit is skipped if any of the fields are blank.

This edit verifies that the Birthplace--State code is valid for the Birthplace--Country.]]></description>
            <history>
                <event version="SE13-009-01" user="murphyr" date="2012-12-05" ref="66774">Edit created.</event>
                <event version="SE13-009-03" user="murphyr" date="2013-04-15" ref="66846">Removed the dependencies on &apos;Birthplace_Country&apos; and &apos;Birthplace_State&apos;.</event>
                <event version="SE13-009-03" user="murphy" date="2013-04-15" ref="66849">Updated Country_State table.</event>
                <event version="SE15-013-01" user="kirbyk" date="2015-01-09" ref="67122">Country_State table updated. Edit no longer allows Birthplace--State XX with Birthplace--Country ZZX.</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-01" user="schadega" date="2018-04-03" ref="67742">Name change.</event>
                <event version="SE21-021-03" user="kirbyk" date="2021-03-09" ref="68568">Edit name changed.</event>
            </history>
        </rule>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy