Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: NURSAPCH

NURSAPCH.m

Go to the documentation of this file.
  1. NURSAPCH ;HIRMFO/JH,RM,FT-CHECKS FOR PATIENTS ON ABSENCE ;4/30/96 16:37
  1. ;;4.0;NURSING SERVICE;;Apr 25, 1997
  1. ;
  1. ; DFN is defined before entering the routine.
  1. ; Routine checks patients on absence from the hospital.
  1. ; NURSX is the result of this function.
  1. ;
  1. D IN5^VADPT I 'VAERR S:VAIP(10)="" NURSX="ERROR" S:VAIP(10)'="" NURSUB=$S(VAIP(10):0,1:+VAIP(4)) G X:VAIP(10)'="",QUIT
  1. S NURSX="ERROR" G QUIT
  1. X S NURSX=$S("^1^2^"[("^"_NURSUB_"^"):"LEAVE","^3^"[("^"_NURSUB_"^"):"AWOL","^43^45^"[("^"_NURSUB_"^"):"OTH. FAC.",1:"N/A")
  1. QUIT ; KILL LOCAL VARIABLES
  1. K NURSA,NURSUB,NURSUB1,NURSTRAN,NS1,VAIP,VAERR
  1. Q