FBAAPDM ;AISC/GRR-CREATE PATIENT MRA DELETE TRANSACTION ;27AUG87
 ;;3.5;FEE BASIS;;JAN 30, 1995
 ;;Per VHA Directive 10-93-142, this routine should not be modified.
RD W !! S DIC="^FBAAA(",DIC(0)="AEQM" D ^DIC G END:X="^"!(X=""),RD:Y<0 S (DA,DFN)=+Y
 I '$D(^DPT(DFN,0)) W !!,"Patient has been deleted from the Patient file, cannot create transaction!" G RD
 S FBTTYPE="D",D1="" D MORE^FBAAAUT W !!,"Delete MRA has been created!" G RD
END K DA,DFN,DIC,Y,D1 Q
 
--- Routine Detail   --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HFBAAPDM   465     printed  Sep 23, 2025@19:32:03                                                                                                                                                                                                      Page 2
FBAAPDM   ;AISC/GRR-CREATE PATIENT MRA DELETE TRANSACTION ;27AUG87
 +1       ;;3.5;FEE BASIS;;JAN 30, 1995
 +2       ;;Per VHA Directive 10-93-142, this routine should not be modified.
RD         WRITE !!
           SET DIC="^FBAAA("
           SET DIC(0)="AEQM"
           DO ^DIC
           if X="^"!(X="")
               GOTO END
           if Y<0
               GOTO RD
           SET (DA,DFN)=+Y
 +1        IF '$DATA(^DPT(DFN,0))
               WRITE !!,"Patient has been deleted from the Patient file, cannot create transaction!"
               GOTO RD
 +2        SET FBTTYPE="D"
           SET D1=""
           DO MORE^FBAAAUT
           WRITE !!,"Delete MRA has been created!"
           GOTO RD
END        KILL DA,DFN,DIC,Y,D1
           QUIT