ADGUTIL ; IHS/ADC/PDW/ENM - IHS ADT UTILITIES ; [ 03/25/1999 11:48 AM ]
;;5.0;ADMISSION/DISCHARGE/TRANSFER;;MAR 25, 1999
;
TIME ;ENTRY POINT to print time only
N X
S X=$E($$HTFM^XLFDT($H),1,12)
W $P($$FMTE^XLFDT(X,"2P")," ",2,3)
Q
;
CONF(X) ;EP; prints confidential message
W !?X,"*****Confidential Patient Data Covered by Privacy Act*****"
Q
;
KILL ;EP;entry point to kill all ADT variables except package-wide ones
;kill Fileman variables
K DIC,DIR,DA,DICRS,DIDEL,DIE,DIEL,DIEZ,DIFLD,DIG,DIH,DIK,DINUM
K DIOT,DIP,DIR,DIROUT,DIRUT,DIS,DIS1,DIS2,DIV,DIWF,DIXX,DL
K DLAYGO,DIB,DLOUT,DN,DNM,DO,DOW,DP,DQ,DR,DR1,DRENT
K DSC,DU,DV,DW,DWLW,DZ
K %,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,V,W,X,Y,Z ;all but U
;
;kill non-namespaced variables used by VA ADT routines
K DFN1,AD,ADMD,LL,MSG,MSG1,PTF,TDD
;
;kill system-wide variables
K DFN,SSN,AGE,DOB,SEX
;
;kill variables used by ^AUDICLK
K G,GL,LKDATA,LKPRINT,PCC
;
;kill variables used by taskman
K:$G(ZTSK)]"" ^%ZTSK(ZTSK),ZTSK
;
;kill namespaced variables
K DG0,DG1,DG1DAY,DG2,DG3,DG3T,DG4,DG5,DG55,DGA,DGA1,DGAA,DGAACT
K DGAB,DGAB1,DGAB9,DGABL,DGACNT,DGAD,DGADCNT,DGADCT,DGADM,DGADMT
K DGADP,DGADT,DGADWK,DGAGE,DGAL,DGALP,DGALT,DGALTT,DGANCT,DGAPRV
K DGAS,DGAT,DGAU,DGAV,DGAVP,DGAVT,DGAX,DGB,DGBA,DGBB,DGBDT,DGBED
K DGC,DGC1,DGC2,DGC2P,DGCAN,DGCCNT,DGCCT,DGCCTT,DGCD,DGCHART,DGCHT
K DGCH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 ;
CONF(X) ;EP; prints confidential message
+1 WRITE !?X,"*****Confidential Patient Data Covered by Privacy Act*****"
+2 QUIT
+3 ;
KILL ;EP;entry point to kill all ADT variables except package-wide ones
+1 ;kill Fileman variables
+2 KILL DIC,DIR,DA,DICRS,DIDEL,DIE,DIEL,DIEZ,DIFLD,DIG,DIH,DIK,DINUM
+3 KILL DIOT,DIP,DIR,DIROUT,DIRUT,DIS,DIS1,DIS2,DIV,DIWF,DIXX,DL
+4 KILL DLAYGO,DIB,DLOUT,DN,DNM,DO,DOW,DP,DQ,DR,DR1,DRENT
+5 KILL DSC,DU,DV,DW,DWLW,DZ
+6 ;all but U
KILL %,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,V,W,X,Y,Z
+7 ;
+8 ;kill non-namespaced variables used by VA ADT routines
+9 KILL DFN1,AD,ADMD,LL,MSG,MSG1,PTF,TDD
+10 ;
+11 ;kill system-wide variables
+12 KILL DFN,SSN,AGE,DOB,SEX
+13 ;
+14 ;kill variables used by ^AUDICLK
+15 KILL G,GL,LKDATA,LKPRINT,PCC
+16 ;
+17 ;kill variables used by taskman
+18 IF $GET(ZTSK)]""
KILL ^%ZTSK(ZTSK),ZTSK
+19 ;
+20 ;kill namespaced variables
+21 KILL DG0,DG1,DG1DAY,DG2,DG3,DG3T,DG4,DG5,DG55,DGA,DGA1,DGAA,DGAACT
+22 KILL DGAB,DGAB1,DGAB9,DGABL,DGACNT,DGAD,DGADCNT,DGADCT,DGADM,DGADMT
+23 KILL DGADP,DGADT,DGADWK,DGAGE,DGAL,DGALP,DGALT,DGALTT,DGANCT,DGAPRV
+24 KILL DGAS,DGAT,DGAU,DGAV,DGAVP,DGAVT,DGAX,DGB,DGBA,DGBB,DGBDT,DGBED
+25 KILL DGC,DGC1,DGC2,DGC2P,DGCAN,DGCCNT,DGCCT,DGCCTT,DGCD,DGCHART,DGCHT
+26 KILL DGCHTX,DGCITY,DGCMT,DGCN,DGCNT,DGCOM,DGCOPY,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