1 | PSGOETO1 ;BIR/CML3-TRANSCRIBE ORDERS (CONT) ;09 JAN 97 / 2:39 PM
|
---|
2 | ;;5.0; INPATIENT MEDICATIONS ;**29**;16 DEC 97
|
---|
3 | ;
|
---|
4 | ; Reference to ^PSSLOCK is supported by DBIA #2789
|
---|
5 | ;
|
---|
6 | ORSET ;
|
---|
7 | ;I $D(PSJOERR) N ORIFN,ORL,ORTS,ORVP
|
---|
8 | Q:$G(PSJRFLG) D EN1^PSJHL2(PSGP,"SN",PSGORD) I $G(PSGOEENO),$$LS^PSSLOCK(PSGP,PSGORD)
|
---|
9 | WW ;
|
---|
10 | Q
|
---|
11 | NEW DRUGNAME D DRGDISP^PSJLMUT1(PSGP,PSGORD,50,44,.DRUGNAME,0)
|
---|
12 | S UL="",$P(UL,"-",50)="" W !!,UL
|
---|
13 | F X=0:0 S X=$O(DRUGNAME(X)) Q:'X W !,DRUGNAME(X)
|
---|
14 | ;W $S($D(PSJOERR):"",PSGSCH["PRN":"",PSGST="P":" PRN",1:"")
|
---|
15 | W $S(PSGSCH["PRN":"",PSGST="P":" PRN",1:"")
|
---|
16 | I PSGSI]"" S PSGSI=$$ENSET^PSGSICHK(PSGSI) W ! F Q=1:1:$L(PSGSI," ") W:$L($P(PSGSI," ",Q))+$X>79 ! W $P(PSGSI," ",Q)," "
|
---|
17 | W !,UL,! K UL Q
|
---|