source: WorldVistAEHR/trunk/r/REGISTRATION-DGQE-DG-DPT-GRPX-VAD-VAF-VAS-VAT-VAU--VA-VIC--DGBT--DGJ--DGYA--VALM/DGREGDEL.m@ 975

Last change on this file since 975 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 873 bytes
RevLine 
[613]1DGREGDEL ;ALB/XAK - DELETE A REGISTRATION ;01 JAN 86
2 ;;5.3;Registration;**107**;Aug 13, 1993
3FIND W !! S DIC="^DPT(",DIC(0)="AEQMZ",DIC("S")="S I=$O(^DPT(Y,""DIS"",0)),I=$S(I>0:^(I,0),1:"""") I I]"""",'$P(I,U,6)" D ^DIC K DIC("S"),DIC("A") G Q:Y'>0 S (DA,DFN)=+Y
4 S I=$O(^DPT(DFN,"DIS",0)) I I']"" W !!,"No registrations on file." G FIND
5 S X=^DPT(DFN,"DIS",I,0) I $P(X,"^",6),$P(X,"^",7) W !!,"All registrations are dispositioned." G FIND
6 S:'$D(^DPT(DA,"DIS",0)) ^(0)="^2.101D^"_I_"^"
7 W ! N IOM S DIC="^DPT("_DFN_",""DIS"",",DA=I,DR=0,IOM=40 D EN^DIQ
8W W !,"Are you sure you want to delete this registration" S %=2 D YN^DICN I %,%'=1 G FIND
9 I '% W !!?4,*7,"YES - If you want to permanently remove this registration.",!?4,"NO - If you wish to retain this registration data on file.",! G W
10 S DIK=DIC,DA(1)=DFN D ^DIK W !,"Deleted.",! G FIND
11Q K DIC,DIK,DA,DFN,DGIOM Q
Note: See TracBrowser for help on using the repository browser.