MAGVAD01 ;WOIFO/NST - Delete records in storage files ; 11 Mar 2010 4:39 PM
;;3.0;IMAGING;**118**;Mar 19, 2002;Build 4525;May 01, 2013
;; Per VHA Directive 2004-038, this routine should not be modified.
;; +---------------------------------------------------------------+
;; | 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
;***** Delete a record in STORAGE PROVIDER AVAILABILITY file (#2006.924)
;
; RPC:MAGVA DELETE PROVAVAILTY
;
; Input Parameters
; ================
; MAGPARAM("PK") = IEN in STORAGE PROVIDER AVAILABILITY file (#2006.924)
;
; Return Values
; =============
;
; if error MAGRY = Failure status ^ Error message ^
; if success MAGRY = Success Status
;
DELPA(MAGRY,MAGPARAM) ; RPC [MAGVA DELETE PROVAVAILTY]
N DA,DIK
;
S DIK=$$GETFILGL^MAGVAF01(2006.924)
S DA=MAGPARAM("PK")
D ^DIK
S MAGRY=$$OK^MAGVAF02()
Q
;
;***** Delete a record in RETENTION POLICY STORAGE PROVIDER MAP file (#2006.923)
;
; RPC:MAGVA DELETE RETPOL PROV MAP
;
; Input Parameters
; ================
;
; MAGPARAM("PK") = IEN in RETENTION POLICY STORAGE PROVIDER MAP file (#2006.923)
;
; Return Values
; =============
;
; if error MAGRY = Failure status ^ Error message ^
; if success MAGRY = Success Status
;
DELRPPM(MAGRY,MAGPARAM) ; RPC [MAGVA DELETE RETPOL PROV MAP]
N DA,DIK
;
S DIK=$$GETFILGL^MAGVAF01(2006.923)
S DA=MAGPARAM("PK")
D ^DIK
S MAGRY=$$OK^MAGVAF02()
Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HMAGVAD01 2301 printed Nov 22, 2024@17:19:21 Page 2
MAGVAD01 ;WOIFO/NST - Delete records in storage files ; 11 Mar 2010 4:39 PM
+1 ;;3.0;IMAGING;**118**;Mar 19, 2002;Build 4525;May 01, 2013
+2 ;; Per VHA Directive 2004-038, this routine should not be modified.
+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 ;; | 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
+18 ;***** Delete a record in STORAGE PROVIDER AVAILABILITY file (#2006.924)
+19 ;
+20 ; RPC:MAGVA DELETE PROVAVAILTY
+21 ;
+22 ; Input Parameters
+23 ; ================
+24 ; MAGPARAM("PK") = IEN in STORAGE PROVIDER AVAILABILITY file (#2006.924)
+25 ;
+26 ; Return Values
+27 ; =============
+28 ;
+29 ; if error MAGRY = Failure status ^ Error message ^
+30 ; if success MAGRY = Success Status
+31 ;
DELPA(MAGRY,MAGPARAM) ; RPC [MAGVA DELETE PROVAVAILTY]
+1 NEW DA,DIK
+2 ;
+3 SET DIK=$$GETFILGL^MAGVAF01(2006.924)
+4 SET DA=MAGPARAM("PK")
+5 DO ^DIK
+6 SET MAGRY=$$OK^MAGVAF02()
+7 QUIT
+8 ;
+9 ;***** Delete a record in RETENTION POLICY STORAGE PROVIDER MAP file (#2006.923)
+10 ;
+11 ; RPC:MAGVA DELETE RETPOL PROV MAP
+12 ;
+13 ; Input Parameters
+14 ; ================
+15 ;
+16 ; MAGPARAM("PK") = IEN in RETENTION POLICY STORAGE PROVIDER MAP file (#2006.923)
+17 ;
+18 ; Return Values
+19 ; =============
+20 ;
+21 ; if error MAGRY = Failure status ^ Error message ^
+22 ; if success MAGRY = Success Status
+23 ;
DELRPPM(MAGRY,MAGPARAM) ; RPC [MAGVA DELETE RETPOL PROV MAP]
+1 NEW DA,DIK
+2 ;
+3 SET DIK=$$GETFILGL^MAGVAF01(2006.923)
+4 SET DA=MAGPARAM("PK")
+5 DO ^DIK
+6 SET MAGRY=$$OK^MAGVAF02()
+7 QUIT