1 | ORWDBA6 ; 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
|
---|
3 | MAIN ;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
|
---|
24 | SH ;;Enable Clinical Indicator Data Capture By Provider Parameter Management
|
---|
25 | SH0 ;;Select Parameter Management Option
|
---|
26 | B0A ;;M:Manage parameter by provider
|
---|
27 | B0E ;;E:Enable parameter for all providers
|
---|
28 | B0D ;;D:Disable parameter for all providers
|
---|
29 | B0L ;;L:List providers with the assigned parameter
|
---|
30 | BA ;;Select Enable CIDC By Provider parameter option
|
---|
31 | BHA ;;Enter M to manage the Enable CIDC By Provider parameter by provider.
|
---|
32 | BHE ;;Enter E to enable the parameter for all providers
|
---|
33 | BHD ;;Enter D to disable the parameter for all providers
|
---|
34 | BHL ;;Enter L to get a list of providers with the parameter and its value.
|
---|
35 | ;
|
---|
36 | CHKINS ;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
|
---|
65 | PLF ;;Package Lookup Failure, Error Code:
|
---|
66 | NRF ;;No record found in INSTALL file for PX CLINICAL INDICATOR DATA CAPTURE 1.0
|
---|
67 | MSD ;;CIDC Master Switch is disabled.
|
---|
68 | MH ;;ALERT!|Please note the following errors.
|
---|
69 | MF1 ;;The above error(s) will need to be resolved before the CIDC functionality will
|
---|
70 | MF2 ;;work. You can still assign the Enable CIDC parameter to providers.
|
---|