source: WorldVistAEHR/trunk/r/LAB_SERVICE-LR-LS/LRBLDPK.m@ 1005

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

initial load of WorldVistAEHR

File size: 2.8 KB
RevLine 
[613]1LRBLDPK ; GENERATED FROM 'LRBL DONOR TESTING SUPPLEMENT' PRINT TEMPLATE (#112) ; 09/23/96 ; (FILE 65.5, MARGIN=132)
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(112,"DXS",X)) Q:'X S Y=$O(^(X,"")) F X=X:0 Q:Y="" S DXS(X,Y)=^(Y),Y=$O(^(Y))
15 S I(1)=5,J(1)=65.54 F D1=0:0 Q:$O(^LRE(D0,5,D1))'>0 X:$D(DSC(65.54)) DSC(65.54) S D1=$O(^(D1)) Q:D1'>0 D:$X>0 T Q:'DN D A1
16 G A1R
17A1 ;
18 S X=$G(^LRE(D0,5,D1,0)) D N:$X>0 Q:'DN W ?0 S Y=$P(X,U,1) D DT
19 D N:$X>14 Q:'DN W ?14,$E($P(X,U,4),1,10)
20 Q
21A1R ;
22 D N:$X>26 Q:'DN W ?26 S Y=D0 W:Y]"" $J(Y,5,0)
23 S X=$G(^LRE(D0,0)) D N:$X>33 Q:'DN W ?33 S Y=$P(X,U,10) W:Y]"" $S($D(DXS(3,Y)):DXS(3,Y),1:Y)
24 D N:$X>39 Q:'DN W ?39 S Y=$P(X,U,5) W:Y]"" $J($S($D(DXS(4,Y)):DXS(4,Y),1:Y),2)
25 D N:$X>42 Q:'DN W ?42 S Y=$P(X,U,6) W:Y]"" $S($D(DXS(5,Y)):DXS(5,Y),1:Y)
26 S I(1)=5,J(1)=65.54 F D1=0:0 Q:$O(^LRE(D0,5,D1))'>0 X:$D(DSC(65.54)) DSC(65.54) S D1=$O(^(D1)) Q:D1'>0 D:$X>47 T Q:'DN D B1
27 G B1R
28B1 ;
29 S X=$G(^LRE(D0,5,D1,16)) D N:$X>46 Q:'DN W ?46 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(6,Y)):DXS(6,Y),1:Y)
30 S X=$G(^LRE(D0,5,D1,17)) D N:$X>53 Q:'DN W ?53 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(7,Y)):DXS(7,Y),1:Y)
31 S X=$G(^LRE(D0,5,D1,19)) D N:$X>60 Q:'DN W ?60 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(8,Y)):DXS(8,Y),1:Y)
32 S X=$G(^LRE(D0,5,D1,20)) D N:$X>68 Q:'DN W ?68 S Y=$P(X,U,1) W:Y]"" $S($D(DXS(9,Y)):DXS(9,Y),1:Y)
33 S X=$G(^LRE(D0,5,D1,0)) D N:$X>77 Q:'DN W ?77 S Y=$P(X,U,10) W:Y]"" $S($D(DXS(10,Y)):DXS(10,Y),1:Y)
34 S I(2)=66,J(2)=65.66 F D2=0:0 Q:$O(^LRE(D0,5,D1,66,D2))'>0 X:$D(DSC(65.66)) DSC(65.66) S D2=$O(^(D2)) Q:D2'>0 D:$X>88 T Q:'DN D A2
35 G A2R
36A2 ;
37 S X=$G(^LRE(D0,5,D1,66,D2,0)) D N:$X>87 Q:'DN W ?87 S Y=$P(X,U,1) S Y=$S(Y="":Y,$D(^LAB(66,Y,0))#2:$P(^(0),U,1),1:Y) W $E(Y,1,15)
38 D N:$X>104 Q:'DN W ?104 S Y=$P(X,U,8) W:Y]"" $S($D(DXS(11,Y)):DXS(11,Y),1:Y)
39 D N:$X>112 Q:'DN W ?112 S Y=$P(X,U,4) D DT
40 D N:$X>124 Q:'DN W ?124 X DXS(1,9) K DIP K:DN Y W $E(X,1,3)
41 D N:$X>128 Q:'DN W ?128 X DXS(2,9) K DIP K:DN Y W $E(X,1,3)
42 Q
43A2R ;
44 Q
45B1R ;
46 K Y
47 Q
48HEAD ;
49 W !,?112,"EXPIRATION"
50 W !,?0,"DONATION DATE",?14,"UNIT #",?26,"DONOR",?33,"PDef",?39,"PR",?42,"REC",?46,"HBcAb",?53,"ALT",?60,"HCV Ab",?68,"HIV Ag",?77,"COLL.DISP",?87,"COMPONENT",?104,"DISPO.",?112,"DATE",?124,"LTc",?128,"VTc"
51 W !,"------------------------------------------------------------------------------------------------------------------------------------",!!
Note: See TracBrowser for help on using the repository browser.