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

MAGNILOG.m

Go to the documentation of this file.
  1. MAGNILOG ;WOIFO/NST - LOG ACTION on IMAGES RPCS ; 14 Sep 2017 11:43 AM
  1. ;;3.0;IMAGING;**185**;Mar 19, 2002;Build 92;Aug 02, 2012
  1. ;; Per VHA Directive 2004-038, this routine should not be modified.
  1. ;; +---------------------------------------------------------------+
  1. ;; | Property of the US Government. |
  1. ;; | No permission to copy or redistribute this software is given. |
  1. ;; | Use of unreleased versions of this software requires the user |
  1. ;; | to execute a written test agreement with the VistA Imaging |
  1. ;; | Development Office of the Department of Veterans Affairs, |
  1. ;; | telephone (301) 734-0100. |
  1. ;; | The Food and Drug Administration classifies this software as |
  1. ;; | a medical device. As such, it may not be changed in any way. |
  1. ;; | Modifications to this software may result in an adulterated |
  1. ;; | medical device under 21CFR820, the use of which is considered |
  1. ;; | to be a violation of US Federal Statutes. |
  1. ;; +---------------------------------------------------------------+
  1. ;;
  1. Q
  1. ;
  1. ;***** MAGN LOG IMAGE ACCESS BY IEN
  1. ;
  1. ; RPC: MAGN LOG IMAGE ACCESS BY IEN
  1. ;
  1. ; .MAGOUT Reference to a local variable where the results are returned to
  1. ; .MAGPARAM
  1. ; MAGPARAM(0..n)=IMAGE IEN^DATA
  1. ; See LOGACT^MAGGTU6 for details on DATA
  1. ;
  1. ; Return Values
  1. ; =============
  1. ; MAGOUT(0..n) = Image IEN^1^SUCCESS
  1. ; Image IEN^0^reason for failure
  1. LOGACT(MAGOUT,MAGPARAM) ;RPC [MAGN LOG IMAGE ACCESS BY IEN]
  1. N MAGNI,MAGGRY,MAGNIEN,MAGDATA
  1. S MAGOUT=$NA(^TMP($J,"MAGNILOG"))
  1. K @MAGOUT
  1. ;
  1. S MAGNI=""
  1. F S MAGNI=$O(MAGPARAM(MAGNI)) Q:MAGNI="" D
  1. . S MAGNIEN=$P(MAGPARAM(MAGNI),U)
  1. . S MAGDATA=$P(MAGPARAM(MAGNI),U,2,99)
  1. . K MAGGRY
  1. . D LOGACT^MAGGTU6(.MAGGRY,MAGDATA)
  1. . I ($P(MAGGRY,"^")=1)!($P(MAGGRY,"^")=0) S @MAGOUT@(MAGNI)=MAGNIEN_"^"_MAGGRY
  1. . E S @MAGOUT@(MAGNI)=MAGNIEN_"^0^"_MAGGRY
  1. . Q
  1. Q