source: WorldVistAEHR/trunk/r/IMAGING-MAG-ZMAG/MAGGTSY2.m@ 1096

Last change on this file since 1096 was 623, checked in by George Lilly, 15 years ago

revised back to 6/30/08 version

File size: 1.4 KB
Line 
1MAGGTSY2 ;WOIFO/GEK - Calls from Imaging windows for System Manager ; [ 06/20/2001 08:57 ]
2 ;;3.0;IMAGING;;Mar 01, 2002
3 ;; +---------------------------------------------------------------+
4 ;; | Property of the US Government. |
5 ;; | No permission to copy or redistribute this software is given. |
6 ;; | Use of unreleased versions of this software requires the user |
7 ;; | to execute a written test agreement with the VistA Imaging |
8 ;; | Development Office of the Department of Veterans Affairs, |
9 ;; | telephone (301) 734-0100. |
10 ;; | |
11 ;; | The Food and Drug Administration classifies this software as |
12 ;; | a medical device. As such, it may not be changed in any way. |
13 ;; | Modifications to this software may result in an adulterated |
14 ;; | medical device under 21CFR820, the use of which is considered |
15 ;; | to be a violation of US Federal Statutes. |
16 ;; +---------------------------------------------------------------+
17 ;;
18 Q
19MAG(MAGRY,NODE) ; RPC Call for MAGSYS utility. Returns Global Node.
20 N CT,I,X,Y
21 S MAGRY=$NA(^TMP("MAGNODE",$J))
22 S NODE=+$G(NODE)
23 I 'NODE S NODE=$P(^MAG(2005,0),U,3)
24 K @MAGRY
25 ;S @MAGRY@(0)="Display Imaging File NODE "_$S(NODE:NODE,1:"LAST")
26 S I=0,CT=0
27 S I="^MAG(2005,"_NODE_","""")"
28 F S X=$Q(@I) S I=X Q:$P(X,",",2)'=NODE D
29 . S CT=CT+1,@MAGRY@(CT)=X_" "_@X
30 Q
Note: See TracBrowser for help on using the repository browser.