Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: ORWDBA6

ORWDBA6.m

Go to the documentation of this file.
  1. ORWDBA6 ; SLC/GDU - Clinical Indicator Data Capture - Phase I [10/12/04 15:40]
  1. ;;3.0;ORDER ENTRY/RESULTS REPORTING;**195,261**;Dec 17,1997
  1. MAIN ;Main starting point for this program
  1. N DIR,DTOUT,DUOUT,OPT,Y
  1. D CHKINS
  1. S DIR(0)="SO^"_$P($T(B0A),";",3)_";"
  1. S DIR(0)=DIR(0)_$P($T(B0E),";",3)_";"
  1. S DIR(0)=DIR(0)_$P($T(B0D),";",3)_";"
  1. S DIR(0)=DIR(0)_$P($T(B0L),";",3)_";"
  1. S DIR("?",1)=$P($T(BHA),";",3)
  1. S DIR("?",2)=$P($T(BHE),";",3)
  1. S DIR("?",3)=$P($T(BHD),";",3)
  1. S DIR("?")=$P($T(BHL),";",3)
  1. S DIR("A")=$P($T(BA),";",3)
  1. W:$D(IOF) @IOF
  1. W !,$P($T(SH),";",3),!,$P($T(SH0),";",3)
  1. D ^DIR K DIR
  1. I Y="M" D ^ORWDBA8 G MAIN
  1. I Y="E" D EN^ORWDBA10("E") G MAIN
  1. I Y="D" D EN^ORWDBA10("D") G MAIN
  1. I Y="L" D ^ORWDBA14 G MAIN
  1. Q
  1. ;Text for MAIN user interface
  1. SH ;;Enable Clinical Indicator Data Capture By Provider Parameter Management
  1. SH0 ;;Select Parameter Management Option
  1. B0A ;;M:Manage parameter by provider
  1. B0E ;;E:Enable parameter for all providers
  1. B0D ;;D:Disable parameter for all providers
  1. B0L ;;L:List providers with the assigned parameter
  1. BA ;;Select Enable CIDC By Provider parameter option
  1. BHA ;;Enter M to manage the Enable CIDC By Provider parameter by provider.
  1. BHE ;;Enter E to enable the parameter for all providers
  1. BHD ;;Enter D to disable the parameter for all providers
  1. BHL ;;Enter L to get a list of providers with the parameter and its value.
  1. ;
  1. CHKINS ;Check Install
  1. N DIR,DTOUT,DUOUT,ERR,MSG,RF,X,X1,Y
  1. S MSG(0)=0
  1. D FIND^DIC(9.7,"","","","PX CLINICAL INDICATOR DATA CAPTURE 1.0","*","","","","RF","ERR")
  1. I $D(ERR) D
  1. . F X=1:1:$P(ERR("DIERR"),U) D
  1. .. S MSG(0)=X
  1. .. S MSG(X)=$P($T(PLF),";",3)_" "_ERR("DIERR",X)
  1. .. S X1=0 F S X1=$O(ERR("DIERR",X,"TEXT",X1)) Q:X1="" D
  1. ... S MSG(X,X1)=ERR("DIERR",X,"TEXT",X1)
  1. I $D(RF) D
  1. . I $P(RF("DILIST",0),U)=0 D
  1. .. S MSG(0)=MSG(0)+1
  1. .. S MSG(MSG(0))=$P($T(NRF),";",3)
  1. I $$CHKPS1^ORWDBA5=0 D
  1. . S MSG(0)=MSG(0)+1
  1. . S MSG(MSG(0))=$P($T(MSD),";",3)
  1. I MSG(0)=0 Q
  1. W:$D(IOF) @IOF
  1. W !,$P($T(SH),";",3),!,$P($T(SH0),";",3)
  1. S DIR(0)="E"
  1. W !!,$P($P($T(MH),";",3),"|"),!!,$P($P($T(MH),";",3),"|",2)
  1. F X=1:1:MSG(0) D
  1. . W !,MSG(X)
  1. . S X1=0 F S X1=$O(MSG(X,X1)) Q:X1="" W !,MSG(X,X1)
  1. W !!,$P($T(MF1),";",3),!,$P($T(MF2),";",3),!!
  1. D ^DIR K DIR
  1. Q
  1. ;Error message UI text
  1. PLF ;;Package Lookup Failure, Error Code:
  1. NRF ;;No record found in INSTALL file for PX CLINICAL INDICATOR DATA CAPTURE 1.0
  1. MSD ;;CIDC Master Switch is disabled.
  1. MH ;;ALERT!|Please note the following errors.
  1. MF1 ;;The above error(s) will need to be resolved before the CIDC functionality will
  1. MF2 ;;work. You can still assign the Enable CIDC parameter to providers.