source: WorldVistAEHR/trunk/r/INPATIENT_MEDICATIONS-PSJ-PSIV-PSG--PSGW/PSGOETO1.m@ 1261

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

initial load of WorldVistAEHR

File size: 707 bytes
Line 
1PSGOETO1 ;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 ;
6ORSET ;
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)
9WW ;
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
Note: See TracBrowser for help on using the repository browser.