source: WorldVistAEHR/trunk/r/PROSTHETICS-RMPR-RMPO-RMPS/RMPRPCEC.m@ 1297

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

initial load of WorldVistAEHR

File size: 1.0 KB
Line 
1RMPRPCEC ;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
7ASK68(RMI60) ;ask for suspense entry.
8 D NEWVAR
9 S RMERR=0
10 S RMDFN=$P(^RMPR(660,RMI60,0),U,2)
11ASK 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 ;
23UP60 ;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 ;
27UP68 ;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 ;
33EXIT ;EXIT
34 Q RMERR
35 ;
36NEWVAR ;
37 N RMI68,DIR,DIR,DIK,Y,X,RMCHK,RMDFN,RMIE60,RMIE68
38 Q
Note: See TracBrowser for help on using the repository browser.