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

AQAOPA2.m

Go to the documentation of this file.
  1. AQAOPA2 ; IHS/ORDC/LJF - ACTIONS DUE FOR REVIEW ;
  1. ;;1.01;QAI MANAGEMENT;;OCT 05, 1995
  1. ;
  1. ;This rtn contains the user interface and call to DIP to print the
  1. ;report listing action plans due for evaluation review.
  1. ;
  1. SORT ; >>> choose type of report to print
  1. K DIR S DIR(0)="SO^",DIR("A")="Choose SORT ORDER for Report"
  1. F X=1:1:3 S DIR(0)=DIR(0)_X_":"_$P($T(RPT+X),";;",2)_";"
  1. S DIR(0)=$E(DIR(0),1,$L(DIR(0))-1)
  1. D ^DIR G END:$D(DIRUT),END:X="",END:Y=-1
  1. S BY=$P($T(RPT+Y),";;",3) ;set sort order
  1. ;
  1. ;
  1. SUMM ; >> does user want action summaries printed with listing
  1. W !! K DIR S DIR(0)="Y",DIR("B")="NO"
  1. S DIR("A")="Do you want to include the ACTION SUMMARY with the listing"
  1. D ^DIR G SORT:$D(DIRUT),END:Y=-1
  1. S FLDS=$S(Y=1:"[AQAO STATUS WITH SUM]",1:"[AQAO STATUS NO SUM]")
  1. ;
  1. ; >>> FIND DATA FOR SELECTED REPORT <<<
  1. PRINT ; >>> set up variables for dip call
  1. K DIC S DIC="^AQAO(5,",L=0,FR="@",TO=""
  1. ;implemented plans only & review date in past or null
  1. S DIS(0)="I $P(^AQAO(5,D0,0),U,5)=2,$P(^(0),U,4)'>DT"
  1. S DIS(1)="S Y=D0 D ACTCHK^AQAOSEC I $D(AQAOCHK(""OK""))"
  1. D EN1^DIP K AQAOCHK("OK")
  1. ;
  1. ;
  1. I IOST["C-" D PRTOPT^AQAOVAR
  1. ;
  1. END D ^%ZISC,KILL^AQAOUTIL Q
  1. ;
  1. ;
  1. RPT ;;
  1. ;;By ACTION PLAN #;;ACTION NUMBER;;
  1. ;;By ACTION TYPE;;@ACTION TYPE;;
  1. ;;By REVIEW DATE;;REVIEW DATE;;