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

ACMHELP.m

Go to the documentation of this file.
ACMHELP ; IHS/TUCSON/TMJ - CMS COMPONENT DESCRIPTION HELP ROUTINE ;
 ;;2.0;ACM CASE MANAGEMENT SYSTEM;;JAN 10, 1996
 ;HELP ROUTINE - DESCRIPTION OF EACH COMPONENT
 ;
DISPLAY ;DISPLAY COMPONENT CHOICES
 S PAGE=0,ACMOUT=""
 D HEAD^ACMMENU
 W !!
 S ACMX="",ACMU1=0
 F  S ACMX=$O(^ACM(56,"B",ACMX)) Q:ACMX=""  S ACMY=$O(^ACM(56,"B",ACMX,"")) I $P(^ACM(56,ACMY,0),U,4)'="D" S ACMU1=ACMU1+1,ACMZ(ACMU1)=ACMY,ACMX(ACMU1)=ACMX
 S ACMU11=ACMU1\2+(ACMU1#2)
 F ACM=1:1:ACMU11 D
 .S ACMU1=ACM,ACMY=ACMZ(ACMU1)
 .W !,?10,$J(ACMU1,3)_")",?$X+2,ACMX(ACMU1)
 .I $D(^ACM(41.1,ACMRG,2,ACMY))
 .S ACMU1=ACM+ACMU11
 .;Q:'$D(ACMZ(ACMU1))  ;S ACMU1=ACMU1-1 Q
 .I '$D(ACMZ(ACMU1)) S ACMU1=ACMU1-1 Q
 .S ACMY=ACMZ(ACMU1)
 .W ?45,$J(ACMU1,3)_")",?$X+2,ACMX(ACMU1)
 .I $D(^ACM(41.1,ACMRG,2,ACMY))
 ;S ACMU1=ACMU1+1
 ;I ACMU1#2 W !,?10
 ;W ?45
 ;W $J(ACMU1,3)_")"," All data types"
 ;Q
 ;
ASK ;
 W !!,?10,"Enter the Register Component Number to view available Help ",!
 S DIR(0)="LOA^1:"_ACMU1,DIR("A")="Select Option(s) ==> ",DIR("?")="Type a Number from 1 to "_ACMU1
 W !
 D ^DIR K DIR
 ;
 S ACMANS=Y Q:$D(DUOUT)!(Y="")
 F ACMY=1:1 S ACMX=$P(ACMANS,",",ACMY) Q:ACMX=""  D PRINT
 W !,"Hit return to continue - all done with help" R X:DTIME
 K PAGE
 Q
 ;
 ;
PRINT ;
 D HEADING
 S ACML=0
 F  S ACML=$O(^ACM(56,ACMZ(ACMX),1,ACML)) Q:ACML=""!(ACMOUT="^")  D
 .I $Y>(IOSL-6) D HEADING Q:ACMOUT="^"
 .W !,^ACM(56,ACMZ(ACMX),1,ACML,0)
 .Q
 Q
HEADING ;
 I 'PAGE G HEADING1
 I $E(IOST,1,2)="C-" S DIR(0)="E" D ^DIR I Y'=1 S ACMOUT="^" Q
HEADING1 ;
 W @IOF
 S PAGE=PAGE+1
 W !!,?20,"REGISTER COMPONENT EXPLANATION",?60,"PAGE ",PAGE
 Q
 ;