MAGGTSY ;WOIFO/GEK - Imaging Utilities ; [ 06/20/2001 08:57 ] ;;3.0;IMAGING;;Mar 01, 2002 ;; +---------------------------------------------------------------+ ;; | Property of the US Government. | ;; | No permission to copy or redistribute this software is given. | ;; | Use of unreleased versions of this software requires the user | ;; | to execute a written test agreement with the VistA Imaging | ;; | Development Office of the Department of Veterans Affairs, | ;; | telephone (301) 734-0100. | ;; | | ;; | The Food and Drug Administration classifies this software as | ;; | a medical device. As such, it may not be changed in any way. | ;; | Modifications to this software may result in an adulterated | ;; | medical device under 21CFR820, the use of which is considered | ;; | to be a violation of US Federal Statutes. | ;; +---------------------------------------------------------------+ ;; Q WRKS(MAGRY,ZY) ;RPC Call for MAGSYS utility. List of Workstation Information. S ^TMP("MAGGTSY","ZY")=ZY ; N DTFR,DTTO,PACI,ACI,CT,X,Y,Z,MAGX,MAGIEN,MAGTIEN ; $P(ZY,U,1) is the Computer Name running MAGSYS. we need to know this ; in case the same computer is also logged onto Imaging. ; I $L($P(ZY,"^",1)) S MAGTIEN=$O(^MAG(2006.81,"B",$P(ZY,"^",1),"")) S DTFR=+$P(ZY,U,2),DTTO=+$P(ZY,U,3) I DTFR>DTTO S X=DTFR,DTFR=DTTO,DTTO=X I DTTO=0 S DTTO=9999999 S DTTO=DTTO_".9999" D CHECKCON S MAGRY=$NA(^TMP($J,"MAGWRKS")) K ^TMP($J,"MAGWRKS") K ^TMP($J,"MAGWSES") S I=0,CT=1 S ACI="L"_DTTO I ($P(ZY,U,4)="last")!($P(ZY,U,4)="") D . F S ACI=$O(^MAG(2006.81,"AC",ACI),-1) S PACI=$E(ACI,2,99) Q:PACI