| 1 | PSXLBL2 ;BIR/HTW,BAB-CMOP Host Print Labels ;[ 12/18/97 12:48 PM ]
|
---|
| 2 | ;;2.0;CMOP;**1,10**;11 Apr 97
|
---|
| 3 | N I
|
---|
| 4 | L1 W ?3,"VAMC ",SCITY,", ",SSTATE," ",SZIP
|
---|
| 5 | W ?54,"VAMC ",SCITY,", ",SSTATE," ",SZIP
|
---|
| 6 | I $G(REPRINT) W ?102,"(REPRINT)"
|
---|
| 7 | L2 W !,?3,SITE," ",STEL," ",CLKRPH
|
---|
| 8 | W ?54,SITE," ",STEL," ",CLKRPH
|
---|
| 9 | D NOW^%DTC S Y=% X ^DD("DD") S RNOW=$P(Y,":",1,2) K X,Y,%
|
---|
| 10 | W ?102,SITE," ",CLKRPH," ",RNOW
|
---|
| 11 | L3 W !,RX," ",FDT," Fill ",RFTXT
|
---|
| 12 | W ?54,RX," ",FDT," Fill ",RFTXT
|
---|
| 13 | W ?102,RX," ",FDT," Fill ",RFTXT
|
---|
| 14 | L4 W !,PNAME," ",$P(SSN,"-",2,3),?54,PNAME," ",$P(SSN,"-",2,3),?102,PNAME," ",$P(SSN,"-",2,3)
|
---|
| 15 | ; SIG
|
---|
| 16 | S SC=4
|
---|
| 17 | W !
|
---|
| 18 | F I=1:1:SIGN W $G(SIG(I)),?54,$G(SIG(I)),?102,$G(SIG(I)) S SC=SC+1 D
|
---|
| 19 | .I $D(SIG(I+1)),(I#3=0) W @IOF S SC=0 Q
|
---|
| 20 | .I '$D(SIG(I+1)) Q
|
---|
| 21 | .W !
|
---|
| 22 | S SC=7-SC F ZP=1:1:SC W !
|
---|
| 23 | L8 W !,$G(PHYS),?54,$G(PHYS),?102,$G(PHYS)
|
---|
| 24 | W !,"Qty: "_$G(QTY)_" "_$G(VADU)_" "_$G(NURSE)
|
---|
| 25 | W ?54,"Qty: "_$G(QTY)_" "_$G(VADU)_" "_$G(NURSE)
|
---|
| 26 | W ?102,"Qty: "_$G(QTY)_" "_$G(VADU)_" "_$G(NURSE)
|
---|
| 27 | K NURSE,VADU,ZP,SC
|
---|
| 28 | L10 W !,TRUG,?54,TRUG,?102,TRUG
|
---|
| 29 | I REFREM'>0 D TOP^PSXLBLNR G L13
|
---|
| 30 | S X1=EXPDT1,Y=ISD1,X2=DT D ^%DTC I X<30 G L11
|
---|
| 31 | W !,?54,REFREM," Refills remain prior to ",$G(EXPDT),?102,"Mfg ________ Lot# ________" G L12
|
---|
| 32 | L11 W !,?54,"Last fill prior to ",$G(EXPDT),?102,"Mfg ________ Lot# ________"
|
---|
| 33 | L12 W !,SADD1,?54,COPAY," Days Supply: ",$G(TAYS),?102,"Tech__________RPh_________"
|
---|
| 34 | W !,SCITY,", ",SSTATE," ",SZIP
|
---|
| 35 | I $G(PSXBAR) S X="S",X2=BAR S X1=$X W ?54,@IOBARON,X2,@IOBAROFF,*13
|
---|
| 36 | I '$G(PSXBAR) W !!!
|
---|
| 37 | W !,"FORWARDING SERVICE REQUESTED"
|
---|
| 38 | W:($G(REGMAIL)=1) !,?21,"CERTIFIED MAIL"
|
---|
| 39 | W !,?54,$G(PADD1)
|
---|
| 40 | W !,"***CRITICAL MEDICAL SHIPMENT***",?54,$G(PADD2),?102,"Routing: "_$S($G(REGMAIL)=1:"CERTIFIED",1:"REGULAR")_" MAIL"
|
---|
| 41 | W !,?54,$G(PADD3),?102,"Days supply: ",$G(TAYS)," Cap: ",$S($G(CAP):"**NON-SFTY**",1:"SAFETY")
|
---|
| 42 | W !,?54,$G(PADD4),?102,"Isd: ",$G(ISD)," Exp: ",$G(EXPDT)
|
---|
| 43 | W !,PNAME,?54,"*Indicate address change on back of this form",?102,"Last Fill: ",$G(REFLST)
|
---|
| 44 | W !,PADD1,?54,"[ ] Permanent",?102,"Pat. Stat ",PSTAT," Clinic: ",CLINIC
|
---|
| 45 | W !,$G(PADD2),?54,"[ ] Temporary until ",$S($G(PTEMP)]"":PTEMP,1:"__/__/__")
|
---|
| 46 | W ?102,$S($G(WARN)'="":"DRUG WARNING "_$G(WARN),1:"")
|
---|
| 47 | W !,$G(PADD3)
|
---|
| 48 | W !,$G(PADD4),?54,"Signature__________________________________"
|
---|
| 49 | I $G(PSXBAR) S X="S",X2=BAR S X1=$X W ?102,@IOBARON,X2,@IOBAROFF,*13
|
---|
| 50 | L13 W @IOF
|
---|
| 51 | ; PRINT DRUG WARNING
|
---|
| 52 | I $G(WARN)]"" D W @IOF
|
---|
| 53 | .W ?54,PNAME
|
---|
| 54 | .W !,?54,"Rx# ",RX
|
---|
| 55 | .W !,?54,TRUG
|
---|
| 56 | .W !,?54,"DRUG WARNING:"
|
---|
| 57 | .F W=1:1 S W1=$P(WARN,",",W) Q:W1']"" D
|
---|
| 58 | ..Q:'$D(^PS(54,W1,0))
|
---|
| 59 | ..F W2=0:0 S W2=$O(^PS(54,W1,1,W2)) Q:'W2 D
|
---|
| 60 | ...S W3=^PS(54,W1,1,W2,0) W !,?54,W3
|
---|
| 61 | K W,W1,W2,W3,X
|
---|
| 62 | UPDATE ; UPDATE 552.3
|
---|
| 63 | D NOW^%DTC
|
---|
| 64 | I $G(REPRINT)!($G(PSXBLR)) D
|
---|
| 65 | .F UX=0:0 S UX=$O(^PSX(552.3,UX)) Q:'UX!($G(UXOUT)) S UXN=$G(^(UX,0)) D
|
---|
| 66 | ..I $P(UXN,B,2)[BATREF,($P(UXN,B,3)=RX) S $P(^PSX(552.3,UX,0),B,5)=%,UXOUT=1
|
---|
| 67 | I $G(UXOUT) K UXOUT,UXN,UX Q
|
---|
| 68 | ADD L +(^PSX(552.3,0)):DTIME
|
---|
| 69 | S CNT=$P(^PSX(552.3,0),"^",3),CNT=CNT+1
|
---|
| 70 | S CNT4=$P(^PSX(552.3,0),"^",4),CNT4=CNT4+1
|
---|
| 71 | AD1 I $D(^PSX(552.3,CNT)) S CNT=CNT+1,CNT4=CNT4+1 G AD1
|
---|
| 72 | L +^PSX(552.3,CNT):1 I '$T G AD1
|
---|
| 73 | S $P(^PSX(552.3,0),"^",3)=CNT,$P(^PSX(552.3,0),"^",4)=CNT4
|
---|
| 74 | S ^PSX(552.3,CNT,0)="ZMP|"_BATREF_B_RX_B_BAR_B_%_B_DUZ
|
---|
| 75 | S ^PSX(552.3,"AP",BAR,CNT)=""
|
---|
| 76 | L -(^PSX(552.3,0),^PSX(552.3,CNT))
|
---|
| 77 | K CNT,CNT4,%,%I,X,UX,UXOUT,UXN
|
---|
| 78 | Q
|
---|