edits.seer.internal.rules.IF401.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="IF401" name="Birthplace--State, Date of Diagnosis (NAACCR)" tag="N1693" java-path="lines.line" category="inter-field" depends="DateDiagnosisEdit"> <expression><![CDATA[if (line.dateOfDiagnosisYear == null) return true if (Functions.asInt(line.dateOfDiagnosisYear) > 2012) { if (['NN','MM','PP','XN'].contains(line.birthplaceState)) return false } return true]]></expression> <message>Birthplace--State cannot be NN, MM, PP, or XN if Date of Diagnosis is greater than 2012</message> <description><![CDATA[This edit is skipped if either field is blank. If year of Date of Diagnosis is 2013 or later, then Birthplace--State cannot be any of the following "historic" codes: NN New England and New Jersey MM Maritime Provinces PP Prairie Provinces YN Yukon and Northwest Territories]]></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 'Birthplace_Country' and 'Birthplace_State'.</event> </history> </rule>
© 2015 - 2024 Weber Informatics LLC | Privacy Policy