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

PSGWI020.m

Go to the documentation of this file.
  1. PSGWI020 ; ; 04-JAN-1994
  1. ;;2.3; Automatic Replenishment/Ward Stock ;;4 JAN 94
  1. Q:'DIFQ(58.2) 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.29,.01,3)
  1. ;;=Enter the NAOU for this inventory group.
  1. ;;^DD(58.29,.01,12)
  1. ;;=Select only Controlled Substance locations.
  1. ;;^DD(58.29,.01,12.1)
  1. ;;=S DIC("S")="I $P(^(0),""^"",2)'=""P"""
  1. ;;^DD(58.29,.01,21,0)
  1. ;;=^^5^5^2920309^^^^
  1. ;;^DD(58.29,.01,21,1,0)
  1. ;;=This contains the name of the NAOU that is to be inventoried when
  1. ;;^DD(58.29,.01,21,2,0)
  1. ;;=selecting this inventory group. This points to file 58.8 - Drug
  1. ;;^DD(58.29,.01,21,3,0)
  1. ;;=Accountability Stats file.
  1. ;;^DD(58.29,.01,21,4,0)
  1. ;;=Screened pointer to file 58.8. Screens out entries with type defined
  1. ;;^DD(58.29,.01,21,5,0)
  1. ;;=as 'P' for Primary.
  1. ;;^DD(58.29,.01,23,0)
  1. ;;=^^1^1^2920309^^^^
  1. ;;^DD(58.29,.01,23,1,0)
  1. ;;=Pointer to file 58.8.
  1. ;;^DD(58.29,.01,23,2,0)
  1. ;;='P' for Primary.
  1. ;;^DD(58.29,.01,"DT")
  1. ;;=2920309
  1. ;;^DD(58.29,1,0)
  1. ;;=INVENTORY TYPE^58.291PA^^1;0
  1. ;;^DD(58.29,1,21,0)
  1. ;;=^^2^2^2920718^
  1. ;;^DD(58.29,1,21,1,0)
  1. ;;=Inventory types are used to group related drugs in a Narcotic Area of
  1. ;;^DD(58.29,1,21,2,0)
  1. ;;=Use.
  1. ;;^DD(58.29,2,0)
  1. ;;=SORT KEY^NJ15,4^^0;2^K:+X'=X!(X>9999999999)!(X<0)!(X?.E1"."5N.N) X
  1. ;;^DD(58.29,2,1,0)
  1. ;;=^.1
  1. ;;^DD(58.29,2,1,1,0)
  1. ;;=58.29^D
  1. ;;^DD(58.29,2,1,1,1)
  1. ;;=S ^PSI(58.2,DA(1),3,"D",$E(X,1,30),DA)=""
  1. ;;^DD(58.29,2,1,1,2)
  1. ;;=K ^PSI(58.2,DA(1),3,"D",$E(X,1,30),DA)
  1. ;;^DD(58.29,2,1,1,"DT")
  1. ;;=2920213
  1. ;;^DD(58.29,2,3)
  1. ;;=Type a Number between 0 and 9999999999, 4 Decimal Digits
  1. ;;^DD(58.29,2,21,0)
  1. ;;=^^2^2^2920213^
  1. ;;^DD(58.29,2,21,1,0)
  1. ;;=The sort key is used to define the sort order of NAOUs within an
  1. ;;^DD(58.29,2,21,2,0)
  1. ;;=inventory group.
  1. ;;^DD(58.29,2,"DT")
  1. ;;=2920213
  1. ;;^DD(58.291,0)
  1. ;;=INVENTORY TYPE SUB-FIELD^^.01^1
  1. ;;^DD(58.291,0,"DT")
  1. ;;=2920213
  1. ;;^DD(58.291,0,"NM","INVENTORY TYPE")
  1. ;;=
  1. ;;^DD(58.291,0,"UP")
  1. ;;=58.29
  1. ;;^DD(58.291,.01,0)
  1. ;;=INVENTORY TYPE^MRP58.16'X^PSI(58.16,^0;1^S:$D(X) DINUM=X
  1. ;;^DD(58.291,.01,1,0)
  1. ;;=^.1^^0
  1. ;;^DD(58.291,.01,3)
  1. ;;=Enter the inventory type(s) for this NAOU.
  1. ;;^DD(58.291,.01,21,0)
  1. ;;=^^3^3^2920213^
  1. ;;^DD(58.291,.01,21,1,0)
  1. ;;=This contains the inventory type that is to be inventoried within the
  1. ;;^DD(58.291,.01,21,2,0)
  1. ;;=NAOU. More than one inventory type can be entered. The inventory
  1. ;;^DD(58.291,.01,21,3,0)
  1. ;;=types must be defined in file 58.16 - AOU Inventory Type file.
  1. ;;^DD(58.291,.01,23,0)
  1. ;;=^^1^1^2920213^
  1. ;;^DD(58.291,.01,23,1,0)
  1. ;;=Pointer to file 58.16.
  1. ;;^DD(58.291,.01,"DT")
  1. ;;=2920213