49435. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 5/28/2019 3:28:34 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.

49435.1 Files compared

# Location File Last Modified
1 CV_src.zip\CVjMeadows-CCP\src\main\java\gov\va\med\jmeadows\common AppConfig.java Wed May 1 18:46:27 2019 UTC
2 CV_src.zip\CVjMeadows-CCP\src\main\java\gov\va\med\jmeadows\common AppConfig.java Tue May 28 17:38:29 2019 UTC

49435.2 Comparison summary

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

49435.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

49435.4 Active regular expressions

No regular expressions were active.

49435.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 pw.
  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 pw.
  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        * CNe tworkMap's  EHCache n ame,
  290        */
  291       privat e static f inal Strin g EHCACHE_ NAME_CNETW ORKMAP = " EHCACHE_NA ME_CNETWOR KMAP";
  292  
  293       /**
  294        * CPa inMedVuidM ap's EHCac he name,
  295        */
  296       privat e static f inal Strin g EHCACHE_ KEY_CPAINM EDVUID_MAP  = "EHCACH E_KEY_CPAI NMEDVUID_M AP";
  297  
  298       /**
  299        * RPC  endpoint  environmen t (enterpr ise, hrg,  etc.),
  300        */
  301       privat e static f inal Strin g RPC_ENDP OINT_ENVIR ONMENT = " RPC_ENDPOI NT_ENVIRON MENT";
  302  
  303       /**
  304        * CAC HE endpoin t environm ent (enter prise, hrg , etc.),
  305        */
  306       privat e static f inal Strin g CACHE_EN DPOINT_ENV IRONMENT =  "CACHE_EN DPOINT_ENV IRONMENT";
  307  
  308       /**
  309        * Sha re endpoin t environm ent,
  310        */
  311       privat e static f inal Strin g SHARE_EN DPOINT_ENV IRONMENT =  "SHARE_EN DPOINT_ENV IRONMENT";
  312  
  313       /**
  314        * Med web endpoi nt environ ment,
  315        */
  316       privat e static f inal Strin g MEDWEB_E NDPOINT_EN VIRONMENT  = "MEDWEB_ ENDPOINT_E NVIRONMENT ";
  317       privat e static f inal Strin g AHLTA_EN DPOINT_ENV IRONMENT =  "AHLTA_EN DPOINT_ENV IRONMENT";
  318       /** st atic const ants **/
  319       privat e static f inal Strin g CONST_DO DADAPTER_S OURCE_STAT US_REPORT_ FLAG = "DO DADAPTER_S OURCE_STAT US_REPORT" ;
  320       privat e final st atic Strin g CONST_SY STEM_TYPE_ CHCS = "CH CS";
  321       privat e final st atic Strin g CONST_SY STEM_TYPE_ VISTA = "V ISTA";
  322       privat e final st atic Strin g CONST_SY STEM_TYPE_ SHARE = "S HARE";
  323       privat e final st atic Strin g CONST_SY STEM_TYPE_ DOD_ADAPTE R = "DODAD APTER";
  324       privat e final st atic Strin g IDENTIFI ER_UNAVAIL ABLE_FLAG  = "IDENTIF IER_UNAVAI LABLE";
  325  
  326       privat e final st atic Strin g CONST_SO URCE_PROTO COL_CACHE  = "CACHE";
  327       privat e final st atic Strin g CONST_SO URCE_PROTO COL_RPC =  "RPC";
  328       privat e final st atic Strin g CONST_SO URCE_PROTO COL_SHARE  = "SHARE";
  329       privat e final st atic Strin g CONST_SO URCE_PROTO COL_MEDWEB  = "MEDWEB ";
  330       privat e final st atic Strin g CONST_SO URCE_PROTO COL_DOD_AD APTER = "D ODADAPTER" ;
  331  
  332       privat e final st atic Strin g USE_TERM _MAPPING_C ACHE = "US E_TERM_MAP PING_CACHE ";
  333  
  334       privat e final st atic Strin g LOAD_VLE R_SITE_CAC HE = "LOAD _VLER_SITE _CACHE";
  335  
  336       privat e final st atic Strin g USE_SNAR EWORKS = " USE_SNAREW ORKS";
  337  
  338       /**
  339        * DMI S IDs and  facilities  used for  mapping DM IS IDs to  clinic nam es for pat ient demog raphic's P CM clinic.
  340        */
  341       privat e final st atic Strin g DMIS_FIL E_NAME = " DMIS_FILE_ NAME";
  342       privat e final st atic Strin g DMIS_TOK EN_DELIM =  "DMIS_TOK EN_DELIM";
  343       privat e final st atic Strin g DMIS_ID_ TOKEN_POS  = "DMIS_ID _TOKEN_POS ";
  344       privat e final st atic Strin g DMIS_NAM E_TOKEN_PO S = "DMIS_ NAME_TOKEN _POS";
  345  
  346       privat e final st atic Strin g LAB_TYPE _CH = "LAB _TYPE_CH";
  347       privat e final st atic Strin g LAB_TYPE _MI = "LAB _TYPE_MI";
  348       privat e final st atic Strin g LAB_TYPE _AP = "LAB _TYPE_AP";
  349       privat e final st atic Strin g LAB_TYPE _EM = "LAB _TYPE_EM";
  350       privat e final st atic Strin g LAB_TYPE _SP = "LAB _TYPE_SP";
  351       privat e final st atic Strin g LAB_TYPE _ST = "LAB _TYPE_ST";
  352       privat e final st atic Strin g LAB_TYPE _CY = "LAB _TYPE_CY";
  353       privat e final st atic Strin g LAB_TYPE _AU = "LAB _TYPE_AU";
  354       privat e final st atic Strin g LAB_TYPE _BB = "LAB _TYPE_BB";
  355       privat e final st atic Strin g LAB_TYPE _HIV = "LA B_TYPE_HIV ";
  356  
  357       /**
  358        * Res et Passwor d Properti es
  359        */
  360       privat e final st atic Strin g RESET_PW _URL_BASE  = "RESET_P W_URL_BASE ";
  361       privat e final st atic Strin g RESET_PW _TIMEOUT_H RS = "RESE T_PW_TIMEO UT_HRS";
  362       privat e final st atic Strin g RESET_PW _TIMEOUT_M IN = "RESE T_PW_TIMEO UT_MIN";
  363       privat e final st atic Strin g RESET_PW _EMAIL_HOS T = "RESET _PW_EMAIL_ HOST";
  364       privat e final st atic Strin g RESET_PW _EMAIL_POR T = "RESET _PW_EMAIL_ PORT";
  365       privat e final st atic Strin g RESET_PW _EMAIL_AUT H_ENCRYPT_ UN = "RESE T_PW_EMAIL _AUTH_ENCR YPT_UN";
  366       privat e final st atic Strin g RESET_PW _EMAIL_AUT H_ENCRYPT_ PW = "RESE T_PW_EMAIL _AUTH_ENCR YPT_PW";
  367       privat e final st atic Strin g RESET_PW _EMAIL_FRO M = "RESET _PW_EMAIL_ FROM";
  368       privat e final st atic Strin g RESET_PW _EMAIL_SUB JECT = "RE SET_PW_EMA IL_SUBJECT ";
  369       privat e final st atic Strin g RESET_PW _EMAIL_BOD Y = "RESET _PW_EMAIL_ BODY";
  370  
  371       privat e final st atic Strin g ENABLE_V IX_DOD_RAD IOLOGY_RET RIEVE = "E NABLE_VIX_ DOD_RADIOL OGY_RETRIE VE";
  372       privat e final st atic Strin g VIX_DOD_ RAD_EXAM_I D_DELIM =  "VIX_DOD_R AD_EXAM_ID _DELIM";
  373       privat e final st atic Strin g VIX_ORPH ANED_KEYWO RD = "VIX_ ORPHANED_K EYWORD";
  374  
  375       privat e final st atic Strin g USE_ENHA NCED_DEBUG  = "USE_EN HANCED_DEB UG";
  376  
  377       privat e final st atic Strin g DES_READ Y = "DES_R EADY";
  378  
  379       privat e final st atic Strin g LANGUAGE _CODE = "L ANGUAGE_CO DE";
  380       privat e final st atic Strin g LANGUAGE _DESCRIPTI ON = "LANG UAGE_DESCR IPTION";
  381  
  382       privat e final st atic Strin g DISABLE_ CACHED_THR EAD_POOL =  "DISABLE_ CACHED_THR EAD_POOL";
  383       privat e final st atic Strin g THREAD_K EEPALIVE_S ECONDS = " THREAD_KEE PALIVE_SEC ONDS";
  384       privat e final st atic Strin g MAX_THRE ADPOOL_SIZ E = "MAX_T HREADPOOL_ SIZE";
  385       privat e final st atic Strin g NUM_VDS_ REJECTED_R ETRIES = " NUM_VDS_RE JECTED_RET RIES";
  386       privat e final st atic Strin g VDS_REJE CTED_RETRY _DELAY_MS  = "VDS_REJ ECTED_RETR Y_DELAY_MS ";
  387  
  388       privat e final st atic Strin g CHSD_ALL _VLER_DOCU MENTS = "C HSD_ALL_VL ER_DOCUMEN TS";
  389  
  390       privat e final st atic Strin g CLASS_CO DE_DOCUMEN TS = "CLAS S_CODE.DOC UMENTS";
  391       privat e final st atic Strin g CLASS_CO DE_IMMUNIZ ATIONS = " CLASS_CODE .IMMUNIZAT IONS";
  392       privat e final st atic Strin g CLASS_CO DE_PROCEDU RES = "CLA SS_CODE.PR OCEDURES";
  393       privat e final st atic Strin g CLASS_CO DE_INPATIE NT_SUMMARI ES = "CLAS S_CODE.INP ATIENT_SUM MARIES";
  394       privat e final st atic Strin g CLASS_CO DE_CONSULT _ENCOUNTER S = "CLASS _CODE.CONS ULT_ENCOUN TERS";
  395       privat e final st atic Strin g CLASS_CO DE_OUTPATI ENT_ENCOUN TERS = "CL ASS_CODE.O UTPATIENT_ ENCOUNTERS ";
  396       privat e final st atic Strin g CLASS_CO DE_OUTPATI ENT_MEDICA TIONS = "C LASS_CODE. OUTPATIENT _MEDICATIO NS";
  397       privat e final st atic Strin g CLASS_CO DE_LAB_RES ULTS = "CL ASS_CODE.L AB_RESULTS ";
  398       privat e final st atic Strin g CLASS_CO DE_RADIOLO GY_REPORTS  = "CLASS_ CODE.RADIO LOGY_REPOR TS";
  399       privat e final st atic Strin g CLASS_CO DE_PROGRES S_NOTES =  "CLASS_COD E.PROGRESS _NOTES";
  400       privat e final st atic Strin g CLASS_CO DE_VLER_DO CUMENTS =  "CLASS_COD E.VLER_DOC UMENTS";
  401  
  402       /**
  403        * PPM S Service  Properties
  404        */
  405       privat e final st atic Strin g PPMS_SER VICE_BASE_ URL = "PPM S_SERVICE_ BASE_URL";
  406       privat e final st atic Strin g PPMS_TOK EN_SEC_ENA BLE = "PPM S_TOKEN_SE C_ENABLE";
  407       privat e final st atic Strin g PPMS_TOK EN_SEC_EXP IRE_MS = " PPMS_TOKEN _SEC_EXPIR E_MS";
  408       privat e final st atic Strin g PPMS_TOK EN_SEC_AUT HORITY = " PPMS_TOKEN _SEC_AUTHO RITY";
  409       privat e final st atic Strin g PPMS_TOK EN_SEC_RES OURCE = "P PMS_TOKEN_ SEC_RESOUR CE";
  410       privat e final st atic Strin g PPMS_TOK EN_SEC_APP _ID = "PPM S_TOKEN_SE C_APP_ID";
  411       privat e final st atic Strin g PPMS_TOK EN_SEC_SEC RET = "PPM S_TOKEN_SE C_SECRET";
  412  
  413       /*
  414        * Pai n Manageme nt
  415        */
  416       privat e final st atic Strin g PAIN_MGM T_NOTES_KE YWORDS = " PAIN_MGMT_ NOTES_KEYW ORDS";
  417  
  418       privat e static f inal AppCo nfig INSTA NCE = new  AppConfig( );
  419  
  420       //priv ate Proper ties appCo nfigProp;
  421  
  422       privat e Properti es appProp erties;
  423  
  424       privat e AppConfi g() {
  425  
  426           ap pPropertie s = new Pr operties() ;
  427  
  428           lo adAppMetaP roperties( );
  429           lo adAppConfi gPropertie s();
  430       }
  431  
  432       privat e void loa dAppMetaPr operties()  {
  433           St ring prope rtiesFile  = "applica tion.prope rties";
  434  
  435           In putStream  inputStrea m = null;
  436  
  437           Cl assLoader  classLoade r = AppCon fig.class. getClassLo ader();
  438           if  (classLoa der != nul l) {
  439                inputStr eam = clas sLoader.ge tResourceA sStream(pr opertiesFi le);
  440           }
  441  
  442           tr y {
  443                appPrope rties.load (inputStre am);
  444           }  catch (IOE xception e ) {
  445                LOGGER.e rror("Fail ed load ap plication. properties : " + e.ge tMessage() );
  446                throw ne w RuntimeE xception(e );
  447           }  finally {
  448                try {
  449                    if ( inputStrea m != null)  {
  450                         inputStrea m.close();
  451                    }
  452                } catch  (IOExcepti on e) {
  453                    LOGG ER.error(e .getMessag e());
  454                }
  455           }
  456       }
  457  
  458       privat e void loa dAppConfig Properties () {
  459           St ring prope rtiesFile  = "jmeadow s.properti es";
  460  
  461           In putStream  inputStrea m = null;
  462  
  463           Cl assLoader  classLoade r = AppCon fig.class. getClassLo ader();
  464           if  (classLoa der != nul l) {
  465                inputStr eam = clas sLoader.ge tResourceA sStream(pr opertiesFi le);
  466           }
  467  
  468           if  (inputStr eam != nul l) {
  469                try {
  470                    appP roperties. load(input Stream);
  471                } catch  (IOExcepti on e) {
  472                    LOGG ER.error(" Failed loa d appconfi g properti es: " + e. getMessage ());
  473                    thro w new Runt imeExcepti on(e);
  474                } finall y {
  475                    try  {
  476                         inputStrea m.close();
  477                    } ca tch (IOExc eption e)  {
  478                         LOGGER.err or(e.getMe ssage());
  479                    }
  480                }
  481           }
  482  
  483           tr y {
  484  
  485                inputStr eam = new  FileInputS tream(prop ertiesFile );
  486  
  487                try {
  488                    appP roperties. load(input Stream);
  489                } catch  (IOExcepti on e) {
  490                    LOGG ER.error(" Failed loa d appconfi g properti es: " + e. getLocaliz edMessage( ));
  491                    thro w new Runt imeExcepti on(e);
  492                } finall y {
  493                    try  {
  494                         inputStrea m.close();
  495                    } ca tch (IOExc eption e)  {
  496                         LOGGER.err or(e.getMe ssage());
  497                    }
  498                }
  499  
  500           }  catch (Fil eNotFoundE xception e ) {
  501                LOGGER.i nfo("Faile d to load  appconfig  from file  (jmeadows. properties ) -"
  502                         + " utiliz ing defaul t appconfi g properti es.");
  503  
  504           }
  505       }
  506  
  507   //    priv ate void l ogConfigs( )
  508   //    {
  509   //         //log some  jMeadows  configurat ion values
  510   //         logger.inf o("Local V A site cod e: {}", ge tLocalVASi teCode());
  511   //         logger.inf o("Local V A site nam e: {}", ge tLocalVASi teName());
  512   //         logger.inf o("Local V A site mon iker: {}",  getLocalV ASiteMonik er());
  513   //
  514   //         logger.inf o("Local D oD site co de: {}", g etLocalDOD SiteCode() );
  515   //         logger.inf o("Local D oD site na me: {}", g etLocalDOD SiteName() );
  516   //         logger.inf o("Local D oD site mo niker {}",  getLocalD ODSiteName ());
  517   //
  518   //         logger.inf o("MPI ena bled: {}",  isMPIEnab led());
  519   //         logger.inf o("Pix ser vice enabl ed: {}", i sPIXServic eEnabled() );
  520  
  521   //         logger.inf o("Utilize  MSI locat ion's url  as webserv ice endpoi nt value:  {}", useMS IEndpoint( ));
  522   //         logger.inf o("Query u ser locati on using N PI enabled : {}", isP roviderNPI LocationQu eryEnabled ());
  523   //
  524   //         logger.inf o("CHCSWS  endpoint:  {}", getCH CSWSURL()) ;
  525   //         logger.inf o("VistaDa taService  endpoint:  {}", getVi staWsURL() );
  526   //         logger.inf o("PIX ser vice endpo int: {}",  getPIXURL( ));
  527   //         logger.inf o("BHIERel ayService  endpoint:  {}", getBH IERelaySer viceURL()) ;
  528   //         logger.inf o("JALFHCC  alert ser vice endpo int: {}",  getAlertSe rviceURL() );
  529   //         logger.inf o("DREnj e nabled: {} ", isDREnj ServiceEna bled());
  530   //         logger.inf o("DREnj U RL: {}", g etDREnjURL ());
  531   //         logger.inf o("SHARE e nabled: {} ", isShare ServiceEna bled());
  532   //         logger.inf o("SHARE U RL: {}", g etShareURL ());
  533   //         logger.inf o("PDWS UR L: {}", ge tPDWSURL() );
  534   //
  535   //         logger.inf o("BHIE al lergies en abled: {}" , isBHIEAl lergiesEna bled());
  536   //         logger.inf o("BHIE pr oblems lis t enabled:  {}", isBH IEProblems Enabled()) ;
  537   //         logger.inf o("BHIE pr ogress not es enabled : {}", isB HIEProgres sNotesEnab led());
  538   //         logger.inf o("BHIE di scharge su mmaries en abled: {}"  + isBHIED ischargeSu mmariesEna bled());
  539   //         logger.inf o("BHIE vi tals enabl ed: {}", i sBHIEVital sEnabled() );
  540   //         logger.inf o("BHIE ap pointments  enabled:  {}", isBHI EAppointme ntsEnabled ());
  541   //         logger.inf o("BHIE co nsults ena bled: {}",  isBHIECon sultsEnabl ed());
  542   //         logger.inf o("BHIE de mographics  enabled:  {}", isBHI EDemograph icDetailsE nabled());
  543   //         logger.inf o("BHIE de mographic  details en abled: {}" , isBHIEDe mographicD etailsEnab led());
  544   //         logger.inf o("BHIE ou tpatient m edications  enabled:  {}", isBHI EOutpatien tMedicatio nsEnabled( ));
  545   //         logger.inf o("BHIE in patient me dications  enabled: { }" + isBHI EInpatient Medication sEnabled() );
  546   //         logger.inf o("BHIE ra diology re sults enab led: {}" +  isBHIERad iologyEnab led());
  547   //
  548   //         logger.inf o("BHIE ut ilize pati ent EDIPN  (EDIPI): { }", isBHIE UtilizePat ientEDIPN( ));
  549   //         logger.inf o("BHIE CH CS namespa ce: {}", g etBHIECHCS Namespace( ));
  550   //    }
  551  
  552       public  static fi nal AppCon fig getIns tance() {
  553           re turn INSTA NCE;
  554       }
  555  
  556       /**
  557        * Sit e moniker  to return  with BHIE  error bean  (utilized  when BHIE  connectio n is unava ilable).
  558        */
  559       public  final Str ing getBHI EErrorSite Moniker()  {
  560           re turn appPr operties.g etProperty (BHIE_ERRO R_SITE_MON IKER);
  561       }
  562  
  563       /**
  564        * jMe adows vers ion number .
  565        */
  566       public  final Str ing getApp Version()  {
  567           re turn appPr operties.g etProperty (APP_VERSI ON);
  568       }
  569  
  570       public  final Str ing getDat aSource()  {
  571           re turn appPr operties.g etProperty (APP_DATAS OURCE);
  572       }
  573  
  574       /**
  575        * jMe adows app  environmen t.
  576        */
  577       public  final Str ing getApp Environmen t() {
  578           re turn appPr operties.g etProperty (APP_ENVIR ONMENT);
  579       }
  580  
  581       /**
  582        * log 4j propert ies file p ath.
  583        */
  584       public  final Str ing getLog 4jProperti es() {
  585           re turn appPr operties.g etProperty (LOG4J_PRO PERTIES);
  586       }
  587  
  588       /**
  589        * CHC SWS endpoi nt.
  590        */
  591       public  final Str ing getCHC SWSURL() {
  592           re turn appPr operties.g etProperty (CHCS_URL) ;
  593       }
  594  
  595       /** BH IE/DoD ada pter clini cal domain  enablemen t configur ations. BH IE use is  for DoD da ta only, n ot VA.
  596        *  Pl ease note  that if BH IE IS enab led for a  given doma in CHCS wi ll NOT be  queried.
  597        *  Li kewise, if  BHIE is N OT enabled , CHCS is  queried by  default.
  598        **/
  599  
  600       /**
  601        * Vis taDataServ ice endpoi nt.
  602        */
  603       public  final Str ing getVis taWsURL()  {
  604           re turn appPr operties.g etProperty (VISTA_URL );
  605       }
  606  
  607       /**
  608        * MVI  endpoint.
  609        */
  610       public  final Str ing getMVI URL() {
  611           re turn appPr operties.g etProperty (MVI_URL);
  612       }
  613  
  614       /**
  615        * MVI  HL7 Messa ge Sender  Device ID.
  616        */
  617       public  final Str ing getMVI SndDevId()  { return  appPropert ies.getPro perty(MVI_ SND_DEV_ID ); }
  618  
  619       /**
  620        * MVI  search re sult quant ity.
  621        */
  622       public  final int  getMVISea rchQty() {  return In teger.pars eInt(appPr operties.g etProperty (MVI_SEARC H_QTY)); }
  623  
  624       /**
  625        * Res trict VA u ser access  to DoD-on ly patient  informati on.
  626        */
  627       public  final Str ing getVaU serRestric t() {
  628           re turn appPr operties.g etProperty (VA_USER_R ESTRICT);
  629       }
  630  
  631       /**
  632        * All ow VA user  access to  DoD-only  patient in formation  (Audited a nd prompte d).
  633        */
  634       public  final Str ing getVaU serAllowRe strictAcce ss() {
  635           re turn appPr operties.g etProperty (VA_USER_A LLOW_RESTR ICT_ACCESS );
  636       }
  637  
  638       /**
  639        * PIX  service e ndpoint.
  640        */
  641       public  final Str ing getPIX URL() {
  642           re turn appPr operties.g etProperty (PIX_URL);
  643       }
  644  
  645       /**
  646        * BHI ERelayServ ice endpoi nt.
  647        */
  648       public  final Str ing getBHI ERelayServ iceURL() {
  649           re turn appPr operties.g etProperty (BHIE_RELA Y_SERVICE_ URL);
  650       }
  651  
  652       /**
  653        * PDW SService e ndpoint.
  654        */
  655       public  final Str ing getPdw sPsUrl() {
  656           re turn appPr operties.g etProperty (PDWS_PS_U RL);
  657       }
  658       public  final Str ing getPdw sPrUrl() {  return ap pPropertie s.getPrope rty(PDWS_P R_URL); }
  659       public  final Str ing getPdw sFsUrl() {
  660           re turn appPr operties.g etProperty (PDWS_FS_U RL);
  661       }
  662       public  final Str ing getPdw sFrUrl() {  return ap pPropertie s.getPrope rty(PDWS_F R_URL); }
  663  
  664       /**
  665        * PDW SService e ndpoint.
  666        */
  667       public  final Str ing getPDW SProcCode( ) {
  668           re turn appPr operties.g etProperty (PDWS_PROC _CODE);
  669       }
  670  
  671       /**
  672        * PDW SService e ndpoint.
  673        */
  674       public  final Str ing getPDW SSndDevId( ) {
  675           re turn appPr operties.g etProperty (PDWS_SND_ DEV_ID);
  676       }
  677  
  678       /**
  679        * PDW SService d ebug flag.
  680        */
  681       public  final Str ing getPDW SDebugFlag () {
  682           re turn appPr operties.g etProperty (DEBUG_SOA P_OUTPUT);
  683       }
  684  
  685  
  686       /**
  687        * CHC SWS userna me.
  688        */
  689       public  final Str ing getCHC SWSUsernam e() {
  690           re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (CHCSWS_US ERNAME));
  691       }
  692  
  693       /**
  694        * CHC SWS pw.
  695        */
  696       public  final Str ing getCHC SWSPasswor d() {
  697           re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (CHCSWS_PW D));
  698       }
  699  
  700       /**
  701        * BHI ERelayServ ice userna me.
  702        */
  703       public  final Str ing getBHI ERelayServ iceUsernam e() {
  704           re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (BHIE_RELA Y_SERVICE_ USERNAME)) ;
  705       }
  706  
  707       /**
  708        * BHI ERelayServ ice pw.
  709        */
  710       public  final Str ing getBHI ERelayServ icePasswor d() {
  711           re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (BHIE_RELA Y_SERVICE_ PWD));
  712       }
  713  
  714       /**
  715        * tru e to relax  SSL v3 se curity req uirements.  (Use this  for debug ging purpo ses only!) .
  716        */
  717       public  final boo lean isTru stAllSSLHo stnameAndC erts() {
  718           re turn Boole an.valueOf (appProper ties.getPr operty(IS_ TRUST_ALL_ SSL_HOSTNA MES_AND_CE RTS));
  719       }
  720  
  721       /**
  722        * tru e to utili ze C3PO fo r as the s ql connect ion poolin g api.
  723        * If  false, def aults to u tilizing J NDI lookup  for conne ction pool .
  724        */
  725       public  final boo lean useC3 PO() {
  726           re turn Boole an.valueOf (appProper ties.getPr operty(USE _C3PO));
  727       }
  728  
  729       /**
  730        * SQL  server JD BC connect ion string  (for use  with C3PO) .
  731        */
  732       public  final Str ing getSQL URL() {
  733           re turn appPr operties.g etProperty (SQL_URL);
  734       }
  735  
  736       /**
  737        * SQL  server JD BC connect ion string  (for use  with C3PO) .
  738        */
  739       public  final Str ing getSQL URLEncrypt ed() {
  740           re turn appPr operties.g etProperty (SQL_URL_E NCRYPTED);
  741       }
  742  
  743       /**
  744        * SQL  server dr iver (for  use with C 3PO).
  745        */
  746       public  final Str ing getSQL Driver() {
  747           re turn appPr operties.g etProperty (SQL_DRIVE R);
  748       }
  749  
  750       /**
  751        * JDN I connecti on pooling  lookup na me.
  752        */
  753       public  final Str ing getJDB C_JNDILook up() {
  754           re turn appPr operties.g etProperty (JNDI_JDBC );
  755       }
  756  
  757       /**
  758        * JDN I connecti on pooling  lookup na me.
  759        */
  760       public  final Str ing getJDB C_JNDILook upEncrypte d() {
  761           re turn appPr operties.g etProperty (JNDI_JDBC _ENCRYPTED );
  762       }
  763  
  764       /**
  765        * Gen eral servi ce request  timeout s etting in  millisecon ds.
  766        */
  767       public  final int  getReques tTimeoutMS () {
  768           re turn Integ er.parseIn t(appPrope rties.getP roperty(RE QUEST_TIME OUT_MS));
  769       }
  770  
  771       /**
  772        * Gen eral servi ce connect ion timeou t setting  in millise conds.
  773        */
  774       public  final int  getConnec tionTimeou tMS() {
  775           re turn Integ er.parseIn t(appPrope rties.getP roperty(CO NNECTION_T IMEOUT_MS) );
  776       }
  777  
  778       /**
  779        * Gen eral threa d timeout  in millise conds.
  780        */
  781       public  final lon g getThrea dTimeoutMS () {
  782           re turn Long. parseLong( appPropert ies.getPro perty(THRE AD_TIMEOUT _MS));
  783       }
  784  
  785       /**
  786        * VLE R service  request ti meout sett ing in mil liseconds.
  787        */
  788       public  final int  getVLERRe questTimeo utMS() {
  789           re turn Integ er.parseIn t(appPrope rties.getP roperty(VL ER_REQUEST _TIMEOUT_M S));
  790       }
  791  
  792       /**
  793        * VLE R service  connection  timeout s etting in  millisecon ds.
  794        */
  795       public  final int  getVLERCo nnectionTi meoutMS()  {
  796           re turn Integ er.parseIn t(appPrope rties.getP roperty(VL ER_CONNECT ION_TIMEOU T_MS));
  797       }
  798  
  799       /**
  800        * BHI E custodia n OIDs. Ea ch OID rep resents a  particular  data site  that BHIE  aggregate s from.
  801        * The se custodi an OIDs ar e included  as BHIE q uery inclu ded or exc luded site  parameter s.
  802        */
  803  
  804       /**
  805        * Def ault error  message s tring.
  806        */
  807       public  final Str ing getErr orMsgConne ctionUnava ilable() {
  808           re turn appPr operties.g etProperty (ERROR_MSG _CONNECTIO N_UNAVAILA BLE);
  809       }
  810  
  811       /**
  812        * Def ault edr s ervice rel ated error  message s tring.
  813        */
  814       public  final Str ing getErr orMsgEDRDo cs() {
  815           re turn appPr operties.g etProperty (ERROR_MSG _EDR_DOCS) ;
  816       }
  817  
  818       /**
  819        * AHL TA custodi an OID.
  820        */
  821       public  final Str ing getBHI ECustodian OidAHLTA()  {
  822           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ AHLTA);
  823       }
  824  
  825       /**
  826        * VA  custodian  OID.
  827        */
  828       public  final Str ing getBHI ECustodian OidVA() {
  829           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ VA);
  830       }
  831  
  832       /**
  833        * TMD S custodia n OID.
  834        */
  835       public  final Str ing getBHI ECustodian OidTMDS()  {
  836           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ TMDS);
  837       }
  838  
  839       /**
  840        * FHI E custodia n OID.
  841        */
  842       public  final Str ing getBHI ECustodian OidFHIE()  {
  843           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ FHIE);
  844       }
  845  
  846       /**
  847        * ESS ENTRIS cus todian OID .
  848        */
  849       public  final Str ing getBHI ECustodian OidESS() {
  850           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ ESS);
  851       }
  852  
  853       /**
  854        * CHC S custodia n OID.
  855        */
  856       public  final Str ing getBHI ECustodian OidCHCS()  {
  857           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ CHCS);
  858       }
  859  
  860       /**
  861        * SHA RE custodi an OID.
  862        */
  863       public  final Str ing getBHI ECustodian OidSHARE()  {
  864           re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ SHARE);
  865       }
  866  
  867       /**
  868        * Sit e code to  return wit h BHIE err or beans ( utilized w hen BHIE c onnection  is unavail able).
  869        */
  870       public  final Str ing getBHI EErrorSite Code() {
  871           re turn appPr operties.g etProperty (BHIE_ERRO R_SITE_COD E);
  872       }
  873  
  874       /**
  875        * Sit e name to  return wit h BHIE err or bean (u tilized wh en BHIE co nnection i s unavaila ble).
  876        */
  877       public  final Str ing getBHI EErrorSite Name() {
  878           re turn appPr operties.g etProperty (BHIE_ERRO R_SITE_NAM E);
  879       }
  880  
  881       /**
  882        * The  local VA  facility's  patient I EN OID - f or use wit h the PIX  Service pa tient iden tifier map .
  883        * (2. 16.840.1.1 13883.3.42 .10006.100 005.8 for  North Chic ago VA)
  884        */
  885       public  final Str ing getLoc alVAIenOid () {
  886           re turn appPr operties.g etProperty (LOCAL_VA_ IEN_OID);
  887       }
  888  
  889       /**
  890        * Vis ta enterpr ise ICN OI D - for us e with the  PIX Servi ce patient  identifie r map.
  891        */
  892       public  final Str ing getVis taIcnOid()  {
  893           re turn appPr operties.g etProperty (VISTA_ICN _OID);
  894       }
  895  
  896       public  final Str ing getDOD EdipnOid()  {
  897           re turn appPr operties.g etProperty (DOD_EDIPN _OID);
  898       }
  899  
  900       /**
  901        * VA  agency nam e string S hould be c onfigured  as VA
  902        */
  903       public  final Str ing getAge ncyVA() {
  904           re turn appPr operties.g etProperty (AGENCY_VA );
  905       }
  906  
  907       /**
  908        * DOD  agency na me string.  Should be  configure d as DOD
  909        */
  910       public  final Str ing getAge ncyDOD() {
  911           re turn appPr operties.g etProperty (AGENCY_DO D);
  912       }
  913  
  914       //meth ods that r eturn stat ic constan ts
  915  
  916       public  final Str ing getDOD AdapterSou rceStatusR eportFlag( ) {
  917           re turn CONST _DODADAPTE R_SOURCE_S TATUS_REPO RT_FLAG;
  918       }
  919  
  920       public  final Str ing getSys temTypeCHC S() {
  921           re turn CONST _SYSTEM_TY PE_CHCS;
  922       }
  923  
  924       public  final Str ing getSys temTypeVIS TA() {
  925           re turn CONST _SYSTEM_TY PE_VISTA;
  926       }
  927  
  928       public  final Str ing getCon stSystemTy peShare()  {
  929           re turn CONST _SYSTEM_TY PE_SHARE;
  930       }
  931  
  932       public  final Str ing getSys temTypeDOD Adapter()  {
  933           re turn CONST _SYSTEM_TY PE_DOD_ADA PTER;
  934       }
  935  
  936       public  final Str ing getSou rceProtoco lCache() {
  937           re turn CONST _SOURCE_PR OTOCOL_CAC HE;
  938       }
  939  
  940       public  final Str ing getSou rceProtoco lRPC() {
  941           re turn CONST _SOURCE_PR OTOCOL_RPC ;
  942       }
  943  
  944       public  final Str ing getSou rceProtoco lMedweb()  {
  945           re turn CONST _SOURCE_PR OTOCOL_MED WEB;
  946       }
  947  
  948       public  final Str ing getSou rceProtoco lDODAdapte r() {
  949           re turn CONST _SOURCE_PR OTOCOL_DOD _ADAPTER;
  950       }
  951  
  952       public  final Str ing getSou rceProtoco lShare() {
  953           re turn CONST _SOURCE_PR OTOCOL_SHA RE;
  954       }
  955  
  956       public  final Str ing getIde ntifierUna vailableFl ag() {
  957           re turn IDENT IFIER_UNAV AILABLE_FL AG;
  958       }
  959  
  960       public  final Str ing getEHC acheNameSi teMap() {  return app Properties .getProper ty(EHCACHE _NAME_SITE MAP); }
  961  
  962       public  final Str ing getEHC acheNameCN etworkMap( ) { return  appProper ties.getPr operty(EHC ACHE_NAME_ CNETWORKMA P); }
  963  
  964       public  final Str ing getEHC acheNameCP ainMedVuid Map() { re turn appPr operties.g etProperty (EHCACHE_K EY_CPAINME DVUID_MAP) ; }
  965  
  966       public  final Str ing getRPC EndpointEn vironment( ) {
  967           re turn appPr operties.g etProperty (RPC_ENDPO INT_ENVIRO NMENT);
  968       }
  969  
  970       public  final Str ing getCac heEndpoint Environmen t() {
  971           re turn appPr operties.g etProperty (CACHE_END POINT_ENVI RONMENT);
  972       }
  973  
  974       public  final Str ing getSha reEndpoint Environmen t() {
  975           re turn appPr operties.g etProperty (SHARE_END POINT_ENVI RONMENT);
  976       }
  977  
  978       public  final Str ing getMed webEndpoin tEnvironme nt() {
  979           re turn appPr operties.g etProperty (MEDWEB_EN DPOINT_ENV IRONMENT);
  980       }
  981  
  982       public  final Str ing getAhl taEndpoint Environmen t() {
  983           re turn appPr operties.g etProperty (AHLTA_END POINT_ENVI RONMENT);
  984       }
  985  
  986       public  final Str ing getLoc alCHCSSite Code() {
  987           re turn appPr operties.g etProperty (LOCAL_CHC S_SITECODE );
  988       }
  989  
  990       public  final Str ing getLoc alVistaSit eCode() {
  991           re turn appPr operties.g etProperty (LOCAL_VIS TA_SITECOD E);
  992       }
  993  
  994       /**
  995        * tru e to utili ze HashMap  as cache  for termin ology mapp ing.
  996        * If  false, to  utilize SQ L server f or mapping  without h ashmap cac he.
  997        */
  998       public  final boo lean useTe rmMappingC ache() {
  999           re turn Boole an.valueOf (appProper ties.getPr operty(USE _TERM_MAPP ING_CACHE) );
  1000       }
  1001  
  1002       /**
  1003        * Loa d mapping  data from  SQL Server  on startu p.
  1004        */
  1005       public  final boo lean loadV LERSiteCac he() {
  1006           re turn Boole an.valueOf (appProper ties.getPr operty(LOA D_VLER_SIT E_CACHE));
  1007       }
  1008       
  1009       /**
  1010        * tru e to use s nareworks  instead of  database  whitelist.
  1011        */
  1012       public  final boo lean useSn areworks()  {
  1013           re turn Boole an.valueOf (appProper ties.getPr operty(USE _SNAREWORK S));
  1014       }
  1015  
  1016       /**
  1017        * DMI S IDs and  facilities  used for  mapping DM IS IDs to  clinic nam es for pat ient demog raphic's P CM clinic
  1018        */
  1019       public  final Str ing getDmi sFileName( ) {
  1020           re turn appPr operties.g etProperty (DMIS_FILE _NAME);
  1021       }
  1022       public  final Str ing getDmi sTokenDeli m() {
  1023           re turn appPr operties.g etProperty (DMIS_TOKE N_DELIM);
  1024       }
  1025       public  final int  getDmisId TokenPos()  {
  1026           re turn Integ er.parseIn t(appPrope rties.getP roperty(DM IS_ID_TOKE N_POS));
  1027       }
  1028       public  final int  getDmisNa meTokenPos () {
  1029           re turn Integ er.parseIn t(appPrope rties.getP roperty(DM IS_NAME_TO KEN_POS));
  1030       }
  1031  
  1032       public  final Str ing  getLa bTypeCh()  {
  1033           re turn appPr operties.g etProperty (LAB_TYPE_ CH);
  1034       }
  1035  
  1036       public  final Str ing getLab TypeMi() {
  1037           re turn appPr operties.g etProperty (LAB_TYPE_ MI);
  1038       }
  1039  
  1040       public  final Str ing getLab TypeAp() {
  1041           re turn appPr operties.g etProperty (LAB_TYPE_ AP);
  1042       }
  1043  
  1044       public  final Str ing getLab TypeEm() {
  1045           re turn appPr operties.g etProperty (LAB_TYPE_ EM);
  1046       }
  1047  
  1048       public  final Str ing getLab TypeSp() {
  1049           re turn appPr operties.g etProperty (LAB_TYPE_ SP);
  1050       }
  1051  
  1052       public  final Str ing getLab TypeSt() {
  1053           re turn appPr operties.g etProperty (LAB_TYPE_ ST);
  1054       }
  1055  
  1056       public  final Str ing getLab TypeCy() {
  1057           re turn appPr operties.g etProperty (LAB_TYPE_ CY);
  1058       }
  1059  
  1060       public  final Str ing getLab TypeAu() {
  1061           re turn appPr operties.g etProperty (LAB_TYPE_ AU);
  1062       }
  1063  
  1064       public  final Str ing getLab TypeBb() {
  1065           re turn appPr operties.g etProperty (LAB_TYPE_ BB);
  1066       }
  1067  
  1068       public  final Str ing getLab TypeHiv()  {
  1069           re turn appPr operties.g etProperty (LAB_TYPE_ HIV);
  1070       }
  1071  
  1072       public  final boo lean isVix DodRadiolo gyRetrieve Enabled()  {
  1073           re turn Boole an.valueOf (appProper ties.getPr operty(ENA BLE_VIX_DO D_RADIOLOG Y_RETRIEVE , "false") );
  1074       }
  1075  
  1076       public  final Str ing getVix DodRadExam IdDelim()  {
  1077           re turn appPr operties.g etProperty (VIX_DOD_R AD_EXAM_ID _DELIM, "# - ");
  1078       }
  1079  
  1080       public  final Str ing getVix OrphanedKe yword() {
  1081           re turn appPr operties.g etProperty (VIX_ORPHA NED_KEYWOR D, "vastud y:");
  1082       }
  1083  
  1084       /**
  1085        * @re turn the a ppProperti es
  1086        */
  1087       public  Propertie s getPrope rties() {
  1088           re turn appPr operties;
  1089       }
  1090  
  1091       public  final Str ing getEnv () {return  appProper ties.getPr operty(ENV );}
  1092  
  1093       /**--- ---------- ---------- ---------- ---------- ---
  1094        * Com munityView er EMAIL C onfigurati on Propert ies
  1095        **--- ---------- ---------- ---------- ---------- ---*/
  1096       public  final Str ing getEma ilAuthEncr yptUsernam e() {retur n appPrope rties.getP roperty("E MAIL_AUTH_ ENCRYPT_UN ");}
  1097       public  final Str ing getEma ilAuthEncr yptPasswor d() { retu rn appProp erties.get Property(" EMAIL_AUTH _ENCRYPT_P W"); }
  1098       public  final Str ing getEma ilHost() {  return ap pPropertie s.getPrope rty("EMAIL _HOST"); }
  1099       public  final Str ing getEma ilSSLPort( ) { return  appProper ties.getPr operty("EM AIL_SSL_PO RT"); }
  1100       public  final Str ing getEma ilFrom() {  return ap pPropertie s.getPrope rty("EMAIL _FROM"); }
  1101       public  final Str ing getEma ilTo() { r eturn appP roperties. getPropert y("EMAIL_T O"); }
  1102       public  final Str ing getEma ilSubject( ) { return  appProper ties.getPr operty("EM AIL_SUBJEC T"); }
  1103       public  final Str ing getEma ilSrcSys()  { return  appPropert ies.getPro perty("EMA IL_SRC_SYS "); }
  1104  
  1105       /**--- ---------- ---------- --
  1106        * Res et Passwor d Properti es
  1107        **--- ---------- ---------- --*/
  1108       public  final Str ing getRes etPassword UrlBase()  { return a ppProperti es.getProp erty(RESET _PW_URL_BA SE); }
  1109       public  final int  getResetP asswordTim eoutHrs()  { return I nteger.par seInt(appP roperties. getPropert y(RESET_PW _TIMEOUT_H RS)); }
  1110       public  final int  getResetP asswordTim eoutMin()  { return I nteger.par seInt(appP roperties. getPropert y(RESET_PW _TIMEOUT_M IN)); }
  1111       public  final Str ing getRes etPassword EmailHost( ) { return  appProper ties.getPr operty(RES ET_PW_EMAI L_HOST); }
  1112       public  final Str ing getRes etPassword EmailPort( ) { return  appProper ties.getPr operty(RES ET_PW_EMAI L_PORT); }
  1113       public  final Str ing getRes etPassowrd EmailAuthE ncryptUser name() { r eturn appP roperties. getPropert y(RESET_PW _EMAIL_AUT H_ENCRYPT_ UN); }
  1114       public  final Str ing getRes etPassword EmailAuthE ncryptPass word() { r eturn appP roperties. getPropert y(RESET_PW _EMAIL_AUT H_ENCRYPT_ PW); }
  1115       public  final Str ing getRes etPassword EmailFrom( ) { return  appProper ties.getPr operty(RES ET_PW_EMAI L_FROM); }
  1116       public  final Str ing getRes etPassword EmailSubje ct() { ret urn appPro perties.ge tProperty( RESET_PW_E MAIL_SUBJE CT); }
  1117       public  final Str ing getRes etPassword EmailBody( ) { return  appProper ties.getPr operty(RES ET_PW_EMAI L_BODY); }
  1118  
  1119  
  1120       /**
  1121        * tru e to use a ny enhance d debuggin g code
  1122        */
  1123       public  final boo lean useEn hancedDebu g() {
  1124           re turn Boole an.valueOf (appProper ties.getPr operty(USE _ENHANCED_ DEBUG));
  1125       }
  1126  
  1127       public  final boo lean isDES Ready() {
  1128           re turn Boole an.valueOf (appProper ties.getPr operty(DES _READY, "f alse"));
  1129       }
  1130  
  1131       public  final Str ing getLan guageCode( ) {
  1132           re turn appPr operties.g etProperty (LANGUAGE_ CODE);
  1133       }
  1134  
  1135       public  final Str ing getLan guageDescr iption() {
  1136           re turn appPr operties.g etProperty (LANGUAGE_ DESCRIPTIO N);
  1137       }
  1138  
  1139       /**
  1140        * tru e to disab le cached  thread poo ls (unlimi ted size)
  1141        * If  false, swi tches to f ixed threa d pools.
  1142        */
  1143       public  final boo lean disab leCachedTh readPool()  {
  1144           re turn Boole an.valueOf (appProper ties.getPr operty(DIS ABLE_CACHE D_THREAD_P OOL));
  1145       }
  1146  
  1147       /**
  1148        * Thr ead keep a live is us ed for the  cached th read pools , it is ho w long a t hread stay s
  1149        * ali ve waiting  for work.
  1150        */
  1151       public  final lon g getThrea dKeepalive Sec() {
  1152           re turn Long. parseLong( appPropert ies.getPro perty(THRE AD_KEEPALI VE_SECONDS ));
  1153       }
  1154  
  1155       public  final int  getMaxThr eadpoolSiz e() {
  1156           in t maxSize  = 5000;
  1157           tr y {
  1158                maxSize  = Integer. parseInt(a ppProperti es.getProp erty(MAX_T HREADPOOL_ SIZE));
  1159           }  catch (Num berFormatE xception n fe) {
  1160                LOGGER.e rror("Bad  format MAX _THREADPOO L_SIZE set  in proper ties, will  use {}",  maxSize);
  1161           }
  1162           re turn maxSi ze;
  1163       }
  1164  
  1165       public  final int  getNumVds RejectedRe tries() {
  1166           in t retries  = 2;
  1167           tr y {
  1168                retries  = Integer. parseInt(a ppProperti es.getProp erty(NUM_V DS_REJECTE D_RETRIES) );
  1169           }  catch (Num berFormatE xception n fe) {
  1170                LOGGER.e rror("Bad  format NUM _VDS_REJEC TED_RETRIE S set in p roperties,  will use  {}", retri es);
  1171           }
  1172           re turn retri es;
  1173       }
  1174  
  1175       public  final int  getVdsRej ectedRetry DelayMs()  {
  1176           in t waitTime Ms = 1000;
  1177           tr y {
  1178                waitTime Ms = Integ er.parseIn t(appPrope rties.getP roperty(VD S_REJECTED _RETRY_DEL AY_MS));
  1179           }  catch (Num berFormatE xception n fe) {
  1180                LOGGER.e rror("Bad  format VDS _REJECTED_ RETRY_DELA Y_MS set i n properti es, will u se {}", wa itTimeMs);
  1181           }
  1182           re turn waitT imeMs;
  1183       }
  1184  
  1185       public  final Str ing getCla ssCodesDoc uments() {
  1186           re turn appPr operties.g etProperty (CLASS_COD E_DOCUMENT S, "");
  1187       }
  1188       public  final Str ing getCla ssCodesImm unizations () {
  1189           re turn appPr operties.g etProperty (CLASS_COD E_IMMUNIZA TIONS, "") ;
  1190       }
  1191  
  1192       public  final Str ing getCla ssCodesPro cedures()  {
  1193           re turn appPr operties.g etProperty (CLASS_COD E_PROCEDUR ES, "");
  1194       }
  1195  
  1196       public  final Str ing getCla ssCodesInp atientSumm aries() {
  1197           re turn appPr operties.g etProperty (CLASS_COD E_INPATIEN T_SUMMARIE S, "");
  1198       }
  1199       public  final Str ing getCla ssCodesCon sultEncoun ters() {
  1200           re turn appPr operties.g etProperty (CLASS_COD E_CONSULT_ ENCOUNTERS , "");
  1201       }
  1202       public  final Str ing getCla ssCodesOut patientEnc ounters()  {
  1203           re turn appPr operties.g etProperty (CLASS_COD E_OUTPATIE NT_ENCOUNT ERS, "");
  1204       }
  1205       public  final Str ing getCla ssCodesOut patientMed ications()  {
  1206           re turn appPr operties.g etProperty (CLASS_COD E_OUTPATIE NT_MEDICAT IONS, "");
  1207       }
  1208       public  final Str ing getCla ssCodesLab Results()  {
  1209           re turn appPr operties.g etProperty (CLASS_COD E_LAB_RESU LTS, "");
  1210       }
  1211       public  final Str ing getCla ssCodesRad iologyRepo rts() {
  1212           re turn appPr operties.g etProperty (CLASS_COD E_RADIOLOG Y_REPORTS,  "");
  1213       }
  1214       public  final Str ing getCla ssCodesPro gressNotes () {
  1215           re turn appPr operties.g etProperty (CLASS_COD E_PROGRESS _NOTES, "" );
  1216       }
  1217       public  final Str ing getCla ssCodesVLE RDocuments () {
  1218           re turn appPr operties.g etProperty (CLASS_COD E_VLER_DOC UMENTS, "" );
  1219       }
  1220       public  final boo lean isInc ludeAllVLE RDocuments () {
  1221           re turn Boole an.valueOf (appProper ties.getPr operty(CHS D_ALL_VLER _DOCUMENTS ,"false")) ;
  1222       }
  1223  
  1224       /**
  1225        * Pai n Manageme nt
  1226        */
  1227       public  final Str ing getPai nMgmtNotes Keywords()  { return  appPropert ies.getPro perty("PAI N_MGMT_NOT ES_KEYWORD S", "PAIN" ); }
  1228  
  1229       /**
  1230        *  PP MS REST Se rvice URL
  1231        */
  1232       public  final Str ing getPPM SServiceUr l() {
  1233           re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (PPMS_SERV ICE_BASE_U RL,
  1234                    "YyN byi3Ek7cq+ 4TzaNBRzIR hWiv2u3RNc KZ0VdsEK3k O5wmFsyyXv I12CweRrJa R0NtkYmxH9 S+SeWx+v+C RFA==" ));
  1235           // default va lue: "PPMS  REST Serv ice URL pr operty not  found in  configurat ion file."
  1236  
  1237       }
  1238  
  1239       public  final boo lean getPP MSTokenSec Enable() {
  1240           re turn Boole an.valueOf (appProper ties.getPr operty(PPM S_TOKEN_SE C_ENABLE,  "true"));
  1241       }
  1242  
  1243       public  final lon g getPPMST okenSecExp ireTimeMS( ) {
  1244           re turn Long. parseLong( appPropert ies.getPro perty("PPM S_TOKEN_SE C_EXPIRE_M S", "0"));
  1245       }
  1246  
  1247       public  final Str ing getPPM STokenSecA uthority()  {
  1248           re turn appPr operties.g etProperty (PPMS_TOKE N_SEC_AUTH ORITY,
  1249                    "PPM S Token Se curity Aut hority pro perty not  found in c onfigurati on file.") ;
  1250       }
  1251  
  1252       public  final Str ing getPPM STokenSecR esource()  {
  1253           re turn appPr operties.g etProperty (PPMS_TOKE N_SEC_RESO URCE,
  1254                    "PPM S Token Se curity Res ource prop erty not f ound in co nfiguratio n file.");
  1255       }
  1256  
  1257       public  final Str ing getPPM STokenSecA ppId() {
  1258           re turn appPr operties.g etProperty (PPMS_TOKE N_SEC_APP_ ID,
  1259                    "PPM S Token Se curity App lication I D property  not found  in config uration fi le.");
  1260       }
  1261  
  1262       public  final Str ing getPPM STokenSecS ecret() {
  1263           re turn appPr operties.g etProperty (PPMS_TOKE N_SEC_SECR ET,
  1264                    "PPM S Token Se curity Sec ret proper ty not fou nd in conf iguration  file.");
  1265       }
  1266   }