PSGWI039 ; ; 04-JAN-1994
;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
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
;;^UTILITY(U,$J,"OPT",197,1,4,0)
;;=and thus could not be added to the cumulative AMIS statistics.
;;^UTILITY(U,$J,"OPT",197,1,5,0)
;;=For the selected date range, the drug will be shown, and the user
;;^UTILITY(U,$J,"OPT",197,1,6,0)
;;=will be asked to supply the missing data. At that time, the routine
;;^UTILITY(U,$J,"OPT",197,1,7,0)
;;=will update the AMIS statistics, and delete the "AEX" cross-reference.
;;^UTILITY(U,$J,"OPT",197,25)
;;=PSGWCL
;;^UTILITY(U,$J,"OPT",197,"U")
;;=INCOMPLETE AMIS DATA
;;^UTILITY(U,$J,"OPT",198,0)
;;=PSGW RECALCULATE AMIS^Recalculate AMIS^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",198,1,0)
;;=^^5^5^2870902^^
;;^UTILITY(U,$J,"OPT",198,1,1,0)
;;=This option should be used ONLY after the AMIS report has been run,
;;^UTILITY(U,$J,"OPT",198,1,2,0)
;;=results have been found to be in error, and data in the Drug file
;;^UTILITY(U,$J,"OPT",198,1,3,0)
;;=has been changed to reflect the correct information. The purpose
;;^UTILITY(U,$J,"OPT",198,1,4,0)
;;=of this option is to correct the AMIS when data entry errors have
;;^UTILITY(U,$J,"OPT",198,1,5,0)
;;=caused the results to be inaccurate.
;;^UTILITY(U,$J,"OPT",198,25)
;;=PSGWRA
;;^UTILITY(U,$J,"OPT",198,"U")
;;=RECALCULATE AMIS
;;^UTILITY(U,$J,"OPT",199,0)
;;=PSGW PRINT AMIS REPORT^Print AMIS Report (132 column)^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",199,1,0)
;;=^^2^2^2890126^^^^
;;^UTILITY(U,$J,"OPT",199,1,1,0)
;;=This option prints the AMIS report. Right margin should be at 132.
;;^UTILITY(U,$J,"OPT",199,1,2,0)
;;=The report may be queued to print at a later time.
;;^UTILITY(U,$J,"OPT",199,25)
;;=PSGWAR
;;^UTILITY(U,$J,"OPT",199,99)
;;=53515,48652
;;^UTILITY(U,$J,"OPT",199,"U")
;;=PRINT AMIS REPORT (132 COLUMN)
;;^UTILITY(U,$J,"OPT",201,0)
;;=PSGW PURGE^Obsolete Data Purge^^M^^PSGW PURGE^^^^^^
;;^UTILITY(U,$J,"OPT",201,1,0)
;;=^^1^1^2880114^^^^
;;^UTILITY(U,$J,"OPT",201,1,1,0)
;;=This option is the main menu driver for purging AR/WS files.
;;^UTILITY(U,$J,"OPT",201,10,0)
;;=^19.01PI^2^2
;;^UTILITY(U,$J,"OPT",201,10,1,0)
;;=202^
;;^UTILITY(U,$J,"OPT",201,10,1,"^")
;;=PSGW PURGE AMIS
;;^UTILITY(U,$J,"OPT",201,10,2,0)
;;=203^
;;^UTILITY(U,$J,"OPT",201,10,2,"^")
;;=PSGW PURGE FILES
;;^UTILITY(U,$J,"OPT",201,99)
;;=55612,32988
;;^UTILITY(U,$J,"OPT",201,"U")
;;=OBSOLETE DATA PURGE
;;^UTILITY(U,$J,"OPT",202,0)
;;=PSGW PURGE AMIS^AMIS Data Purge^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",202,1,0)
;;=^^4^4^2910212^^^^
;;^UTILITY(U,$J,"OPT",202,1,1,0)
;;=This option allows the user to delete data from File 58.5 - the
;;^UTILITY(U,$J,"OPT",202,1,2,0)
;;=AR/WS Stats File. Data should be kept in this file for at least
;;^UTILITY(U,$J,"OPT",202,1,3,0)
;;=one quarter. The routine will not allow users to delete data
;;^UTILITY(U,$J,"OPT",202,1,4,0)
;;=that is less than 100 days old. The option is automatically queued.
;;^UTILITY(U,$J,"OPT",202,25)
;;=PSGWAP
;;^UTILITY(U,$J,"OPT",202,"U")
;;=AMIS DATA PURGE
;;^UTILITY(U,$J,"OPT",203,0)
;;=PSGW PURGE FILES^Purge Dispensing Data^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",203,1,0)
;;=^^5^5^2930624^^^^
;;^UTILITY(U,$J,"OPT",203,1,1,0)
;;=This option allows the user to delete data from Files 58.1, 58.3,
;;^UTILITY(U,$J,"OPT",203,1,2,0)
;;=and 58.19. Data should be kept in these files for at least one
;;^UTILITY(U,$J,"OPT",203,1,3,0)
;;=quarter. The routine will not allow users to delete data that is
;;^UTILITY(U,$J,"OPT",203,1,4,0)
;;=less than 100 days old. Since the option is CPU intensive, it should
;;^UTILITY(U,$J,"OPT",203,1,5,0)
;;=be queued to run during the "off" hours.
;;^UTILITY(U,$J,"OPT",203,25)
;;=PSGWOLD
;;^UTILITY(U,$J,"OPT",203,"U")
;;=PURGE DISPENSING DATA
;;^UTILITY(U,$J,"OPT",204,0)
;;=PSGW COST PER AOU^Cost Report Per AOU (80 column)^^R^^^^^^^^
;;^UTILITY(U,$J,"OPT",204,1,0)
;;=^^10^10^2910221^^^^
;;^UTILITY(U,$J,"OPT",204,1,1,0)
;;=For a user selected date range, this report will show all active drugs for
;;^UTILITY(U,$J,"OPT",204,1,2,0)
;;=one AOU, several AOUs, or ALL AOUs, with total quantity dispensed and cost.
PSGWI039 ; ; 04-JAN-1994
+1 ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
+2 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 ;;^UTILITY(U,$J,"OPT",197,1,4,0)
+2 ;;=and thus could not be added to the cumulative AMIS statistics.
+3 ;;^UTILITY(U,$J,"OPT",197,1,5,0)
+4 ;;=For the selected date range, the drug will be shown, and the user
+5 ;;^UTILITY(U,$J,"OPT",197,1,6,0)
+6 ;;=will be asked to supply the missing data. At that time, the routine
+7 ;;^UTILITY(U,$J,"OPT",197,1,7,0)
+8 ;;=will update the AMIS statistics, and delete the "AEX" cross-reference.
+9 ;;^UTILITY(U,$J,"OPT",197,25)
+10 ;;=PSGWCL
+11 ;;^UTILITY(U,$J,"OPT",197,"U")
+12 ;;=INCOMPLETE AMIS DATA
+13 ;;^UTILITY(U,$J,"OPT",198,0)
+14 ;;=PSGW RECALCULATE AMIS^Recalculate AMIS^^R^^^^^^^^
+15 ;;^UTILITY(U,$J,"OPT",198,1,0)
+16 ;;=^^5^5^2870902^^
+17 ;;^UTILITY(U,$J,"OPT",198,1,1,0)
+18 ;;=This option should be used ONLY after the AMIS report has been run,
+19 ;;^UTILITY(U,$J,"OPT",198,1,2,0)
+20 ;;=results have been found to be in error, and data in the Drug file
+21 ;;^UTILITY(U,$J,"OPT",198,1,3,0)
+22 ;;=has been changed to reflect the correct information. The purpose
+23 ;;^UTILITY(U,$J,"OPT",198,1,4,0)
+24 ;;=of this option is to correct the AMIS when data entry errors have
+25 ;;^UTILITY(U,$J,"OPT",198,1,5,0)
+26 ;;=caused the results to be inaccurate.
+27 ;;^UTILITY(U,$J,"OPT",198,25)
+28 ;;=PSGWRA
+29 ;;^UTILITY(U,$J,"OPT",198,"U")
+30 ;;=RECALCULATE AMIS
+31 ;;^UTILITY(U,$J,"OPT",199,0)
+32 ;;=PSGW PRINT AMIS REPORT^Print AMIS Report (132 column)^^R^^^^^^^^
+33 ;;^UTILITY(U,$J,"OPT",199,1,0)
+34 ;;=^^2^2^2890126^^^^
+35 ;;^UTILITY(U,$J,"OPT",199,1,1,0)
+36 ;;=This option prints the AMIS report. Right margin should be at 132.
+37 ;;^UTILITY(U,$J,"OPT",199,1,2,0)
+38 ;;=The report may be queued to print at a later time.
+39 ;;^UTILITY(U,$J,"OPT",199,25)
+40 ;;=PSGWAR
+41 ;;^UTILITY(U,$J,"OPT",199,99)
+42 ;;=53515,48652
+43 ;;^UTILITY(U,$J,"OPT",199,"U")
+44 ;;=PRINT AMIS REPORT (132 COLUMN)
+45 ;;^UTILITY(U,$J,"OPT",201,0)
+46 ;;=PSGW PURGE^Obsolete Data Purge^^M^^PSGW PURGE^^^^^^
+47 ;;^UTILITY(U,$J,"OPT",201,1,0)
+48 ;;=^^1^1^2880114^^^^
+49 ;;^UTILITY(U,$J,"OPT",201,1,1,0)
+50 ;;=This option is the main menu driver for purging AR/WS files.
+51 ;;^UTILITY(U,$J,"OPT",201,10,0)
+52 ;;=^19.01PI^2^2
+53 ;;^UTILITY(U,$J,"OPT",201,10,1,0)
+54 ;;=202^
+55 ;;^UTILITY(U,$J,"OPT",201,10,1,"^")
+56 ;;=PSGW PURGE AMIS
+57 ;;^UTILITY(U,$J,"OPT",201,10,2,0)
+58 ;;=203^
+59 ;;^UTILITY(U,$J,"OPT",201,10,2,"^")
+60 ;;=PSGW PURGE FILES
+61 ;;^UTILITY(U,$J,"OPT",201,99)
+62 ;;=55612,32988
+63 ;;^UTILITY(U,$J,"OPT",201,"U")
+64 ;;=OBSOLETE DATA PURGE
+65 ;;^UTILITY(U,$J,"OPT",202,0)
+66 ;;=PSGW PURGE AMIS^AMIS Data Purge^^R^^^^^^^^
+67 ;;^UTILITY(U,$J,"OPT",202,1,0)
+68 ;;=^^4^4^2910212^^^^
+69 ;;^UTILITY(U,$J,"OPT",202,1,1,0)
+70 ;;=This option allows the user to delete data from File 58.5 - the
+71 ;;^UTILITY(U,$J,"OPT",202,1,2,0)
+72 ;;=AR/WS Stats File. Data should be kept in this file for at least
+73 ;;^UTILITY(U,$J,"OPT",202,1,3,0)
+74 ;;=one quarter. The routine will not allow users to delete data
+75 ;;^UTILITY(U,$J,"OPT",202,1,4,0)
+76 ;;=that is less than 100 days old. The option is automatically queued.
+77 ;;^UTILITY(U,$J,"OPT",202,25)
+78 ;;=PSGWAP
+79 ;;^UTILITY(U,$J,"OPT",202,"U")
+80 ;;=AMIS DATA PURGE
+81 ;;^UTILITY(U,$J,"OPT",203,0)
+82 ;;=PSGW PURGE FILES^Purge Dispensing Data^^R^^^^^^^^
+83 ;;^UTILITY(U,$J,"OPT",203,1,0)
+84 ;;=^^5^5^2930624^^^^
+85 ;;^UTILITY(U,$J,"OPT",203,1,1,0)
+86 ;;=This option allows the user to delete data from Files 58.1, 58.3,
+87 ;;^UTILITY(U,$J,"OPT",203,1,2,0)
+88 ;;=and 58.19. Data should be kept in these files for at least one
+89 ;;^UTILITY(U,$J,"OPT",203,1,3,0)
+90 ;;=quarter. The routine will not allow users to delete data that is
+91 ;;^UTILITY(U,$J,"OPT",203,1,4,0)
+92 ;;=less than 100 days old. Since the option is CPU intensive, it should
+93 ;;^UTILITY(U,$J,"OPT",203,1,5,0)
+94 ;;=be queued to run during the "off" hours.
+95 ;;^UTILITY(U,$J,"OPT",203,25)
+96 ;;=PSGWOLD
+97 ;;^UTILITY(U,$J,"OPT",203,"U")
+98 ;;=PURGE DISPENSING DATA
+99 ;;^UTILITY(U,$J,"OPT",204,0)
+100 ;;=PSGW COST PER AOU^Cost Report Per AOU (80 column)^^R^^^^^^^^
+101 ;;^UTILITY(U,$J,"OPT",204,1,0)
+102 ;;=^^10^10^2910221^^^^
+103 ;;^UTILITY(U,$J,"OPT",204,1,1,0)
+104 ;;=For a user selected date range, this report will show all active drugs for
+105 ;;^UTILITY(U,$J,"OPT",204,1,2,0)
+106 ;;=one AOU, several AOUs, or ALL AOUs, with total quantity dispensed and cost.