- MAGSDEL4 ;WOIFO/GEK - Find DA for Image delete function ; [ 06/20/2001 08:57 ]
- ;;3.0;IMAGING;**8**;Sep 15, 2004
- ;; +---------------------------------------------------------------+
- ;; | 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
- GETDA(PPTR,DA1,MAGDA,DA) ; DA must be passed by reference.
- ; The Calling routine checks DA to see if a valid DA was found
- ; for the MAGDA (Image IEN) sent.
- N MAGX
- D FILE^DID(PPTR,"","GLOBAL NAME","MAGRT")
- Q:'$D(MAGRT("GLOBAL NAME"))
- S MAGX=$G(MAGRT("GLOBAL NAME"))_DA1_",2005,""B"","_MAGDA_",0)"
- S DA=$O(@MAGX)
- Q
- --- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGSDEL4 1450 printed Feb 18, 2025@23:34:41 Page 2
- MAGSDEL4 ;WOIFO/GEK - Find DA for Image delete function ; [ 06/20/2001 08:57 ]
- +1 ;;3.0;IMAGING;**8**;Sep 15, 2004
- +2 ;; +---------------------------------------------------------------+
- +3 ;; | Property of the US Government. |
- +4 ;; | No permission to copy or redistribute this software is given. |
- +5 ;; | Use of unreleased versions of this software requires the user |
- +6 ;; | to execute a written test agreement with the VistA Imaging |
- +7 ;; | Development Office of the Department of Veterans Affairs, |
- +8 ;; | telephone (301) 734-0100. |
- +9 ;; | |
- +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
- GETDA(PPTR,DA1,MAGDA,DA) ; DA must be passed by reference.
- +1 ; The Calling routine checks DA to see if a valid DA was found
- +2 ; for the MAGDA (Image IEN) sent.
- +3 NEW MAGX
- +4 DO FILE^DID(PPTR,"","GLOBAL NAME","MAGRT")
- +5 if '$DATA(MAGRT("GLOBAL NAME"))
- QUIT
- +6 SET MAGX=$GET(MAGRT("GLOBAL NAME"))_DA1_",2005,""B"","_MAGDA_",0)"
- +7 SET DA=$ORDER(@MAGX)
- +8 QUIT