44465. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 8/1/2019 1:42:43 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

44465.1 Files compared

# Location File Last Modified
1 JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\main\java\gov\va\med\jmeadows\common AppConfig.java Mon Jul 8 18:58:48 2019 UTC
2 JLV_2_8_0_0_0_July_2019.zip\JLV_2_8_0_0_0_July_2019\jMeadows\src\main\java\gov\va\med\jmeadows\common AppConfig.java Tue Jul 30 20:02:28 2019 UTC

44465.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 2 2308
Changed 1 2
Inserted 0 0
Removed 0 0

44465.3 Comparison options

Whitespace
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

44465.4 Active regular expressions

No regular expressions were active.

44465.5 Comparison detail

  1   /**
  2    * Janus 4 .0 (c)
  3    * Copyrig ht (c) 201 1 Hawaii R esource Gr oup LLC. A ll Rights  Reserved.
  4    * Develop ed for the  Pacific T elehealth  & Technolo gy Hui and  the Pacif ic Joint I nformation  Technolog y Center
  5    * Contrib utors:
  6    *     Hon orable Sen ator Danie l K. Inouy e
  7    *     VA  Pacific Is lands Heal th Care Sy stem
  8    *     Tri pler Army  Medical Ce nter
  9    */
  10  
  11  
  12   package go v.va.med.j meadows.co mmon;
  13  
  14   import gov .va.med.fo undations. utilities. EncryptUti l;
  15   import org .slf4j.Log ger;
  16   import org .slf4j.Log gerFactory ;
  17  
  18   import jav a.io.FileI nputStream ;
  19   import jav a.io.FileN otFoundExc eption;
  20   import jav a.io.IOExc eption;
  21   import jav a.io.Input Stream;
  22   import jav a.util.Pro perties;
  23  
  24   /**
  25    * Applica tion confi guration.
  26    * 
  27    * User:  D N S
  28    * Date: 8 /1/11
  29    * Time: 1 0:24 AM
  30    */
  31   public cla ss AppConf ig {
  32  
  33       /**
  34        * Log ger.
  35        */
  36       privat e static f inal Logge r LOGGER =  LoggerFac tory.getLo gger(AppCo nfig.class );
  37  
  38       /**
  39        * CHC S site cod e.
  40        */
  41       privat e static f inal Strin g LOCAL_CH CS_SITECOD E = "LOCAL _CHCS_SITE CODE";
  42       
  43       /**
  44        * Vis tA site co de.
  45        */
  46       privat e static f inal Strin g LOCAL_VI STA_SITECO DE = "LOCA L_VISTA_SI TECODE";
  47  
  48       /**
  49        * jMe adows vers ion number .
  50        */
  51       privat e static f inal Strin g APP_VERS ION = "app .version";
  52       
  53       /**
  54        * jMe adows app  environmen t.
  55        */
  56       privat e static f inal Strin g APP_ENVI RONMENT =  "app.envir onment";
  57  
  58       /**
  59        * Dat asource.
  60        */
  61       privat e static f inal Strin g APP_DATA SOURCE = " app.dataso urce";
  62  
  63       /**
  64        * Env ironment.
  65        */
  66       privat e static f inal Strin g ENV = "E NV";
  67       
  68       /**
  69        * log 4j propert ies file p ath.
  70        */
  71       privat e static f inal Strin g LOG4J_PR OPERTIES =  "LOG4J_PR OPERTIES";
  72  
  73       /**
  74        * CHC SWS endpoi nt.
  75        */
  76       privat e static f inal Strin g CHCS_URL  = "CHCS_U RL";
  77  
  78       /**
  79        * Vis taDataServ ice endpoi nt.
  80        */
  81       privat e static f inal Strin g VISTA_UR L = "VISTA _URL";
  82  
  83       /**
  84        * MVI  endpoint.
  85        */
  86       privat e static f inal Strin g MVI_URL  = "MVI_URL ";
  87  
  88       /**
  89        * MVI  HL7 Messa ge Sender  Device ID.
  90        */
  91       privat e static f inal Strin g MVI_SND_ DEV_ID = " MVI_SND_DE V_ID";
  92  
  93       /**
  94        * MVI  search re sult quant ity.
  95        */
  96       privat e static f inal Strin g MVI_SEAR CH_QTY = " MVI_SEARCH _QTY";
  97  
  98       /**
  99        * Res trict VA u ser access  to DoD-on ly patient  informati on.
  100        */
  101       privat e static f inal Strin g VA_USER_ RESTRICT =  "VA_USER_ RESTRICT";
  102  
  103       /**
  104        * All ow VA user  access to  DoD-only  patient in formation  (Audited a nd prompte d).
  105        */
  106       privat e static f inal Strin g VA_USER_ ALLOW_REST RICT_ACCES S = "VA_US ER_ALLOW_R ESTRICT_AC CESS";
  107  
  108       /**
  109        * PIX  service e ndpoint.
  110        */
  111       privat e static f inal Strin g PIX_URL  = "PIX_URL ";
  112       
  113       /**
  114        * BHI ERelayServ ice endpoi nt.
  115        */
  116       privat e static f inal Strin g BHIE_REL AY_SERVICE _URL = "BH IE_RELAY_S ERVICE_URL ";
  117       
  118       /**
  119        * ESS ENTRIS cus todian OID .
  120        */
  121       privat e static f inal Strin g BHIE_CUS TODIAN_OID _ESS = "BH IE_CUSTODI AN_OID_ESS ";
  122       
  123       /**
  124        * TMD S custodia n OID.
  125        */
  126       privat e static f inal Strin g BHIE_CUS TODIAN_OID _CHCS = "B HIE_CUSTOD IAN_OID_CH CS";
  127       /**
  128        * SHA RE custodi an OID.
  129        */
  130       privat e static f inal Strin g BHIE_CUS TODIAN_OID _SHARE = " BHIE_CUSTO DIAN_OID_S HARE";
  131       /**
  132        * PDW SService e ndpoint *
  133        */
  134       privat e static f inal Strin g PDWS_PS_ URL = "PDW S_PS_URL";
  135       privat e static f inal Strin g PDWS_PR_ URL = "PDW S_PR_URL";
  136       privat e static f inal Strin g PDWS_FS_ URL = "PDW S_FS_URL";
  137       privat e static f inal Strin g PDWS_FR_ URL = "PDW S_FR_URL";
  138       /**
  139        * PDW SService H L7 Message  Header Pr ocessing C ode.
  140        */
  141       privat e static f inal Strin g PDWS_PRO C_CODE = " PDWS_PROC_ CODE";
  142       /**
  143        * PDW SService H L7 Message  //Sender/ Device/id.
  144        */
  145       privat e static f inal Strin g PDWS_SND _DEV_ID =  "PDWS_SND_ DEV_ID";
  146  
  147       /**
  148        * PDW SService S OAP DEBUG  FLAG.
  149        */
  150       privat e static f inal Strin g DEBUG_SO AP_OUTPUT  = "DEBUG_S OAP_OUTPUT ";
  151  
  152       /**
  153        * CHC SWS encryp ted userna me.
  154        */
  155       privat e static f inal Strin g CHCSWS_U SERNAME =  "CHCSWS_US ERNAME";
  156       /**
  157        * CHC SWS encryp ted pwd.
  158        */
  159       privat e static f inal Strin g CHCSWS_P WD = "CHCS WS_PWD";
  160       /**
  161        * BHI ERelayServ ice encryp ted userna me.
  162        */
  163       privat e static f inal Strin g BHIE_REL AY_SERVICE _USERNAME  = "BHIE_RE LAY_SERVIC E_USERNAME ";
  164       /**
  165        * BHI ERelayServ ice encryp ted pwd.
  166        */
  167       privat e static f inal Strin g BHIE_REL AY_SERVICE _PWD = "BH IE_RELAY_S ERVICE_PWD ";
  168  
  169       /**
  170        * tru e to relax  SSL v3 se curity req uirements.  (Use this  for debug ging purpo ses only!) .
  171        */
  172       privat e static f inal Strin g IS_TRUST _ALL_SSL_H OSTNAMES_A ND_CERTS =  "IS_TRUST _ALL_SSL_H OSTNAMES_A ND_CERTS";
  173       /**
  174        * tru e to utili ze C3PO fo r as the s ql connect ion poolin g api.
  175        * If  false, def aults to u tilizing J NDI lookup  for conne ction pool .
  176        */
  177       privat e static f inal Strin g USE_C3PO  = "USE_C3 PO";
  178       /**
  179        * SQL  server JD BC connect ion string  (for use  with C3PO) .
  180        */
  181       privat e static f inal Strin g SQL_URL  = "SQL_URL ";
  182       /**
  183        * SQL  server JD BC connect ion string  (for use  with C3PO) .
  184        */
  185       privat e static f inal Strin g SQL_URL_ ENCRYPTED  = "SQL_URL _ENCRYPTED ";
  186       /**
  187        * SQL  server dr iver (for  use with C 3PO).
  188        */
  189       privat e static f inal Strin g SQL_DRIV ER = "SQL_ DRIVER";
  190       /**
  191        * JDN I connecti on pooling  lookup na me.
  192        */
  193       privat e static f inal Strin g JNDI_JDB C = "JNDI_ JDBC";
  194       /**
  195        * JDN I connecti on pooling  lookup na me.
  196        */
  197       privat e static f inal Strin g JNDI_JDB C_ENCRYPTE D = "JNDI_ JDBC_ENCRY PTED";
  198  
  199       /**
  200        * Gen eral servi ce request  timeout s etting in  millisecon ds.
  201        */
  202       privat e static f inal Strin g REQUEST_ TIMEOUT_MS  = "REQUES T_TIMEOUT_ MS";
  203       /**
  204        * Gen eral servi ce connect ion timeou t setting  in millise conds.
  205        */
  206       privat e static f inal Strin g CONNECTI ON_TIMEOUT _MS = "CON NECTION_TI MEOUT_MS";
  207       /**
  208        * Gen eral threa d timeout  in millise conds.
  209        */
  210       privat e static f inal Strin g THREAD_T IMEOUT_MS  = "THREAD_ TIMEOUT_MS ";
  211  
  212       /**
  213        * VLE R service  request ti meout sett ing in mil liseconds.
  214        */
  215       privat e static f inal Strin g VLER_REQ UEST_TIMEO UT_MS = "V LER_REQUES T_TIMEOUT_ MS";
  216       /**
  217        * VLE R service  connection  timeout s etting in  millisecon ds.
  218        */
  219       privat e static f inal Strin g VLER_CON NECTION_TI MEOUT_MS =  "VLER_CON NECTION_TI MEOUT_MS";
  220  
  221       /**
  222        * Def ault error  message s tring.
  223        */
  224       privat e static f inal Strin g ERROR_MS G_CONNECTI ON_UNAVAIL ABLE = "ER ROR_MSG_CO NNECTION_U NAVAILABLE ";
  225       /**
  226        * Def ault edr s ervice rel ated error  message s tring.
  227        */
  228       privat e static f inal Strin g ERROR_MS G_EDR_DOCS  = "ERROR_ MSG_EDR_DO CS";
  229  
  230       /**
  231        * AHL TA custodi an OID.
  232        */
  233       privat e static f inal Strin g BHIE_CUS TODIAN_OID _AHLTA = " BHIE_CUSTO DIAN_OID_A HLTA";
  234       /**
  235        * VA  custodian  OID.
  236        */
  237       privat e static f inal Strin g BHIE_CUS TODIAN_OID _VA = "BHI E_CUSTODIA N_OID_VA";
  238       /**
  239        * TMD S custodia n OID.
  240        */
  241       privat e static f inal Strin g BHIE_CUS TODIAN_OID _TMDS = "B HIE_CUSTOD IAN_OID_TM DS";
  242  
  243       /**
  244        * FHI E custodia n OID.
  245        */
  246       privat e static f inal Strin g BHIE_CUS TODIAN_OID _FHIE = "B HIE_CUSTOD IAN_OID_FH IE";
  247       /**
  248        * Sit e code to  return wit h BHIE err or beans ( utilized w hen BHIE c onnection  is unavail able).
  249        */
  250       privat e static f inal Strin g BHIE_ERR OR_SITE_CO DE = "BHIE _ERROR_SIT E_CODE";
  251       /**
  252        * Sit e name to  return wit h BHIE err or bean (u tilized wh en BHIE co nnection i s unavaila ble).
  253        */
  254       privat e static f inal Strin g BHIE_ERR OR_SITE_NA ME = "BHIE _ERROR_SIT E_NAME";
  255       /**
  256        * Sit e moniker  to return  with BHIE  error bean  (utilized  when BHIE  connectio n is unava ilable).
  257        */
  258       privat e static f inal Strin g BHIE_ERR OR_SITE_MO NIKER = "B HIE_ERROR_ SITE_MONIK ER";
  259  
  260       /**
  261        * The  local VA  facility's  patient I EN OID - f or use wit h the PIX  Service pa tient iden tifier map .
  262        * (2. 16.840.1.1 13883.3.42 .10006.100 005.8 for  North Chic ago VA)
  263        */
  264       privat e static f inal Strin g LOCAL_VA _IEN_OID =  "LOCAL_VA _IEN_OID";
  265       /**
  266        * Vis ta enterpr ise ICN OI D - for us e with the  PIX Servi ce patient  identifie r map.
  267        */
  268       privat e static f inal Strin g VISTA_IC N_OID = "V ISTA_ICN_O ID";
  269       /**
  270        * The  DoD enter prise EDIP N (EDIPI)  OID - for  use with t he Pix Ser vice ident ifier map.
  271        */
  272       privat e static f inal Strin g DOD_EDIP N_OID = "D OD_EDIPN_O ID";
  273  
  274       /**
  275        * VA  agency nam e string S hould be c onfigured  as VA,
  276        */
  277       privat e static f inal Strin g AGENCY_V A = "AGENC Y_VA";
  278       /**
  279        * DOD  agency na me string.  Should be  configure d as DOD,
  280        */
  281       privat e static f inal Strin g AGENCY_D OD = "AGEN CY_DOD";
  282  
  283       /**
  284        * Sit eMap's EHC ache name,
  285        */
  286       privat e static f inal Strin g EHCACHE_ NAME_SITEM AP = "EHCA CHE_NAME_S ITEMAP";
  287  
  288       /**
  289        * RPC  endpoint  environmen t (enterpr ise, hrg,  etc.),
  290        */
  291       privat e static f inal Strin g RPC_ENDP OINT_ENVIR ONMENT = " RPC_ENDPOI NT_ENVIRON MENT";
  292  
  293       /**
  294        * CAC HE endpoin t environm ent (enter prise, hrg , etc.),
  295        */
  296       privat e static f inal Strin g CACHE_EN DPOINT_ENV IRONMENT =  "CACHE_EN DPOINT_ENV IRONMENT";
  297  
  298       /**
  299        * Sha re endpoin t environm ent,
  300        */
  301       privat e static f inal Strin g SHARE_EN DPOINT_ENV IRONMENT =  "SHARE_EN DPOINT_ENV IRONMENT";
  302  
  303       /**
  304        * Med web endpoi nt environ ment,
  305        */
  306       privat e static f inal Strin g MEDWEB_E NDPOINT_EN VIRONMENT  = "MEDWEB_ ENDPOINT_E NVIRONMENT ";
  307       privat e static f inal Strin g AHLTA_EN DPOINT_ENV IRONMENT =  "AHLTA_EN DPOINT_ENV IRONMENT";
  308       /** st atic const ants **/
  309       privat e static f inal Strin g CONST_DO DADAPTER_S OURCE_STAT US_REPORT_ FLAG = "DO DADAPTER_S OURCE_STAT US_REPORT" ;
  310       privat e final st atic Strin g CONST_SY STEM_TYPE_ CHCS = "CH CS";
  311       privat e final st atic Strin g CONST_SY STEM_TYPE_ VISTA = "V ISTA";
  312       privat e final st atic Strin g CONST_SY STEM_TYPE_ SHARE = "S HARE";
  313       privat e final st atic Strin g CONST_SY STEM_TYPE_ DOD_ADAPTE R = "DODAD APTER";
  314       privat e final st atic Strin g IDENTIFI ER_UNAVAIL ABLE_FLAG  = "IDENTIF IER_UNAVAI LABLE";
  315  
  316       privat e final st atic Strin g CONST_SO URCE_PROTO COL_CACHE  = "CACHE";
  317       privat e final st atic Strin g CONST_SO URCE_PROTO COL_RPC =  "RPC";
  318       privat e final st atic Strin g CONST_SO URCE_PROTO COL_SHARE  = "SHARE";
  319       privat e final st atic Strin g CONST_SO URCE_PROTO COL_MEDWEB  = "MEDWEB ";
  320       privat e final st atic Strin g CONST_SO URCE_PROTO COL_DOD_AD APTER = "D ODADAPTER" ;
  321  
  322       privat e final st atic Strin g USE_TERM _MAPPING_C ACHE = "US E_TERM_MAP PING_CACHE ";
  323  
  324       privat e final st atic Strin g LOAD_VLE R_SITE_CAC HE = "LOAD _VLER_SITE _CACHE";
  325  
  326       privat e final st atic Strin g USE_SNAR EWORKS = " USE_SNAREW ORKS";
  327  
  328       /**
  329        * DMI S IDs and  facilities  used for  mapping DM IS IDs to  clinic nam es for pat ient demog raphic's P CM clinic.
  330        */
  331       privat e final st atic Strin g DMIS_FIL E_NAME = " DMIS_FILE_ NAME";
  332       privat e final st atic Strin g DMIS_TOK EN_DELIM =  "DMIS_TOK EN_DELIM";
  333       privat e final st atic Strin g DMIS_ID_ TOKEN_POS  = "DMIS_ID _TOKEN_POS ";
  334       privat e final st atic Strin g DMIS_NAM E_TOKEN_PO S = "DMIS_ NAME_TOKEN _POS";
  335  
  336       privat e final st atic Strin g LAB_TYPE _CH = "LAB _TYPE_CH";
  337       privat e final st atic Strin g LAB_TYPE _MI = "LAB _TYPE_MI";
  338       privat e final st atic Strin g LAB_TYPE _AP = "LAB _TYPE_AP";
  339       privat e final st atic Strin g LAB_TYPE _EM = "LAB _TYPE_EM";
  340       privat e final st atic Strin g LAB_TYPE _SP = "LAB _TYPE_SP";
  341       privat e final st atic Strin g LAB_TYPE _ST = "LAB _TYPE_ST";
  342       privat e final st atic Strin g LAB_TYPE _CY = "LAB _TYPE_CY";
  343       privat e final st atic Strin g LAB_TYPE _AU = "LAB _TYPE_AU";
  344       privat e final st atic Strin g LAB_TYPE _BB = "LAB _TYPE_BB";
  345       privat e final st atic Strin g LAB_TYPE _HIV = "LA B_TYPE_HIV ";
  346  
  347       privat e final st atic Strin g ENABLE_V IX_DOD_RAD IOLOGY_RET RIEVE = "E NABLE_VIX_ DOD_RADIOL OGY_RETRIE VE";
  348       privat e final st atic Strin g VIX_DOD_ RAD_EXAM_I D_DELIM =  "VIX_DOD_R AD_EXAM_ID _DELIM";
  349       privat e final st atic Strin g VIX_ORPH ANED_KEYWO RD = "VIX_ ORPHANED_K EYWORD";
  350  
  351       privat e final st atic Strin g USE_ENHA NCED_DEBUG  = "USE_EN HANCED_DEB UG";
  352  
  353       privat e final st atic Strin g DES_READ Y = "DES_R EADY";
  354  
  355       privat e final st atic Strin g LANGUAGE _CODE = "L ANGUAGE_CO DE";
  356       privat e final st atic Strin g LANGUAGE _DESCRIPTI ON = "LANG UAGE_DESCR IPTION";
  357       
  358       privat e final st atic Strin g DISABLE_ CACHED_THR EAD_POOL =  "DISABLE_ CACHED_THR EAD_POOL";
  359       privat e final st atic Strin g THREAD_K EEPALIVE_S ECONDS = " THREAD_KEE PALIVE_SEC ONDS";
  360       privat e final st atic Strin g MAX_THRE ADPOOL_SIZ E = "MAX_T HREADPOOL_ SIZE";
  361       privat e final st atic Strin g NUM_VDS_ REJECTED_R ETRIES = " NUM_VDS_RE JECTED_RET RIES";
  362       privat e final st atic Strin g VDS_REJE CTED_RETRY _DELAY_MS  = "VDS_REJ ECTED_RETR Y_DELAY_MS ";
  363  
  364       privat e final st atic Strin g CHSD_ALL _VLER_DOCU MENTS = "C HSD_ALL_VL ER_DOCUMEN TS";
  365  
  366       privat e final st atic Strin g CLASS_CO DE_DOCUMEN TS = "CLAS S_CODE.DOC UMENTS";
  367       privat e final st atic Strin g CLASS_CO DE_IMMUNIZ ATIONS = " CLASS_CODE .IMMUNIZAT IONS";
  368       privat e final st atic Strin g CLASS_CO DE_PROCEDU RES = "CLA SS_CODE.PR OCEDURES";
  369       privat e final st atic Strin g CLASS_CO DE_INPATIE NT_SUMMARI ES = "CLAS S_CODE.INP ATIENT_SUM MARIES";
  370       privat e final st atic Strin g CLASS_CO DE_CONSULT _ENCOUNTER S = "CLASS _CODE.CONS ULT_ENCOUN TERS";
  371       privat e final st atic Strin g CLASS_CO DE_OUTPATI ENT_ENCOUN TERS = "CL ASS_CODE.O UTPATIENT_ ENCOUNTERS ";
  372       privat e final st atic Strin g CLASS_CO DE_OUTPATI ENT_MEDICA TIONS = "C LASS_CODE. OUTPATIENT _MEDICATIO NS";
  373       privat e final st atic Strin g CLASS_CO DE_LAB_RES ULTS = "CL ASS_CODE.L AB_RESULTS ";
  374       privat e final st atic Strin g CLASS_CO DE_RADIOLO GY_REPORTS  = "CLASS_ CODE.RADIO LOGY_REPOR TS";
  375       privat e final st atic Strin g CLASS_CO DE_PROGRES S_NOTES =  "CLASS_COD E.PROGRESS _NOTES";
  376       privat e final st atic Strin g CLASS_CO DE_VLER_DO CUMENTS =  "CLASS_COD E.VLER_DOC UMENTS";
  377  
  378       privat e static f inal AppCo nfig INSTA NCE = new  AppConfig( );
  379  
  380       privat e Properti es appProp erties;
  381  
  382       privat e AppConfi g() {
  383  
  384           ap pPropertie s = new Pr operties() ;
  385  
  386           lo adAppMetaP roperties( );
  387           lo adAppConfi gPropertie s();
  388       }
  389  
  390       privat e void loa dAppMetaPr operties()  {
  391           St ring prope rtiesFile  = "applica tion.prope rties";
  392  
  393           In putStream  inputStrea m = null;
  394  
  395           Cl assLoader  classLoade r = AppCon fig.class. getClassLo ader();
  396           if  (classLoa der != nul l) {
  397                inputStr eam = clas sLoader.ge tResourceA sStream(pr opertiesFi le);
  398           }
  399  
  400           tr y {
  401                appPrope rties.load (inputStre am);
  402           }  catch (IOE xception e ) {
  403                LOGGER.e rror("Fail ed load ap plication. properties : " + e.ge tMessage() );
  404                throw ne w RuntimeE xception(e );
  405           }  finally {
  406                try {
  407                    if ( inputStrea m != null)  {
  408                         inputStrea m.close();
  409                    }
  410                } catch  (IOExcepti on e) {
  411                    LOGG ER.error(e .getMessag e());
  412                }
  413           }
  414       }
  415  
  416       privat e void loa dAppConfig Properties () {
  417           St ring prope rtiesFile  = "jmeadow s.properti es";
  418  
  419           In putStream  inputStrea m = null;
  420  
  421           Cl assLoader  classLoade r = AppCon fig.class. getClassLo ader();
  422           if  (classLoa der != nul l) {
  423                inputStr eam = clas sLoader.ge tResourceA sStream(pr opertiesFi le);
  424           }
  425  
  426           if  (inputStr eam != nul l) {
  427                try {
  428                    appP roperties. load(input Stream);
  429                } catch  (IOExcepti on e) {
  430                    LOGG ER.error(" Failed loa d appconfi g properti es: " + e. getMessage ());
  431                    thro w new Runt imeExcepti on(e);
  432                } finall y {
  433                    try  {
  434                         inputStrea m.close();
  435                    } ca tch (IOExc eption e)  {
  436                         LOGGER.err or(e.getMe ssage());
  437                    }
  438                }
  439           }
  440  
  441           tr y {
  442  
  443                inputStr eam = new  FileInputS tream(prop ertiesFile );
  444  
  445                try {
  446                    appP roperties. load(input Stream);
  447                } catch  (IOExcepti on e) {
  448                    LOGG ER.error(" Failed loa d appconfi g properti es: " + e. getLocaliz edMessage( ));
  449                    thro w new Runt imeExcepti on(e);
  450                } finall y {
  451                    try  {
  452                         inputStrea m.close();
  453                    } ca tch (IOExc eption e)  {
  454                         LOGGER.err or(e.getMe ssage());
  455                    }
  456                }
  457  
  458           }  catch (Fil eNotFoundE xception e ) {
  459                LOGGER.i nfo("Faile d to load  appconfig  from file  (jmeadows. properties ) -"
  460                         + " utiliz ing defaul t appconfi g properti es.");
  461  
  462           }
  463       }
  464  
  465   //    priv ate void l ogConfigs( )
  466   //    {
  467   //         //log some  jMeadows  configurat ion values
  468   //         logger.inf o("Local V A site cod e: {}", ge tLocalVASi teCode());
  469   //         logger.inf o("Local V A site nam e: {}", ge tLocalVASi teName());
  470   //         logger.inf o("Local V A site mon iker: {}",  getLocalV ASiteMonik er());
  471   //
  472   //         logger.inf o("Local D oD site co de: {}", g etLocalDOD SiteCode() );
  473   //         logger.inf o("Local D oD site na me: {}", g etLocalDOD SiteName() );
  474   //         logger.inf o("Local D oD site mo niker {}",  getLocalD ODSiteName ());
  475   //
  476   //         logger.inf o("MPI ena bled: {}",  isMPIEnab led());
  477   //         logger.inf o("Pix ser vice enabl ed: {}", i sPIXServic eEnabled() );
  478  
  479   //         logger.inf o("Utilize  MSI locat ion's url  as webserv ice endpoi nt value:  {}", useMS IEndpoint( ));
  480   //         logger.inf o("Query u ser locati on using N PI enabled : {}", isP roviderNPI LocationQu eryEnabled ());
  481   //
  482   //         logger.inf o("CHCSWS  endpoint:  {}", getCH CSWSURL()) ;
  483   //         logger.inf o("VistaDa taService  endpoint:  {}", getVi staWsURL() );
  484   //         logger.inf o("PIX ser vice endpo int: {}",  getPIXURL( ));
  485   //         logger.inf o("BHIERel ayService  endpoint:  {}", getBH IERelaySer viceURL()) ;
  486   //         logger.inf o("JALFHCC  alert ser vice endpo int: {}",  getAlertSe rviceURL() );
  487   //         logger.inf o("DREnj e nabled: {} ", isDREnj ServiceEna bled());
  488   //         logger.inf o("DREnj U RL: {}", g etDREnjURL ());
  489   //         logger.inf o("SHARE e nabled: {} ", isShare ServiceEna bled());
  490   //         logger.inf o("SHARE U RL: {}", g etShareURL ());
  491   //         logger.inf o("PDWS UR L: {}", ge tPDWSURL() );
  492   //
  493   //         logger.inf o("BHIE al lergies en abled: {}" , isBHIEAl lergiesEna bled());
  494   //         logger.inf o("BHIE pr oblems lis t enabled:  {}", isBH IEProblems Enabled()) ;
  495   //         logger.inf o("BHIE pr ogress not es enabled : {}", isB HIEProgres sNotesEnab led());
  496   //         logger.inf o("BHIE di scharge su mmaries en abled: {}"  + isBHIED ischargeSu mmariesEna bled());
  497   //         logger.inf o("BHIE vi tals enabl ed: {}", i sBHIEVital sEnabled() );
  498   //         logger.inf o("BHIE ap pointments  enabled:  {}", isBHI EAppointme ntsEnabled ());
  499   //         logger.inf o("BHIE co nsults ena bled: {}",  isBHIECon sultsEnabl ed());
  500   //         logger.inf o("BHIE de mographics  enabled:  {}", isBHI EDemograph icDetailsE nabled());
  501   //         logger.inf o("BHIE de mographic  details en abled: {}" , isBHIEDe mographicD etailsEnab led());
  502   //         logger.inf o("BHIE ou tpatient m edications  enabled:  {}", isBHI EOutpatien tMedicatio nsEnabled( ));
  503   //         logger.inf o("BHIE in patient me dications  enabled: { }" + isBHI EInpatient Medication sEnabled() );
  504   //         logger.inf o("BHIE ra diology re sults enab led: {}" +  isBHIERad iologyEnab led());
  505   //
  506   //         logger.inf o("BHIE ut ilize pati ent EDIPN  (EDIPI): { }", isBHIE UtilizePat ientEDIPN( ));
  507   //         logger.inf o("BHIE CH CS namespa ce: {}", g etBHIECHCS Namespace( ));
  508   //    }
  509  
  510       public  static fi nal AppCon fig getIns tance() {
  511           re turn INSTA NCE;
  512       }
  513  
  514       /**
  515        * Sit e moniker  to return  with BHIE  error bean  (utilized  when BHIE  connectio n is unava ilable).
  516        */
  517       public  final Str ing getBHI EErrorSite Moniker()  {
  518           re turn appPr operties.g etProperty (BHIE_ERRO R_SITE_MON IKER);
  519       }
  520  
  521       /**
  522        * jMe adows vers ion number .
  523        */
  524       public  final Str ing getApp Version()  {
  525           re turn appPr operties.g etProperty (APP_VERSI ON);
  526       }
  527  
  528       public  final Str ing getDat aSource()  {
  529           re turn appPr operties.g etProperty (APP_DATAS OURCE);
  530       }
  531  
  532       /**
  533        * jMe adows app  environmen t.
  534        */
  535       public  final Str ing getApp Environmen t() {
  536           re turn appPr operties.g etProperty (APP_ENVIR ONMENT);
  537       }
  538  
  539       /**
  540        * log 4j propert ies file p ath.
  541        */
  542       public  final Str ing getLog 4jProperti es() {
  543           re turn appPr operties.g etProperty (LOG4J_PRO PERTIES);
  544       }
  545  
  546       /**
  547        * CHC SWS endpoi nt.
  548        */
  549       public  final Str ing getCHC SWSURL() {
  550           re turn appPr operties.g etProperty (CHCS_URL) ;
  551       }
  552  
  553       /** BH IE/DoD ada pter clini cal domain  enablemen t configur ations. BH IE use is  for DoD da ta only, n ot VA.
  554        *  Pl ease note  that if BH IE IS enab led for a  given doma in CHCS wi ll NOT be  queried.
  555        *  Li kewise, if  BHIE is N OT enabled , CHCS is  queried by  default.
  556        **/
  557  
  558       /**
  559        * Vis taDataServ ice endpoi nt.
  560        */
  561       public  final Str ing getVis taWsURL()  {
  562           re turn appPr operties.g etProperty (VISTA_URL );
  563       }
  564  
  565       /**
  566        * MVI  endpoint.
  567        */
  568       public  final Str ing getMVI URL() {
  569           re turn appPr operties.g etProperty (MVI_URL);
  570       }
  571  
  572       /**
  573        * MVI  HL7 Messa ge Sender  Device ID.
  574        */
  575       public  final Str ing getMVI SndDevId()  { return  appPropert ies.getPro perty(MVI_ SND_DEV_ID ); }
  576  
  577       /**
  578        * MVI  search re sult quant ity.
  579        */
  580       public  final int  getMVISea rchQty() {  return In teger.pars eInt(appPr operties.g etProperty (MVI_SEARC H_QTY)); }
  581  
  582       /**
  583        * Res trict VA u ser access  to DoD-on ly patient  informati on.
  584        */
  585       public  final Str ing getVaU serRestric t() {
  586           re turn appPr operties.g etProperty (VA_USER_R ESTRICT);
  587       }
  588  
  589       /**
  590        * All ow VA user  access to  DoD-only  patient in formation  (Audited a nd prompte d).
  591        */
  592       public  final Str ing getVaU serAllowRe strictAcce ss() {
  593           re turn appPr operties.g etProperty (VA_USER_A LLOW_RESTR ICT_ACCESS );
  594       }
  595  
  596       /**
  597        * PIX  service e ndpoint.
  598        */
  599       public  final Str ing getPIX URL() {
  600           re turn appPr operties.g etProperty (PIX_URL);
  601       }
  602  
  603       /**
  604        * BHI ERelayServ ice endpoi nt.
  605        */
  606       public  final Str ing getBHI ERelayServ iceURL() {
  607           re turn appPr operties.g etProperty (BHIE_RELA Y_SERVICE_ URL);
  608       }
  609  
  610       /**
  611        * PDW SService e ndpoint.
  612        */
  613       public  final Str ing getPdw sPsUrl() {
  614           re turn appPr operties.g etProperty (PDWS_PS_U RL);
  615       }
  616       public  final Str ing getPdw sPrUrl() {  return ap pPropertie s.getPrope rty(PDWS_P R_URL); }
  617       public  final Str ing getPdw sFsUrl() {
  618           re turn appPr operties.g etProperty (PDWS_FS_U RL);
  619       }
  620       public  final Str ing getPdw sFrUrl() {  return ap pPropertie s.getPrope rty(PDWS_F R_URL); }
  621  
  622       /**
  623        * PDW SService e ndpoint.
  624        */
  625       public  final Str ing getPDW SProcCode( ) {
  626           re turn appPr operties.g etProperty (PDWS_PROC _CODE);
  627       }
  628  
  629       /**
  630        * PDW SService e ndpoint.
  631        */
  632       public  final Str ing getPDW SSndDevId( ) {
  633           re turn appPr operties.g etProperty (PDWS_SND_ DEV_ID);
  634       }
  635  
  636       /**
  637        * PDW SService d ebug flag.
  638        */
  639       public  final Str ing getPDW SDebugFlag () {
  640           re turn appPr operties.g etProperty (DEBUG_SOA P_OUTPUT);
  641       }
  642  
  643  
  644       /**
  645        * CHC SWS userna me.
  646        */
  647       public  final Str ing getCHC SWSUsernam e() {
  648           re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (CHCSWS_US ERNAME));
  649       }
  650  
  651       /**
  652        * CHC SWS pwd.
  653        */
  654       public  final Str ing getCHC SWSPasswor d() {
  655           re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (CHCSWS_PW D));
  656       }
  657  
  658       /**
  659        * BHI ERelayServ ice userna me.
  660        */
  661       public  final Str ing getBHI ERelayServ iceUsernam e() {
  662           re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (BHIE_RELA Y_SERVICE_ USERNAME)) ;
  663       }
  664  
  665       /**
  666        * BHI ERelayServ ice pwd.
  667        */
  668       public  final Str ing getBHI ERelayServ icePasswor d() {
  669           re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (BHIE_RELA Y_SERVICE_ PWD));
  670       }
  671  
  672       /**
  673        * tru e to relax  SSL v3 se curity req uirements.  (Use this  for debug ging purpo ses only!) .
  674        */
  675       public  final boo lean isTru stAllSSLHo stnameAndC erts() {
  676           re turn Boole an.valueOf (appProper ties.getPr operty(IS_ TRUST_ALL_ SSL_HOSTNA MES_AND_CE RTS));
  677       }
  678  
  679       /**
  680        * tru e to utili ze C3PO fo r as the s ql connect ion poolin g api.
  681        * If  false, def aults to u tilizing J NDI lookup  for conne ction pool .
  682        */
  683       public  final boo lean useC3 PO() {
  684           re turn Boole an.valueOf (appProper ties.getPr operty(USE _C3PO));
  685       }
  686  
  687       /**
  688        * SQL  server JD BC connect ion string  (for use  with C3PO) .
  689        */
  690       public  final Str ing getSQL URL() {
  691           re turn appPr operties.g etProperty (SQL_URL);
  692       }
  693  
  694       /**
  695        * SQL  server JD BC connect ion string  (for use  with C3PO) .
  696        */
  697       public  final Str ing getSQL URLEncrypt ed() {
  698           re turn appPr operties.g etProperty (SQL_URL_E NCRYPTED);
  699       }
  700  
  701       /**
  702        * SQL  server dr iver (for  use with C 3PO).
  703        */
  704       public  final Str ing getSQL Driver() {
  705           re turn appPr operties.g etProperty (SQL_DRIVE R);
  706       }
  707  
  708       /**
  709        * JDN I connecti on pooling  lookup na me.
  710        */
  711       public  final Str ing getJDB C_JNDILook up() {
  712           re turn appPr operties.g etProperty (JNDI_JDBC );
  713       }
  714  
  715       /**
  716        * JDN I connecti on pooling  lookup na me.
  717        */
  718       public  final Str ing getJDB C_JNDILook upEncrypte d() {
  719           re turn appPr operties.g etProperty (JNDI_JDBC _ENCRYPTED );
  720       }
  721  
  722       /**
  723        * Gen eral servi ce request  timeout s etting in  millisecon ds.
  724        */
  725       public  final int  getReques tTimeoutMS () {
  726           re turn Integ er.parseIn t(appPrope rties.getP roperty(RE QUEST_TIME OUT_MS));
  727       }
  728  
  729       /**
  730        * Gen eral servi ce connect ion timeou t setting  in millise conds.
  731        */
  732       public  final int  getConnec tionTimeou tMS() {
  733           re turn Integ er.parseIn t(appPrope rties.getP roperty(CO NNECTION_T IMEOUT_MS) );
  734       }
  735  
  736       /**
  737        * Gen eral threa d timeout  in millise conds.
  738        */
  739       public  final lon g getThrea dTimeoutMS () {
  740           re turn Long. parseLong( appPropert ies.getPro perty(THRE AD_TIMEOUT _MS));
  741       }
  742  
  743       /**
  744        * VLE R service  request ti meout sett ing in mil liseconds.
  745        */
  746       public  final int  getVLERRe questTimeo utMS() {
  747           re turn Integ er.parseIn t(appPrope rties.getP roperty(VL ER_REQUEST _TIMEOUT_M S));
  748       }
  749  
  750       /**
  751        * VLE R service  connection  timeout s etting in  millisecon ds.
  752        */
  753       public  final int  getVLERCo nnectionTi meoutMS()  {
  754           re turn Integ er.parseIn t(appPrope rties.getP roperty(VL ER_CONNECT ION_TIMEOU T_MS));
  755       }
  756  
  757       /**
  758        * BHI E custodia n OIDs. Ea ch OID rep resents a  particular  data site  that BHIE  aggregate s from.
  759        * The se custodi an OIDs ar e included  as BHIE q uery inclu ded or exc luded site  parameter s.
  760        */
  761  
  762       /**
  763        * Def ault error  message s tring.
  764        */
  765       public  final Str ing getErr orMsgConne ctionUnava ilable() {
  766           re turn appPr operties.g etProperty (ERROR_MSG _CONNECTIO N_UNAVAILA BLE);
  767       }
  768  
  769       /**
  770        * Def ault edr s ervice rel ated error  message s tring.
  771        */
  772       public  final Str ing getErr orMsgEDRDo cs() {
  773           re turn appPr operties.g etProperty (ERROR_MSG _EDR_DOCS) ;
  774       }
  775  
  776       /**
  777        * AHL TA custodi an OID.
  778        */
  779       public  final Str ing getBHI ECustodian OidAHLTA()  {
  780           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ AHLTA);
  781       }
  782  
  783       /**
  784        * VA  custodian  OID.
  785        */
  786       public  final Str ing getBHI ECustodian OidVA() {
  787           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ VA);
  788       }
  789  
  790       /**
  791        * TMD S custodia n OID.
  792        */
  793       public  final Str ing getBHI ECustodian OidTMDS()  {
  794           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ TMDS);
  795       }
  796  
  797       /**
  798        * FHI E custodia n OID.
  799        */
  800       public  final Str ing getBHI ECustodian OidFHIE()  {
  801           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ FHIE);
  802       }
  803  
  804       /**
  805        * ESS ENTRIS cus todian OID .
  806        */
  807       public  final Str ing getBHI ECustodian OidESS() {
  808           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ ESS);
  809       }
  810  
  811       /**
  812        * CHC S custodia n OID.
  813        */
  814       public  final Str ing getBHI ECustodian OidCHCS()  {
  815           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ CHCS);
  816       }
  817  
  818       /**
  819        * SHA RE custodi an OID.
  820        */
  821       public  final Str ing getBHI ECustodian OidSHARE()  {
  822           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ SHARE);
  823       }
  824  
  825       /**
  826        * Sit e code to  return wit h BHIE err or beans ( utilized w hen BHIE c onnection  is unavail able).
  827        */
  828       public  final Str ing getBHI EErrorSite Code() {
  829           re turn appPr operties.g etProperty (BHIE_ERRO R_SITE_COD E);
  830       }
  831  
  832       /**
  833        * Sit e name to  return wit h BHIE err or bean (u tilized wh en BHIE co nnection i s unavaila ble).
  834        */
  835       public  final Str ing getBHI EErrorSite Name() {
  836           re turn appPr operties.g etProperty (BHIE_ERRO R_SITE_NAM E);
  837       }
  838  
  839       /**
  840        * The  local VA  facility's  patient I EN OID - f or use wit h the PIX  Service pa tient iden tifier map .
  841        * (2. 16.840.1.1 13883.3.42 .10006.100 005.8 for  North Chic ago VA)
  842        */
  843       public  final Str ing getLoc alVAIenOid () {
  844           re turn appPr operties.g etProperty (LOCAL_VA_ IEN_OID);
  845       }
  846  
  847       /**
  848        * Vis ta enterpr ise ICN OI D - for us e with the  PIX Servi ce patient  identifie r map.
  849        */
  850       public  final Str ing getVis taIcnOid()  {
  851           re turn appPr operties.g etProperty (VISTA_ICN _OID);
  852       }
  853  
  854       public  final Str ing getDOD EdipnOid()  {
  855           re turn appPr operties.g etProperty (DOD_EDIPN _OID);
  856       }
  857  
  858       /**
  859        * VA  agency nam e string S hould be c onfigured  as VA
  860        */
  861       public  final Str ing getAge ncyVA() {
  862           re turn appPr operties.g etProperty (AGENCY_VA );
  863       }
  864  
  865       /**
  866        * DOD  agency na me string.  Should be  configure d as DOD
  867        */
  868       public  final Str ing getAge ncyDOD() {
  869           re turn appPr operties.g etProperty (AGENCY_DO D);
  870       }
  871  
  872       //meth ods that r eturn stat ic constan ts
  873  
  874       public  final Str ing getDOD AdapterSou rceStatusR eportFlag( ) {
  875           re turn CONST _DODADAPTE R_SOURCE_S TATUS_REPO RT_FLAG;
  876       }
  877  
  878       public  final Str ing getSys temTypeCHC S() {
  879           re turn CONST _SYSTEM_TY PE_CHCS;
  880       }
  881  
  882       public  final Str ing getSys temTypeVIS TA() {
  883           re turn CONST _SYSTEM_TY PE_VISTA;
  884       }
  885  
  886       public  final Str ing getCon stSystemTy peShare()  {
  887           re turn CONST _SYSTEM_TY PE_SHARE;
  888       }
  889  
  890       public  final Str ing getSys temTypeDOD Adapter()  {
  891           re turn CONST _SYSTEM_TY PE_DOD_ADA PTER;
  892       }
  893  
  894       public  final Str ing getSou rceProtoco lCache() {
  895           re turn CONST _SOURCE_PR OTOCOL_CAC HE;
  896       }
  897  
  898       public  final Str ing getSou rceProtoco lRPC() {
  899           re turn CONST _SOURCE_PR OTOCOL_RPC ;
  900       }
  901  
  902       public  final Str ing getSou rceProtoco lMedweb()  {
  903           re turn CONST _SOURCE_PR OTOCOL_MED WEB;
  904       }
  905  
  906       public  final Str ing getSou rceProtoco lDODAdapte r() {
  907           re turn CONST _SOURCE_PR OTOCOL_DOD _ADAPTER;
  908       }
  909  
  910       public  final Str ing getSou rceProtoco lShare() {
  911           re turn CONST _SOURCE_PR OTOCOL_SHA RE;
  912       }
  913  
  914       public  final Str ing getIde ntifierUna vailableFl ag() {
  915           re turn IDENT IFIER_UNAV AILABLE_FL AG;
  916       }
  917  
  918       public  final Str ing getEHC acheNameSi teMap() {
  919           re turn appPr operties.g etProperty (EHCACHE_N AME_SITEMA P);
  920       }
  921  
  922       public  final Str ing getRPC EndpointEn vironment( ) {
  923           re turn appPr operties.g etProperty (RPC_ENDPO INT_ENVIRO NMENT);
  924       }
  925  
  926       public  final Str ing getCac heEndpoint Environmen t() {
  927           re turn appPr operties.g etProperty (CACHE_END POINT_ENVI RONMENT);
  928       }
  929  
  930       public  final Str ing getSha reEndpoint Environmen t() {
  931           re turn appPr operties.g etProperty (SHARE_END POINT_ENVI RONMENT);
  932       }
  933  
  934       public  final Str ing getMed webEndpoin tEnvironme nt() {
  935           re turn appPr operties.g etProperty (MEDWEB_EN DPOINT_ENV IRONMENT);
  936       }
  937  
  938       public  final Str ing getAhl taEndpoint Environmen t() {
  939           re turn appPr operties.g etProperty (AHLTA_END POINT_ENVI RONMENT);
  940       }
  941  
  942       public  final Str ing getLoc alCHCSSite Code() {
  943           re turn appPr operties.g etProperty (LOCAL_CHC S_SITECODE );
  944       }
  945  
  946       public  final Str ing getLoc alVistaSit eCode() {
  947           re turn appPr operties.g etProperty (LOCAL_VIS TA_SITECOD E);
  948       }
  949  
  950       /**
  951        * tru e to utili ze HashMap  as cache  for termin ology mapp ing.
  952        * If  false, to  utilize SQ L server f or mapping  without h ashmap cac he.
  953        */
  954       public  final boo lean useTe rmMappingC ache() {
  955           re turn Boole an.valueOf (appProper ties.getPr operty(USE _TERM_MAPP ING_CACHE) );
  956       }
  957  
  958       /**
  959        * Loa d mapping  data from  SQL Server  on startu p.
  960        */
  961       public  final boo lean loadV LERSiteCac he() {
  962           re turn Boole an.valueOf (appProper ties.getPr operty(LOA D_VLER_SIT E_CACHE));
  963       }
  964       
  965       /**
  966        * tru e to use s nareworks  instead of  database  whitelist.
  967        */
  968       public  final boo lean useSn areworks()  {
  969           re turn Boole an.valueOf (appProper ties.getPr operty(USE _SNAREWORK S));
  970       }
  971  
  972       /**
  973        * DMI S IDs and  facilities  used for  mapping DM IS IDs to  clinic nam es for pat ient demog raphic's P CM clinic
  974        */
  975       public  final Str ing getDmi sFileName( ) {
  976           re turn appPr operties.g etProperty (DMIS_FILE _NAME);
  977       }
  978       public  final Str ing getDmi sTokenDeli m() {
  979           re turn appPr operties.g etProperty (DMIS_TOKE N_DELIM);
  980       }
  981       public  final int  getDmisId TokenPos()  {
  982           re turn Integ er.parseIn t(appPrope rties.getP roperty(DM IS_ID_TOKE N_POS));
  983       }
  984       public  final int  getDmisNa meTokenPos () {
  985           re turn Integ er.parseIn t(appPrope rties.getP roperty(DM IS_NAME_TO KEN_POS));
  986       }
  987  
  988       public  final Str ing  getLa bTypeCh()  {
  989           re turn appPr operties.g etProperty (LAB_TYPE_ CH);
  990       }
  991  
  992       public  final Str ing getLab TypeMi() {
  993           re turn appPr operties.g etProperty (LAB_TYPE_ MI);
  994       }
  995  
  996       public  final Str ing getLab TypeAp() {
  997           re turn appPr operties.g etProperty (LAB_TYPE_ AP);
  998       }
  999  
  1000       public  final Str ing getLab TypeEm() {
  1001           re turn appPr operties.g etProperty (LAB_TYPE_ EM);
  1002       }
  1003  
  1004       public  final Str ing getLab TypeSp() {
  1005           re turn appPr operties.g etProperty (LAB_TYPE_ SP);
  1006       }
  1007  
  1008       public  final Str ing getLab TypeSt() {
  1009           re turn appPr operties.g etProperty (LAB_TYPE_ ST);
  1010       }
  1011  
  1012       public  final Str ing getLab TypeCy() {
  1013           re turn appPr operties.g etProperty (LAB_TYPE_ CY);
  1014       }
  1015  
  1016       public  final Str ing getLab TypeAu() {
  1017           re turn appPr operties.g etProperty (LAB_TYPE_ AU);
  1018       }
  1019  
  1020       public  final Str ing getLab TypeBb() {
  1021           re turn appPr operties.g etProperty (LAB_TYPE_ BB);
  1022       }
  1023  
  1024       public  final Str ing getLab TypeHiv()  {
  1025           re turn appPr operties.g etProperty (LAB_TYPE_ HIV);
  1026       }
  1027  
  1028       public  final boo lean isVix DodRadiolo gyRetrieve Enabled()  {
  1029           re turn Boole an.valueOf (appProper ties.getPr operty(ENA BLE_VIX_DO D_RADIOLOG Y_RETRIEVE , "false") );
  1030       }
  1031  
  1032       public  final Str ing getVix DodRadExam IdDelim()  {
  1033           re turn appPr operties.g etProperty (VIX_DOD_R AD_EXAM_ID _DELIM, "# - ");
  1034       }
  1035  
  1036       public  final Str ing getVix OrphanedKe yword() {
  1037           re turn appPr operties.g etProperty (VIX_ORPHA NED_KEYWOR D, "vastud y:");
  1038       }
  1039  
  1040       /**
  1041        * @re turn the a ppProperti es
  1042        */
  1043       public  Propertie s getPrope rties() {
  1044           re turn appPr operties;
  1045       }
  1046  
  1047       public  final Str ing getEnv () {return  appProper ties.getPr operty(ENV );}
  1048  
  1049       /**
  1050        * tru e to use a ny enhance d debuggin g code
  1051        */
  1052       public  final boo lean useEn hancedDebu g() {
  1053           re turn Boole an.valueOf (appProper ties.getPr operty(USE _ENHANCED_ DEBUG));
  1054       }
  1055  
  1056       public  final boo lean isDES Ready() {
  1057           re turn Boole an.valueOf (appProper ties.getPr operty(DES _READY, "f alse"));
  1058       }
  1059  
  1060       public  final Str ing getLan guageCode( ) {
  1061           re turn appPr operties.g etProperty (LANGUAGE_ CODE);
  1062       }
  1063  
  1064       public  final Str ing getLan guageDescr iption() {
  1065           re turn appPr operties.g etProperty (LANGUAGE_ DESCRIPTIO N);
  1066       }
  1067  
  1068       /**
  1069        * tru e to disab le cached  thread poo ls (unlimi ted size)
  1070        * If  false, swi tches to f ixed threa d pools.
  1071        */
  1072       public  final boo lean disab leCachedTh readPool()  {
  1073           re turn Boole an.valueOf (appProper ties.getPr operty(DIS ABLE_CACHE D_THREAD_P OOL));
  1074       }
  1075  
  1076       /**
  1077        * Thr ead keep a live is us ed for the  cached th read pools , it is ho w long a t hread stay s
  1078        * ali ve waiting  for work.
  1079        */
  1080       public  final lon g getThrea dKeepalive Sec() {
  1081           re turn Long. parseLong( appPropert ies.getPro perty(THRE AD_KEEPALI VE_SECONDS ));
  1082       }
  1083  
  1084       public  final int  getMaxThr eadpoolSiz e() {
  1085           in t maxSize  = 5000;
  1086           tr y {
  1087                maxSize  = Integer. parseInt(a ppProperti es.getProp erty(MAX_T HREADPOOL_ SIZE));
  1088           }  catch (Num berFormatE xception n fe) {
  1089                LOGGER.e rror("Bad  format MAX _THREADPOO L_SIZE set  in proper ties, will  use {}",  maxSize);
  1090           }
  1091           re turn maxSi ze;
  1092       }
  1093  
  1094       public  final int  getNumVds RejectedRe tries() {
  1095           in t retries  = 2;
  1096           tr y {
  1097                retries  = Integer. parseInt(a ppProperti es.getProp erty(NUM_V DS_REJECTE D_RETRIES) );
  1098           }  catch (Num berFormatE xception n fe) {
  1099                LOGGER.e rror("Bad  format NUM _VDS_REJEC TED_RETRIE S set in p roperties,  will use  {}", retri es);
  1100           }
  1101           re turn retri es;
  1102       }
  1103  
  1104       public  final int  getVdsRej ectedRetry DelayMs()  {
  1105           in t waitTime Ms = 1000;
  1106           tr y {
  1107                waitTime Ms = Integ er.parseIn t(appPrope rties.getP roperty(VD S_REJECTED _RETRY_DEL AY_MS));
  1108           }  catch (Num berFormatE xception n fe) {
  1109                LOGGER.e rror("Bad  format VDS _REJECTED_ RETRY_DELA Y_MS set i n properti es, will u se {}", wa itTimeMs);
  1110           }
  1111           re turn waitT imeMs;
  1112       }
  1113  
  1114       public  final Str ing getCla ssCodesDoc uments() {
  1115           re turn appPr operties.g etProperty (CLASS_COD E_DOCUMENT S, "");
  1116       }
  1117       public  final Str ing getCla ssCodesImm unizations () {
  1118           re turn appPr operties.g etProperty (CLASS_COD E_IMMUNIZA TIONS, "") ;
  1119       }
  1120  
  1121       public  final Str ing getCla ssCodesPro cedures()  {
  1122           re turn appPr operties.g etProperty (CLASS_COD E_PROCEDUR ES, "");
  1123       }
  1124  
  1125       public  final Str ing getCla ssCodesInp atientSumm aries() {
  1126           re turn appPr operties.g etProperty (CLASS_COD E_INPATIEN T_SUMMARIE S, "");
  1127       }
  1128       public  final Str ing getCla ssCodesCon sultEncoun ters() {
  1129           re turn appPr operties.g etProperty (CLASS_COD E_CONSULT_ ENCOUNTERS , "");
  1130       }
  1131       public  final Str ing getCla ssCodesOut patientEnc ounters()  {
  1132           re turn appPr operties.g etProperty (CLASS_COD E_OUTPATIE NT_ENCOUNT ERS, "");
  1133       }
  1134       public  final Str ing getCla ssCodesOut patientMed ications()  {
  1135           re turn appPr operties.g etProperty (CLASS_COD E_OUTPATIE NT_MEDICAT IONS, "");
  1136       }
  1137       public  final Str ing getCla ssCodesLab Results()  {
  1138           re turn appPr operties.g etProperty (CLASS_COD E_LAB_RESU LTS, "");
  1139       }
  1140       public  final Str ing getCla ssCodesRad iologyRepo rts() {
  1141           re turn appPr operties.g etProperty (CLASS_COD E_RADIOLOG Y_REPORTS,  "");
  1142       }
  1143       public  final Str ing getCla ssCodesPro gressNotes () {
  1144           re turn appPr operties.g etProperty (CLASS_COD E_PROGRESS _NOTES, "" );
  1145       }
  1146       public  final Str ing getCla ssCodesVLE RDocuments () {
  1147           re turn appPr operties.g etProperty (CLASS_COD E_VLER_DOC UMENTS, "" );
  1148       }
  1149       public  final boo lean isInc ludeAllVLE RDocuments () {
  1150           re turn Boole an.valueOf (appProper ties.getPr operty(CHS D_ALL_VLER _DOCUMENTS ,"false")) ;
  1151       }
  1152  
  1153  
  1154  
  1155   }