source: WorldVistAEHR/trunk/r/REMOTE_ORDER_ENTRY_SYSTEM-RMPF-RMPJ/RMPFEV1.m@ 949

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

initial load of WorldVistAEHR

File size: 1.7 KB
Line 
1RMPFEV1 ;DDC/KAW-REMOTE ORDER/ENTRY PARAMETERS FOR PSAS; [ 06/16/95 3:06 PM ]
2 ;;2.0;REMOTE ORDER/ENTRY SYSTEM;;JUN 16, 1995
3RMPFSET S RMPFMENU=10 I '$D(RMPFMENU) W !!,$C(7),"*** A MENU SELECTION MUST BE MADE ***" Q ;;RMPFMENU must be defined
4 I '$D(RMPFSTAN)!'$D(RMPFDAT)!'$D(RMPFSYS) D ^RMPFUTL H 2
5 W @IOF,!,"REMOTE ORDER/ENTRY PARAMETERS FOR PSAS",!!
6 S DIC=4,DIC(0)="AEQM"
7 I $D(RMPFSTAP) S:RMPFSTAP'="" DIC("B")=$P(RMPFSTAP," - ",2)
8 D ^DIC G END:Y=-1
9 S (DA,RMPFSTAN)=+Y S RMPFSTAP=$S($D(^DIC(4,RMPFSTAN,99)):$P(^(99),U,1),1:"") S:RMPFSTAP'="" RMPFSTAP=RMPFSTAP_" - " S RMPFSTAP=RMPFSTAP_$P(Y,U,2)
10PARAM I $D(RMPFSTAN),RMPFSTAN,$D(^RMPF(791813,RMPFSTAN,0)) G SET
11A1 W !!,"Do You Wish to Add Parameters for this station? NO// "
12 D READ G END:$D(RMPFOUT)
13A11 I $D(RMPFQUT) W !!,"Enter <Y> to add parameters for this station,",!?6,"<N> or <RETURN> to exit." G A1
14 S:Y="" Y="N" S Y=$E(Y,1) I "YyNn"'[Y S RMPFQUT="" G A11
15 G END:"Nn"[Y
16 S DLAYGO=791813,DIC(0)="L",DIC="^RMPF(791813,",DINUM=RMPFSTAN
17 S X=RMPFSTAN K DD,DO D FILE^DICN S DA=+Y
18 I Y=-1 W !!,"*** UNABLE TO ADD STATION TO PARAMETER FILE ***" G END
19SET S X=$G(^RMPF(791813,DA,2)) I $P(X,U,3) D
20 .S A=$P(X,U,3) Q:'A Q:'$D(^VA(200,A,0)) S A=$P(^(0),U,1)
21 .S Y=$P(X,U,4) D DD^%DT
22 .W !!?1,"Last User to Run Purge: ",A,!,"Last Date Purge was Run: ",Y,!!
23 S DIE="^RMPF(791813,"
24 S DR="10.02;10.03;I X'=""S""&(X'=""A"") S Y=10.05;10.04;10.05;10.06;10.07;10.08;10.09;10.1;11.01;11.02;11.03;11.04;11.06"
25 D ^DIE,PARAM^RMPFUTL
26 S $P(^RMPF(791813,DA,0),U,7)="A"
27END K %,%DT,%Y,POP,D,C,I,X,D0,DA,DI,DQ,DR,DIC,DIE,DISYS,DLAYGO,Y Q
28READ K RMPFOUT,RMPFQUT
29 R Y:DTIME I '$T W $C(7) R Y:5 G READ:Y="." S:'$T Y=U
30 I Y?1"^".E S (RMPFOUT,Y)="" Q
31 S:Y?1"?".E (RMPFQUT,Y)=""
32 Q
Note: See TracBrowser for help on using the repository browser.