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

AQAOPR3.m

Go to the documentation of this file.
  1. AQAOPR3 ; IHS/ORDC/LJF - PRINT SUMMARIES ;
  1. ;;1.01;QAI MANAGEMENT;;OCT 05, 1995
  1. ;
  1. ;This is the main driver for printing occ summaries. It contains the
  1. ;user interface and the DIP calls. This report occurs on 2 menus.
  1. ;
  1. CLOSED ; >>> ask if user wants to select closed or deleted occ
  1. W !! K DIR S DIR(0)="YO",DIR("B")="NO"
  1. S DIR("A")="Would you like to see any CLOSED or DELETED Occurrences"
  1. D ^DIR G END:$D(DIRUT) I Y=1 S AQAOINAC=""
  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")="OCCURRENCE (ID #, Patient, or Indicator): "
  1. .S DIC("A")=$S('$D(AQAOARR):"Select ",1:"Select Another ")_DIC("A")
  1. .S DIC("S")="D OCCCHK^AQAOSEC I $D(AQAOCHK(""OK""))"
  1. .D ^DIC Q:X="" Q:X="^" Q:Y=-1
  1. .S AQAONAM=$P($G(^DPT($P(^AQAOC(+Y,0),U,2),0)),U)
  1. .S AQAOARR(+Y)=AQAONAM
  1. G END:'$D(AQAOARR)
  1. ;
  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 PRINT
  1. K IO("Q") S ZTRTN="PRINT^AQAOPR3",ZTDESC="OCC SUMMARIES"
  1. S ZTSAVE("AQAOARR(")="",ZTSAVE("AQAODEV")=""
  1. D ^%ZTLOAD K ZTSK D ^%ZISC G END
  1. ;
  1. ;
  1. PRINT ;ENTRY POINT >>> print each summary by looping through occurrences
  1. ;called by AQAOREV to print summary during review process
  1. S AQAOIFN=0,Y=""
  1. F S AQAOIFN=$O(AQAOARR(AQAOIFN)) Q:AQAOIFN="" Q:$G(Y)=0 D
  1. .S AQAONAM=AQAOARR(AQAOIFN) Q:AQAONAM=""
  1. .S L=0,DIC="^AQAOC(",FLDS="[AQAO LONG DISPLAY-E1]"
  1. .S BY="@NUMBER",(TO,FR)=AQAOIFN,IOP=AQAODEV
  1. .I $D(ZTQUEUED) S IOP="Q;"_AQAODEV,DQTIME="NOW"
  1. .D EN1^DIP K IOP ;display occurrence
  1. .I '$D(ZTQUEUED),'$D(AQAOSLV) D PRTOPT^AQAOVAR
  1. ;
  1. ;
  1. END ; >>> eoj
  1. D KILL^AQAOUTIL K AQAOINAC Q