INPUT TRANSFORM: K:$L(X)>300!(+X=X)!($L(X)<2)!(X'?.ANP) X X:$D(X) ^DD(9009031.1,.03,9.2) W:$D(X) " (",APSP("SIG"),")" K Z0,Z1
9.2 = S APSPZW=$S($D(%APSITE):$P(%APSITE,U,4),$D(^AUSYS(1,"PS",1,0)):$P(^(0),U,4),1:31),APSPZW=APSPZW-5 X:$D(X) ^DD(9009031.1,.03,9.3) K APSPZW
9.3 = S APSP("SIG")="" F Z0=1:1 Q:$P(X," ",Z0,99)="" S Z1=$P(X," ",Z0) K:$L(Z1)>APSPZW X W:$L(Z1)>APSPZW !,?5,"MAX OF ",APSPZW," CHARACTERS ALLOWED BT SPACES." Q:$L(Z1)>APSPZW X:Z1]"" ^DD(9009031.1,.03,9.4) S APSP("SIG")
=APSP("SIG")_$E(" ",Z0>1)_Z1
9.4 = S Y=$O(^PS(51,"B",Z1,0)) Q:'Y S Z1=$P(^PS(51,Y,0),U,2) Q:'$D(^(9)) S Y=$P(X," ",Z0-1),Y=$E(Y,$L(Y)) S:Y>1 Z1=^(9)
LAST EDITED: JUL 22, 1989
DESCRIPTION: Enter the medication instructions for this prescription. Entries must be no longer than 300 total characters, (including spaces), with no one set of characters longer than 32 characters in length. You may enter any quick
code from your medication instruction file. Any entry you make here will become the sig in the APSP PREPACK LOG file entry when that particular drug is selected.
EXECUTABLE HELP: S DIC=51,ZD=D,DIC(0)="Q" D ^DIC S DIC=DIE,D=ZD
NOTES: XXXX--CAN'T BE ALTERED EXCEPT BY PROGRAMMER