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

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

initial load of WorldVistAEHR

File size: 3.5 KB
Line 
1IBXA2 ; COMPILED XREF FOR FILE #350 ; 10/08/06
2 ;
3 S DIKZK=1
4 S DIKZ(0)=$G(^IB(DA,0))
5 S X=$P(DIKZ(0),U,1)
6 I X'="" S ^IB("B",$E(X,1,30),DA)=""
7 S X=$P(DIKZ(0),U,2)
8 I X'="" S ^IB("C",$E(X,1,30),DA)=""
9 S X=$P(DIKZ(0),U,2)
10 I X'="" I $D(^IB(DA,0)),$P(^(0),"^",17) S ^IB("AFDT",X,-$P(^(0),"^",17),DA)=""
11 S X=$P(DIKZ(0),U,2)
12 I X'="" I $D(^IB(DA,1)),$P(^(1),"^",2) S ^IB("APTDT",X,$P(^(1),"^",2),DA)=""
13 S X=$P(DIKZ(0),U,2)
14 I X'="" I $D(^IB(DA,0)),$P(^(0),U,5)=8 S ^IB("AH",X,DA)=""
15 S X=$P(DIKZ(0),U,2)
16 I X'="" I $D(^IB(DA,0)),$P(^(0),U,5)=99 S ^IB("AI",X,DA)=""
17 S X=$P(DIKZ(0),U,2)
18 I X'="" I X,$D(^IB(DA,1)),$P(^(1),"^",5) S ^IB("ACVA",X,$P(^(1),"^",5),DA)=""
19 S X=$P(DIKZ(0),U,2)
20 I X'="" I $D(^IB(DA,0)),$P(^(0),U,5)=21 S ^IB("AJ",X,DA)=""
21 S X=$P(DIKZ(0),U,3)
22 I X'="" S ^IB("AE",$E(X,1,30),DA)=""
23 S X=$P(DIKZ(0),U,5)
24 I X'="" S ^IB("AC",$E(X,1,30),DA)=""
25 S X=$P(DIKZ(0),U,5)
26 I X'="" D
27 .N DIK,DIV,DIU,DIN
28 .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
29 S X=$P(DIKZ(0),U,5)
30 I X'="" D
31 .N DIK,DIV,DIU,DIN
32 .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,1.4)
33 S X=$P(DIKZ(0),U,5)
34 I X'="" I X=1,$D(^IB(DA,0)),$P($G(^IBE(350.1,+$P(^(0),"^",3),0)),"^")'["ADMISSION",$P(^IB(DA,0),"^",16) S ^IB("ACT",$P(^(0),"^",16),DA)=""
35 S X=$P(DIKZ(0),U,5)
36 I X'="" I X=8,$P(^IB(DA,0),U,2) S ^IB("AH",$P(^IB(DA,0),U,2),DA)=""
37 S X=$P(DIKZ(0),U,5)
38 I X'="" I X=99,$P(^IB(DA,0),U,2) S ^IB("AI",$P(^IB(DA,0),U,2),DA)=""
39 S X=$P(DIKZ(0),U,5)
40 I X'="" I X=21,$P(^IB(DA,0),U,2) S ^IB("AJ",$P(^IB(DA,0),U,2),DA)=""
41 S X=$P(DIKZ(0),U,5)
42 I X'="" D
43 .N DIK,DIV,DIU,DIN
44 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X I X=8 I X S X=DIV S Y(1)=$S($D(^IB(D0,1)):^(1),1:"") S X=$P(Y(1),U,6),X=X S DIU=X K Y S X=DIV S X=DT X ^DD(350,.05,1,8,1.4)
45 S X=$P(DIKZ(0),U,5)
46 I X'="" I $D(^IB(DA,1)),$P(^IB(DA,1),U,6) S ^IB("AHDT",+$P(^IB(DA,0),U,2),X,$P(^IB(DA,1),U,6),DA)=""
47 S X=$P(DIKZ(0),U,5)
48 I X'="" D
49 .N DIK,DIV,DIU,DIN
50 .K DIV S DIV=X,D0=DA,DIV(0)=D0 S Y(0)=X S X=$P($G(^IBE(350.21,+Y(0),0)),U)="HOLD - REVIEW" I X S X=DIV S Y(1)=$S($D(^IB(D0,1)):^(1),1:"") S X=$P(Y(1),U,7),X=X S DIU=X K Y S X=DIV S X=DT X ^DD(350,.05,1,10,1.4)
51 S DIKZ(0)=$G(^IB(DA,0))
52 S X=$P(DIKZ(0),U,9)
53 I X'="" S ^IB("AD",$E(X,1,30),DA)=""
54 S X=$P(DIKZ(0),U,9)
55 I X'="" I $D(^IB(DA,1)),$P(^(1),"^",2) S ^IB("APDT",$E(X,1,30),-$P(^(1),"^",2),DA)=""
56 S X=$P(DIKZ(0),U,11)
57 I X'="" S ^IB("ABIL",$E(X,1,30),DA)=""
58 S X=$P(DIKZ(0),U,12)
59 I X'="" S ^IB("AT",$E(X,1,30),DA)=""
60 S X=$P(DIKZ(0),U,16)
61 I X'="" S ^IB("AF",$E(X,1,30),DA)=""
62 S X=$P(DIKZ(0),U,16)
63 I X'="" I $D(^IB(DA,0)),$P(^(0),"^",5)=1,$P($G(^IBE(350.1,+$P(^(0),"^",3),0)),"^")'["ADMISSION" S ^IB("ACT",X,DA)=""
64 S X=$P(DIKZ(0),U,17)
65 I X'="" I $D(^IB(DA,0)),$P(^(0),"^",2) S ^IB("AFDT",$P(^(0),"^",2),-X,DA)=""
66 S DIKZ(1)=$G(^IB(DA,1))
67 S X=$P(DIKZ(1),U,2)
68 I X'="" S ^IB("D",$E(X,1,30),DA)=""
69 S X=$P(DIKZ(1),U,2)
70 I X'="" I $P(^IB(DA,0),"^",9) S ^IB("APDT",$P(^(0),"^",9),-X,DA)=""
71 S X=$P(DIKZ(1),U,2)
72 I X'="" I $D(^IB(DA,0)),$P(^(0),"^",2) S ^IB("APTDT",$P(^(0),"^",2),X,DA)=""
73 S X=$P(DIKZ(1),U,5)
74 I X'="" I X,$D(^IB(DA,0)),$P(^(0),"^",2) S ^IB("ACVA",$P(^(0),"^",2),X,DA)=""
75 S X=$P(DIKZ(1),U,6)
76 I X'="" I $D(^IB(DA,1)),$P(^IB(DA,1),U,6) S ^IB("AHDT",+$P(^IB(DA,0),U,2),+$P(^IB(DA,0),U,5),X,DA)=""
77END Q
Note: See TracBrowser for help on using the repository browser.