source: WorldVistAEHR/trunk/r/CLINICAL_INFO_RESOURCE_NETWORK-MRF-RGE--RG--RGED--RGUT--RGWB/RGEX04.m@ 660

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

initial load of WorldVistAEHR

File size: 1.7 KB
Line 
1RGEX04 ;BAY/ALS-LIST MANAGER ROUTINE FOR MPI/PD EXCEPTION PDAT QUERY ;10/31/01
2 ;;1.0;CLINICAL INFO RESOURCE NETWORK;**23,25,41**;30 Apr 99
3EN ;main entry point for RG EXCPT PDAT
4 D EN^VALM("RG EXCPT PDAT")
5 Q
6HDR ; header code
7 S VALMHDR(1)="MPI/PD PATIENT DATA"
8 S VALMHDR(2)=""
9 Q
10INIT ;
11 K ^TMP("RGEXC4",$J)
12 K @VALMAR
13 ;I '$D(ICN) G EXIT
14 I '$D(^TMP("RGPDAT",$J)) G EXIT
15 S LIN=1,X=0,STR="",TXT=""
16 F S X=$O(^TMP("RGPDAT",$J,X)) Q:'X D
17 . S TXT=^TMP("RGPDAT",$J,X)
18 . I $E(TXT,1,12)'="Enter RETURN" D
19 .. S STR=$$SETSTR^VALM1(TXT,STR,2,78)
20 .. D ADDTMP
21 S VALMCNT=LIN-1
22 Q
23ADDTMP ;
24 S ^TMP("RGEXC4",$J,LIN,0)=STR
25 S ^TMP("RGEXC4",$J,"IDX",LIN,LIN)=""
26 S LIN=LIN+1,STR=""
27 Q
28RSEND ;Send remote PDAT Query
29 S VALMBCK="",RICN=ICN
30 D FULL^VALM1
31 D SEND^RGRPDAT
32 D PAUSE^VALM1
33 S ICN=RICN
34 D INIT
35 S VALMBCK="R"
36 Q
37RCHK ;Check remote PDAT Query
38 S VALMBCK="",RICN=ICN
39 D FULL^VALM1
40 D CHKSTAT^RGRPDAT
41 D PAUSE^VALM1
42 S ICN=RICN
43 D INIT
44 S VALMBCK="R"
45 Q
46RDISP ;Display remote PDAT Query
47 S VALMBCK="",RICN=ICN
48 D FULL^VALM1
49 W !!,"Display data returned from remote patient data queries."
50 S TFL="",L="",Y="",ICNARR="",STATUS=""
51 I '$D(^XTMP("RGPDAT"_ICN)) W !!,"No remote query sent for this patient. " G QRD
52 D GETTFL^RGRPDAT(ICN,.TFL)
53 W !!,"-> For ICN ",$P(ICN,"V",1),!
54 I $D(TFL(0)) D
55 . S X=0 F S X=$O(TFL(X)) Q:'X I '$D(^XTMP("RGPDAT"_ICN,X)) K TFL(X)
56 D SELTF^RGRPDAT
57 I '$D(TFARR) W !,"No remote query sent for this patient." G QRD
58 I ((Y="")!(Y="^")) G QRD
59 D PAUSE^VALM1
60 D EN^RGEX05(RICN)
61QRD D PAUSE^VALM1
62 S ICN=RICN
63 D INIT
64 S VALMBCK="R"
65 Q
66HELP ;
67 S X="?" D DISP^XQORM1 W !!
68 Q
69EXIT ;
70 S VALMBCK=""
71 K ^TMP("RGEXC4",$J),^TMP("RGPDAT",$J),LIN,X,STR,TXT,RICN,Y,STATUS,TFL,TFARR,L,ICNARR
72 S VALMBCK="R"
73 Q
Note: See TracBrowser for help on using the repository browser.