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

BTIUPREF.m

Go to the documentation of this file.
  1. BTIUPREF ; IHS/ITSC/LJF - Enter/edit personal preferences ;
  1. ;;1.0;TEXT INTEGRATION UTILITIES;;NOV 04, 2004
  1. ;Copy of ^TIUPREF
  1. ; -- joined 2 VA menu options into one by adding MENU code below
  1. ; -- only those with TIUZPPR key can edit other people's preferences
  1. ; -- modified DR string in EDIT
  1. ; -- removed code to say for which notes user needs cosignature (done other places)
  1. ;
  1. S Y=$$READ^TIUU("SO^1:Personal Preferences;2:Document List Management")
  1. Q:Y<1 I +Y=2 D ^BTIUPLST Q
  1. ;
  1. MAIN ; Control branching
  1. NEW DA,TIUDUZ
  1. S DA=+$$GETREC
  1. I +DA'>0 Q
  1. D EDIT(DA)
  1. Q
  1. GETREC() ; Get record in picklist file
  1. S TIUDUZ=$$SETDUZ I TIUDUZ<1 Q TIUDUZ
  1. N DIC,DLAYGO,X,Y,ASKNEW
  1. S (DIC,DLAYGO)=8926,DIC(0)="ELMZQ"
  1. S X=$P(^VA(200,+$G(TIUDUZ),0),U)
  1. W !," Enter/edit Personal Preferences for ",X
  1. D ^DIC
  1. Q +$G(Y)
  1. EDIT(DA) ; Call ^DIE to edit the record
  1. N DIE,DR,TIUCLASS
  1. S DIE=8926,TIUREQCS=$$REQCOS^TIUPREF(DA)
  1. S DR=".02:.08;.1;.11;I +TIUREQCS'>0 S Y=""@1"";.09;@1;1"
  1. S DR(2,8926.01)=".01;.02;.03" D ^DIE
  1. Q
  1. ;
  1. SETDUZ() ; -- returns user to edit
  1. I '$D(^XUSEC("TIUZPPR",DUZ)) Q DUZ
  1. S DIC=200,DIC(0)="AQMEZ",DIC("A")="Select TIU User: " D ^DIC Q +Y