- MAGNISET ;WOIFO/NST - UPDATES IMAGES RPCS ; 12 Sep 2017 11:43 AM
- ;;3.0;IMAGING;**185**;Mar 19, 2002;Build 92;Aug 02, 2012
- ;; Per VHA Directive 2004-038, this routine should not be modified.
- ;; +---------------------------------------------------------------+
- ;; | 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
- ;
- ;***** Updates one or more image properties
- ;
- ; RPC: MAGN SET IMAGES PROPS BY IEN
- ;
- ; .MAGOUT Reference to a local variable where the results are returned to
- ; .MAGPARAM
- ; MAGPARAM(0..n)=IMAGE IEN^Parameter name^Value
- ;
- ; Return Values
- ; =============
- ; MAGOUT(0..n) = IMAGE IEN^1^Ok
- ; IMAGE IEN^0^reason for failure
- ;
- ; Note: See RPC [MAGG IMAGE SET PROPERTIES] for more details
- ;
- SETIMGS(MAGOUT,MAGPARAM) ;RPC [MAGN SET IMAGES PROPS BY IEN]
- N MAGNI,MAGGRY,MAGNIEN,FLAGS,PROPVALS
- K MAGOUT
- ;
- S MAGNI=""
- F S MAGNI=$O(MAGPARAM(MAGNI)) Q:MAGNI="" D
- . S MAGNIEN=$P(MAGPARAM(MAGNI),"^",1) ; Image IEN
- . S PROPVALS(1)=$P(MAGPARAM(MAGNI),"^",2)_"^^"_$P(MAGPARAM(MAGNI),"^",3)
- . S FLAGS=$P(MAGPARAM(MAGNI),"^",4) ; Flags
- . K MAGGRY
- . D SETPROPS^MAGGA02(.MAGGRY,MAGNIEN,FLAGS,.PROPVALS)
- . S MAGOUT(MAGNI)=MAGNIEN_"^"_MAGGRY(0)
- . Q
- Q
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGNISET 2045 printed Feb 18, 2025@23:33:45 Page 2
- MAGNISET ;WOIFO/NST - UPDATES IMAGES RPCS ; 12 Sep 2017 11:43 AM
- +1 ;;3.0;IMAGING;**185**;Mar 19, 2002;Build 92;Aug 02, 2012
- +2 ;; Per VHA Directive 2004-038, this routine should not be modified.
- +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 ;; | The Food and Drug Administration classifies this software as |
- +11 ;; | a medical device. As such, it may not be changed in any way. |
- +12 ;; | Modifications to this software may result in an adulterated |
- +13 ;; | medical device under 21CFR820, the use of which is considered |
- +14 ;; | to be a violation of US Federal Statutes. |
- +15 ;; +---------------------------------------------------------------+
- +16 ;;
- +17 QUIT
- +18 ;
- +19 ;***** Updates one or more image properties
- +20 ;
- +21 ; RPC: MAGN SET IMAGES PROPS BY IEN
- +22 ;
- +23 ; .MAGOUT Reference to a local variable where the results are returned to
- +24 ; .MAGPARAM
- +25 ; MAGPARAM(0..n)=IMAGE IEN^Parameter name^Value
- +26 ;
- +27 ; Return Values
- +28 ; =============
- +29 ; MAGOUT(0..n) = IMAGE IEN^1^Ok
- +30 ; IMAGE IEN^0^reason for failure
- +31 ;
- +32 ; Note: See RPC [MAGG IMAGE SET PROPERTIES] for more details
- +33 ;
- SETIMGS(MAGOUT,MAGPARAM) ;RPC [MAGN SET IMAGES PROPS BY IEN]
- +1 NEW MAGNI,MAGGRY,MAGNIEN,FLAGS,PROPVALS
- +2 KILL MAGOUT
- +3 ;
- +4 SET MAGNI=""
- +5 FOR
- SET MAGNI=$ORDER(MAGPARAM(MAGNI))
- if MAGNI=""
- QUIT
- Begin DoDot:1
- +6 ; Image IEN
- SET MAGNIEN=$PIECE(MAGPARAM(MAGNI),"^",1)
- +7 SET PROPVALS(1)=$PIECE(MAGPARAM(MAGNI),"^",2)_"^^"_$PIECE(MAGPARAM(MAGNI),"^",3)
- +8 ; Flags
- SET FLAGS=$PIECE(MAGPARAM(MAGNI),"^",4)
- +9 KILL MAGGRY
- +10 DO SETPROPS^MAGGA02(.MAGGRY,MAGNIEN,FLAGS,.PROPVALS)
- +11 SET MAGOUT(MAGNI)=MAGNIEN_"^"_MAGGRY(0)
- +12 QUIT
- End DoDot:1
- +13 QUIT