| 1 | MAGSDEL4 ;WOIFO/GEK - Find DA for Image delete function ; [ 06/20/2001 08:57 ]
 | 
|---|
| 2 |  ;;3.0;IMAGING;**8**;Sep 15, 2004
 | 
|---|
| 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
 | 
|---|
| 19 | GETDA(PPTR,DA1,MAGDA,DA) ; DA must be passed by reference.  
 | 
|---|
| 20 |  ; The Calling routine checks DA to see if a valid DA was found
 | 
|---|
| 21 |  ; for the MAGDA (Image IEN) sent.
 | 
|---|
| 22 |  N MAGX
 | 
|---|
| 23 |  D FILE^DID(PPTR,"","GLOBAL NAME","MAGRT")
 | 
|---|
| 24 |  Q:'$D(MAGRT("GLOBAL NAME"))
 | 
|---|
| 25 |  S MAGX=$G(MAGRT("GLOBAL NAME"))_DA1_",2005,""B"","_MAGDA_",0)"
 | 
|---|
| 26 |  S DA=$O(@MAGX)
 | 
|---|
| 27 |  Q
 | 
|---|