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

BTIUHELP.m

Go to the documentation of this file.
  1. BTIUHELP ; IHS/ITSC/LJF - On-line help library ;
  1. ;;1.0;TEXT INTEGRATION UTILITIES;;NOV 04, 2004
  1. ;IHS/ITSC/LJF 05/07/2003 copy of TIUHELP with code fixed so actually quits when user asks to quit
  1. ;
  1. PROTOCOL ;EP; Help for protocols
  1. N DIRUT,DTOUT,DUOUT,TIUX,ORU,ORUPRMT,VALMDDF,VALMPGE S TIUX=X
  1. NEW BTIUSTOP S BTIUGO=1
  1. D FULL^VALM1
  1. I TIUX="?"!(TIUX="??") D G PROTX
  1. . I TIUX="??",($G(VALMAR)="^TMP(""TIUR"",$J)") D STATUS I BTIUGO=0 W ! Q
  1. . D DISP^XQORM1 W !!,"Enter selection by typing the name, or abbreviation.",!,"Enter '??' or '???' for additional details.",!
  1. . I TIUX="?" W:$$STOP^TIUU ""
  1. I TIUX="???" D MENU(XQORNOD) I $D(DIROUT) S (XQORQUIT,XQORPOP)=1 Q
  1. PROTX S VALMBCK="R"
  1. Q
  1. N TIUSEQ,TIUI,TIUJ D CLEAR^VALM1
  1. Q:'$$CONTINUE W "Valid selections are:",! ;IHS/ITSC/LJF 02/26/2003
  1. S TIUI=0 F S TIUI=$O(^ORD(101,+XQORNOD,10,TIUI)) Q:+TIUI'>0 D
  1. . S TIUJ=+$P($G(^ORD(101,+XQORNOD,10,TIUI,0)),U,3) S:$D(TIUSEQ(TIUJ)) TIUJ=TIUJ+.1
  1. . S TIUSEQ(TIUJ)=+$P(^ORD(101,+XQORNOD,10,TIUI,0),U)
  1. S TIUI=0 F S TIUI=$O(TIUSEQ(TIUI)) Q:+TIUI'>0!$D(DIRUT) D
  1. . I $D(^ORD(101,+TIUSEQ(TIUI),0)) D ITEM(+TIUSEQ(TIUI),1)
  1. Q
  1. ITEM(XQORNOD,TAB) ; Show descriptions of items
  1. N TIUI
  1. Q:$P($G(^ORD(101,+XQORNOD,0)),U,2)']""
  1. W ?+$G(TAB),$G(IOINHI),$$UPPER^TIULS($P($G(^ORD(101,+XQORNOD,0)),U,2)),$G(IOINORM),!
  1. S TIUI=0 F S TIUI=$O(^ORD(101,+XQORNOD,1,TIUI)) Q:+TIUI'>0 Q:'BTIUGO D
  1. . S BTIUGO=$$CONTINUE Q:'BTIUGO W ?(TAB+2),$G(^ORD(101,+XQORNOD,1,TIUI,0)),!
  1. S TIUI=0 F S TIUI=$O(^ORD(101,+XQORNOD,10,TIUI)) Q:+TIUI'>0 D
  1. . D ITEM(+$G(^ORD(101,+XQORNOD,10,+TIUI,0))_";ORD(101,",3)
  1. Q
  1. STATUS ; Show status descriptions
  1. W !!,"The Following Statuses are defined:"
  1. D STATEXP Q:'BTIUGO
  1. W !!,"The Following Indicators are defined:",!!
  1. W " '+' to the left of the Title or Patient's name indicates that",!," a report has addenda.",!
  1. W " '*' to the left of the Title or Patient's name indicates",!," a priority (STAT) document.",!
  1. W " '<' to the left of the Title or Patient's name indicates an",!," interdisciplinary note, which can be expanded to show entries.",!
  1. W " '>' to the left of the Title or Patient's name indicates",!," that the note is an entry of an interdisciplinary note.",!
  1. S BTIUGO=$$CONTINUE
  1. Q
  1. CONTINUE() ; Pagination control
  1. N Y
  1. I $Y<(IOSL-2) S Y=1 G CONTX
  1. S Y=$$STOP^TIUU("",1) W:+Y @IOF,!
  1. CONTX Q Y
  1. ;
  1. STATEXP ; Explain Statuses
  1. N TIUI,TIUJ,TIUY S TIUI=0
  1. D STATUS^TIUSRVL(.TIUY,"ALL",1)
  1. S BTIUGO=$$CONTINUE Q:BTIUGO=0
  1. F S TIUI=$O(TIUY(TIUI)) Q:+TIUI'>0 Q:'BTIUGO D
  1. . I TIUI>1 W !
  1. . W !,$G(IOINHI),$P(TIUY(TIUI),U,2),$G(IOINORM)
  1. . S BTIUGO=$$CONTINUE Q:BTIUGO=0
  1. . S TIUJ=0 F S TIUJ=$O(TIUY(TIUI,1,TIUJ)) Q:+TIUJ'>0 Q:'BTIUGO D
  1. . . W !?2,$G(TIUY(TIUI,1,TIUJ))
  1. . . S BTIUGO=$$CONTINUE
  1. Q