source: FOIAVistA/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORXTABS2.m@ 1452

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

initial load of FOIAVistA 6/30/08 version

File size: 6.4 KB
Line 
1ORXTABS2 ; SLC/PKS - Edit calls, tab parameters preferences. [10/2/00 3:53pm]
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**9,47,84**;Dec 17, 1997
3 ;
4 ; Individual preferences edit/input code; called from ORXTABS1.
5 ;
6 ; NOTES: Most ORX* variables used herein are NEW'd in calling
7 ; routines. Tags herein (except "INPUT") must match the
8 ; name of a piece entry in the TABS tag of the ORXTABS
9 ; routine and return:
10 ;
11 ; 1 - A new value entered or selected by the user,
12 ; 2 - A null string,
13 ; 3 - The string "*Invalid*" - to repeat due to invalid entry,
14 ; 4 - The "^" character, indicating user's cancel action.
15 ;
16 ; If there are dissimilar types of values - to be obtained from
17 ; the user - which utilize the same tag name, such differences
18 ; must be handled within the individual tags herein by, for
19 ; instance, examining the ORXPDIR variable which will reveal
20 ; the current TABS line being processed.
21 ;
22 ; New variable used herein:
23 ;
24 ; ORXPASS = Holds ORXNOW original passed value.
25 ;
26 ; Important variables used or assigned by calling routines:
27 ;
28 ; ORXPDIR = Current tab's "prompt" or display string.
29 ; ORXPDIS = Current value's "prompt" or display string.
30 ; ORXNOW = Current value of setting, passed in each call.
31 ;
32 ; Actual code for these tags generally resides in a subsequent
33 ; ORXTABSx routine, to keep this routine as a driver and with
34 ; size limits. The tags in the subsequent routines use the
35 ; same names for convenience.
36 ;
37 Q
38 ;
39INPUT ; Call DIR, return user input - used by various tags called herein.
40 ;
41 W !! ; Spacing for screen display.
42 ;
43 ; Assign default promtp, if any:
44 S:($D(ORXNOW)&(ORXNOW'="")) DIR("B")=ORXNOW
45 D ^DIR ; FM call for user input.
46 S ORXNOW=Y ; Assign input to ORXNOW.
47 K DIR,X,Y ; Clean up each time.
48 ;
49 Q
50 ;
51BEG(ORXNOW) ; Beginning date of date range.
52 ;
53 N ORXPASS
54 S ORXPASS=ORXNOW
55 ;
56 ; Use loop to account for invalid entries:
57 F D Q:ORXNOW'="*Invalid*"
58 .S ORXNOW=ORXPASS ; Reset each time.
59 .D BEG^ORXTABS3 ; Call input dialogue.
60 ;
61 Q ORXNOW ; Return resulting value.
62 ;
63END(ORXNOW) ; Ending date of date range.
64 ;
65 N ORXPASS
66 S ORXPASS=ORXNOW
67 ;
68 ; Use loop to account for invalid entries:
69 F D Q:ORXNOW'="*Invalid*"
70 .S ORXNOW=ORXPASS ; Reset each time.
71 .D END^ORXTABS3 ; Call input dialogue.
72 ;
73 Q ORXNOW ; Return resulting value.
74 ;
75MAX(ORXNOW) ; Maximum number of items to display.
76 ;
77 N ORXPASS
78 S ORXPASS=ORXNOW
79 ;
80 ; Use loop to account for invalid entries:
81 F D Q:ORXNOW'="*Invalid*"
82 .S ORXNOW=ORXPASS ; Reset each time.
83 .D MAX^ORXTABS3 ; Call input dialogue.
84 ;
85 Q ORXNOW ; Return resulting value.
86 ;
87AUTHOR(ORXNOW) ; Select note author.
88 ;
89 N ORXPASS
90 S ORXPASS=ORXNOW
91 ;
92 ; Use loop to account for invalid entries:
93 F D Q:ORXNOW'="*Invalid*"
94 .S ORXNOW=ORXPASS ; Reset each time.
95 .D AUTHOR^ORXTABS3 ; Call input dialogue.
96 ;
97 Q ORXNOW ; Return resulting value.
98 ;
99STATUS(ORXNOW) ; Status.
100 ;
101 N ORXPASS
102 S ORXPASS=ORXNOW
103 ;
104 ; Use loop to account for invalid entries:
105 F D Q:ORXNOW'="*Invalid*"
106 .S ORXNOW=ORXPASS ; Reset each time.
107 .D STATUS^ORXTABS4(ORXPDIR) ; Call input dialogue.
108 ;
109 Q ORXNOW ; Return resulting value.
110 ;
111TYPE(ORXNOW) ; Type.
112 ;
113 N ORXPASS
114 S ORXPASS=ORXNOW
115 ;
116 ; Use loop to account for invalid entries:
117 F D Q:ORXNOW'="*Invalid*"
118 .S ORXNOW=ORXPASS ; Reset each time.
119 .D TYPE^ORXTABS5 ; Call input dialogue.
120 ;
121 Q ORXNOW ; Return resulting value.
122 ;
123DISPGRP(ORXNOW) ; Display Group..
124 ;
125 N ORXPASS
126 S ORXPASS=ORXNOW
127 ;
128 ; Use loop to account for invalid entries:
129 F D Q:ORXNOW'="*Invalid*"
130 .S ORXNOW=ORXPASS ; Reset each time.
131 .D DISPGRP^ORXTABS5 ; Call input dialogue.
132 ;
133 Q ORXNOW ; Return resulting value.
134 ;
135OUTPT(ORXNOW) ; Outpatient or Inpatient Meds.
136 ;
137 N ORXPASS
138 S ORXPASS=ORXNOW
139 ;
140 ; Use loop to account for invalid entries:
141 F D Q:ORXNOW'="*Invalid*"
142 .S ORXNOW=ORXPASS ; Reset each time.
143 .D OUTPT^ORXTABS5 ; Call input dialogue.
144 ;
145 Q ORXNOW ; Return resulting value.
146 ;
147SUBJECT(ORXNOW) ; Subject.
148 ;
149 N ORXPASS
150 S ORXPASS=ORXNOW
151 ;
152 ; Use loop to account for invalid entries:
153 F D Q:ORXNOW'="*Invalid*"
154 .S ORXNOW=ORXPASS ; Reset each time.
155 .D SUBJECT^ORXTABS5 ; Call input dialogue.
156 ;
157 Q ORXNOW ; Return resulting value.
158 ;
159FORMAT(ORXNOW) ; Format.
160 ;
161 N ORXPASS
162 S ORXPASS=ORXNOW
163 ;
164 ; Use loop to account for invalid entries:
165 F D Q:ORXNOW'="*Invalid*"
166 .S ORXNOW=ORXPASS ; Reset each time.
167 .D FORMAT^ORXTABS5 ; Call input dialogue.
168 ;
169 Q ORXNOW ; Return resulting value.
170 ;
171COMMENTS(ORXNOW) ; Comments On/Off.
172 ;
173 N ORXPASS
174 S ORXPASS=ORXNOW
175 ;
176 ; Use loop to account for invalid entries:
177 F D Q:ORXNOW'="*Invalid*"
178 .S ORXNOW=ORXPASS ; Reset each time.
179 .D COMMENTS^ORXTABS5 ; Call input dialogue.
180 ;
181 Q ORXNOW ; Return resulting value.
182 ;
183SERVICE(ORXNOW) ; Service.
184 ;
185 N ORXPASS
186 S ORXPASS=ORXNOW
187 ;
188 ; Use loop to account for invalid entries:
189 F D Q:ORXNOW'="*Invalid*"
190 .S ORXNOW=ORXPASS ; Reset each time.
191 .D SERVICE^ORXTABS5 ; Call input dialogue.
192 ;
193 Q ORXNOW ; Return resulting value.
194 ;
195OCCLIM(ORXNOW) ; Occlim.
196 ;
197 N ORXPASS
198 S ORXPASS=ORXNOW
199 ;
200 ; Use loop to account for invalid entries:
201 F D Q:ORXNOW'="*Invalid*"
202 .S ORXNOW=ORXPASS ; Reset each time.
203 .D OCCLIM^ORXTABS5 ; Call input dialogue.
204 ;
205 Q ORXNOW ; Return resulting value.
206 ;
Note: See TracBrowser for help on using the repository browser.