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

PSGWI025.m

Go to the documentation of this file.
  1. PSGWI025 ; ; 04-JAN-1994
  1. ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
  1. Q:'DIFQ(59.4) 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. ;;^DIC(59.4,0,"GL")
  1. ;;=^PS(59.4,
  1. ;;^DIC("B","INPATIENT SITE",59.4)
  1. ;;=
  1. ;;^DIC(59.4,"%",0)
  1. ;;=^1.005^0^0
  1. ;;^DIC(59.4,"%D",0)
  1. ;;=^^3^3^2921203^^^^
  1. ;;^DIC(59.4,"%D",1,0)
  1. ;;= Contains the site parameters for the various inpatient packages, giving
  1. ;;^DIC(59.4,"%D",2,0)
  1. ;;=the various VAMCs the ability to tailor the packages to their needs.
  1. ;;^DIC(59.4,"%D",3,0)
  1. ;;=Currently shared by the Ward Stock and Unit Dose packages.
  1. ;;^DD(59.4,0)
  1. ;;=FIELD^^31^35
  1. ;;^DD(59.4,0,"DDA")
  1. ;;=N
  1. ;;^DD(59.4,0,"DT")
  1. ;;=2910708
  1. ;;^DD(59.4,0,"IX","AC",59.4,8)
  1. ;;=
  1. ;;^DD(59.4,0,"IX","APLFC",59.4,.01)
  1. ;;=
  1. ;;^DD(59.4,0,"IX","AUPLK",59.4,.01)
  1. ;;=
  1. ;;^DD(59.4,0,"IX","B",59.4,.01)
  1. ;;=
  1. ;;^DD(59.4,0,"NM","INPATIENT SITE")
  1. ;;=
  1. ;;^DD(59.4,0,"PT",53.4104,1)
  1. ;;=
  1. ;;^DD(59.4,0,"PT",58.1,4)
  1. ;;=
  1. ;;^DD(59.4,0,"PT",58.501,.01)
  1. ;;=
  1. ;;^DD(59.4,0,"PT",58.8,2)
  1. ;;=
  1. ;;^DD(59.4,0,"PT",59.7,20.4)
  1. ;;=
  1. ;;^DD(59.4,.01,0)
  1. ;;=NAME^RF^^0;1^K:X[""""!($A(X)=45) X I $D(X) K:$L(X)>30!($L(X)<3)!'(X'?1P.E)!(X'?.ANP) X
  1. ;;^DD(59.4,.01,.1)
  1. ;;=Name
  1. ;;^DD(59.4,.01,1,0)
  1. ;;=^.1^^-1
  1. ;;^DD(59.4,.01,1,1,0)
  1. ;;=59.4^B
  1. ;;^DD(59.4,.01,1,1,1)
  1. ;;=S ^PS(59.4,"B",$E(X,1,30),DA)=""
  1. ;;^DD(59.4,.01,1,1,2)
  1. ;;=K ^PS(59.4,"B",$E(X,1,30),DA)
  1. ;;^DD(59.4,.01,1,6,0)
  1. ;;=59.4^AUPLK^MUMPS
  1. ;;^DD(59.4,.01,1,6,1)
  1. ;;=I '$D(PSGINITF) S ^PS(59.4,"AUPLK")=$S($D(^PS(59.7,1,20)):$P(^(20),"^"),1:"")
  1. ;;^DD(59.4,.01,1,6,2)
  1. ;;=Q
  1. ;;^DD(59.4,.01,1,6,"%D",0)
  1. ;;=^^1^2920901^
  1. ;;^DD(59.4,.01,1,6,"%D",1,0)
  1. ;;=Sets Inpatient Pharmacy System data cross-ref.
  1. ;;^DD(59.4,.01,1,7,0)
  1. ;;=59.4^APLFC^MUMPS
  1. ;;^DD(59.4,.01,1,7,1)
  1. ;;=S ^PS(59.4,"APLFC")=$S($D(^PS(59.7,1,20)):$P(^(20),"^"),1:"")
  1. ;;^DD(59.4,.01,1,7,2)
  1. ;;=Q
  1. ;;^DD(59.4,.01,1,7,"%D",0)
  1. ;;=^^1^2920901^
  1. ;;^DD(59.4,.01,1,7,"%D",1,0)
  1. ;;=Sets Inpatient Pharmacy System data cross-ref.
  1. ;;^DD(59.4,.01,3)
  1. ;;=Name must be 3-30 characters, not starting with punctuation.
  1. ;;^DD(59.4,.01,20,0)
  1. ;;=^.3LA^2^2
  1. ;;^DD(59.4,.01,20,1,0)
  1. ;;=PSGW
  1. ;;^DD(59.4,.01,20,2,0)
  1. ;;=PS
  1. ;;^DD(59.4,.01,21,0)
  1. ;;=^^4^4^2900209^^^^
  1. ;;^DD(59.4,.01,21,1,0)
  1. ;;=This contains the name of the Inpatient Site. A VAMC may have more than
  1. ;;^DD(59.4,.01,21,2,0)
  1. ;;=one inpatient site name, i.e. for multi-divisional sites or nursing
  1. ;;^DD(59.4,.01,21,3,0)
  1. ;;=homes. A second site name would be used, for example, whenever different
  1. ;;^DD(59.4,.01,21,4,0)
  1. ;;=parameters are required.
  1. ;;^DD(59.4,.01,"DEL",1,0)
  1. ;;=D ^PSGRPNT
  1. ;;^DD(59.4,.01,"DT")
  1. ;;=2890920
  1. ;;^DD(59.4,4,0)
  1. ;;=MERGE INV. SHEET AND PICK LIST^S^1:YES;0:NO;^0;5^Q
  1. ;;^DD(59.4,4,20,0)
  1. ;;=^.3LA^1^1
  1. ;;^DD(59.4,4,20,1,0)
  1. ;;=PSGW
  1. ;;^DD(59.4,4,21,0)
  1. ;;=^^7^7^2890725^^^^
  1. ;;^DD(59.4,4,21,1,0)
  1. ;;=If 1 is entered, the Automatic Replenishment inventory sheet and pick list
  1. ;;^DD(59.4,4,21,2,0)
  1. ;;=are merged - a separate pick list does not have to be printed. The
  1. ;;^DD(59.4,4,21,3,0)
  1. ;;=inventory sheet contains the quantity dispensed column. The on
  1. ;;^DD(59.4,4,21,4,0)
  1. ;;=hand values do not have to be input. The user only enters the actual
  1. ;;^DD(59.4,4,21,5,0)
  1. ;;=quantity dispensed. If 0 is entered, the inventory sheet and pick list are
  1. ;;^DD(59.4,4,21,6,0)
  1. ;;=not merged. The user prints the inventory sheet, enters on hand amounts,
  1. ;;^DD(59.4,4,21,7,0)
  1. ;;=prints the pick list, and dispenses the items.
  1. ;;^DD(59.4,4,"DT")
  1. ;;=2850718
  1. ;;^DD(59.4,4.5,0)
  1. ;;=AR/WS AMIS FLAG^S^0:NO;1:YES;^0;25^Q
  1. ;;^DD(59.4,4.5,.1)
  1. ;;=BEGIN COLLECTING AMIS DATA NOW?
  1. ;;^DD(59.4,4.5,3)
  1. ;;=Set this parameter ONLY after completing the "Prepare AMIS Data" options!
  1. ;;^DD(59.4,4.5,20,0)
  1. ;;=^.3LA^1^1
  1. ;;^DD(59.4,4.5,20,1,0)
  1. ;;=PSGW
  1. ;;^DD(59.4,4.5,21,0)
  1. ;;=^^11^11^2910221^^^^
  1. ;;^DD(59.4,4.5,21,1,0)
  1. ;;= ***WARNING***
  1. ;;^DD(59.4,4.5,21,2,0)
  1. ;;=The setting of this parameter DIRECTLY AFFECTS THE ACCURACY of the
  1. ;;^DD(59.4,4.5,21,3,0)
  1. ;;=AMIS report! This parameter should be set to "NO" until you have
  1. ;;^DD(59.4,4.5,21,4,0)
  1. ;;=completed ALL of the "Prepare AMIS Data" options on the
  1. ;;^DD(59.4,4.5,21,5,0)
  1. ;;="Supervisor's Menu". Carefully examine the reports produced by the