edits.seer.internal.rules.Sex.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.
The newest version!
<rule id="Sex" name="Sex (SEER Sex)" tag="N0012" java-path="lines.line" category="field"> <expression><![CDATA[return line.sex != null && Functions.matches(line.sex, /^[1234569]$/)]]></expression> <message>Sex is not valid.</message> <description><![CDATA[Valid codes for Sex[220] are 1-6,9. 1 = Male 2 = Female 3 = Other (intersex, disorders of sexual development/DSD) 4 = Transsexual, NOS 5 = Transsexual, natal male 6 = Transsexual, natal female 9 = Not stated (unknown)]]></description> <history> <event version="SE15-013-01" user="kirbyk" date="2015-01-07" ref="67134">Added code 5 and 6. Updated code 4.</event> <event version="SE16-015-01" user="kirbyk" date="2016-03-29" ref="67232">Updated description for code 3.</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>