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

AQAOPC4.m

Go to the documentation of this file.
  1. AQAOPC4 ; IHS/ORDC/LJF - OCC BY IND WITH FINDING/ACTIONS ;
  1. ;;1.01;QAI MANAGEMENT;;OCT 05, 1995
  1. ;
  1. ;This rtn contains the user interface to print the trending report
  1. ;of occurrences by finding and action.
  1. ;
  1. D FINDACT^AQAOHOP2 ;intro text
  1. TYPE ; >>> ask user what type of report to print
  1. K DIR S DIR(0)="SO^L:LISTING PLUS STATISTICS;S:STATISTICS ONLY"
  1. S DIR("A")="Choose TYPE of report to print"
  1. S DIR("?",1)="Which report style do you want?"
  1. S DIR("?",2)=" Enter L to list occurrences PLUS subtotals"
  1. S DIR("?",3)=" Enter S to print the subtotals ONLY"
  1. S DIR("?")="For more information on these styles, see the User Manual."
  1. D ^DIR G END:$D(DIRUT) S AQAOTYPE=Y
  1. ;
  1. IND ; >>> occurrences for which indicator?
  1. S AQAOIND=$$IND^AQAOLKP G END:AQAOIND=U,TYPE:AQAOIND=-1
  1. S AQAOIND=+AQAOIND
  1. ;
  1. ;
  1. DATES ; >> ask user to choose date range
  1. S AQAOBD=$$BDATE^AQAOLKP G END:AQAOBD=U,IND:AQAOBD=""
  1. S AQAOED=$$EDATE^AQAOLKP G END:AQAOED=U,DATES:AQAOED=""
  1. ;
  1. ;
  1. OPEN ; >>> ask user if wants to include open cases
  1. K DIR S DIR(0)="SO^O:OPEN & CLOSED CASES;C:CLOSED CASES ONLY"
  1. S DIR("A")="Choose Case Statuses to include"
  1. S DIR("?",1)="Which occurrences do you want to include?"
  1. S DIR("?",2)=" Enter O to list BOTH Open and Closed Occurrences"
  1. S DIR("?",3)=" Enter C to print ONLY Closed Occurrences"
  1. S DIR("?")="For more information on these styles, see the User Manual."
  1. D ^DIR G DATES:X="",END:$D(DIRUT) S AQAOSTAT=Y
  1. ;
  1. ;
  1. DEV ; >>> get print device
  1. I $P(AQAOUA("USER"),U,7)=1 D EXPORT^AQAOUTIL G OPEN:Y=U
  1. W !! S %ZIS="QP" D ^%ZIS G END:POP
  1. I '$D(IO("Q")) U IO G ^AQAOPC41
  1. K IO("Q") S ZTRTN="^AQAOPC41",ZTDESC="OCC WITH FINDINGS"
  1. F I="AQAOTYPE","AQAOIND","AQAOBD","AQAOSTAT","AQAOED" S ZTSAVE(I)=""
  1. S:$D(AQAODLM) ZTSAVE("AQAODLM")=""
  1. S:$D(AQAOXSN) ZTSAVE("AQAOXSN")="",ZTSAVE("AQAOXSM")=""
  1. S:$D(AQAOXS) ZTSAVE("AQAOXS(")=""
  1. D ^%ZTLOAD K ZTSK D ^%ZISC
  1. ;
  1. END ; >>> eoj
  1. D HOME^%ZIS D KILL^AQAOUTIL Q