source: FOIAVistA/trunk/r/AUTOMATED_MED_INFO_EXCHANGE-DVBA-DVBC/DVBAXP1.m@ 1354

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

initial load of FOIAVistA 6/30/08 version

File size: 3.3 KB
Line 
1DVBAXP1 ; GENERATED FROM 'DVBA STATUS' PRINT TEMPLATE (#517) ; 08/19/96 ; (continued)
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 S X=$G(^DVB(396,D0,1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,5) D DT
15 S X=$G(^DVB(396,D0,2)) D N:$X>49 Q:'DN W ?49,$E($P(X,U,1),1,11)
16 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,21) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
17 F Y=0:0 Q:$Y>11 W !
18 D N:$X>1 Q:'DN W ?1 W "Asset Information:"
19 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,23) W:Y]"" $S($D(DXS(13,Y)):DXS(13,Y),1:Y)
20 S X=$G(^DVB(396,D0,1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,6) D DT
21 S X=$G(^DVB(396,D0,2)) D N:$X>49 Q:'DN W ?49,$E($P(X,U,2),1,11)
22 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,23) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
23 F Y=0:0 Q:$Y>12 W !
24 D N:$X>2 Q:'DN W ?2 W "Admission Report:"
25 S X=$G(^DVB(396,D0,1)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,7) W:Y]"" $S($D(DXS(14,Y)):DXS(14,Y),1:Y)
26 D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,8) D DT
27 S X=$G(^DVB(396,D0,2)) D N:$X>49 Q:'DN W ?49,$E($P(X,U,3),1,11)
28 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,7) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
29 F Y=0:0 Q:$Y>13 W !
30 D N:$X>1 Q:'DN W ?1 W "OPT Treatment Rpt:"
31 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,26) W:Y]"" $S($D(DXS(15,Y)):DXS(15,Y),1:Y)
32 S X=$G(^DVB(396,D0,1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,9) D DT
33 S X=$G(^DVB(396,D0,2)) D N:$X>49 Q:'DN W ?49,$E($P(X,U,4),1,11)
34 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,26) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
35 F Y=0:0 Q:$Y>14 W !
36 D N:$X>5 Q:'DN W ?5 W "Beg Date/Care:"
37 S X=$G(^DVB(396,D0,0)) D N:$X>22 Q:'DN W ?22 S Y=$P(X,U,28) W:Y]"" $S($D(DXS(16,Y)):DXS(16,Y),1:Y)
38 S X=$G(^DVB(396,D0,1)) D N:$X>34 Q:'DN W ?34 S Y=$P(X,U,10) D DT
39 S X=$G(^DVB(396,D0,2)) D N:$X>49 Q:'DN W ?49,$E($P(X,U,5),1,11)
40 S X=$G(^DVB(396,D0,6)) D N:$X>61 Q:'DN W ?61 S Y=$P(X,U,28) S Y=$S(Y="":Y,$D(^DG(40.8,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,16)
41 F Y=0:0 Q:$Y>16 W !
42 W ?0 W "REMARKS:"
43 S I(1)=5,J(1)=396.02 F D1=0:0 Q:$O(^DVB(396,D0,5,D1))'>0 S D1=$O(^(D1)) D:$X>10 T Q:'DN D A1
44 G A1R
45A1 ;
46 S X=$G(^DVB(396,D0,5,D1,0)) S DIWL=11,DIWR=78 D ^DIWP
47 Q
48A1R ;
49 D A^DIWW
50 F Y=0:0 Q:$Y>18 W !
51 W ?0 W "Requesting location: "
52 D N:$X>22 Q:'DN W ?22 S DIP(1)=$S($D(^DVB(396,D0,2)):^(2),1:"") S X=$P(DIP(1),U,7),DIP(2)=X S X=1,DIP(3)=X S X=20,X=$E(DIP(2),DIP(3),X) K DIP K:DN Y W X
53 W ?33 X DXS(3,9) K DIP K:DN Y
54 W ?44 X DXS(4,9) K DIP K:DN Y
55 F Y=0:0 Q:$Y>19 W !
56 D N:$X>7 Q:'DN W ?7 W "Requested by: "
57 D N:$X>22 Q:'DN W ?22 S DIP(1)=$S($D(^DVB(396,D0,2)):^(2),1:"") S X=$P(DIP(1),U,8),DIP(2)=X S X=1,DIP(3)=X S X=25,X=$E(DIP(2),DIP(3),X) K DIP K:DN Y W X
58 W ?33 X DXS(5,9) K DIP K:DN Y
59 K Y K DIWF
60 Q
61HEAD ;
62 W !,"--------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.