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

PSJAI006.m

Go to the documentation of this file.
  1. PSJAI006 ; ; 20-MAR-1996
  1. ;;4.5;Inpatient Medications;**27**;OCT 07, 1994
  1. Q:'DIFQ(59.5) F I=1:2 S X=$T(Q+I) Q:X="" S Y=$E($T(Q+I+1),4,999),X=$E(X,4,999) S:$A(Y)=126 I=I+1,Y=$E(Y,2,999)_$E($T(Q+I+1),5,99) S:$A(Y)=61 Y=$E(Y,2,999) X NO E S @X=Y
  1. Q Q
  1. ;;^DD(59.51,.03,"DT")
  1. ;;=2840613
  1. ;;^DD(59.51,.04,0)
  1. ;;=END OF COVERAGE^RFX^^0;4^K:$L(X)>4!($L(X)<4)!'(X?1N.N)!(+X>2400)!(X#100>59) X
  1. ;;^DD(59.51,.04,3)
  1. ;;=You must enter 4 numbers for time (i.e., MILITARY TIME)!
  1. ;;^DD(59.51,.04,20,0)
  1. ;;=^.3LA^1^1
  1. ;;^DD(59.51,.04,20,1,0)
  1. ;;=PSJI
  1. ;;^DD(59.51,.04,21,0)
  1. ;;=^^6^6^2940714^^^^
  1. ;;^DD(59.51,.04,21,1,0)
  1. ;;=
  1. ;;^DD(59.51,.04,21,2,0)
  1. ;;=
  1. ;;^DD(59.51,.04,21,3,0)
  1. ;;=Enter the military time that designates the last administration time
  1. ;;^DD(59.51,.04,21,4,0)
  1. ;;=covered by this manufacturing run. Enter midnight as 2400.
  1. ;;^DD(59.51,.04,21,5,0)
  1. ;;=
  1. ;;^DD(59.51,.04,21,6,0)
  1. ;;=
  1. ;;^DD(59.51,.04,"DT")
  1. ;;=2860131
  1. ;;^DD(59.51,.05,0)
  1. ;;=MANUFACTURING TIME^FX^^0;5^K:$L(X)>4!($L(X)<4)!'(X?1N.N)!(+X>2400)!(X#100>59) X
  1. ;;^DD(59.51,.05,3)
  1. ;;=Enter time as 4 numbers (i.e., '1700' for 5PM)!
  1. ;;^DD(59.51,.05,20,0)
  1. ;;=^.3LA^1^1
  1. ;;^DD(59.51,.05,20,1,0)
  1. ;;=PSJI
  1. ;;^DD(59.51,.05,21,0)
  1. ;;=^^4^4^2940714^^^^
  1. ;;^DD(59.51,.05,21,1,0)
  1. ;;=Enter the military time that designates the general time when the
  1. ;;^DD(59.51,.05,21,2,0)
  1. ;;=manufacturing list will be run and the orders prepared. This is for
  1. ;;^DD(59.51,.05,21,3,0)
  1. ;;=documentation and does not affect IV processing. Enter midnight as 2400.
  1. ;;^DD(59.51,.05,21,4,0)
  1. ;;=
  1. ;;^DD(59.51,.05,"DT")
  1. ;;=2850320
  1. ;;^DD(59.51,.06,0)
  1. ;;=DATE/TIME LAST RUN^D^^0;6^S %DT="ETXR" D ^%DT S X=Y K:Y<1 X
  1. ;;^DD(59.51,.06,3)
  1. ;;=
  1. ;;^DD(59.51,.06,20,0)
  1. ;;=^.3LA^1^1
  1. ;;^DD(59.51,.06,20,1,0)
  1. ;;=PSJI
  1. ;;^DD(59.51,.06,21,0)
  1. ;;=^^3^3^2880708^^^^
  1. ;;^DD(59.51,.06,21,1,0)
  1. ;;=This date/time signals the end of the 'MANUFACTURING QUEUE'.
  1. ;;^DD(59.51,.06,21,2,0)
  1. ;;=Orders due up to and including this date/time will appear in
  1. ;;^DD(59.51,.06,21,3,0)
  1. ;;=this 'MANUFACTURING QUEUE' .
  1. ;;^DD(59.51,.06,"DT")
  1. ;;=2880708
  1. ;;^DD(59.52,0)
  1. ;;=DELIVERY TIME SUB-FIELD^NL^.01^1
  1. ;;^DD(59.52,0,"IX","AT",59.52,.01)
  1. ;;=
  1. ;;^DD(59.52,0,"IX","B",59.52,.01)
  1. ;;=
  1. ;;^DD(59.52,0,"NM","DELIVERY TIME")
  1. ;;=
  1. ;;^DD(59.52,0,"UP")
  1. ;;=59.5
  1. ;;^DD(59.52,.01,0)
  1. ;;=DELIVERY TIME^MFX^^0;1^K:$L(X)>4!($L(X)<4)!(+X<1)!(+X>2400)!(X#100>59)!(X'?1N.N) X
  1. ;;^DD(59.52,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(59.52,.01,1,1,0)
  1. ;;=59.52^B
  1. ;;^DD(59.52,.01,1,1,1)
  1. ;;=S ^PS(59.5,DA(1),3,"B",$E(X,1,30),DA)=""
  1. ;;^DD(59.52,.01,1,1,2)
  1. ;;=K ^PS(59.5,DA(1),3,"B",$E(X,1,30),DA)
  1. ;;^DD(59.52,.01,1,2,0)
  1. ;;=59.52^AT^MUMPS
  1. ;;^DD(59.52,.01,1,2,1)
  1. ;;=S ^PS(59.5,DA(1),3,"AT",+("."_X),DA)=""
  1. ;;^DD(59.52,.01,1,2,2)
  1. ;;=K ^PS(59.5,DA(1),3,"AT",+("."_X),DA)
  1. ;;^DD(59.52,.01,1,2,"%D",0)
  1. ;;=^^1^2920901^
  1. ;;^DD(59.52,.01,1,2,"%D",1,0)
  1. ;;=Used by Inpatient Package.
  1. ;;^DD(59.52,.01,3)
  1. ;;=Answer must be 4 characters in length.
  1. ;;^DD(59.52,.01,20,0)
  1. ;;=^.3LA^1^1
  1. ;;^DD(59.52,.01,20,1,0)
  1. ;;=PSJI
  1. ;;^DD(59.52,.01,21,0)
  1. ;;=^^5^5^2940714^^^^
  1. ;;^DD(59.52,.01,21,1,0)
  1. ;;=
  1. ;;^DD(59.52,.01,21,2,0)
  1. ;;=Delivery times must be entered using a 24-hour clock (i.e., 9AM is
  1. ;;^DD(59.52,.01,21,3,0)
  1. ;;=entered as 0900). Delivery times are used as default start times
  1. ;;^DD(59.52,.01,21,4,0)
  1. ;;=for admixtures and hyperalimentations. Enter midnight as 2400.
  1. ;;^DD(59.52,.01,21,5,0)
  1. ;;=
  1. ;;^DD(59.52,.01,"DT")
  1. ;;=2860724