source: WorldVistAEHR/trunk/r/OUTPATIENT_PHARMACY-PSO-APSP-HUIP/PSOARC.m@ 841

Last change on this file since 841 was 613, checked in by George Lilly, 15 years ago

initial load of WorldVistAEHR

File size: 724 bytes
Line 
1PSOARC ;BHAM ISC/LGH - archiving driver menu ; 07/07/92
2 ;;7.0;OUTPATIENT PHARMACY;;DEC 1997
3 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)
4 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)
5 D IXALL^DIK
6A 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
71 ;find
8 G ^PSOARCCO
92 ;save to tape
10 G ^PSOARCSV
113 ;tape retrieve
12 G ^PSOARCIN
134 ;save to hfs file
14 G ^PSOARCF4
155 ;hfs file retrieve
16 G ^PSOARCF1
176 ;purge
18 G ARC^PSOARCS2
197 ;list archived prescription numbers
20 G ^PSOARCLT
21EXIT K Y,X,I Q
Note: See TracBrowser for help on using the repository browser.