| RETURN PARAMETER DESCRIPTION |
RETURN: DSIC=$NA(^TMP("VSIT",$J))
p5 = patient status in/out code (from field 15002)
p6 = clinic stop ien (pointer to file 40.7;external name)
If problems return @DSIC@(1) = -1^message
^TMP("VSIT",$J,visit ien,n) = p1^p2^p3^p4^p5^p6 where
p1 = FM date.time;external date.time
p2 = location pointer;external value
if visit's service category '= "H" then from file 44
else then from file #9999999.06
p3 = service category code (from field .07)
p4 = service connected (external value from field 80001)
|