source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORWGRPC.m@ 619

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

initial load of WorldVistAEHR

File size: 3.9 KB
Line 
1ORWGRPC ; SLC/STAFF - Graph RPC ;3/9/06 13:59
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**215,243**;Dec 17, 1997;Build 242
3 ;
4ALLITEMS(ITEMS,DFN) ; RPC - get all items of data on patient (procedures, tests, codes,..)
5 D ALLITEMS^ORWGAPI("ORWGRPC",DFN)
6 S ITEMS=$NA(^TMP("ORWGRPC",$J))
7 Q
8 ;
9ALLVIEWS(DATA,VIEW,USER) ; RPC - get all graph views
10 D ALLVIEWS^ORWGAPI("ORWGRPC",+$G(VIEW),+$G(USER))
11 S DATA=$NA(^TMP("ORWGRPC",$J))
12 Q
13 ;
14CLASS(DATA,TYPE) ; RPC - get classifications
15 D CLASS^ORWGAPI("ORWGRPC",TYPE)
16 S DATA=$NA(^TMP("ORWGRPC",$J))
17 Q
18 ;
19DATEDATA(DATA,OLDEST,NEWEST,TYPEITEM,DFN) ; RPC - get data for an item on patient in date range
20 D DATEDATA^ORWGAPI("ORWGRPC",OLDEST,NEWEST,TYPEITEM,DFN)
21 S DATA=$NA(^TMP("ORWGRPC",$J))
22 Q
23 ;
24DATEITEM(DATA,OLDEST,NEWEST,FNUM,DFN) ; RPC - get patient items in date range for a type
25 D DATEITEM^ORWGAPI("ORWGRPC",OLDEST,NEWEST,FNUM,DFN)
26 S DATA=$NA(^TMP("ORWGRPC",$J))
27 Q
28 ;
29DELVIEWS(ERR,NAME,PUBLIC) ; RPC - delete a graph view
30 D DELVIEWS^ORWGAPI("ORWGRPC",NAME,+$G(PUBLIC))
31 S ERR=$NA(^TMP("ORWGRPC",$J))
32 Q
33 ;
34DETAIL(ITEMS,DFN,DATE1,DATE2,VAL,COMP) ; RPC - get all reports for types of data from items and date range
35 D DETAIL^ORWGAPI("ORWGRPC",DFN,DATE1,DATE2,.VAL,$G(COMP))
36 S ITEMS=$NA(^TMP("ORWGRPC",$J))
37 Q
38 ;
39DETAILS(ITEMS,DFN,DATE1,DATE2,TYPE,COMP) ; RPC - get report for type of data for a date or date range
40 D DETAILS^ORWGAPI("ORWGRPC",DFN,DATE1,DATE2,TYPE,$G(COMP))
41 S ITEMS=$NA(^TMP("ORWGRPC",$J))
42 Q
43 ;
44FASTDATA(DATA,DFN) ; RPC - get all data (non-lab) set up on patient
45 D FASTDATA^ORWGAPI(.DATA,DFN)
46 Q
47 ;
48FASTITEM(ITEMS,DFN) ; RPC - get all items set up on patient
49 D FASTITEM^ORWGAPI(.ITEMS,DFN)
50 Q
51 ;
52FASTLABS(DATA,DFN) ; RPC - get all lab data set up on patient
53 D FASTLABS^ORWGAPI(.DATA,DFN)
54 Q
55 ;
56FASTTASK(STATUS,DFN,OLDDFN) ; set up all data and items on patient
57 D FASTTASK^ORWGAPI(.STATUS,DFN,$G(OLDDFN))
58 Q
59 ;
60GETDATES(DATA,REPORTID) ; RPC - get graph date range
61 D GETDATES^ORWGAPI("ORWGRPC",$G(REPORTID))
62 S DATA=$NA(^TMP("ORWGRPC",$J))
63 Q
64 ;
65GETPREF(DATA) ; RPC - get graph settings
66 D GETPREF^ORWGAPI("ORWGRPC")
67 S DATA=$NA(^TMP("ORWGRPC",$J))
68 Q
69 ;
70GETSIZE(DATA) ; RPC - get graph positions and sizes
71 D GETSIZE^ORWGAPI("ORWGRPC")
72 S DATA=$NA(^TMP("ORWGRPC",$J))
73 Q
74 ;
75GETVIEWS(DATA,ALL,PUBLIC,EXT,USER) ; RPC - get graph views
76 D GETVIEWS^ORWGAPI("ORWGRPC",ALL,+$G(PUBLIC),+$G(EXT),+$G(USER))
77 S DATA=$NA(^TMP("ORWGRPC",$J))
78 Q
79 ;
80ITEMDATA(DATA,ITEM,START,DFN) ; RPC - get data of an item on patient (glucose results)
81 D ITEMDATA^ORWGAPI("ORWGRPC",ITEM,START,DFN)
82 S DATA=$NA(^TMP("ORWGRPC",$J))
83 Q
84 ;
85ITEMS(ITEMS,DFN,TYPE) ; RPC - get items of a type of data on patient (lab tests)
86 D ITEMS^ORWGAPI("ORWGRPC",DFN,TYPE)
87 S ITEMS=$NA(^TMP("ORWGRPC",$J))
88 Q
89 ;
90LOOKUP(VAL,INFO,FROM,DIR) ; RPC - get item names for long lookup
91 D LOOKUP^ORWGAPI(.VAL,INFO,.FROM,DIR)
92 Q
93 ;
94PUBLIC(VAL) ; RPC - check if user can edit public views and settings
95 S VAL=$$PUBLIC^ORWGAPI(DUZ)
96 Q
97 ;
98RPTPARAM(VAL,IEN) ; RPC - return PARAM1^PARAM2 for graph report
99 S VAL=$$RPTPARAM^ORWGAPI(IEN)
100 Q
101 ;
102SETPREF(ERR,SETTING,PUBLIC) ; RPC - set a graph setting
103 D SETPREF^ORWGAPI("ORWGRPC",SETTING,+$G(PUBLIC))
104 S ERR=$NA(^TMP("ORWGRPC",$J))
105 Q
106 ;
107SETSIZE(ERR,VAL) ; RPC - set graph positions and sizes
108 D SETSIZE^ORWGAPI("ORWGRPC",.VAL)
109 S ERR=$NA(^TMP("ORWGRPC",$J))
110 Q
111 ;
112SETVIEWS(ERR,NAME,PUBLIC,VAL) ; RPC - set a graph view
113 D SETVIEWS^ORWGAPI("ORWGRPC",NAME,+$G(PUBLIC),.VAL)
114 S ERR=$NA(^TMP("ORWGRPC",$J))
115 Q
116 ;
117TAX(DATA,ALL,REMTAX) ; RPC - get reminder taxonomies
118 D TAX^ORWGAPI("ORWGRPC",+$G(ALL),.REMTAX)
119 S DATA=$NA(^TMP("ORWGRPC",$J))
120 Q
121 ;
122TESTING(DATA) ; RPC - cache data
123 D TESTING^ORWGAPI("ORWGRPC")
124 S DATA=$NA(^TMP("ORWGRPC",$J))
125 Q
126 ;
127TESTSPEC(DATA) ; RPC - get test/spec info on all lab tests
128 D TESTSPEC^ORWGAPI("ORWGRPC")
129 S DATA=$NA(^TMP("ORWGRPC",$J))
130 Q
131 ;
132TYPES(TYPES,DFN,SUB) ; RPC - get all the types of data on a patient (SUB=1, gets subtypes, DFN=0 gets all types),
133 D TYPES^ORWGAPI("ORWGRPC",DFN,+$G(SUB))
134 S TYPES=$NA(^TMP("ORWGRPC",$J))
135 Q
136 ;
Note: See TracBrowser for help on using the repository browser.