source: WorldVistAEHR/trunk/r/AUTOMATED_MED_INFO_EXCHANGE-DVBA-DVBC/DVBAXA1.m@ 1261

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

initial load of WorldVistAEHR

File size: 1.0 KB
Line 
1DVBAXA1 ; ;06/08/01
2 S X=DG(DQ),DIC=DIE
3 S ^DPT("BS",$E(X,6,9),DA)=""
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,0)):^(0),1:"") S X=$P(Y(1),U,20),X=X S DIU=X K Y S X=DIV S X="1" X ^DD(2,.09,1,2,1.4)
6 S X=DG(DQ),DIC=DIE
7 S ^DPT("BS5",$E(^DPT(DA,0),1)_$E(X,6,9),DA)=""
8 S X=DG(DQ),DIC=DIE
9 S A1B2TAG="PAT" D ^A1B2XFR
10 S X=DG(DQ),DIC=DIE
11 I $E(X,1,5)="00000" D SET^DGREGDD1(DA,.6,0,21,1)
12 S X=DG(DQ),DIC=DIE
13 D EVENT^IVMPLOG(DA)
14 S X=DG(DQ),DIC=DIE
15 S ^DPT("SSN",$E(X,1,30),DA)=""
16 S X=DG(DQ),DIC=DIE
17 S VADFN=DA D SET^VADPT6 K VADFN
18 S X=DG(DQ),DIC=DIE
19 S PPP=X,X="PPPFMX" X ^%ZOSF("TEST") D:$T SNSSN^PPPFMX S X=PPP K PPP
20 S X=DG(DQ),DIC=DIE
21 S IVMX=X,X="IVMPXFR" X ^%ZOSF("TEST") D:$T DPT^IVMPXFR S X=IVMX K IVMX
22 S X=DG(DQ),DIC=DIE
23 S PX=X,X="PXXDPT" X ^%ZOSF("TEST") D:$T SETSSN^PXXDPT S X=PX K PX
24 S X=DG(DQ),DIC=DIE
25 I ($T(AVAFC^VAFCDD01)'="") S VAFCF=".09;" D AVAFC^VAFCDD01(DA)
26 S X=DG(DQ),DIC=DIE
27 D:($T(ADGRU^DGRUDD01)'="") ADGRU^DGRUDD01(DA)
28 I $D(DE(6))'[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.