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

AQAOCHK1.m

Go to the documentation of this file.
  1. AQAOCHK1 ; IHS/ORDC/LJF - DISPLAY TICKLER SUMMARY ;
  1. ;;1.01;QAI MANAGEMENT;;OCT 05, 1995
  1. ;
  1. ;This rtn prints the Introductory Message and asks if the user wants
  1. ;to print the Tickler Report listing occurrences needing attention.
  1. ;
  1. I '$D(AQAOXYZ)!('$D(^TMP("AQAOCHK",$J))) D ENTRY^AQAOCHK Q
  1. ;
  1. DISPLAY ; >>> display review status for user
  1. W ! S Y=0 F S Y=$O(AQAOXYZ(3,Y)) Q:Y="" D
  1. .I $D(AQAOXYZ)#2,((Y=2)!(Y=3)) D QIDSPLY Q ;refer for qi staff
  1. .I Y=5 D ACTDSPLY Q ;display action plan numbers
  1. .W !,AQAOXYZ(3,Y),$P($T(MSG+Y),";;",2)
  1. ;
  1. ASK ; >>> ask user if a printed report is requested?
  1. W !! K DIR S DIR(0)="YO",DIR("B")="NO"
  1. S DIR("A")="Do you wish to PRINT A LISTING of these Occurrences"
  1. D ^DIR G END:$D(DIRUT),^AQAOCHK2:Y=1
  1. ;
  1. END ; >>> end of check & display
  1. W !,"You can print the report at any time by selecting the menu"
  1. W " option titled"
  1. W !,"'PRINT OCCURRENCE TICKLER REPORT' on the Occurrence EVALUATION"
  1. W " Reports Menu."
  1. G END^AQAOCHK2
  1. ;
  1. ;
  1. QIDSPLY ; >> SUBRTN to display referrals if user is qi staff
  1. W !,AQAOXYZ(3,Y,1),$P($T(MSG+Y),";;",2)
  1. W " (",+$G(AQAOXYZ(3,Y))," for you)"
  1. Q
  1. ;
  1. ;
  1. ACTDSPLY ; >> SUBRTN to display action plan numbers
  1. S (Z,AQAOCNT)=0 F S Z=$O(AQAOXYZ(3,5,Z)) Q:Z="" D
  1. .S AQAOCNT=AQAOCNT+AQAOXYZ(3,5,Z)
  1. W !,AQAOCNT,$P($T(MSG+Y),";;",2)
  1. Q
  1. ;
  1. ;
  1. MSG ;;
  1. ;; Occurrence(s) needing INITIAL REVIEWS;;INITIAL REVIEWS
  1. ;; Occurrence(s) with PERSONAL REFERRALS;;PERSONAL REFERRALS
  1. ;; Occurrence(s) with REFERRALS TO QI TEAM;;TEAM REFERRALS
  1. ;; Occurrence(s) REVIEWED but NOT CLOSED;;OPEN OCCURRENCES
  1. ;; Pending ACTION PLAN(S);;ACTION PLANS