source: WorldVistAEHR/trunk/r/INTEGRATED_BILLING-IB-PRQ--IBD--IBQ--PRQS/IBXA1.m@ 1154

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

initial load of WorldVistAEHR

File size: 2.7 KB
Line 
1IBXA1 ; COMPILED XREF FOR FILE #350 ; 10/08/06
2 ;
3 S DIKZK=2
4 S DIKZ(0)=$G(^IB(DA,0))
5 S X=$P(DIKZ(0),U,2)
6 I X'="" K ^IB("C",$E(X,1,30),DA)
7 S X=$P(DIKZ(0),U,2)
8 I X'="" I $D(^IB(DA,0)),$P(^(0),"^",17) K ^IB("AFDT",X,-$P(^(0),"^",17),DA)
9 S X=$P(DIKZ(0),U,2)
10 I X'="" I $D(^IB(DA,1)),$P(^(1),"^",2) K ^IB("APTDT",X,$P(^(1),"^",2),DA)
11 S X=$P(DIKZ(0),U,2)
12 I X'="" I $D(^IB(DA,0)),$P(^(0),U,5)=8 K ^IB("AH",X,DA)
13 S X=$P(DIKZ(0),U,2)
14 I X'="" I $D(^IB(DA,0)),$P(^(0),U,5)=99 K ^IB("AI",X,DA)
15 S X=$P(DIKZ(0),U,2)
16 I X'="" I X,$D(^IB(DA,1)),$P(^(1),"^",5) K ^IB("ACVA",X,$P(^(1),"^",5),DA)
17 S X=$P(DIKZ(0),U,2)
18 I X'="" K ^IB("AJ",X,DA)
19 S X=$P(DIKZ(0),U,3)
20 I X'="" K ^IB("AE",$E(X,1,30),DA)
21 S X=$P(DIKZ(0),U,5)
22 I X'="" K ^IB("AC",$E(X,1,30),DA)
23 S X=$P(DIKZ(0),U,5)
24 I X'="" D
25 .N DIK,DIV,DIU,DIN
26 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IB(D0,1)):^(1),1:"") S X=$P(Y(1),U,3),X=X S DIU=X K Y S X=DIV S X=$S($D(IBDUZ):IBDUZ,$D(DUZ):DUZ,1:.5) S DIH=$G(^IB(DIV(0),1)),DIV=X S $P(^(1),U,3)=DIV,DIH=350,DIG=13 D ^DICR
27 S X=$P(DIKZ(0),U,5)
28 I X'="" D
29 .N DIK,DIV,DIU,DIN
30 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(1)=$S($D(^IB(D0,1)):^(1),1:"") S X=$P(Y(1),U,4),X=X S DIU=X K Y S X=DIV S %=$P($H,",",2),X=DT_(%\60#60/100+(%\3600)+(%#60/10000)/100) X ^DD(350,.05,1,3,2.4)
31 S X=$P(DIKZ(0),U,5)
32 I X'="" I $D(^IB(DA,0)),$P(^(0),"^",16) K ^IB("ACT",$P(^(0),"^",16),DA)
33 S X=$P(DIKZ(0),U,5)
34 I X'="" I $P(^IB(DA,0),U,2) K ^IB("AH",$P(^IB(DA,0),U,2),DA)
35 S X=$P(DIKZ(0),U,5)
36 I X'="" I $P(^IB(DA,0),U,2) K ^IB("AI",$P(^IB(DA,0),U,2),DA)
37 S X=$P(DIKZ(0),U,5)
38 I X'="" I $P(^IB(DA,0),U,2) K ^IB("AJ",$P(^IB(DA,0),U,2),DA)
39 S X=$P(DIKZ(0),U,5)
40 I X'="" I $D(^IB(DA,1)),$P(^IB(DA,1),U,6) K ^IB("AHDT",+$P(^IB(DA,0),U,2),X,$P(^IB(DA,1),U,6),DA)
41 S DIKZ(0)=$G(^IB(DA,0))
42 S X=$P(DIKZ(0),U,9)
43 I X'="" K ^IB("AD",$E(X,1,30),DA)
44 S X=$P(DIKZ(0),U,9)
45 I X'="" I $D(^IB(DA,1)),$P(^(1),"^",2) K ^IB("APDT",$E(X,1,30),-$P(^(1),"^",2),DA)
46 S X=$P(DIKZ(0),U,11)
47 I X'="" K ^IB("ABIL",$E(X,1,30),DA)
48 S X=$P(DIKZ(0),U,12)
49 I X'="" K ^IB("AT",$E(X,1,30),DA)
50 S X=$P(DIKZ(0),U,16)
51 I X'="" K ^IB("AF",$E(X,1,30),DA)
52 S X=$P(DIKZ(0),U,16)
53 I X'="" K ^IB("ACT",X,DA)
54 S X=$P(DIKZ(0),U,17)
55 I X'="" I $D(^IB(DA,0)),$P(^(0),"^",2) K ^IB("AFDT",$P(^(0),"^",2),-X,DA)
56 S DIKZ(1)=$G(^IB(DA,1))
57 S X=$P(DIKZ(1),U,2)
58 I X'="" K ^IB("D",$E(X,1,30),DA)
59 S X=$P(DIKZ(1),U,2)
60 I X'="" I $P(^IB(DA,0),"^",9) K ^IB("APDT",$P(^(0),"^",9),-X,DA)
61 S X=$P(DIKZ(1),U,2)
62 I X'="" I $D(^IB(DA,0)),$P(^(0),"^",2) K ^IB("APTDT",$P(^(0),"^",2),X,DA)
63 S X=$P(DIKZ(1),U,5)
64 I X'="" I X,$D(^IB(DA,0)),$P(^(0),"^",2) K ^IB("ACVA",$P(^(0),"^",2),X,DA)
65 S X=$P(DIKZ(1),U,6)
66 I X'="" I $D(^IB(DA,1)),$P(^IB(DA,1),U,6) K ^IB("AHDT",+$P(^IB(DA,0),U,2),+$P(^IB(DA,0),U,5),X,DA)
67 S X=$P(DIKZ(0),U,1)
68 I X'="" K ^IB("B",$E(X,1,30),DA)
69END Q
Note: See TracBrowser for help on using the repository browser.