Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: PSGOETO1

PSGOETO1.m

Go to the documentation of this file.
PSGOETO1 ;BIR/CML3-TRANSCRIBE ORDERS (CONT) ;09 JAN 97 / 2:39 PM
 ;;5.0; INPATIENT MEDICATIONS ;**29**;16 DEC 97
 ;
 ; Reference to ^PSSLOCK is supported by DBIA #2789
 ;
ORSET ;
 ;I $D(PSJOERR) N ORIFN,ORL,ORTS,ORVP
 Q:$G(PSJRFLG)  D EN1^PSJHL2(PSGP,"SN",PSGORD) I $G(PSGOEENO),$$LS^PSSLOCK(PSGP,PSGORD)
WW ;
 Q
 NEW DRUGNAME D DRGDISP^PSJLMUT1(PSGP,PSGORD,50,44,.DRUGNAME,0)
 S UL="",$P(UL,"-",50)="" W !!,UL
 F X=0:0 S X=$O(DRUGNAME(X)) Q:'X  W !,DRUGNAME(X)
 ;W $S($D(PSJOERR):"",PSGSCH["PRN":"",PSGST="P":" PRN",1:"")
 W $S(PSGSCH["PRN":"",PSGST="P":" PRN",1:"")
 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)," "
 W !,UL,! K UL Q