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

ACHSCHLG.m

Go to the documentation of this file.
  1. ACHSCHLG ; IHS/ITSC/PMF - COMPRESS PRINTING OF HOSPITAL LOG ; [ 10/16/2001 8:16 AM ]
  1. ;;3.1;CONTRACT HEALTH MGMT SYSTEM;;JUN 11, 2001
  1. ;
  1. W *7,!!?20,"This report may take awhile to compile."
  1. W !?9,"It is recommended that you QUEUE your output to a PRINTER."
  1. DEVICE ;Device Selection
  1. W *7,*7,!!,"This report requires 132 column format."
  1. K DIR
  1. S %ZIS="PQ"
  1. W !
  1. D ^%ZIS
  1. I POP W !,"NO DEVICE SELECTED - REQUEST ABORTED!" G END
  1. K ACHS("PRINT")
  1. I '$D(^%ZIS(2,IOST(0),12.1))!'$D(^%ZIS(2,IOST(0),5)) G NOCON
  1. I $G(^%ZIS(2,IOST(0),12.1))=""!($P($G(^%ZIS(2,IOST(0),5)),U)="") G NOCON
  1. S ACHS("PRINT",16)=$G(^%ZIS(2,IOST(0),12.1)),ACHS("PRINT",10)=$P($G(^%ZIS(2,IOST(0),5)),U)
  1. W !
  1. K DIR
  1. S DIR(0)="Y",DIR("A")="Should Output be in CONDENSED PRINT",DIR("B")="YES"
  1. D ^DIR
  1. K DIR
  1. Q:Y["^"
  1. I '$G(Y),IOM'=132 D G END:Y=0,DEVICE:Y=1
  1. . I $D(ACHS("PRINT",10)) W @ACHS("PRINT",10)
  1. . W !!!,"You have elected NOT to print in compressed print mode",!,"and the selected printer does not have 132 column capability."
  1. . K DIR
  1. . S DIR("A")="Select another printer",DIR(0)="Y",DIR("B")="NO"
  1. . D ^DIR
  1. . K DIR
  1. .Q
  1. I '$G(Y),IOM=132 W !!,"Please make sure the printer is loaded with 132 column paper."
  1. S:IOM=80 IOM=132
  1. S:$D(IO("Q")) IOP="Q;"_ION
  1. S:'$D(IO("Q")) IOP=ION
  1. W !!!!
  1. N L,DIC,FLDS,BY,DIOBEG,DIOEND
  1. S L=0,DIC="^ACHSF(",FLDS="[ACHSRPTHOSPLOGP]",BY="[ACHSRPTHOSPLOGS]"
  1. ; S DIOBEG="W @ACHS(""PRINT"",16)",DIOEND="W @ACHS(""PRINT"",10)"
  1. D EN1^DIP
  1. END ;
  1. Q
  1. ;
  1. NOCON ;
  1. W *7,!!,"===Condensed Print Mode has not been established for this Device.===",!!!!
  1. I $$DIR^XBDIR("E","Press <RETURN> to Continue")
  1. G END
  1. ;