edits.seer.internal.rules.Surv-Flag_Presumed_Alive.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="Surv-Flag_Presumed_Alive" name="Surv-Flag Presumed Alive (SEER)" tag="N1983" java-path="lines.line" category="field"> <expression><![CDATA[return line.survFlagPresumedAlive == null || Functions.matches(line.survFlagPresumedAlive, /^[0-389]$/)]]></expression> <message>Surv-Flag Presumed Alive is not valid.</message> <description><![CDATA[Must be a valid Surv-Flag Presumed Alive[1786] code (0-3,8,9) or blank. Codes: 0 = Complete dates are available and there are 0 days of survival (i.e., presumed alive date last contact = date of diagnosis) 1 = Complete dates are available and there are more than 0 days of survival (i.e. presumed alive date last contact > date diagnosis) 2 = Incomplete dates are available and there could be zero days of follow-up (i.e., known components are equal, e.g. 99/99/2006 and 10/02/2006) 3 = Incomplete dates are available and there cannot be zero days of follow-up (i.e., any difference in known date components, e.g. 02/99/2006 and 03/99/2006) 8 = Not calculated because a Death Certificate Only or Autopsy Only case 9 = Unknown Blank = Not coded]]></description> <history> <event version="SE15-013-01" user="kirbyk" date="2015-01-08" ref="67151">Edit created.</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>