PSOARC ;BHAM ISC/LGH - archiving driver menu ; 07/07/92
;;7.0;OUTPATIENT PHARMACY;;DEC 1997
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)
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)
D IXALL^DIK
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 ;find
G ^PSOARCCO
2 ;save to tape
G ^PSOARCSV
3 ;tape retrieve
G ^PSOARCIN
4 ;save to hfs file
G ^PSOARCF4
5 ;hfs file retrieve
G ^PSOARCF1
6 ;purge
G ARC^PSOARCS2
7 ;list archived prescription numbers
G ^PSOARCLT
EXIT K Y,X,I Q
--- Routine Detail --- with STRUCTURED ROUTINE LISTING ---[H[J[2J[HPSOARC 745 printed Dec 13, 2024@02:24:08 Page 2
PSOARC ;BHAM ISC/LGH - archiving driver menu ; 07/07/92
+1 ;;7.0;OUTPATIENT PHARMACY;;DEC 1997
+2 DO DT^DICRW
IF ^DOPT("PSOAC",5,0)'["LIST ARCHIVED PRESCRIPTION NUMBERS"
KILL ^DOPT("PSOAC")
SET DIK="^DOPT(""PSOAC"","
SET DTIME=$SELECT($DATA(DTIME):DTIME,1:300)
+3 if $DATA(^DOPT("PSOAC",4))
GOTO A
SET ^DOPT("PSOAC",0)="OP ARCHIVING OPTION^1N^"
FOR I=1:1
SET X=$TEXT(@I)
if X=""
QUIT
SET ^DOPT("PSOAC",I,0)=$PIECE(X,";",2,99)
+4 DO IXALL^DIK
A WRITE !!
SET DIC="^DOPT(""PSOAC"","
SET DIC(0)="QEAM"
DO ^DIC
KILL DIC
if Y<0
DO END^PSOARCS2
if Y<0
GOTO EXIT
DO @+Y
GOTO A
1 ;find
+1 GOTO ^PSOARCCO
2 ;save to tape
+1 GOTO ^PSOARCSV
3 ;tape retrieve
+1 GOTO ^PSOARCIN
4 ;save to hfs file
+1 GOTO ^PSOARCF4
5 ;hfs file retrieve
+1 GOTO ^PSOARCF1
6 ;purge
+1 GOTO ARC^PSOARCS2
7 ;list archived prescription numbers
+1 GOTO ^PSOARCLT
EXIT KILL Y,X,I
QUIT