source: FOIAVistA/trunk/r/ORDER_ENTRY_RESULTS_REPORTING-OR-OCX--ORRC--ORRJ/ORWDBA6.m@ 1607

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

initial load of FOIAVistA 6/30/08 version

File size: 2.5 KB
Line 
1ORWDBA6 ; SLC/GDU - Clinical Indicator Data Capture - Phase I [10/12/04 15:40]
2 ;;3.0;ORDER ENTRY/RESULTS REPORTING;**195,261**;Dec 17,1997
3MAIN ;Main starting point for this program
4 N DIR,DTOUT,DUOUT,OPT,Y
5 D CHKINS
6 S DIR(0)="SO^"_$P($T(B0A),";",3)_";"
7 S DIR(0)=DIR(0)_$P($T(B0E),";",3)_";"
8 S DIR(0)=DIR(0)_$P($T(B0D),";",3)_";"
9 S DIR(0)=DIR(0)_$P($T(B0L),";",3)_";"
10 S DIR("?",1)=$P($T(BHA),";",3)
11 S DIR("?",2)=$P($T(BHE),";",3)
12 S DIR("?",3)=$P($T(BHD),";",3)
13 S DIR("?")=$P($T(BHL),";",3)
14 S DIR("A")=$P($T(BA),";",3)
15 W:$D(IOF) @IOF
16 W !,$P($T(SH),";",3),!,$P($T(SH0),";",3)
17 D ^DIR K DIR
18 I Y="M" D ^ORWDBA8 G MAIN
19 I Y="E" D EN^ORWDBA10("E") G MAIN
20 I Y="D" D EN^ORWDBA10("D") G MAIN
21 I Y="L" D ^ORWDBA14 G MAIN
22 Q
23 ;Text for MAIN user interface
24SH ;;Enable Clinical Indicator Data Capture By Provider Parameter Management
25SH0 ;;Select Parameter Management Option
26B0A ;;M:Manage parameter by provider
27B0E ;;E:Enable parameter for all providers
28B0D ;;D:Disable parameter for all providers
29B0L ;;L:List providers with the assigned parameter
30BA ;;Select Enable CIDC By Provider parameter option
31BHA ;;Enter M to manage the Enable CIDC By Provider parameter by provider.
32BHE ;;Enter E to enable the parameter for all providers
33BHD ;;Enter D to disable the parameter for all providers
34BHL ;;Enter L to get a list of providers with the parameter and its value.
35 ;
36CHKINS ;Check Install
37 N DIR,DTOUT,DUOUT,ERR,MSG,RF,X,X1,Y
38 S MSG(0)=0
39 D FIND^DIC(9.7,"","","","PX CLINICAL INDICATOR DATA CAPTURE 1.0","*","","","","RF","ERR")
40 I $D(ERR) D
41 . F X=1:1:$P(ERR("DIERR"),U) D
42 .. S MSG(0)=X
43 .. S MSG(X)=$P($T(PLF),";",3)_" "_ERR("DIERR",X)
44 .. S X1=0 F S X1=$O(ERR("DIERR",X,"TEXT",X1)) Q:X1="" D
45 ... S MSG(X,X1)=ERR("DIERR",X,"TEXT",X1)
46 I $D(RF) D
47 . I $P(RF("DILIST",0),U)=0 D
48 .. S MSG(0)=MSG(0)+1
49 .. S MSG(MSG(0))=$P($T(NRF),";",3)
50 I $$CHKPS1^ORWDBA5=0 D
51 . S MSG(0)=MSG(0)+1
52 . S MSG(MSG(0))=$P($T(MSD),";",3)
53 I MSG(0)=0 Q
54 W:$D(IOF) @IOF
55 W !,$P($T(SH),";",3),!,$P($T(SH0),";",3)
56 S DIR(0)="E"
57 W !!,$P($P($T(MH),";",3),"|"),!!,$P($P($T(MH),";",3),"|",2)
58 F X=1:1:MSG(0) D
59 . W !,MSG(X)
60 . S X1=0 F S X1=$O(MSG(X,X1)) Q:X1="" W !,MSG(X,X1)
61 W !!,$P($T(MF1),";",3),!,$P($T(MF2),";",3),!!
62 D ^DIR K DIR
63 Q
64 ;Error message UI text
65PLF ;;Package Lookup Failure, Error Code:
66NRF ;;No record found in INSTALL file for PX CLINICAL INDICATOR DATA CAPTURE 1.0
67MSD ;;CIDC Master Switch is disabled.
68MH ;;ALERT!|Please note the following errors.
69MF1 ;;The above error(s) will need to be resolved before the CIDC functionality will
70MF2 ;;work. You can still assign the Enable CIDC parameter to providers.
Note: See TracBrowser for help on using the repository browser.