source: FOIAVistA/trunk/r/AUTOMATED_MED_INFO_EXCHANGE-DVBA-DVBC/DVBAXP.m@ 1582

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

initial load of FOIAVistA 6/30/08 version

File size: 4.2 KB
Line 
1DVBAXP ; GENERATED FROM 'DVBA STATUS' PRINT TEMPLATE (#517) ; 08/19/96 ; (FILE 396, MARGIN=80)
2 G BEGIN
3N W !
4T W:$X ! I '$D(DIOT(2)),DN,$D(IOSL),$S('$D(DIWF):1,$P(DIWF,"B",2):$P(DIWF,"B",2),1:1)+$Y'<IOSL,$D(^UTILITY($J,1))#2,^(1)?1U1P1E.E X ^(1)
5 S DISTP=DISTP+1,DILCT=DILCT+1 D:'(DISTP#100) CSTP^DIO2
6 Q
7DT I $G(DUZ("LANG"))>1,Y W $$OUT^DIALOGU(Y,"DD") Q
8 I Y W $P("JAN^FEB^MAR^APR^MAY^JUN^JUL^AUG^SEP^OCT^NOV^DEC",U,$E(Y,4,5))_" " W:Y#100 $J(Y#100\1,2)_"," W Y\10000+1700 W:Y#1 " "_$E(Y_0,9,10)_":"_$E(Y_"000",11,12) Q
9 W Y Q
10M D @DIXX
11 Q
12BEGIN ;
13 S:'$D(DN) DN=1 S DISTP=$G(DISTP),DILCT=$G(DILCT)
14 I $D(DXS)<9 F X=0:0 S X=$O(^DIPT(517,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
15 F Y=0:0 Q:$Y>-1 W !
16 W ?0 X DXS(1,9.2) S X=$E(DIP(3),DIP(4),X) S Y=X,X=DIP(1),X=X_Y K DIP K:DN Y W X
17 F Y=0:0 Q:$Y>-1 W !
18 D N:$X>41 Q:'DN W ?41 X DXS(2,9) K DIP K:DN Y W X
19 F Y=0:0 Q:$Y>-1 W !
20 D N:$X>57 Q:'DN W ?57 S DIP(1)=$S($D(^DVB(396,D0,0)):^(0),1:"") S X=$P(DIP(1),U,4) S:X X=$E(X,4,5)_"/"_$E(X,6,7)_"/"_$E(X,2,3) K DIP K:DN Y W X
21 F Y=0:0 Q:$Y>0 W !
22 D N:$X>10 Q:'DN W ?10 X $P(^DD(396,2,0),U,5,99) S DIP(1)=X S X="SSN: "_DIP(1) K DIP K:DN Y W X
23 F Y=0:0 Q:$Y>0 W !
24 D N:$X>43 Q:'DN W ?43 X $P(^DD(396,1,0),U,5,99) S DIP(1)=X S X="Claim Number: "_DIP(1) K DIP K:DN Y W X
25 F Y=0:0 Q:$Y>1 W !
26 W ?0 S DIP(1)=$S($D(^DVB(396,D0,2)):^(2),1:"") S X="Receiving Div: "_$S('$D(^DG(40.8,+$P(DIP(1),U,9),0)):"",1:$P(^(0),U,1)) K DIP K:DN Y W X
27 F Y=0:0 Q:$Y>2 W !
28 D N:$X>4 Q:'DN W ?4 W "Requisition"
29 D N:$X>22 Q:'DN W ?22 W "Status"
30 D N:$X>34 Q:'DN W ?34 W "Status Date"
31 D N:$X>49 Q:'DN W ?49 W "Operator"
32 D N:$X>61 Q:'DN W ?61 W "Current Division"
33 D T Q:'DN W ?2 W "---------------------------------------------------------------------------"
34 F Y=0:0 Q:$Y>4 W !
35 D N:$X>2 Q:'DN W ?2 W "Notice/Discharge:"
36 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,9) W:Y]"" $S($D(DXS(6,Y)):DXS(6,Y),1:Y)
37 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,10) D DT
38 S X=$G(^DVB(396,D0,1)) D N:$X>49 Q:'DN W ?49,$E($P(X,U,13),1,11)
39 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,9) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
40 F Y=0:0 Q:$Y>5 W !
41 D N:$X>2 Q:'DN W ?2 W "Hospital Summary:"
42 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,11) W:Y]"" $S($D(DXS(7,Y)):DXS(7,Y),1:Y)
43 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,12) D DT
44 S X=$G(^DVB(396,D0,1)) D N:$X>49 Q:'DN W ?49,$E($P(X,U,14),1,11)
45 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,11) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
46 F Y=0:0 Q:$Y>6 W !
47 W ?0 W "21-day Certificate:"
48 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,13) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
49 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,14) D DT
50 S X=$G(^DVB(396,D0,1)) D N:$X>49 Q:'DN W ?49,$E($P(X,U,15),1,11)
51 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,13) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
52 F Y=0:0 Q:$Y>7 W !
53 D N:$X>8 Q:'DN W ?8 W "Other/Exam:"
54 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,15) W:Y]"" $S($D(DXS(9,Y)):DXS(9,Y),1:Y)
55 S X=$G(^DVB(396,D0,1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,2) D DT
56 D N:$X>49 Q:'DN W ?49,$E($P(X,U,16),1,11)
57 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,15) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
58 F Y=0:0 Q:$Y>8 W !
59 D N:$X>4 Q:'DN W ?4 W "Special Report:"
60 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,17) W:Y]"" $S($D(DXS(10,Y)):DXS(10,Y),1:Y)
61 S X=$G(^DVB(396,D0,1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,3) D DT
62 D N:$X>49 Q:'DN W ?49,$E($P(X,U,17),1,11)
63 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,17) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
64 F Y=0:0 Q:$Y>9 W !
65 D N:$X>1 Q:'DN W ?1 W "Competency Report:"
66 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,19) W:Y]"" $S($D(DXS(11,Y)):DXS(11,Y),1:Y)
67 S X=$G(^DVB(396,D0,1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,4) D DT
68 D N:$X>49 Q:'DN W ?49,$E($P(X,U,18),1,11)
69 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,19) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
70 F Y=0:0 Q:$Y>10 W !
71 D N:$X>6 Q:'DN W ?6 W "Form 21-2680:"
72 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,21) W:Y]"" $S($D(DXS(12,Y)):DXS(12,Y),1:Y)
73 G ^DVBAXP1
Note: See TracBrowser for help on using the repository browser.