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

DGL.m

Go to the documentation of this file.
  1. DGL ;ALB/MJK - Utility for RAD ; 24 JAN 91 12:00 am
  1. ;;5.3;Registration;;Aug 13, 1993
  1. ;
  1. Q
  1. LOSS ; -- utility to determine if pt was an inpatient
  1. ; at time NOW ; obsolete in version 5.1
  1. ; input: NOW := inverse date/time
  1. ; DFN
  1. ; output: L := 0 not inpatient ; 1 is inpatient
  1. S VAINDT=9999999.9999-NOW D ADM^VADPT2 S L=$S(VADMVT:1,1:0)
  1. K VAINDT,VADMVT,NOW Q