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

MAGVRS06.m

Go to the documentation of this file.
  1. MAGVRS06 ;WOIFO/MLH,DAC - RPC calls for DICOM file processing ; Mar 31, 2021@09:48:26
  1. ;;3.0;IMAGING;**118,257,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. ATPROC(OUT,PROCATTS) ;RPC - create a new procedure reference
  1. L +^MAGV(2005.61):60 E D ; P257 DAC - Lock Procedure Reference file to prevent duplicates
  1. . S OUT(1)="-99"_$$STATSEP^MAGVRS41_"Procedure Reference file is locked"
  1. Q:$D(OUT(1))
  1. D ATTACH^MAGVRS41(.OUT,2005.61,.PROCATTS)
  1. L -^MAGV(2005.61)
  1. Q
  1. CREPAT(OUT,PATATTS) ;RPC - create a new patient reference
  1. L +^MAGV(2005.6):60 E D ; P257 DAC - Lock Patient Reference file to prevent duplicates
  1. . S OUT(1)="-99"_$$STATSEP^MAGVRS41_"Patient Reference file is locked"
  1. Q:$D(OUT(1))
  1. D ATTACH^MAGVRS41(.OUT,2005.6,.PATATTS)
  1. L -^MAGV(2005.6)
  1. Q
  1. UPDPAT(OUT,PATATTS,OVERRIDE) ;RPC - update patient
  1. D UPDATE^MAGVRS41(.OUT,2005.6,.PATATTS,$G(OVERRIDE))
  1. Q
  1. FINDPAT(OUT,PATATTS) ; RPC - find patient by attributes
  1. D STATUS^MAGVRS07(.PATATTS)
  1. D FINDBYAT^MAGVRS42(.OUT,2005.6,.PATATTS)
  1. Q
  1. INPAT(OUT,PATIEN) ; RPC - inactivate patient
  1. D INACTIVT^MAGVRS41(.OUT,2005.6,$G(PATIEN),0,0)
  1. Q