PSGWI025 ; ; 04-JAN-1994
;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
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
Q Q
;;^DIC(59.4,0,"GL")
;;=^PS(59.4,
;;^DIC("B","INPATIENT SITE",59.4)
;;=
;;^DIC(59.4,"%",0)
;;=^1.005^0^0
;;^DIC(59.4,"%D",0)
;;=^^3^3^2921203^^^^
;;^DIC(59.4,"%D",1,0)
;;= Contains the site parameters for the various inpatient packages, giving
;;^DIC(59.4,"%D",2,0)
;;=the various VAMCs the ability to tailor the packages to their needs.
;;^DIC(59.4,"%D",3,0)
;;=Currently shared by the Ward Stock and Unit Dose packages.
;;^DD(59.4,0)
;;=FIELD^^31^35
;;^DD(59.4,0,"DDA")
;;=N
;;^DD(59.4,0,"DT")
;;=2910708
;;^DD(59.4,0,"IX","AC",59.4,8)
;;=
;;^DD(59.4,0,"IX","APLFC",59.4,.01)
;;=
;;^DD(59.4,0,"IX","AUPLK",59.4,.01)
;;=
;;^DD(59.4,0,"IX","B",59.4,.01)
;;=
;;^DD(59.4,0,"NM","INPATIENT SITE")
;;=
;;^DD(59.4,0,"PT",53.4104,1)
;;=
;;^DD(59.4,0,"PT",58.1,4)
;;=
;;^DD(59.4,0,"PT",58.501,.01)
;;=
;;^DD(59.4,0,"PT",58.8,2)
;;=
;;^DD(59.4,0,"PT",59.7,20.4)
;;=
;;^DD(59.4,.01,0)
;;=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
;;^DD(59.4,.01,.1)
;;=Name
;;^DD(59.4,.01,1,0)
;;=^.1^^-1
;;^DD(59.4,.01,1,1,0)
;;=59.4^B
;;^DD(59.4,.01,1,1,1)
;;=S ^PS(59.4,"B",$E(X,1,30),DA)=""
;;^DD(59.4,.01,1,1,2)
;;=K ^PS(59.4,"B",$E(X,1,30),DA)
;;^DD(59.4,.01,1,6,0)
;;=59.4^AUPLK^MUMPS
;;^DD(59.4,.01,1,6,1)
;;=I '$D(PSGINITF) S ^PS(59.4,"AUPLK")=$S($D(^PS(59.7,1,20)):$P(^(20),"^"),1:"")
;;^DD(59.4,.01,1,6,2)
;;=Q
;;^DD(59.4,.01,1,6,"%D",0)
;;=^^1^2920901^
;;^DD(59.4,.01,1,6,"%D",1,0)
;;=Sets Inpatient Pharmacy System data cross-ref.
;;^DD(59.4,.01,1,7,0)
;;=59.4^APLFC^MUMPS
;;^DD(59.4,.01,1,7,1)
;;=S ^PS(59.4,"APLFC")=$S($D(^PS(59.7,1,20)):$P(^(20),"^"),1:"")
;;^DD(59.4,.01,1,7,2)
;;=Q
;;^DD(59.4,.01,1,7,"%D",0)
;;=^^1^2920901^
;;^DD(59.4,.01,1,7,"%D",1,0)
;;=Sets Inpatient Pharmacy System data cross-ref.
;;^DD(59.4,.01,3)
;;=Name must be 3-30 characters, not starting with punctuation.
;;^DD(59.4,.01,20,0)
;;=^.3LA^2^2
;;^DD(59.4,.01,20,1,0)
;;=PSGW
;;^DD(59.4,.01,20,2,0)
;;=PS
;;^DD(59.4,.01,21,0)
;;=^^4^4^2900209^^^^
;;^DD(59.4,.01,21,1,0)
;;=This contains the name of the Inpatient Site. A VAMC may have more than
;;^DD(59.4,.01,21,2,0)
;;=one inpatient site name, i.e. for multi-divisional sites or nursing
;;^DD(59.4,.01,21,3,0)
;;=homes. A second site name would be used, for example, whenever different
;;^DD(59.4,.01,21,4,0)
;;=parameters are required.
;;^DD(59.4,.01,"DEL",1,0)
;;=D ^PSGRPNT
;;^DD(59.4,.01,"DT")
;;=2890920
;;^DD(59.4,4,0)
;;=MERGE INV. SHEET AND PICK LIST^S^1:YES;0:NO;^0;5^Q
;;^DD(59.4,4,20,0)
;;=^.3LA^1^1
;;^DD(59.4,4,20,1,0)
;;=PSGW
;;^DD(59.4,4,21,0)
;;=^^7^7^2890725^^^^
;;^DD(59.4,4,21,1,0)
;;=If 1 is entered, the Automatic Replenishment inventory sheet and pick list
;;^DD(59.4,4,21,2,0)
;;=are merged - a separate pick list does not have to be printed. The
;;^DD(59.4,4,21,3,0)
;;=inventory sheet contains the quantity dispensed column. The on
;;^DD(59.4,4,21,4,0)
;;=hand values do not have to be input. The user only enters the actual
;;^DD(59.4,4,21,5,0)
;;=quantity dispensed. If 0 is entered, the inventory sheet and pick list are
;;^DD(59.4,4,21,6,0)
;;=not merged. The user prints the inventory sheet, enters on hand amounts,
;;^DD(59.4,4,21,7,0)
;;=prints the pick list, and dispenses the items.
;;^DD(59.4,4,"DT")
;;=2850718
;;^DD(59.4,4.5,0)
;;=AR/WS AMIS FLAG^S^0:NO;1:YES;^0;25^Q
;;^DD(59.4,4.5,.1)
;;=BEGIN COLLECTING AMIS DATA NOW?
;;^DD(59.4,4.5,3)
;;=Set this parameter ONLY after completing the "Prepare AMIS Data" options!
;;^DD(59.4,4.5,20,0)
;;=^.3LA^1^1
;;^DD(59.4,4.5,20,1,0)
;;=PSGW
;;^DD(59.4,4.5,21,0)
;;=^^11^11^2910221^^^^
;;^DD(59.4,4.5,21,1,0)
;;= ***WARNING***
;;^DD(59.4,4.5,21,2,0)
;;=The setting of this parameter DIRECTLY AFFECTS THE ACCURACY of the
;;^DD(59.4,4.5,21,3,0)
;;=AMIS report! This parameter should be set to "NO" until you have
;;^DD(59.4,4.5,21,4,0)
;;=completed ALL of the "Prepare AMIS Data" options on the
;;^DD(59.4,4.5,21,5,0)
;;="Supervisor's Menu". Carefully examine the reports produced by the
PSGWI025 ; ; 04-JAN-1994
+1 ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
+2 IF 'DIFQ(59.4)
QUIT
FOR I=1:2
SET X=$TEXT(Q+I)
IF X=""
QUIT
SET Y=$EXTRACT($TEXT(Q+I+1),4,999)
SET X=$EXTRACT(X,4,999)
IF $ASCII(Y)=126
SET I=I+1
SET Y=$EXTRACT(Y,2,999)_$EXTRACT($TEXT(Q+I+1),5,99)
IF $ASCII(Y)=61
SET Y=$EXTRACT(Y,2,999)
XECUTE NO
IF '$TEST
SET @X=Y
Q QUIT
+1 ;;^DIC(59.4,0,"GL")
+2 ;;=^PS(59.4,
+3 ;;^DIC("B","INPATIENT SITE",59.4)
+4 ;;=
+5 ;;^DIC(59.4,"%",0)
+6 ;;=^1.005^0^0
+7 ;;^DIC(59.4,"%D",0)
+8 ;;=^^3^3^2921203^^^^
+9 ;;^DIC(59.4,"%D",1,0)
+10 ;;= Contains the site parameters for the various inpatient packages, giving
+11 ;;^DIC(59.4,"%D",2,0)
+12 ;;=the various VAMCs the ability to tailor the packages to their needs.
+13 ;;^DIC(59.4,"%D",3,0)
+14 ;;=Currently shared by the Ward Stock and Unit Dose packages.
+15 ;;^DD(59.4,0)
+16 ;;=FIELD^^31^35
+17 ;;^DD(59.4,0,"DDA")
+18 ;;=N
+19 ;;^DD(59.4,0,"DT")
+20 ;;=2910708
+21 ;;^DD(59.4,0,"IX","AC",59.4,8)
+22 ;;=
+23 ;;^DD(59.4,0,"IX","APLFC",59.4,.01)
+24 ;;=
+25 ;;^DD(59.4,0,"IX","AUPLK",59.4,.01)
+26 ;;=
+27 ;;^DD(59.4,0,"IX","B",59.4,.01)
+28 ;;=
+29 ;;^DD(59.4,0,"NM","INPATIENT SITE")
+30 ;;=
+31 ;;^DD(59.4,0,"PT",53.4104,1)
+32 ;;=
+33 ;;^DD(59.4,0,"PT",58.1,4)
+34 ;;=
+35 ;;^DD(59.4,0,"PT",58.501,.01)
+36 ;;=
+37 ;;^DD(59.4,0,"PT",58.8,2)
+38 ;;=
+39 ;;^DD(59.4,0,"PT",59.7,20.4)
+40 ;;=
+41 ;;^DD(59.4,.01,0)
+42 ;;=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
+43 ;;^DD(59.4,.01,.1)
+44 ;;=Name
+45 ;;^DD(59.4,.01,1,0)
+46 ;;=^.1^^-1
+47 ;;^DD(59.4,.01,1,1,0)
+48 ;;=59.4^B
+49 ;;^DD(59.4,.01,1,1,1)
+50 ;;=S ^PS(59.4,"B",$E(X,1,30),DA)=""
+51 ;;^DD(59.4,.01,1,1,2)
+52 ;;=K ^PS(59.4,"B",$E(X,1,30),DA)
+53 ;;^DD(59.4,.01,1,6,0)
+54 ;;=59.4^AUPLK^MUMPS
+55 ;;^DD(59.4,.01,1,6,1)
+56 ;;=I '$D(PSGINITF) S ^PS(59.4,"AUPLK")=$S($D(^PS(59.7,1,20)):$P(^(20),"^"),1:"")
+57 ;;^DD(59.4,.01,1,6,2)
+58 ;;=Q
+59 ;;^DD(59.4,.01,1,6,"%D",0)
+60 ;;=^^1^2920901^
+61 ;;^DD(59.4,.01,1,6,"%D",1,0)
+62 ;;=Sets Inpatient Pharmacy System data cross-ref.
+63 ;;^DD(59.4,.01,1,7,0)
+64 ;;=59.4^APLFC^MUMPS
+65 ;;^DD(59.4,.01,1,7,1)
+66 ;;=S ^PS(59.4,"APLFC")=$S($D(^PS(59.7,1,20)):$P(^(20),"^"),1:"")
+67 ;;^DD(59.4,.01,1,7,2)
+68 ;;=Q
+69 ;;^DD(59.4,.01,1,7,"%D",0)
+70 ;;=^^1^2920901^
+71 ;;^DD(59.4,.01,1,7,"%D",1,0)
+72 ;;=Sets Inpatient Pharmacy System data cross-ref.
+73 ;;^DD(59.4,.01,3)
+74 ;;=Name must be 3-30 characters, not starting with punctuation.
+75 ;;^DD(59.4,.01,20,0)
+76 ;;=^.3LA^2^2
+77 ;;^DD(59.4,.01,20,1,0)
+78 ;;=PSGW
+79 ;;^DD(59.4,.01,20,2,0)
+80 ;;=PS
+81 ;;^DD(59.4,.01,21,0)
+82 ;;=^^4^4^2900209^^^^
+83 ;;^DD(59.4,.01,21,1,0)
+84 ;;=This contains the name of the Inpatient Site. A VAMC may have more than
+85 ;;^DD(59.4,.01,21,2,0)
+86 ;;=one inpatient site name, i.e. for multi-divisional sites or nursing
+87 ;;^DD(59.4,.01,21,3,0)
+88 ;;=homes. A second site name would be used, for example, whenever different
+89 ;;^DD(59.4,.01,21,4,0)
+90 ;;=parameters are required.
+91 ;;^DD(59.4,.01,"DEL",1,0)
+92 ;;=D ^PSGRPNT
+93 ;;^DD(59.4,.01,"DT")
+94 ;;=2890920
+95 ;;^DD(59.4,4,0)
+96 ;;=MERGE INV. SHEET AND PICK LIST^S^1:YES;0:NO;^0;5^Q
+97 ;;^DD(59.4,4,20,0)
+98 ;;=^.3LA^1^1
+99 ;;^DD(59.4,4,20,1,0)
+100 ;;=PSGW
+101 ;;^DD(59.4,4,21,0)
+102 ;;=^^7^7^2890725^^^^
+103 ;;^DD(59.4,4,21,1,0)
+104 ;;=If 1 is entered, the Automatic Replenishment inventory sheet and pick list
+105 ;;^DD(59.4,4,21,2,0)
+106 ;;=are merged - a separate pick list does not have to be printed. The
+107 ;;^DD(59.4,4,21,3,0)
+108 ;;=inventory sheet contains the quantity dispensed column. The on
+109 ;;^DD(59.4,4,21,4,0)
+110 ;;=hand values do not have to be input. The user only enters the actual
+111 ;;^DD(59.4,4,21,5,0)
+112 ;;=quantity dispensed. If 0 is entered, the inventory sheet and pick list are
+113 ;;^DD(59.4,4,21,6,0)
+114 ;;=not merged. The user prints the inventory sheet, enters on hand amounts,
+115 ;;^DD(59.4,4,21,7,0)
+116 ;;=prints the pick list, and dispenses the items.
+117 ;;^DD(59.4,4,"DT")
+118 ;;=2850718
+119 ;;^DD(59.4,4.5,0)
+120 ;;=AR/WS AMIS FLAG^S^0:NO;1:YES;^0;25^Q
+121 ;;^DD(59.4,4.5,.1)
+122 ;;=BEGIN COLLECTING AMIS DATA NOW?
+123 ;;^DD(59.4,4.5,3)
+124 ;;=Set this parameter ONLY after completing the "Prepare AMIS Data" options!
+125 ;;^DD(59.4,4.5,20,0)
+126 ;;=^.3LA^1^1
+127 ;;^DD(59.4,4.5,20,1,0)
+128 ;;=PSGW
+129 ;;^DD(59.4,4.5,21,0)
+130 ;;=^^11^11^2910221^^^^
+131 ;;^DD(59.4,4.5,21,1,0)
+132 ;;= ***WARNING***
+133 ;;^DD(59.4,4.5,21,2,0)
+134 ;;=The setting of this parameter DIRECTLY AFFECTS THE ACCURACY of the
+135 ;;^DD(59.4,4.5,21,3,0)
+136 ;;=AMIS report! This parameter should be set to "NO" until you have
+137 ;;^DD(59.4,4.5,21,4,0)
+138 ;;=completed ALL of the "Prepare AMIS Data" options on the
+139 ;;^DD(59.4,4.5,21,5,0)
+140 ;;="Supervisor's Menu". Carefully examine the reports produced by the