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

AQAOUSR1.m

Go to the documentation of this file.
  1. AQAOUSR1 ; IHS/ORDC/LJF - ENTER/EDIT QI USER ;
  1. ;;1.01;QAI MANAGEMENT;;OCT 05, 1995
  1. ;
  1. ;This is a continuation of the user edit option. This rtn asks
  1. ;what the user's access to various options should be. From this
  1. ;a list of the appropriate security keys to assign is printed.
  1. ;
  1. KEYS ; >> do you want to see a list of appropriate security keys for user
  1. W ! K DIR S DIR(0)="Y",DIR("B")="YES"
  1. S DIR("?",1)="A QI User's PROFILE gives you a quick look at the type"
  1. S DIR("?",2)="of access the user has to the QAI Management System."
  1. S DIR("?",3)="After answering the next couple of questions, it can"
  1. S DIR("?",4)="also give you a list of SECURITY KEYS for your site"
  1. S DIR("?",5)="manager to allocate to this user.",DIR("?")=" "
  1. S DIR("A")="Do you wish to see this QI User's Profile"
  1. D ^DIR G NAME^AQAOUSR:$D(DIRUT),NAME^AQAOUSR:Y=0
  1. ;
  1. QUES1 ; >> should user have access to indicator data entry?
  1. W ! K DIR S DIR(0)="Y" K AQAOARR("AQAOZIED")
  1. S DIR("B")=$S($D(^XUSEC("AQAOZIED",AQAOUSR)):"YES",1:"NO")
  1. S DIR("?",1)="Should "_AQAONM_" have access to INDICATOR DATA ENTRY"
  1. S DIR("?",2)="options? If you answer YES, this user will be able to"
  1. S DIR("?",3)="ENTER and EDIT Key Functions, Indicators, and Review"
  1. S DIR("?",4)="Criteria for any QI Team to which he/she is a "
  1. S DIR("?",5)="'CREATE/EDIT' member.",DIR("?")=" "
  1. S DIR("A")="Should "_AQAONM_" have access to add/change INDICATORS"
  1. D ^DIR G KEYS:$D(DIRUT) I Y=1 S AQAOARR("AQAOZIED")=""
  1. ;
  1. QUES2 ; >> should user have access to occurrence data entry?
  1. W ! K DIR S DIR(0)="Y" K AQAOARR("AQAOZOCC")
  1. S DIR("B")=$S($D(^XUSEC("AQAOZOCC",AQAOUSR)):"YES",1:"NO")
  1. S DIR("?",1)="Should "_AQAONM_" have access to OCCURRENCE DATA ENTRY"
  1. S DIR("?",2)="options? If you answer YES, this user will be able to"
  1. S DIR("?",3)="ENTER and EDIT Occurrences and their Reviews which are"
  1. S DIR("?",4)="linked to the Indicators for his/her QI Team for which"
  1. S DIR("?",5)="this user has 'CREATE/EDT' access."
  1. S DIR("?")=" "
  1. S DIR("A")="Should "_AQAONM_" have access to OCCURRENCE DATA ENTRY"
  1. D ^DIR G KEYS:$D(DIRUT) I Y=1 S AQAOARR("AQAOZOCC")=""
  1. ;
  1. QUES3 ; >> should user have access to document action plans?
  1. W ! K DIR S DIR(0)="Y" K AQAOARR("AQAOZAPL")
  1. S DIR("B")=$S($D(^XUSEC("AQAOZAPL",AQAOUSR)):"YES",1:"NO")
  1. S DIR("?",1)="Should "_AQAONM_" have access to the ACTION EVALUATION"
  1. S DIR("?",2)="EDIT options? If you answer YES, this user will be able"
  1. S DIR("?",3)="to ENTER and EDIT Actions taken (the implementation and"
  1. S DIR("?",4)="evaluation) linked to Indicators for the QI Team for"
  1. S DIR("?",5)="which this user has 'CREATE/EDIT' access",DIR("?")=" "
  1. S DIR("A")="Should "_AQAONM_" have access to add/change ACTION PLANS"
  1. D ^DIR G KEYS:$D(DIRUT) I Y=1 S AQAOARR("AQAOZAPL")=""
  1. ;
  1. QUES4 ;ENTRY POINT can user have access to close/delete/reopen occ /actions?
  1. K AQAOARR("AQAOZVAL"),AQAOARR("AQAOZCLS")
  1. W ! K DIR S DIR(0)="SB^A:ALL;P:PARTIAL;N:NONE"
  1. S DIR("B")=$S($D(^XUSEC("AQAOZVAL",AQAOUSR)):"ALL",$D(^XUSEC("AQAOZCLS",AQAOUSR)):"PARTIAL",1:"NONE")
  1. S DIR("?",2)="Answer ALL if this user can close ALL occurrences linked"
  1. S DIR("?",3)="to indicators for his/her QI team."
  1. S DIR("?",5)="Answer PARTIAL if this user can close occurrences ONLY"
  1. S DIR("?",6)="after the INITIAL REVIEW. The user will NOT be able to"
  1. S DIR("?",7)="DELETE or REOPEN occurences."
  1. S DIR("?",9)="Answer NONE for users who should NOT be able to close"
  1. S DIR("?",10)="any occurrences."
  1. S DIR("?",1)=" ",DIR("?",4)=" ",DIR("?",8)=" ",DIR("?",11)=" "
  1. S DIR("?")="Choose A for ALL, P for PARTIAL, or N for NONE."
  1. S DIR("A")="Should "_AQAONM_" have access to CLOSE OCCURRENCES?"
  1. D ^DIR G KEYS:$D(DIRUT)
  1. S:Y="A" AQAOARR("AQAOZVAL")="" S:Y'="N" AQAOARR("AQAOZCLS")=""
  1. ;
  1. ;
  1. G ^AQAOUSR2