source: WorldVistAEHR/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORWDRA.m@ 861

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

initial load of WorldVistAEHR

File size: 1.8 KB
RevLine 
[613]1ORWDRA ; SLC/KCM - Radiology calls to support windows [ 08/03/96 6:42 PM ]
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;;Dec 17, 1997
3 ;
4DEF(LST,PATID) ; Get dialog data for radiology
5 N ILST,I,X S ILST=0
6 S LST($$NXT)="~Common Procedures" D COMMPRO
7 S LST($$NXT)="~Modifiers" D MODIFYR
8 S LST($$NXT)="~Urgencies" D URGENCY
9 S LST($$NXT)="~Transport" D TRNSPRT
10 S LST($$NXT)="~Category" D CATEGRY
11 S LST($$NXT)="~Submit to" D SUBMIT
12 S LST($$NXT)="~Ask Submit="_$$GET^XPAR("ALL","RA SUBMIT PROMPT",1,"Q")
13 S LST($$NXT)="~Last 7 Days" D LAST7
14 Q
15MODIFYR ; Get the modifiers (should be by imaging type)
16 S I=0 F S I=$O(^RAMIS(71.2,I)) Q:'I S LST($$NXT)="i"_I_U_$P(^(I,0),U)
17 Q
18COMMPRO ; Get the common procedures
19 S X="" F S X=$O(^ORD(101.43,"COMMON","RAD",X)) Q:X="" D
20 . S I=$O(^ORD(101.43,"COMMON","RAD",X,0)),LST($$NXT)="i"_I_U_X
21 Q
22URGENCY ; Get the allowable urgencies and default
23 F X="STAT","ASAP","ROUTINE","DONE" D
24 . S I=$O(^ORD(101.42,"B",X,0)),LST($$NXT)="i"_I_U_X
25 S LST($$NXT)="dROUTINE"
26 Q
27TRNSPRT ; Get the modes of transport
28 F X="A^AMBULATORY","P^PORTABLE","S^STRETCHER","W^WHEELCHAIR" D
29 . S LST($$NXT)="i"_X
30 ; figure default on windows side
31 Q
32CATEGRY ; Get the categories of exam
33 F X="I^INPATIENT","O^OUTPATIENT","C^CONTRACT","S^SHARING","E^EMPLOYEE","R^RESEARCH" D
34 . S LST($$NXT)="i"_X
35 ; figure default on windows side
36 Q
37SUBMIT ; Get the locations to which the request may be submitted
38 N TMPLST
39 D EN4^RAO7PC1("RAD","TMPLST")
40 S I=0 F S I=$O(TMPLST(I)) Q:'I S LST($$NXT)="i"_TMPLST(I)
41 S I=$O(TMPLST(0)),X=$P(TMPLST(I),U,2),LST($$NXT)="d"_X
42 Q
43LAST7 ; Get exams for the last 7 days
44 K ^TMP($J,"RAE7") D EN2^RAO7PC1(PATID)
45 S I=0 F S I=$O(^TMP($J,"RAE7",PATID,I)) Q:'I D
46 . S LST($$NXT)="i"_I_U_^(I)
47 K ^TMP($J,"RAE7")
48 Q
49NXT() ; Increment index of LST
50 S ILST=ILST+1
51 Q ILST
Note: See TracBrowser for help on using the repository browser.