source: FOIAVistA/tag/r/HINQ-DVB--DVBA--DVBE--DVBC/DVBHCE22.m@ 1337

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

WorldVistAEHR overlayed on FOIAVistA

File size: 1.1 KB
Line 
1DVBHCE22 ; ;12/27/07
2 S X=DG(DQ),DIC=DIE
3 K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DPT(D0,0)):^(0),1:"") S X=$P(Y(1),U,10),X=X S DIU=X K Y X ^DD(2,.351,1,1,1.1) X ^DD(2,.351,1,1,1.4)
4 S X=DG(DQ),DIC=DIE
5 K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^DPT(D0,.35)):^(.35),1:"") S X=$P(Y(1),U,2),X=X S DIU=X K Y X ^DD(2,.351,1,2,1.1) X ^DD(2,.351,1,2,1.4)
6 S X=DG(DQ),DIC=DIE
7 D DSBULL^DGDEATH
8 S X=DG(DQ),DIC=DIE
9 S ^DPT("AEXP1",$E(X,1,30),DA)=""
10 S X=DG(DQ),DIC=DIE
11 D DEATH^DGOERNOT
12 S X=DG(DQ),DIC=DIE
13 S XX=X,X="PSJADT" X ^%ZOSF("TEST") S X=XX K XX I D END^PSJADT
14 S X=DG(DQ),DIC=DIE
15 S RCX=X,X="RCAMDTH" X ^%ZOSF("TEST") S X=RCX K RCX I D SET^RCAMDTH
16 S X=DG(DQ),DIC=DIE
17 D SET^DGDEPINA
18 S X=DG(DQ),DIC=DIE
19 D AUTOUPD^DGENA2(DA)
20 S X=DG(DQ),DIC=DIE
21 D START^DGMTDELS(DA)
22 S X=DG(DQ),DIC=DIE
23 I $$VERSION^XPDUTL("PSO")>6 D APSOD^PSOCAN3(DA)
24 S X=DG(DQ),DIC=DIE
25 S IVMX=X,X="IVMPXFR" X ^%ZOSF("TEST") D:$T DPT^IVMPXFR S X=IVMX K IVMX
26 S X=DG(DQ),DIC=DIE
27 I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".351;" D AVAFC^VAFCDD01(DA)
28 S X=DG(DQ),DIC=DIE
29 D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA)
30 I $D(DE(20))'[0!(^DD(DP,DIFLD,"AUDIT")'="e") S X=DG(DQ),DIIX=3_U_DIFLD D AUDIT^DIET
Note: See TracBrowser for help on using the repository browser.