Ignore:
Timestamp:
Dec 4, 2009, 12:11:15 AM (14 years ago)
Author:
George Lilly
Message:

revised back to 6/30/08 version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WorldVistAEHR/trunk/r/IMAGING-MAG-ZMAG/MAGGTSYS.m

    r613 r623  
    1 MAGGTSYS        ;WOIFO/GEK - Calls from Imaging windows for System Manager ; [ 06/20/2001 08:57 ]
    2         ;;3.0;IMAGING;**59**;Nov 27, 2007;Build 20
    3         ;;Per VHA Directive 2004-038, this routine should not be modified.
    4         ;; +---------------------------------------------------------------+
    5         ;; | Property of the US Government.                                |
    6         ;; | No permission to copy or redistribute this software is given. |
    7         ;; | Use of unreleased versions of this software requires the user |
    8         ;; | to execute a written test agreement with the VistA Imaging    |
    9         ;; | Development Office of the Department of Veterans Affairs,     |
    10         ;; | telephone (301) 734-0100.                                     |
    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
    19 GETS(MAGRY,NODE,FLAGS)  ; USE GETS^DIQ TO GET FIELD VALUES.
    20         K MAGWIN,I,CT,Y,NC,MAGOUT,MAGERR,TNC,ZZ
    21         S MAGRY=$NA(^TMP("MAGNODE",$J))
    22         S NODE=+$G(NODE)
    23         I 'NODE S NODE=$P(^MAG(2005,0),U,3)
    24         S MAGWIN=$$BROKER^XWBLIB
    25         I 'MAGWIN W !,"NODE","  ",NODE
    26         K @MAGRY
    27         S @MAGRY@(0)="******    Fields for Image IEN: "_NODE_"    ******"
    28         S I=0,CT=0
    29         S FLAGS=$S($L($G(FLAGS)):FLAGS,1:"IERN")
    30         D GETS^DIQ(2005,NODE,"*",FLAGS,"MAGOUT","MAGERR")
    31         ;D GETS^DIQ(2005,NODE,".01;1;2;2.1;2.2;3;5;6;12","R","MAGOUT","MAGERR")
    32         S NC=NODE_","
    33         S I="" F  S I=$O(MAGOUT(2005,NC,I)) Q:I=""  D
    34         . S CT=CT+1
    35         . I $G(MAGOUT(2005,NC,I,"I"))=$G(MAGOUT(2005,NC,I,"E")) D  Q
    36         . . S ZZ=I,$E(ZZ,45,999)=" = "_$G(MAGOUT(2005,NC,I,"E"))
    37         . . S @MAGRY@(CT)=ZZ
    38         . . ;S @MAGRY@(CT)=I_" = "_MAGOUT(2005,NC,I,"E") Q
    39         . . Q
    40         . ;
    41         . S ZZ=I,$E(ZZ,25,999)=" = ("_$G(MAGOUT(2005,NC,I,"I"))_") "
    42         . I ($L(ZZ)>44) S ZZ=ZZ_" = "_$G(MAGOUT(2005,NC,I,"E")) S @MAGRY@(CT)=ZZ Q
    43         . I ($L(ZZ)<45) S $E(ZZ,45,999)=" = "_$G(MAGOUT(2005,NC,I,"E")) S @MAGRY@(CT)=ZZ Q
    44         . ;S @MAGRY@(CT)=I_" = ("_$G(MAGOUT(2005,NC,I,"I"))_") = "_$G(MAGOUT(2005,NC,I,"E"))
    45         . Q
    46         I $P($G(^MAG(2005,NODE,2)),"^",6)=8925 D
    47         . K MAGOUT,MAGERR
    48         . S CT=CT+1,@MAGRY@(CT)="   ***************   TIU    *************** "
    49         . S CT=CT+1,@MAGRY@(CT)="   **** Field Values for TIUDA: "_$P(^MAG(2005,NODE,2),"^",7)_"  ****"
    50         . D GETS^DIQ(8925,$P(^MAG(2005,NODE,2),"^",7),"*",FLAGS,"MAGOUT","MAGERR")
    51         . S NC=$P(^MAG(2005,NODE,2),"^",7)_","
    52         . S I="" F  S I=$O(MAGOUT(8925,NC,I)) Q:I=""  D
    53         . . S CT=CT+1
    54         . . I $G(MAGOUT(8925,NC,I,"I"))=$G(MAGOUT(8925,NC,I,"E")) D  Q
    55         . . . S ZZ=I,$E(ZZ,45,999)=" = "_$G(MAGOUT(8925,NC,I,"E"))
    56         . . . S @MAGRY@(CT)=ZZ
    57         . . . ;S @MAGRY@(CT)=I_" = "_MAGOUT(2005,NC,I,"E") Q
    58         . . . Q
    59         . . ;
    60         . . S ZZ=I,$E(ZZ,25,999)=" = ("_$G(MAGOUT(8925,NC,I,"I"))_") "
    61         . . I ($L(ZZ)>44) S ZZ=ZZ_" = "_$G(MAGOUT(8925,NC,I,"E")) S @MAGRY@(CT)=ZZ Q
    62         . . I ($L(ZZ)<45) S $E(ZZ,45,999)=" = "_$G(MAGOUT(8925,NC,I,"E")) S @MAGRY@(CT)=ZZ Q
    63         . . ;S @MAGRY@(CT)=I_" = ("_$G(MAGOUT(2005,NC,I,"I"))_") = "_$G(MAGOUT(2005,NC,I,"E"))
    64         . . Q
    65         . Q
    66         Q
     1MAGGTSYS ;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 to show node of Image File
     20 ;  NODE is the IEN of Image File :  ^MAG(2005,NODE
     21 N Y
     22 S MAGRY=$NA(^TMP("MAGNODE",$J))
     23 S NODE=+$G(NODE)
     24 I 'NODE S NODE=$P(^MAG(2005,0),U,3)
     25 N MAGWIN,I,CT,X
     26 S MAGWIN=$$BROKER^XWBLIB
     27 K @MAGRY
     28 ;S @MAGRY@(0)="Display Imaging File NODE "_$S(NODE:NODE,1:"LAST")
     29 S I=0,CT=0
     30 I 'MAGWIN W !,"NODE","  ",NODE
     31 S I="^MAG(2005,"_NODE_","""")"
     32 F  S X=$Q(@I) S I=X Q:$P(X,",",2)'=NODE  D
     33 . S CT=CT+1,@MAGRY@(CT)=X_" "_@X
     34 . I 'MAGWIN W !,X," ",@X
     35 ;
     36 Q
     37GETS(MAGRY,NODE,FLAGS) ; USE GETS^DIQ TO GET FIELD VALUES.
     38 N Y
     39 S MAGRY=$NA(^TMP("MAGNODE",$J))
     40 S NODE=+$G(NODE)
     41 I 'NODE S NODE=$P(^MAG(2005,0),U,3)
     42 N MAGWIN,I,CT
     43 S MAGWIN=$$BROKER^XWBLIB
     44 K @MAGRY
     45 S @MAGRY@(0)="Fields for Image IEN: "_NODE
     46 S I=0,CT=0
     47 I 'MAGWIN W !,"NODE","  ",NODE
     48 N MAGOUT,MAGERR
     49 S FLAGS=$S($L($G(FLAGS)):FLAGS,1:"IERN")
     50 D GETS^DIQ(2005,NODE,"*",FLAGS,"MAGOUT","MAGERR")
     51 ;D GETS^DIQ(2005,NODE,".01;1;2;2.1;2.2;3;5;6;12","R","MAGOUT","MAGERR")
     52 S NNODE=NODE_","
     53 S I="" F  S I=$O(MAGOUT(2005,NNODE,I)) Q:I=""  D
     54 . S CT=CT+1
     55 . I $G(MAGOUT(2005,NNODE,I,"I"))=$G(MAGOUT(2005,NNODE,I,"E")) S @MAGRY@(CT)=I_" = "_MAGOUT(2005,NNODE,I,"E") Q
     56 . S @MAGRY@(CT)=I_" = ("_$G(MAGOUT(2005,NNODE,I,"I"))_") = "_$G(MAGOUT(2005,NNODE,I,"E"))
     57 Q
Note: See TracChangeset for help on using the changeset viewer.