edits.seer.internal.rules.SEER_IR01A.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="SEER_IR01A" name="Verify Birthplace-State Same on All Records for a Patient" tag="S020" java-path="lines" category="inter-record"> <expression><![CDATA[if (lines.isEmpty()) return true String birthPlaceState = lines[0].birthplaceState for (line in lines) { if (birthPlaceState != line.birthplaceState) { Functions.forceFailureOnEntity(binding, lines[0]) Functions.forceFailureOnEntity(binding, line) return false } } return true]]></expression> <message>Birthplace-State Inter-Record Error</message> <description><![CDATA[SEER_IR01A compares each Birthplace-State entry for a given patient to determine if they are all the same. If they are not, the patient fails the edit.]]></description> <history> <event version="SE13-010-03" user="murphyr" date="2013-08-13" ref="66921">Edit created.</event> <event version="SE14-011-04" user="depryf" date="2014-04-21" ref="67077">Now reporting all the tumors when this edit fails.</event> <event version="SE16-016-07" user="kirbyk" date="2017-11-09" ref="67672">Now reporting only the two tumors that fail the edit.</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-12" user="kirbyk" date="2019-01-28" ref="68104">Changed error message.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy