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

PSOARC.m

Go to the documentation of this file.
  1. PSOARC ;BHAM ISC/LGH - archiving driver menu ; 07/07/92
  1. ;;7.0;OUTPATIENT PHARMACY;;DEC 1997
  1. D DT^DICRW I ^DOPT("PSOAC",5,0)'["LIST ARCHIVED PRESCRIPTION NUMBERS" K ^DOPT("PSOAC") S DIK="^DOPT(""PSOAC""," S DTIME=$S($D(DTIME):DTIME,1:300)
  1. G:$D(^DOPT("PSOAC",4)) A S ^DOPT("PSOAC",0)="OP ARCHIVING OPTION^1N^" F I=1:1 S X=$T(@I) Q:X="" S ^DOPT("PSOAC",I,0)=$P(X,";",2,99)
  1. D IXALL^DIK
  1. A W !! S DIC="^DOPT(""PSOAC"",",DIC(0)="QEAM" D ^DIC K DIC D:Y<0 END^PSOARCS2 G:Y<0 EXIT D @+Y G A
  1. 1 ;find
  1. G ^PSOARCCO
  1. 2 ;save to tape
  1. G ^PSOARCSV
  1. 3 ;tape retrieve
  1. G ^PSOARCIN
  1. 4 ;save to hfs file
  1. G ^PSOARCF4
  1. 5 ;hfs file retrieve
  1. G ^PSOARCF1
  1. 6 ;purge
  1. G ARC^PSOARCS2
  1. 7 ;list archived prescription numbers
  1. G ^PSOARCLT
  1. EXIT K Y,X,I Q