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

ACHSAOPO.m

Go to the documentation of this file.
ACHSAOPO ; IHS/ITSC/PMF - AREA PURCHASE ORDER FILE UTILITIES ;  [ 10/16/2001   8:16 AM ]
 ;;3.1;CONTRACT HEALTH MGMT SYSTEM;;JUN 11, 2001
 ;
ADD(ACHSP,ACHST,ACHSV) ;EP - Make entry into Area PO transaction file, PO,Type,Value.
 N DIC,DLAYGO,DA,DR,X,Y
 S X=ACHSP,DIC="^ACHSAOPO(",DIC(0)="L",DLAYGO=9002068
 D ^DIC
 I +Y<1 Q
 I '$D(^ACHSAOPO(+Y,1,0)) S ^ACHSAOPO(+Y,1,0)=$$ZEROTH^ACHS(9002068,1)
 S X=$$NOW^XLFDT,DA(1)=+Y,DIC="^ACHSAOPO("_DA(1)_",1,",DIC("DR")=".02///"_ACHST_";1///"_ACHSV
 D ^DIC
 K DLAYGO,DIC,DIE,DA,DR
 Q
 ;
DISP ;EP - Display transactions for a PO.
 N DIC,L,FLDS,BY,FR,TO,DHD
 S DIC="^ACHSAOPO(",DIC(0)="AEMNO"
 D ^DIC
 Q:+Y<1
 S L=0,FLDS="[CAPTIONED]",BY="@.01",(FR,TO)=$$VAL^XBDIQ1(DIC,+Y,.01),DHD="Transactions for P.O. "_FR
 D EN1^DIP
 Q
 ;