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

TIUHELP.m

Go to the documentation of this file.
  1. TIUHELP ; SLC/JER - On-line help library ;2/28/05
  1. ;;1.0;TEXT INTEGRATION UTILITIES;**100,184**;Jun 20, 1997
  1. ;
  1. LINKHELP ; Help for link protocol menus
  1. W !," Problems - links to problems in patient's active Problem List;"
  1. W !," Patient/Visit - reassigns to a different patient and/or visit;"
  1. W !," Other Applic - links, for example, a Consult Result to a Request, or",!," a PRF Note to a Patient Record Flag."
  1. Q
  1. ;
  1. PROTOCOL ; Help for protocols
  1. N DIRUT,DTOUT,DUOUT,TIUX,ORU,ORUPRMT,VALMDDF,VALMPGE S TIUX=X
  1. D FULL^VALM1
  1. I TIUX="?"!(TIUX="??") D G PROTX
  1. . I TIUX="??",($G(VALMAR)="^TMP(""TIUR"",$J)") D STATUS I $D(DIRUT) 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. W:$$CONTINUE "Valid selections are:",!
  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:$$CONTINUE ?+$G(TAB),$G(IOINHI),$$UPPER^TIULS($P($G(^ORD(101,+XQORNOD,0)),U,2)),$G(IOINORM),!
  1. I $D(DIRUT) Q
  1. S TIUI=0 F S TIUI=$O(^ORD(101,+XQORNOD,1,TIUI)) Q:+TIUI'>0!$D(DIRUT) D
  1. . W:$$CONTINUE ?(TAB+2),$G(^ORD(101,+XQORNOD,1,TIUI,0)),! Q:$D(DIRUT)
  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:$$CONTINUE !!,"The Following Statuses are defined:"
  1. D STATEXP
  1. W:$$CONTINUE !!,"The Following Indicators are defined:",!!
  1. W:$$CONTINUE " '+' to the left of the Title or Patient's name indicates that",!," a report has addenda.",!
  1. W:$$CONTINUE " '*' to the left of the Title or Patient's name indicates",!," a priority (STAT) document.",!
  1. W:$$CONTINUE " '<' to the left of the Title or Patient's name indicates an",!," interdisciplinary note, which can be expanded to show entries.",!
  1. W:$$CONTINUE " '>' to the left of the Title or Patient's name indicates",!," that the note is an entry of an interdisciplinary note.",!
  1. ;W:$$CONTINUE "These will appear at the top of the list.",!
  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. STATEXP ; Explain Statuses
  1. N TIUI,TIUJ,TIUY S TIUI=0
  1. D STATUS^TIUSRVL(.TIUY,"ALL",1)
  1. F S TIUI=$O(TIUY(TIUI)) Q:+TIUI'>0 D
  1. . I TIUI>1 W:$$CONTINUE !
  1. . W:$$CONTINUE !,$G(IOINHI),$P(TIUY(TIUI),U,2),$G(IOINORM)
  1. . S TIUJ=0 F S TIUJ=$O(TIUY(TIUI,1,TIUJ)) Q:+TIUJ'>0 D
  1. . . W:$$CONTINUE !?2,$G(TIUY(TIUI,1,TIUJ))
  1. Q