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

A1B2Q1.m

Go to the documentation of this file.
  1. A1B2Q1 ;JLU/ALB-Contains the logic for the print templates.;1/14/91
  1. ;;Version 1.55 (local for MAS v5 sites);;
  1. PG D HOME^%ZIS W @IOF
  1. Q
  1. ;
  1. E S DIR(0)="E" D ^DIR K DIR W !!
  1. Q
  1. ;
  1. A ;Entry point for inpatient list.
  1. D PG
  1. W !!!!!!!,*7," *** The following report will list ALL the current Admissions. *** ",!!!!!
  1. D E I 'Y Q
  1. S L=0,DIC="^A1B2(11500.2,",FLDS="[A1B2 OUTPUT1]",BY="[A1B2 OUTPUT1]",A1B2FL=11500.2 D DIS^A1B2UTL,EN1^DIP,EX
  1. Q
  1. ;
  1. B ;Entry point for dump list.
  1. W !!!!!,*7,?7,"The following report will list all: ","ADMISSIONS",!,?43,"REGISTRATIONS",!,?43,"DISCHARGES",!!,?7," *** This report could be very large. ***",!!!!
  1. D E I 'Y Q
  1. S %IS="NQM" D ^%ZIS K %IS,IOP I POP D EX Q
  1. S ZTIO=ION
  1. I $D(IO("Q"))!(IO'=IO(0)) W !!,"I will queue this report." S ZTRTN="B1^A1B2Q1",ZTDESC="ODS REPORTS" D ^%ZTLOAD D EX Q
  1. B1 S L=0,IOP=ZTIO,DIC="^A1B2(11500.2,",FLDS="[A1B2 OUTPUT2]",BY="[A1B2 OUTPUT2]",A1B2FL=11500.2 D DIS^A1B2UTL,EN1^DIP
  1. B2 S IOP=ZTIO,DIC="^A1B2(11500.4,",FLDS="[A1B2 OUTPUT2]",BY="[A1B2 OUTPUT2]",A1B2FL=11500.4 D DIS^A1B2UTL,EN1^DIP
  1. D EX
  1. Q
  1. ;
  1. EX K DIC,L,FLDS,BY,DIS,A1B2IOP,POP,IOP,Y,ZTDESC,ZTIO,ZTRTN,A1B2FL
  1. X ^%ZIS("C")
  1. Q