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

PSGWI011.m

Go to the documentation of this file.
  1. PSGWI011 ; ; 04-JAN-1994
  1. ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
  1. Q:'DIFQ(58.1) 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(58.15,1,1,1,"%D",2,0)
  1. ;;=returned for a stock item. The nightly job "Update AMIS Stats File"
  1. ;;^DD(58.15,1,1,1,"%D",3,0)
  1. ;;=will process this cross-reference and store the data in the AR/WS Stats
  1. ;;^DD(58.15,1,1,1,"%D",4,0)
  1. ;;=File (#58.5). After the cross-reference is processed, it is deleted.
  1. ;;^DD(58.15,1,1,2,0)
  1. ;;=58.15^AMISERR^MUMPS
  1. ;;^DD(58.15,1,1,2,1)
  1. ;;=Q:$D(PSGWV) D RETERR^PSGWUTL
  1. ;;^DD(58.15,1,1,2,2)
  1. ;;=Q:$D(PSGWV) D KRETERR^PSGWUTL
  1. ;;^DD(58.15,1,1,2,"%D",0)
  1. ;;=^^5^5^2930811^
  1. ;;^DD(58.15,1,1,2,"%D",1,0)
  1. ;;=This cross-reference is set by the nightly job "Update AMIS Stats File"
  1. ;;^DD(58.15,1,1,2,"%D",2,0)
  1. ;;=if an AMIS transaction is found to have invalid or missing Inpatient
  1. ;;^DD(58.15,1,1,2,"%D",3,0)
  1. ;;=Site data. Existence of this cross-reference will cause a MailMan message
  1. ;;^DD(58.15,1,1,2,"%D",4,0)
  1. ;;=to be sent to holders of the PSGWMGR security key informing them of the
  1. ;;^DD(58.15,1,1,2,"%D",5,0)
  1. ;;=invalid or missing data.
  1. ;;^DD(58.15,1,3)
  1. ;;=Type a Number between 0 and 9999, 0 Decimal Digits.
  1. ;;^DD(58.15,1,21,0)
  1. ;;=^^1^1^2871008^^
  1. ;;^DD(58.15,1,21,1,0)
  1. ;;=This contains the quantity returned from the Area of Use for the item.
  1. ;;^DD(58.15,1,"DT")
  1. ;;=2910228
  1. ;;^DD(58.15,3,0)
  1. ;;=COMPILED INTO AMIS?^S^1:YES;0:NO;^0;4^Q
  1. ;;^DD(58.15,3,.1)
  1. ;;=COMPILED FLAG
  1. ;;^DD(58.15,3,21,0)
  1. ;;=^^5^5^2910221^^^^
  1. ;;^DD(58.15,3,21,1,0)
  1. ;;=A TaskMan background routine ^PSGWUAS (option PSGW UPDATE AMIS STATS) runs
  1. ;;^DD(58.15,3,21,2,0)
  1. ;;=each night. As the data for a return transaction is completed, this
  1. ;;^DD(58.15,3,21,3,0)
  1. ;;="COMPILED FLAG" will be set to "1". This will enable the cross-reference
  1. ;;^DD(58.15,3,21,4,0)
  1. ;;=^PSI(58.5,"AMIS") to be recompiled via the option PSGW RE-INDEX AMIS or
  1. ;;^DD(58.15,3,21,5,0)
  1. ;;=via VA FileMan should the need arise.
  1. ;;^DD(58.15,3,"DT")
  1. ;;=2880126
  1. ;;^DD(58.26,0)
  1. ;;=WARD (FOR ITEM) SUB-FIELD^NL^.01^1
  1. ;;^DD(58.26,0,"NM","WARD (FOR ITEM)")
  1. ;;=
  1. ;;^DD(58.26,0,"UP")
  1. ;;=58.11
  1. ;;^DD(58.26,.01,0)
  1. ;;=WARD (FOR ITEM)^MP42'X^DIC(42,^0;1^S:$D(X) DINUM=X
  1. ;;^DD(58.26,.01,1,0)
  1. ;;=^.1
  1. ;;^DD(58.26,.01,1,1,0)
  1. ;;=58.1^D^MUMPS
  1. ;;^DD(58.26,.01,1,1,1)
  1. ;;=I $D(^PSI(58.1,DA(2),1,DA(1),0)),^(0) D INACT^PSGWUTL I $D(PSGWFLG) S ^PSI(58.1,"D",+^(0),DA,DA(2))="" K PSGWFLG
  1. ;;^DD(58.26,.01,1,1,2)
  1. ;;=I $D(^PSI(58.1,DA(2),1,DA(1),0)),^(0) K ^PSI(58.1,"D",+^(0),DA,DA(2))
  1. ;;^DD(58.26,.01,1,1,"%D",0)
  1. ;;=^^3^3^2930811^
  1. ;;^DD(58.26,.01,1,1,"%D",1,0)
  1. ;;=This cross-reference is used by the UNIT DOSE package to identify items
  1. ;;^DD(58.26,.01,1,1,"%D",2,0)
  1. ;;=on the UD pick list that are Ward Stock items. It is also used by the
  1. ;;^DD(58.26,.01,1,1,"%D",3,0)
  1. ;;=option "Ward (For Item) Conversion".
  1. ;;^DD(58.26,.01,3)
  1. ;;=Enter the ward which uses this item.
  1. ;;^DD(58.26,.01,21,0)
  1. ;;=^^4^4^2880224^^^^
  1. ;;^DD(58.26,.01,21,1,0)
  1. ;;=This contains the pointer to File 42 - Ward Location File.
  1. ;;^DD(58.26,.01,21,2,0)
  1. ;;=Names of the ward or wards using this item will be entered.
  1. ;;^DD(58.26,.01,21,3,0)
  1. ;;=This is the link between the AR/WS package and the Unit Dose
  1. ;;^DD(58.26,.01,21,4,0)
  1. ;;=package for determining ward stocked items.
  1. ;;^DD(58.26,.01,"DT")
  1. ;;=2900213
  1. ;;^DD(58.27,0)
  1. ;;=SERVICE SUB-FIELD^NL^1^2
  1. ;;^DD(58.27,0,"NM","SERVICE")
  1. ;;=
  1. ;;^DD(58.27,0,"UP")
  1. ;;=58.14
  1. ;;^DD(58.27,.01,0)
  1. ;;=SERVICE^MP42.4'^DIC(42.4,^0;1^Q
  1. ;;^DD(58.27,.01,3)
  1. ;;=Enter the name of the service that makes up this ward/location.
  1. ;;^DD(58.27,.01,21,0)
  1. ;;=^^3^3^2910304^^^^
  1. ;;^DD(58.27,.01,21,1,0)
  1. ;;=This points to File 42.4 - the Specialty file.
  1. ;;^DD(58.27,.01,21,2,0)
  1. ;;=It contains the service (or services) served partially or totally
  1. ;;^DD(58.27,.01,21,3,0)
  1. ;;=by this ward/location.
  1. ;;^DD(58.27,.01,"DT")
  1. ;;=2850812
  1. ;;^DD(58.27,1,0)
  1. ;;=SERVICE % OF USE^NJ3,0^^0;2^K:+X'=X!(X>100)!(X<1)!(X?.E1"."1N.N) X
  1. ;;^DD(58.27,1,3)
  1. ;;=Type a whole number between 1 and 100
  1. ;;^DD(58.27,1,21,0)
  1. ;;=^^2^2^2900827^^^^
  1. ;;^DD(58.27,1,21,1,0)
  1. ;;=This contains the percentage of use for this service. For example 40 beds