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

AQAOPR2.m

Go to the documentation of this file.
  1. AQAOPR2 ; IHS/ORDC/LJF - PRINT REVIEW WORKSHEETS ;
  1. ;;1.01;QAI MANAGEMENT;;OCT 05, 1995
  1. ;
  1. ;This rtn contians the user interface to set up the printing of occ
  1. ;review worksheets. THe user also gets the choice to include occ
  1. ;summaries and occ worksheets as well.
  1. ;
  1. LEVEL ; >>> ask for review level for occurrences
  1. K DIR S DIR(0)="PO^9002168.7:EMZ"
  1. S DIR("A")="Select REVIEW STAGE for the worksheets" D ^DIR
  1. G END:$D(DIRUT),END:Y=-1 S AQAORLEV=Y
  1. ;
  1. ASK ; >>> ask for occ id or patient name or indicator
  1. S AQAORVW="" ;flag to allow referred to reviewer to see occ
  1. K AQAOARR S (X,Y)=0 F Q:X="" Q:X=U Q:Y=-1 D
  1. .W !! K DIC S DIC="^AQAOC(",DIC(0)="AEMQZ"
  1. .S DIC("A")="Select OCCURRENCE (ID #, Patient, or Indicator): "
  1. .S DIC("S")="D OCCCHK^AQAOSEC I $D(AQAOCHK(""OK""))"
  1. .D ^DIC Q:X="" Q:X="^" Q:Y=-1
  1. .S AQAOARR($P(Y,U,2))=+Y
  1. G LEVEL:'$D(AQAOARR)
  1. ;
  1. SUMM ; >>> print summaries also?
  1. K DIR S DIR(0)="Y",DIR("B")="NO"
  1. S DIR("?")="Answer YES to print occurrence summaries as well as worksheets"
  1. S DIR("A")="Do you wish to also print OCCURRENCE SUMMARIES"
  1. D ^DIR G END:$D(DIRUT) S AQAOSUM=Y
  1. ;
  1. WRKS ; >>> print occ worksheets also?
  1. K DIR S DIR(0)="Y",DIR("B")="NO"
  1. S DIR("?")="Answer YES to print occurrence worksheets as well as review worksheets"
  1. S DIR("A")="Do you wish to also print OCCURRENCE WORKSHEETS"
  1. D ^DIR G END:$D(DIRUT) S AQAOWKS=Y
  1. ;
  1. DEV ; >>> get print device
  1. W !! S %ZIS="NQP" D ^%ZIS G END:POP S AQAODEV=ION
  1. S:$D(IO("S")) AQAOSLV="" I '$D(IO("Q")) G ^AQAOPR21
  1. K IO("Q") S ZTRTN="^AQAOPR21",ZTDESC="OCC WORKSHEETS"
  1. F I="AQAORLEV","AQAOARR(","AQAOSUM","AQAODEV","AQAOWKS" S ZTSAVE(I)=""
  1. D ^%ZTLOAD K ZTSK D ^%ZISC
  1. ;
  1. END D KILL^AQAOUTIL Q