edits.seer.internal.rules.IF17.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="IF17" name="Sex, Primary Site (SEER IF17)" tag="N0013" java-path="lines.line" category="inter-field" depends="Primary_Site,Sex"> <expression><![CDATA[if (((line.sex == '2' || line.sex == '9') && Functions.matches(line.primarySite, /^C6[0-3]\d$/)) || ((line.sex == '1' || line.sex == '9') && Functions.matches(line.primarySite, /^C5[1-8]\d$/))) return false return true]]></expression> <message>Sex and Primary Site conflict</message> <description><![CDATA[If Primary site[400] = C510-C589 (female genital organs), then Sex[220] cannot = 1 (Male) or 9 (unknown) If Primary site[400] = C600-C639 (male genital organs), then Sex[220] cannot = 2 (Female) or 9 (unknown).]]></description> <history> <event version="SE14-011-01" user="" date="2013-10-25" ref="67031">Added unknown sex as invalid for sex specific sites.</event> <event version="SE16-015-01" user="kirbyk" date="2016-04-12" ref="67323">Added 5 as invalid sex for female primary site, 6 as invalid sex for male primary site.</event> <event version="SE16-015-08" user="kirbyk" date="2016-10-04" ref="67536">Removed 5 and 6 as invalid codes.</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> </history> </rule>