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

AMHEYDSP.m

Go to the documentation of this file.
AMHEYDSP ; IHS/CMI/LAB - DISPLAY MHSS EXPORT BATCH DATA AUGUST 14, 1992 ;
 ;;4.0;IHS BEHAVIORAL HEALTH;;MAY 14, 2010
 S DIC="^AMHXLOG(",DIC(0)="AEMQ" D ^DIC K DIC I Y=-1 W !!,"Goodbye" G EOJ
 S AMHIEN=+Y
 W !! S %ZIS="PQ" D ^%ZIS
 I POP G EOJ
 I $D(IO("Q")) G TSKMN
EN U IO ;W @IOF
 S Y=$P(^AMHXLOG(AMHIEN,0),U) X ^DD("DD") S AMHD=Y
DIQ ; CALL TO DIQ
 W !!,"Information for Log Entry ",AMHIEN," Beginning Date: ",AMHD,!
 S DIC="^AMHXLOG(",DA=AMHIEN,DR="0;11",DIQ(0)="C" D EN^DIQ
 I $D(ZTQUEUED) S ZTREQ="@" D ^%ZISC G EOJ
 D ^%ZISC U IO(0)
 S DIR(0)="FO^1:1",DIR("A")="Press ENTER to Continue" D ^DIR K DIR S:$D(DUOUT) DIRUT=1
EOJ ;
 D ^%ZISC
 K AMHD,AMHIEN,IO("Q"),X,Y,%,%ZIS
 K DIC,DR,DA,DIQ,DIQ(0),DIC(0)
 Q
TSKMN ;
 K ZTSAVE F %="AMHIEN","AMHD" S ZTSAVE(%)=""
 S ZTIO=ION,ZTRTN="EN^AMHEYDSP",ZTDTH="",ZTDESC="BH TX - LOG ENTRY" D ^%ZTLOAD D EOJ Q