1 | RMPRPCEC ;HINCIO/RVD-PCE CREATE 660 & 668 ;07/17/2001
|
---|
2 | ;;3.0;PROSTHETICS;**62**;Feb 09, 1996
|
---|
3 | ;RVD patch #62 - for PCE interface.
|
---|
4 | ;
|
---|
5 | ;RMI60 - IEN of file #660
|
---|
6 | ;If error occured, return value = 1
|
---|
7 | ASK68(RMI60) ;ask for suspense entry.
|
---|
8 | D NEWVAR
|
---|
9 | S RMERR=0
|
---|
10 | S RMDFN=$P(^RMPR(660,RMI60,0),U,2)
|
---|
11 | ASK S RMI68=$$G68^RMPRPCEG(RMDFN)
|
---|
12 | I RMI68>0 G UP60
|
---|
13 | I RMI68="^" W !!,"*** NO LINK TO SUSPENSE RECORD!!!",! H 3 G EXIT
|
---|
14 | W !!,"*** NO SUSPENSE RECORD SELECTED !!!",!
|
---|
15 | K DIR
|
---|
16 | S DIR("A")="Want to CREATE this entry without suspense"
|
---|
17 | S DIR("B")="Y",DIR(0)="Y"
|
---|
18 | D ^DIR K DIR
|
---|
19 | I Y=0 G ASK
|
---|
20 | ;I (Y="^")!(Y="E") S RMERR=1 G EXIT
|
---|
21 | ;G EXIT
|
---|
22 | ;
|
---|
23 | UP60 ;call PCE API to create suspense entry in #660
|
---|
24 | S RMCHK=$$UP60^RMPRPCE1(RMI60,RMI68)
|
---|
25 | I $G(RMCHK) S RMERR=1 H 3 G EXIT
|
---|
26 | ;
|
---|
27 | UP68 ;call PCE API to create 2319 entry in #668
|
---|
28 | ;S RMI68=$P($G(^RMPR(660,RMI60,10)),U,1)
|
---|
29 | ;G:'$G(RMI68) PO2319
|
---|
30 | S RMCHK=$$UP68^RMPRPCE1(RMI60,RMI68)
|
---|
31 | I $G(RMCHK) S RMERR=1 H 3 G EXIT
|
---|
32 | ;
|
---|
33 | EXIT ;EXIT
|
---|
34 | Q RMERR
|
---|
35 | ;
|
---|
36 | NEWVAR ;
|
---|
37 | N RMI68,DIR,DIR,DIK,Y,X,RMCHK,RMDFN,RMIE60,RMIE68
|
---|
38 | Q
|
---|