Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: DGBTEND

DGBTEND.m

Go to the documentation of this file.
DGBTEND ;ALB/SCK - BENEFICIARY TRAVEL CLEAN-UP VARIABLES ROUTINE;12/15/92 3/19/93
 ;;1.0;Beneficiary Travel;**18,20**;September 25, 2001;Build 185
 ;
END I $G(DGBTTOUT)=1 I $D(^DGBT(392,DGBTDT,0)) F I=0,"A","D","M","R","T" S ^DGBT(392,DGBTDT,I)=$S($D(DGBTVAR(I)):DGBTVAR(I),1:"")
 G:'$D(^DGBT(392,DGBTDT,0))!($G(DGBTTOUT)=1) QUIT I '$D(DGBTACCT) S DGBTVAR(0)=^DGBT(392,DGBTDT,0),DGBTACCT=$S('$D(^DGBT(392.3,+$P(DGBTVAR(0),"^",6),0)):0,1:+$P(^DGBT(392.3,+$P(DGBTVAR(0),"^",6),0),"^",5))
 S Z="^INFORMATION^DISPLAY^EDIT",PROMPT="<I>nformation, <D>isplay claim, <E>dit claim," I DGBTACCT=4!(DGBTACCT=5) S PROMPT=PROMPT_" <P>rint form,",Z=Z_"^PRINT"
 S DIR("A")=PROMPT_" or <Q>uit ",DIR("B")="Quit",DIR("?")="^D HELP^DGBTEND",DIR(0)="SA^Q:Quit;I:Information;D:Display;E:Edit;P:Print"
 D ^DIR K DIR S X=$$UP^XLFSTR(X),ENDMENU=1 G DELETE:Y["Q"!($D(DIRUT)) D SCREEN^DGBTE:Y="I"
 S DGBTX1=$S(X="D":"SCREEN^DGBTCD",X="E":"SCREEN^DGBTCE",X="P":"START^DGBTCR",1:"") I DGBTX1]"" D @DGBTX1 D:$G(DGBTTOUT) QUIT^DGBTCE1 G:DGBTX1="START^DGBTCR" PATIENT^DGBTE G END
 G END
DELETE I '$D(^DGBT(392,DGBTDT,"A")) S %=2 W !!,"Do you want to delete this claim" D YN^DICN D:%=1 DELSP G:%=2 PATIENT^DGBTE G:%=-1 DELETE1 I %<1 D HELP1^DGBTE G DELETE
DELETE1 I '$D(^DGBT(392,DGBTDT,"A"))!($G(DGBTTOUT)=-1),'$G(DGBTOLD) W !,"This claim is incomplete and is now being deleted....." S DGBTTOUT="",DIK="^DGBT(392,",DA=DGBTDT D ^DIK   ;PAVEL - DGBT*1*20
 G:$G(DGBTTOUT)=-1 QUIT D KVAR ;G PATIENT^DGBTE
QUIT K PRCABN,DGBTMD,DGBTTOUT,ANS,DGBTREC,ERR,RETURN,DTOUT,DUOUT,MILEAGEFEE,MODEOFTRANS,NOLINE,NOSHOW,PREAUTH,QUIT,SPEQUIP,TOTALMILES,TOTINVOICE,VENDOR,VACNT,EXTRACREW,ELIGTYP
 K DISYS,DIU,DIW,DISTCITY,DGBTINTO,DGBTDL,DGBTCCT,BASERATE,AUTHORIZED,%,WAITTIME,XX,DISTZIP,DGBTOLD,RXDATA,CITYSTZIP,DGBTQ,DGQUERY,DGBTERR,DTOUT,DUOUT,RETURN,LOCRET
 K TOTRIPS,TRIP,WAIVER,ONEWAY,RT,MONTOT,LSTMTDT,MOSTENC,MSYS,STDT,RDVMSG,MDATA,PDATA,RTRIP,SDATE,EDATE,EMONTH,DIRUT,DAYFLG
QUIT1 K DGBT,DGBTA,DGBTAD,DGBTAI,DGBTAN,DGBTAS,DGBTC,DGBTCA,DGBTCD,DGBTCE,DGBTCH,DGBTCH1,DGBTCL,DGBTCN,DGBTCS,DGBTCSN,DGBTCST,DGBTDD,DGBTDTE,DGBTDTI,DGBTI,DGBTIME,DGBTMTD,DGBTMTI,DGBTNEW,DGBTP,DGBTPAP,DGBTPDE,DGBTPDT,DGBTPDTE,DGBTSCC,DGBTZ
 K DGBTMTS,DGBTCSC,DGBTELG,DGBTINC,DGBTDEP,DGBTCMTY,DTOUT,DUOUT,FDA,DGBTOTHER ; created w/ patch 35
 K DA,DFN,DIC,DIE,DINUM,DR,S,Y,X,X2,I,J,VA,VADM,VAEL,VAPA,VADAT,VADATE,VAUTD,VAUTNALL,VAUTSTR,DI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P,DGBTQ1,ACCT,D,PATCHNBR,DGBTREF,DGINC,DGBTQ,DGBTQ1
 Q
HELP ;
 W !!,"You may choose from the following: ",!!?5,"<I>nformation - to view the two informational screens",!?5,"<D>isplay - to view this claim",!?5,"<E>d it - to change this claim"
 W:DGBTACCT=4!(DGBTACCT=5) !?5,"<P>rint - to print form 70-3542d (132 columns)" W !?5,"<Q>uit - to exit from this option"
 Q
 ;
DELSP ;this will delete the Special Mode Claim
 I $G(DGBTCMTY)="S" W !,"This claim is now being deleted....." S DGBTTOUT="",DIK="^DGBT(392,",DA=DGBTDT D ^DIK G PATIENT^DGBTE
 Q