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

MAGVRS07.m

Go to the documentation of this file.
  1. MAGVRS07 ;WOIFO/MLH - RPC calls for DICOM file processing ; 15 Apr 2010 4:05 PM
  1. ;;3.0;IMAGING;**118,278**;Mar 19, 2002;Build 138
  1. ;; Per VA Directive 6402, 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. GETPROC(OUT,PROCIEN,STUDYIEN,OVERRIDE) ;RPC - get study data
  1. D REFRESH^MAGVRS41(.OUT,2005.62,STUDYIEN,$G(PROCIEN),$G(OVERRIDE))
  1. Q
  1. INPROC(OUT,PROCIEN,PATIEN,OVERRIDE) ;RPC - inactivate a procedure
  1. D INACTIVT^MAGVRS41(.OUT,2005.61,PROCIEN,$G(PATIEN),$G(OVERRIDE))
  1. Q
  1. FINDPROC(OUT,PROCATTS) ;RPC - find a procedure given attributes
  1. D STATUS(.PROCATTS)
  1. D FINDBYAT^MAGVRS42(.OUT,2005.61,.PROCATTS)
  1. Q
  1. STATUS(PROCATTS) ; STATUS is required; add "STATUS`A" if not passed in
  1. N ATT,FOUND
  1. S (ATT,FOUND)=0
  1. F S ATT=$O(PROCATTS(ATT)) Q:'ATT!FOUND D
  1. . I $P(PROCATTS(ATT),"`")="STATUS" S FOUND=1
  1. ; STATUS was passed in, don't override
  1. Q:FOUND
  1. ; Find the highest/last attribute subscript
  1. S ATT="" F S ATT=$O(PROCATTS(ATT),-1) Q:ATT=""!$G(ATT)
  1. ; Quit if no attributes
  1. Q:'ATT
  1. ; Default to procedures having STATUS=ACCESSIBLE
  1. S PROCATTS(ATT+1)="STATUS`A"
  1. Q