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

AQAQMCQ.m

Go to the documentation of this file.
  1. AQAQMCQ ;IHS/ANMC/LJF - QUEUE MISSING CREDENTIALS REPORT; [ 05/27/92 11:24 AM ]
  1. ;;2.2;STAFF CREDENTIALS;;01 OCT 1992
  1. ;
  1. W @IOF,!!!?20,"PRINT MISSING CREDENTIALS REPORT",!!
  1. ;
  1. ;***> select type of report
  1. TYPE K DIR S DIR("A",1)="Select Sorting Order for Report:"
  1. S DIR("A",2)=" 1. ALPHABETICALLY (By Provider Name)"
  1. S DIR("A",3)=" 2. By PROVIDER CLASS"
  1. S DIR("A",4)=" 3. By STAFF CATEGORY"
  1. SELECT S DIR("A")="Select (1, 2, or 3): ",DIR(0)="NAO^1:3" D ^DIR
  1. G END:$D(DTOUT),END:X="",END:$D(DUOUT),TYPE:Y=-1 S AQAQTYP=Y
  1. I AQAQTYP=1 S AQAQSRT="" G DEV
  1. ;
  1. ALL ;***> choose one or all classes or categories
  1. K DIR S DIR(0)="Y"
  1. S DIR("A")=$S(AQAQTYP=2:"Print for All Classes",1:"Print for All Categories")
  1. S DIR("B")="NO" D ^DIR I Y=1 S AQAQSRT="ALL" G DEV ;all wards or serv
  1. I $D(DIRUT) G END ;check for timeout,"^", or null
  1. ;
  1. ONE ;***> choose which class or category to print
  1. I AQAQTYP=2 D G END:'$D(AQAQSRT) G DEV
  1. .K DIR,AQAQSRT S DIR(0)="PO^7:EMQZ" D ^DIR
  1. .Q:$D(DTOUT) Q:X="" Q:$D(DUOUT) Q:Y=-1
  1. .I $D(^DIC(42,+Y,"I")),$P(^("I"),U)="I" W ?40,"** INACTIVE WARD **" Q
  1. .S AQAQSRT=Y
  1. E D G END:'$D(AQAQSRT)
  1. .K DIR,AQAQSRT S DIR(0)="9002165,.02" D ^DIR
  1. .Q:$D(DTOUT) Q:X="" Q:$D(DUOUT) Q:Y=-1
  1. .S AQAQSRT=Y
  1. ;
  1. ;***> select print device
  1. DEV S %ZIS="PQ" D ^%ZIS G END:POP,QUE:$D(IO("Q")) U IO G ^AQAQMCC
  1. QUE K IO("Q") S ZTRTN="^AQAQMCC" S ZTDESC="MISSING CREDENTIALS"
  1. F AQAQI="AQAQTYP","AQAQSRT" S ZTSAVE(AQAQI)=""
  1. D ^%ZTLOAD D ^%ZISC K ZTSK
  1. ;
  1. END K Y,AQAQTYP,AQAQSRT,DIR,AQAQI D HOME^%ZIS Q