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

ACDFUL1.m

Go to the documentation of this file.
ACDFUL1 ;IHS/ADC/EDE/KML - IHS-SMBD/MLQ CDMIS FU LIST PART 1;
 ;;4.1;CHEMICAL DEPENDENCY MIS;;MAY 11, 1998
 ;;Extract date selected in ACDFUL2
 ;
 ; need an exclusive because ^ACDFUL2 calls FILE^DICN
 D ^XBNEW("EN^ACDFUL1:ACD*")
 Q
 ;
EN ; EP - FOR EXCLUSIVE NEW
 S X1=ACDBEGDT,X2=-180 D C^%DTC
 S ACD6MO=$E(X,1,5)_"00",ACD6MOE=$E(X,1,5)_"99"
 S X1=ACDBEGDT,X2=-365 D C^%DTC
 S ACD12MO=$E(X,1,5)_"00",ACD12MOE=$E(X,1,5)_"99"
 S X1=ACDBEGDT,X2=-545 D C^%DTC
 S ACD18MO=$E(X,1,5)_"00",ACD18MOE=$E(X,1,5)_"99"
 S X1=ACDBEGDT,X2=-730 D C^%DTC
 S ACD24MO=$E(X,1,5)_"00",ACD24MOE=$E(X,1,5)_"99"
 W !,"Records Due for Follow Up on ",ACDBGMDY," will be extracted"
 D WAIT^DICD
 S DIK="^ACDWORK("
 S DA=0 F ACDIX=0:0 S DA=$O(^ACDWORK(DA)) Q:'+DA  D ^DIK
 K ACDBEGDT,ACDIX,DA
 G ^ACDFUL2
 Q