Produced by Araxis Merge on 9/19/2018 2:22:21 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | JLV_2.7_src.zip\jMeadows\src\main\java\gov\va\med\jmeadows\common | AppConfig.java | Mon Jul 23 06:22:55 2018 UTC |
2 | JLV_2.7_src.zip\jMeadows\src\main\java\gov\va\med\jmeadows\common | AppConfig.java | Tue Sep 18 17:18:51 2018 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 2 | 2300 |
Changed | 1 | 2 |
Inserted | 0 | 0 |
Removed | 0 | 0 |
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 |
No regular expressions were active.
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 CLASS_CO DE_DOCUMEN TS = "CLAS S_CODE.DOC UMENTS"; | |
365 | privat e final st atic Strin g CLASS_CO DE_IMMUNIZ ATIONS = " CLASS_CODE .IMMUNIZAT IONS"; | |
366 | privat e final st atic Strin g CLASS_CO DE_PROCEDU RES = "CLA SS_CODE.PR OCEDURES"; | |
367 | privat e final st atic Strin g CLASS_CO DE_INPATIE NT_SUMMARI ES = "CLAS S_CODE.INP ATIENT_SUM MARIES"; | |
368 | privat e final st atic Strin g CLASS_CO DE_CONSULT _ENCOUNTER S = "CLASS _CODE.CONS ULT_ENCOUN TERS"; | |
369 | privat e final st atic Strin g CLASS_CO DE_OUTPATI ENT_ENCOUN TERS = "CL ASS_CODE.O UTPATIENT_ ENCOUNTERS "; | |
370 | privat e final st atic Strin g CLASS_CO DE_OUTPATI ENT_MEDICA TIONS = "C LASS_CODE. OUTPATIENT _MEDICATIO NS"; | |
371 | privat e final st atic Strin g CLASS_CO DE_LAB_RES ULTS = "CL ASS_CODE.L AB_RESULTS "; | |
372 | privat e final st atic Strin g CLASS_CO DE_RADIOLO GY_REPORTS = "CLASS_ CODE.RADIO LOGY_REPOR TS"; | |
373 | privat e final st atic Strin g CLASS_CO DE_PROGRES S_NOTES = "CLASS_COD E.PROGRESS _NOTES"; | |
374 | privat e final st atic Strin g CLASS_CO DE_VLER_DO CUMENTS = "CLASS_COD E.VLER_DOC UMENTS"; | |
375 | ||
376 | ||
377 | privat e static f inal AppCo nfig INSTA NCE = new AppConfig( ); | |
378 | ||
379 | privat e Properti es appProp erties; | |
380 | ||
381 | privat e AppConfi g() { | |
382 | ||
383 | ap pPropertie s = new Pr operties() ; | |
384 | ||
385 | lo adAppMetaP roperties( ); | |
386 | lo adAppConfi gPropertie s(); | |
387 | } | |
388 | ||
389 | privat e void loa dAppMetaPr operties() { | |
390 | St ring prope rtiesFile = "applica tion.prope rties"; | |
391 | ||
392 | In putStream inputStrea m = null; | |
393 | ||
394 | Cl assLoader classLoade r = AppCon fig.class. getClassLo ader(); | |
395 | if (classLoa der != nul l) { | |
396 | inputStr eam = clas sLoader.ge tResourceA sStream(pr opertiesFi le); | |
397 | } | |
398 | ||
399 | tr y { | |
400 | appPrope rties.load (inputStre am); | |
401 | } catch (IOE xception e ) { | |
402 | LOGGER.e rror("Fail ed load ap plication. properties : " + e.ge tMessage() ); | |
403 | throw ne w RuntimeE xception(e ); | |
404 | } finally { | |
405 | try { | |
406 | if ( inputStrea m != null) { | |
407 | inputStrea m.close(); | |
408 | } | |
409 | } catch (IOExcepti on e) { | |
410 | LOGG ER.error(e .getMessag e()); | |
411 | } | |
412 | } | |
413 | } | |
414 | ||
415 | privat e void loa dAppConfig Properties () { | |
416 | St ring prope rtiesFile = "jmeadow s.properti es"; | |
417 | ||
418 | In putStream inputStrea m = null; | |
419 | ||
420 | Cl assLoader classLoade r = AppCon fig.class. getClassLo ader(); | |
421 | if (classLoa der != nul l) { | |
422 | inputStr eam = clas sLoader.ge tResourceA sStream(pr opertiesFi le); | |
423 | } | |
424 | ||
425 | if (inputStr eam != nul l) { | |
426 | try { | |
427 | appP roperties. load(input Stream); | |
428 | } catch (IOExcepti on e) { | |
429 | LOGG ER.error(" Failed loa d appconfi g properti es: " + e. getMessage ()); | |
430 | thro w new Runt imeExcepti on(e); | |
431 | } finall y { | |
432 | try { | |
433 | inputStrea m.close(); | |
434 | } ca tch (IOExc eption e) { | |
435 | LOGGER.err or(e.getMe ssage()); | |
436 | } | |
437 | } | |
438 | } | |
439 | ||
440 | tr y { | |
441 | ||
442 | inputStr eam = new FileInputS tream(prop ertiesFile ); | |
443 | ||
444 | try { | |
445 | appP roperties. load(input Stream); | |
446 | } catch (IOExcepti on e) { | |
447 | LOGG ER.error(" Failed loa d appconfi g properti es: " + e. getLocaliz edMessage( )); | |
448 | thro w new Runt imeExcepti on(e); | |
449 | } finall y { | |
450 | try { | |
451 | inputStrea m.close(); | |
452 | } ca tch (IOExc eption e) { | |
453 | LOGGER.err or(e.getMe ssage()); | |
454 | } | |
455 | } | |
456 | ||
457 | } catch (Fil eNotFoundE xception e ) { | |
458 | LOGGER.i nfo("Faile d to load appconfig from file (jmeadows. properties ) -" | |
459 | + " utiliz ing defaul t appconfi g properti es."); | |
460 | ||
461 | } | |
462 | } | |
463 | ||
464 | // priv ate void l ogConfigs( ) | |
465 | // { | |
466 | // //log some jMeadows configurat ion values | |
467 | // logger.inf o("Local V A site cod e: {}", ge tLocalVASi teCode()); | |
468 | // logger.inf o("Local V A site nam e: {}", ge tLocalVASi teName()); | |
469 | // logger.inf o("Local V A site mon iker: {}", getLocalV ASiteMonik er()); | |
470 | // | |
471 | // logger.inf o("Local D oD site co de: {}", g etLocalDOD SiteCode() ); | |
472 | // logger.inf o("Local D oD site na me: {}", g etLocalDOD SiteName() ); | |
473 | // logger.inf o("Local D oD site mo niker {}", getLocalD ODSiteName ()); | |
474 | // | |
475 | // logger.inf o("MPI ena bled: {}", isMPIEnab led()); | |
476 | // logger.inf o("Pix ser vice enabl ed: {}", i sPIXServic eEnabled() ); | |
477 | ||
478 | // logger.inf o("Utilize MSI locat ion's url as webserv ice endpoi nt value: {}", useMS IEndpoint( )); | |
479 | // logger.inf o("Query u ser locati on using N PI enabled : {}", isP roviderNPI LocationQu eryEnabled ()); | |
480 | // | |
481 | // logger.inf o("CHCSWS endpoint: {}", getCH CSWSURL()) ; | |
482 | // logger.inf o("VistaDa taService endpoint: {}", getVi staWsURL() ); | |
483 | // logger.inf o("PIX ser vice endpo int: {}", getPIXURL( )); | |
484 | // logger.inf o("BHIERel ayService endpoint: {}", getBH IERelaySer viceURL()) ; | |
485 | // logger.inf o("JALFHCC alert ser vice endpo int: {}", getAlertSe rviceURL() ); | |
486 | // logger.inf o("DREnj e nabled: {} ", isDREnj ServiceEna bled()); | |
487 | // logger.inf o("DREnj U RL: {}", g etDREnjURL ()); | |
488 | // logger.inf o("SHARE e nabled: {} ", isShare ServiceEna bled()); | |
489 | // logger.inf o("SHARE U RL: {}", g etShareURL ()); | |
490 | // logger.inf o("PDWS UR L: {}", ge tPDWSURL() ); | |
491 | // | |
492 | // logger.inf o("BHIE al lergies en abled: {}" , isBHIEAl lergiesEna bled()); | |
493 | // logger.inf o("BHIE pr oblems lis t enabled: {}", isBH IEProblems Enabled()) ; | |
494 | // logger.inf o("BHIE pr ogress not es enabled : {}", isB HIEProgres sNotesEnab led()); | |
495 | // logger.inf o("BHIE di scharge su mmaries en abled: {}" + isBHIED ischargeSu mmariesEna bled()); | |
496 | // logger.inf o("BHIE vi tals enabl ed: {}", i sBHIEVital sEnabled() ); | |
497 | // logger.inf o("BHIE ap pointments enabled: {}", isBHI EAppointme ntsEnabled ()); | |
498 | // logger.inf o("BHIE co nsults ena bled: {}", isBHIECon sultsEnabl ed()); | |
499 | // logger.inf o("BHIE de mographics enabled: {}", isBHI EDemograph icDetailsE nabled()); | |
500 | // logger.inf o("BHIE de mographic details en abled: {}" , isBHIEDe mographicD etailsEnab led()); | |
501 | // logger.inf o("BHIE ou tpatient m edications enabled: {}", isBHI EOutpatien tMedicatio nsEnabled( )); | |
502 | // logger.inf o("BHIE in patient me dications enabled: { }" + isBHI EInpatient Medication sEnabled() ); | |
503 | // logger.inf o("BHIE ra diology re sults enab led: {}" + isBHIERad iologyEnab led()); | |
504 | // | |
505 | // logger.inf o("BHIE ut ilize pati ent EDIPN (EDIPI): { }", isBHIE UtilizePat ientEDIPN( )); | |
506 | // logger.inf o("BHIE CH CS namespa ce: {}", g etBHIECHCS Namespace( )); | |
507 | // } | |
508 | ||
509 | public static fi nal AppCon fig getIns tance() { | |
510 | re turn INSTA NCE; | |
511 | } | |
512 | ||
513 | /** | |
514 | * Sit e moniker to return with BHIE error bean (utilized when BHIE connectio n is unava ilable). | |
515 | */ | |
516 | public final Str ing getBHI EErrorSite Moniker() { | |
517 | re turn appPr operties.g etProperty (BHIE_ERRO R_SITE_MON IKER); | |
518 | } | |
519 | ||
520 | /** | |
521 | * jMe adows vers ion number . | |
522 | */ | |
523 | public final Str ing getApp Version() { | |
524 | re turn appPr operties.g etProperty (APP_VERSI ON); | |
525 | } | |
526 | ||
527 | public final Str ing getDat aSource() { | |
528 | re turn appPr operties.g etProperty (APP_DATAS OURCE); | |
529 | } | |
530 | ||
531 | /** | |
532 | * jMe adows app environmen t. | |
533 | */ | |
534 | public final Str ing getApp Environmen t() { | |
535 | re turn appPr operties.g etProperty (APP_ENVIR ONMENT); | |
536 | } | |
537 | ||
538 | /** | |
539 | * log 4j propert ies file p ath. | |
540 | */ | |
541 | public final Str ing getLog 4jProperti es() { | |
542 | re turn appPr operties.g etProperty (LOG4J_PRO PERTIES); | |
543 | } | |
544 | ||
545 | /** | |
546 | * CHC SWS endpoi nt. | |
547 | */ | |
548 | public final Str ing getCHC SWSURL() { | |
549 | re turn appPr operties.g etProperty (CHCS_URL) ; | |
550 | } | |
551 | ||
552 | /** BH IE/DoD ada pter clini cal domain enablemen t configur ations. BH IE use is for DoD da ta only, n ot VA. | |
553 | * Pl ease note that if BH IE IS enab led for a given doma in CHCS wi ll NOT be queried. | |
554 | * Li kewise, if BHIE is N OT enabled , CHCS is queried by default. | |
555 | **/ | |
556 | ||
557 | /** | |
558 | * Vis taDataServ ice endpoi nt. | |
559 | */ | |
560 | public final Str ing getVis taWsURL() { | |
561 | re turn appPr operties.g etProperty (VISTA_URL ); | |
562 | } | |
563 | ||
564 | /** | |
565 | * MVI endpoint. | |
566 | */ | |
567 | public final Str ing getMVI URL() { | |
568 | re turn appPr operties.g etProperty (MVI_URL); | |
569 | } | |
570 | ||
571 | /** | |
572 | * MVI HL7 Messa ge Sender Device ID. | |
573 | */ | |
574 | public final Str ing getMVI SndDevId() { return appPropert ies.getPro perty(MVI_ SND_DEV_ID ); } | |
575 | ||
576 | /** | |
577 | * MVI search re sult quant ity. | |
578 | */ | |
579 | public final int getMVISea rchQty() { return In teger.pars eInt(appPr operties.g etProperty (MVI_SEARC H_QTY)); } | |
580 | ||
581 | /** | |
582 | * Res trict VA u ser access to DoD-on ly patient informati on. | |
583 | */ | |
584 | public final Str ing getVaU serRestric t() { | |
585 | re turn appPr operties.g etProperty (VA_USER_R ESTRICT); | |
586 | } | |
587 | ||
588 | /** | |
589 | * All ow VA user access to DoD-only patient in formation (Audited a nd prompte d). | |
590 | */ | |
591 | public final Str ing getVaU serAllowRe strictAcce ss() { | |
592 | re turn appPr operties.g etProperty (VA_USER_A LLOW_RESTR ICT_ACCESS ); | |
593 | } | |
594 | ||
595 | /** | |
596 | * PIX service e ndpoint. | |
597 | */ | |
598 | public final Str ing getPIX URL() { | |
599 | re turn appPr operties.g etProperty (PIX_URL); | |
600 | } | |
601 | ||
602 | /** | |
603 | * BHI ERelayServ ice endpoi nt. | |
604 | */ | |
605 | public final Str ing getBHI ERelayServ iceURL() { | |
606 | re turn appPr operties.g etProperty (BHIE_RELA Y_SERVICE_ URL); | |
607 | } | |
608 | ||
609 | /** | |
610 | * PDW SService e ndpoint. | |
611 | */ | |
612 | public final Str ing getPdw sPsUrl() { | |
613 | re turn appPr operties.g etProperty (PDWS_PS_U RL); | |
614 | } | |
615 | public final Str ing getPdw sPrUrl() { return ap pPropertie s.getPrope rty(PDWS_P R_URL); } | |
616 | public final Str ing getPdw sFsUrl() { | |
617 | re turn appPr operties.g etProperty (PDWS_FS_U RL); | |
618 | } | |
619 | public final Str ing getPdw sFrUrl() { return ap pPropertie s.getPrope rty(PDWS_F R_URL); } | |
620 | ||
621 | /** | |
622 | * PDW SService e ndpoint. | |
623 | */ | |
624 | public final Str ing getPDW SProcCode( ) { | |
625 | re turn appPr operties.g etProperty (PDWS_PROC _CODE); | |
626 | } | |
627 | ||
628 | /** | |
629 | * PDW SService e ndpoint. | |
630 | */ | |
631 | public final Str ing getPDW SSndDevId( ) { | |
632 | re turn appPr operties.g etProperty (PDWS_SND_ DEV_ID); | |
633 | } | |
634 | ||
635 | /** | |
636 | * PDW SService d ebug flag. | |
637 | */ | |
638 | public final Str ing getPDW SDebugFlag () { | |
639 | re turn appPr operties.g etProperty (DEBUG_SOA P_OUTPUT); | |
640 | } | |
641 | ||
642 | ||
643 | /** | |
644 | * CHC SWS userna me. | |
645 | */ | |
646 | public final Str ing getCHC SWSUsernam e() { | |
647 | re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (CHCSWS_US ERNAME)); | |
648 | } | |
649 | ||
650 | /** | |
651 | * CHC SWS pwd. | |
652 | */ | |
653 | public final Str ing getCHC SWSPasswor d() { | |
654 | re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (CHCSWS_PW D)); | |
655 | } | |
656 | ||
657 | /** | |
658 | * BHI ERelayServ ice userna me. | |
659 | */ | |
660 | public final Str ing getBHI ERelayServ iceUsernam e() { | |
661 | re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (BHIE_RELA Y_SERVICE_ USERNAME)) ; | |
662 | } | |
663 | ||
664 | /** | |
665 | * BHI ERelayServ ice pwd. | |
666 | */ | |
667 | public final Str ing getBHI ERelayServ icePasswor d() { | |
668 | re turn Encry ptUtil.dec rypt(appPr operties.g etProperty (BHIE_RELA Y_SERVICE_ PWD)); | |
669 | } | |
670 | ||
671 | /** | |
672 | * tru e to relax SSL v3 se curity req uirements. (Use this for debug ging purpo ses only!) . | |
673 | */ | |
674 | public final boo lean isTru stAllSSLHo stnameAndC erts() { | |
675 | re turn Boole an.valueOf (appProper ties.getPr operty(IS_ TRUST_ALL_ SSL_HOSTNA MES_AND_CE RTS)); | |
676 | } | |
677 | ||
678 | /** | |
679 | * tru e to utili ze C3PO fo r as the s ql connect ion poolin g api. | |
680 | * If false, def aults to u tilizing J NDI lookup for conne ction pool . | |
681 | */ | |
682 | public final boo lean useC3 PO() { | |
683 | re turn Boole an.valueOf (appProper ties.getPr operty(USE _C3PO)); | |
684 | } | |
685 | ||
686 | /** | |
687 | * SQL server JD BC connect ion string (for use with C3PO) . | |
688 | */ | |
689 | public final Str ing getSQL URL() { | |
690 | re turn appPr operties.g etProperty (SQL_URL); | |
691 | } | |
692 | ||
693 | /** | |
694 | * SQL server JD BC connect ion string (for use with C3PO) . | |
695 | */ | |
696 | public final Str ing getSQL URLEncrypt ed() { | |
697 | re turn appPr operties.g etProperty (SQL_URL_E NCRYPTED); | |
698 | } | |
699 | ||
700 | /** | |
701 | * SQL server dr iver (for use with C 3PO). | |
702 | */ | |
703 | public final Str ing getSQL Driver() { | |
704 | re turn appPr operties.g etProperty (SQL_DRIVE R); | |
705 | } | |
706 | ||
707 | /** | |
708 | * JDN I connecti on pooling lookup na me. | |
709 | */ | |
710 | public final Str ing getJDB C_JNDILook up() { | |
711 | re turn appPr operties.g etProperty (JNDI_JDBC ); | |
712 | } | |
713 | ||
714 | /** | |
715 | * JDN I connecti on pooling lookup na me. | |
716 | */ | |
717 | public final Str ing getJDB C_JNDILook upEncrypte d() { | |
718 | re turn appPr operties.g etProperty (JNDI_JDBC _ENCRYPTED ); | |
719 | } | |
720 | ||
721 | /** | |
722 | * Gen eral servi ce request timeout s etting in millisecon ds. | |
723 | */ | |
724 | public final int getReques tTimeoutMS () { | |
725 | re turn Integ er.parseIn t(appPrope rties.getP roperty(RE QUEST_TIME OUT_MS)); | |
726 | } | |
727 | ||
728 | /** | |
729 | * Gen eral servi ce connect ion timeou t setting in millise conds. | |
730 | */ | |
731 | public final int getConnec tionTimeou tMS() { | |
732 | re turn Integ er.parseIn t(appPrope rties.getP roperty(CO NNECTION_T IMEOUT_MS) ); | |
733 | } | |
734 | ||
735 | /** | |
736 | * Gen eral threa d timeout in millise conds. | |
737 | */ | |
738 | public final lon g getThrea dTimeoutMS () { | |
739 | re turn Long. parseLong( appPropert ies.getPro perty(THRE AD_TIMEOUT _MS)); | |
740 | } | |
741 | ||
742 | /** | |
743 | * VLE R service request ti meout sett ing in mil liseconds. | |
744 | */ | |
745 | public final int getVLERRe questTimeo utMS() { | |
746 | re turn Integ er.parseIn t(appPrope rties.getP roperty(VL ER_REQUEST _TIMEOUT_M S)); | |
747 | } | |
748 | ||
749 | /** | |
750 | * VLE R service connection timeout s etting in millisecon ds. | |
751 | */ | |
752 | public final int getVLERCo nnectionTi meoutMS() { | |
753 | re turn Integ er.parseIn t(appPrope rties.getP roperty(VL ER_CONNECT ION_TIMEOU T_MS)); | |
754 | } | |
755 | ||
756 | /** | |
757 | * BHI E custodia n OIDs. Ea ch OID rep resents a particular data site that BHIE aggregate s from. | |
758 | * The se custodi an OIDs ar e included as BHIE q uery inclu ded or exc luded site parameter s. | |
759 | */ | |
760 | ||
761 | /** | |
762 | * Def ault error message s tring. | |
763 | */ | |
764 | public final Str ing getErr orMsgConne ctionUnava ilable() { | |
765 | re turn appPr operties.g etProperty (ERROR_MSG _CONNECTIO N_UNAVAILA BLE); | |
766 | } | |
767 | ||
768 | /** | |
769 | * Def ault edr s ervice rel ated error message s tring. | |
770 | */ | |
771 | public final Str ing getErr orMsgEDRDo cs() { | |
772 | re turn appPr operties.g etProperty (ERROR_MSG _EDR_DOCS) ; | |
773 | } | |
774 | ||
775 | /** | |
776 | * AHL TA custodi an OID. | |
777 | */ | |
778 | public final Str ing getBHI ECustodian OidAHLTA() { | |
779 | re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ AHLTA); | |
780 | } | |
781 | ||
782 | /** | |
783 | * VA custodian OID. | |
784 | */ | |
785 | public final Str ing getBHI ECustodian OidVA() { | |
786 | re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ VA); | |
787 | } | |
788 | ||
789 | /** | |
790 | * TMD S custodia n OID. | |
791 | */ | |
792 | public final Str ing getBHI ECustodian OidTMDS() { | |
793 | re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ TMDS); | |
794 | } | |
795 | ||
796 | /** | |
797 | * FHI E custodia n OID. | |
798 | */ | |
799 | public final Str ing getBHI ECustodian OidFHIE() { | |
800 | re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ FHIE); | |
801 | } | |
802 | ||
803 | /** | |
804 | * ESS ENTRIS cus todian OID . | |
805 | */ | |
806 | public final Str ing getBHI ECustodian OidESS() { | |
807 | re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ ESS); | |
808 | } | |
809 | ||
810 | /** | |
811 | * CHC S custodia n OID. | |
812 | */ | |
813 | public final Str ing getBHI ECustodian OidCHCS() { | |
814 | re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ CHCS); | |
815 | } | |
816 | ||
817 | /** | |
818 | * SHA RE custodi an OID. | |
819 | */ | |
820 | public final Str ing getBHI ECustodian OidSHARE() { | |
821 | re turn appPr operties.g etProperty (BHIE_CUST ODIAN_OID_ SHARE); | |
822 | } | |
823 | ||
824 | /** | |
825 | * Sit e code to return wit h BHIE err or beans ( utilized w hen BHIE c onnection is unavail able). | |
826 | */ | |
827 | public final Str ing getBHI EErrorSite Code() { | |
828 | re turn appPr operties.g etProperty (BHIE_ERRO R_SITE_COD E); | |
829 | } | |
830 | ||
831 | /** | |
832 | * Sit e name to return wit h BHIE err or bean (u tilized wh en BHIE co nnection i s unavaila ble). | |
833 | */ | |
834 | public final Str ing getBHI EErrorSite Name() { | |
835 | re turn appPr operties.g etProperty (BHIE_ERRO R_SITE_NAM E); | |
836 | } | |
837 | ||
838 | /** | |
839 | * The local VA facility's patient I EN OID - f or use wit h the PIX Service pa tient iden tifier map . | |
840 | * (2. 16.840.1.1 13883.3.42 .10006.100 005.8 for North Chic ago VA) | |
841 | */ | |
842 | public final Str ing getLoc alVAIenOid () { | |
843 | re turn appPr operties.g etProperty (LOCAL_VA_ IEN_OID); | |
844 | } | |
845 | ||
846 | /** | |
847 | * Vis ta enterpr ise ICN OI D - for us e with the PIX Servi ce patient identifie r map. | |
848 | */ | |
849 | public final Str ing getVis taIcnOid() { | |
850 | re turn appPr operties.g etProperty (VISTA_ICN _OID); | |
851 | } | |
852 | ||
853 | public final Str ing getDOD EdipnOid() { | |
854 | re turn appPr operties.g etProperty (DOD_EDIPN _OID); | |
855 | } | |
856 | ||
857 | /** | |
858 | * VA agency nam e string S hould be c onfigured as VA | |
859 | */ | |
860 | public final Str ing getAge ncyVA() { | |
861 | re turn appPr operties.g etProperty (AGENCY_VA ); | |
862 | } | |
863 | ||
864 | /** | |
865 | * DOD agency na me string. Should be configure d as DOD | |
866 | */ | |
867 | public final Str ing getAge ncyDOD() { | |
868 | re turn appPr operties.g etProperty (AGENCY_DO D); | |
869 | } | |
870 | ||
871 | //meth ods that r eturn stat ic constan ts | |
872 | ||
873 | public final Str ing getDOD AdapterSou rceStatusR eportFlag( ) { | |
874 | re turn CONST _DODADAPTE R_SOURCE_S TATUS_REPO RT_FLAG; | |
875 | } | |
876 | ||
877 | public final Str ing getSys temTypeCHC S() { | |
878 | re turn CONST _SYSTEM_TY PE_CHCS; | |
879 | } | |
880 | ||
881 | public final Str ing getSys temTypeVIS TA() { | |
882 | re turn CONST _SYSTEM_TY PE_VISTA; | |
883 | } | |
884 | ||
885 | public final Str ing getCon stSystemTy peShare() { | |
886 | re turn CONST _SYSTEM_TY PE_SHARE; | |
887 | } | |
888 | ||
889 | public final Str ing getSys temTypeDOD Adapter() { | |
890 | re turn CONST _SYSTEM_TY PE_DOD_ADA PTER; | |
891 | } | |
892 | ||
893 | public final Str ing getSou rceProtoco lCache() { | |
894 | re turn CONST _SOURCE_PR OTOCOL_CAC HE; | |
895 | } | |
896 | ||
897 | public final Str ing getSou rceProtoco lRPC() { | |
898 | re turn CONST _SOURCE_PR OTOCOL_RPC ; | |
899 | } | |
900 | ||
901 | public final Str ing getSou rceProtoco lMedweb() { | |
902 | re turn CONST _SOURCE_PR OTOCOL_MED WEB; | |
903 | } | |
904 | ||
905 | public final Str ing getSou rceProtoco lDODAdapte r() { | |
906 | re turn CONST _SOURCE_PR OTOCOL_DOD _ADAPTER; | |
907 | } | |
908 | ||
909 | public final Str ing getSou rceProtoco lShare() { | |
910 | re turn CONST _SOURCE_PR OTOCOL_SHA RE; | |
911 | } | |
912 | ||
913 | public final Str ing getIde ntifierUna vailableFl ag() { | |
914 | re turn IDENT IFIER_UNAV AILABLE_FL AG; | |
915 | } | |
916 | ||
917 | public final Str ing getEHC acheNameSi teMap() { | |
918 | re turn appPr operties.g etProperty (EHCACHE_N AME_SITEMA P); | |
919 | } | |
920 | ||
921 | public final Str ing getRPC EndpointEn vironment( ) { | |
922 | re turn appPr operties.g etProperty (RPC_ENDPO INT_ENVIRO NMENT); | |
923 | } | |
924 | ||
925 | public final Str ing getCac heEndpoint Environmen t() { | |
926 | re turn appPr operties.g etProperty (CACHE_END POINT_ENVI RONMENT); | |
927 | } | |
928 | ||
929 | public final Str ing getSha reEndpoint Environmen t() { | |
930 | re turn appPr operties.g etProperty (SHARE_END POINT_ENVI RONMENT); | |
931 | } | |
932 | ||
933 | public final Str ing getMed webEndpoin tEnvironme nt() { | |
934 | re turn appPr operties.g etProperty (MEDWEB_EN DPOINT_ENV IRONMENT); | |
935 | } | |
936 | ||
937 | public final Str ing getAhl taEndpoint Environmen t() { | |
938 | re turn appPr operties.g etProperty (AHLTA_END POINT_ENVI RONMENT); | |
939 | } | |
940 | ||
941 | public final Str ing getLoc alCHCSSite Code() { | |
942 | re turn appPr operties.g etProperty (LOCAL_CHC S_SITECODE ); | |
943 | } | |
944 | ||
945 | public final Str ing getLoc alVistaSit eCode() { | |
946 | re turn appPr operties.g etProperty (LOCAL_VIS TA_SITECOD E); | |
947 | } | |
948 | ||
949 | /** | |
950 | * tru e to utili ze HashMap as cache for termin ology mapp ing. | |
951 | * If false, to utilize SQ L server f or mapping without h ashmap cac he. | |
952 | */ | |
953 | public final boo lean useTe rmMappingC ache() { | |
954 | re turn Boole an.valueOf (appProper ties.getPr operty(USE _TERM_MAPP ING_CACHE) ); | |
955 | } | |
956 | ||
957 | /** | |
958 | * Loa d mapping data from SQL Server on startu p. | |
959 | */ | |
960 | public final boo lean loadV LERSiteCac he() { | |
961 | re turn Boole an.valueOf (appProper ties.getPr operty(LOA D_VLER_SIT E_CACHE)); | |
962 | } | |
963 | ||
964 | /** | |
965 | * tru e to use s nareworks instead of database whitelist. | |
966 | */ | |
967 | public final boo lean useSn areworks() { | |
968 | re turn Boole an.valueOf (appProper ties.getPr operty(USE _SNAREWORK S)); | |
969 | } | |
970 | ||
971 | /** | |
972 | * DMI S IDs and facilities used for mapping DM IS IDs to clinic nam es for pat ient demog raphic's P CM clinic | |
973 | */ | |
974 | public final Str ing getDmi sFileName( ) { | |
975 | re turn appPr operties.g etProperty (DMIS_FILE _NAME); | |
976 | } | |
977 | public final Str ing getDmi sTokenDeli m() { | |
978 | re turn appPr operties.g etProperty (DMIS_TOKE N_DELIM); | |
979 | } | |
980 | public final int getDmisId TokenPos() { | |
981 | re turn Integ er.parseIn t(appPrope rties.getP roperty(DM IS_ID_TOKE N_POS)); | |
982 | } | |
983 | public final int getDmisNa meTokenPos () { | |
984 | re turn Integ er.parseIn t(appPrope rties.getP roperty(DM IS_NAME_TO KEN_POS)); | |
985 | } | |
986 | ||
987 | public final Str ing getLa bTypeCh() { | |
988 | re turn appPr operties.g etProperty (LAB_TYPE_ CH); | |
989 | } | |
990 | ||
991 | public final Str ing getLab TypeMi() { | |
992 | re turn appPr operties.g etProperty (LAB_TYPE_ MI); | |
993 | } | |
994 | ||
995 | public final Str ing getLab TypeAp() { | |
996 | re turn appPr operties.g etProperty (LAB_TYPE_ AP); | |
997 | } | |
998 | ||
999 | public final Str ing getLab TypeEm() { | |
1000 | re turn appPr operties.g etProperty (LAB_TYPE_ EM); | |
1001 | } | |
1002 | ||
1003 | public final Str ing getLab TypeSp() { | |
1004 | re turn appPr operties.g etProperty (LAB_TYPE_ SP); | |
1005 | } | |
1006 | ||
1007 | public final Str ing getLab TypeSt() { | |
1008 | re turn appPr operties.g etProperty (LAB_TYPE_ ST); | |
1009 | } | |
1010 | ||
1011 | public final Str ing getLab TypeCy() { | |
1012 | re turn appPr operties.g etProperty (LAB_TYPE_ CY); | |
1013 | } | |
1014 | ||
1015 | public final Str ing getLab TypeAu() { | |
1016 | re turn appPr operties.g etProperty (LAB_TYPE_ AU); | |
1017 | } | |
1018 | ||
1019 | public final Str ing getLab TypeBb() { | |
1020 | re turn appPr operties.g etProperty (LAB_TYPE_ BB); | |
1021 | } | |
1022 | ||
1023 | public final Str ing getLab TypeHiv() { | |
1024 | re turn appPr operties.g etProperty (LAB_TYPE_ HIV); | |
1025 | } | |
1026 | ||
1027 | public final boo lean isVix DodRadiolo gyRetrieve Enabled() { | |
1028 | re turn Boole an.valueOf (appProper ties.getPr operty(ENA BLE_VIX_DO D_RADIOLOG Y_RETRIEVE , "false") ); | |
1029 | } | |
1030 | ||
1031 | public final Str ing getVix DodRadExam IdDelim() { | |
1032 | re turn appPr operties.g etProperty (VIX_DOD_R AD_EXAM_ID _DELIM, "# - "); | |
1033 | } | |
1034 | ||
1035 | public final Str ing getVix OrphanedKe yword() { | |
1036 | re turn appPr operties.g etProperty (VIX_ORPHA NED_KEYWOR D, "vastud y:"); | |
1037 | } | |
1038 | ||
1039 | /** | |
1040 | * @re turn the a ppProperti es | |
1041 | */ | |
1042 | public Propertie s getPrope rties() { | |
1043 | re turn appPr operties; | |
1044 | } | |
1045 | ||
1046 | public final Str ing getEnv () {return appProper ties.getPr operty(ENV );} | |
1047 | ||
1048 | /** | |
1049 | * tru e to use a ny enhance d debuggin g code | |
1050 | */ | |
1051 | public final boo lean useEn hancedDebu g() { | |
1052 | re turn Boole an.valueOf (appProper ties.getPr operty(USE _ENHANCED_ DEBUG)); | |
1053 | } | |
1054 | ||
1055 | public final boo lean isDES Ready() { | |
1056 | re turn Boole an.valueOf (appProper ties.getPr operty(DES _READY, "f alse")); | |
1057 | } | |
1058 | ||
1059 | public final Str ing getLan guageCode( ) { | |
1060 | re turn appPr operties.g etProperty (LANGUAGE_ CODE); | |
1061 | } | |
1062 | ||
1063 | public final Str ing getLan guageDescr iption() { | |
1064 | re turn appPr operties.g etProperty (LANGUAGE_ DESCRIPTIO N); | |
1065 | } | |
1066 | ||
1067 | /** | |
1068 | * tru e to disab le cached thread poo ls (unlimi ted size) | |
1069 | * If false, swi tches to f ixed threa d pools. | |
1070 | */ | |
1071 | public final boo lean disab leCachedTh readPool() { | |
1072 | re turn Boole an.valueOf (appProper ties.getPr operty(DIS ABLE_CACHE D_THREAD_P OOL)); | |
1073 | } | |
1074 | ||
1075 | /** | |
1076 | * Thr ead keep a live is us ed for the cached th read pools , it is ho w long a t hread stay s | |
1077 | * ali ve waiting for work. | |
1078 | */ | |
1079 | public final lon g getThrea dKeepalive Sec() { | |
1080 | re turn Long. parseLong( appPropert ies.getPro perty(THRE AD_KEEPALI VE_SECONDS )); | |
1081 | } | |
1082 | ||
1083 | public final int getMaxThr eadpoolSiz e() { | |
1084 | in t maxSize = 5000; | |
1085 | tr y { | |
1086 | maxSize = Integer. parseInt(a ppProperti es.getProp erty(MAX_T HREADPOOL_ SIZE)); | |
1087 | } catch (Num berFormatE xception n fe) { | |
1088 | LOGGER.e rror("Bad format MAX _THREADPOO L_SIZE set in proper ties, will use {}", maxSize); | |
1089 | } | |
1090 | re turn maxSi ze; | |
1091 | } | |
1092 | ||
1093 | public final int getNumVds RejectedRe tries() { | |
1094 | in t retries = 2; | |
1095 | tr y { | |
1096 | retries = Integer. parseInt(a ppProperti es.getProp erty(NUM_V DS_REJECTE D_RETRIES) ); | |
1097 | } catch (Num berFormatE xception n fe) { | |
1098 | LOGGER.e rror("Bad format NUM _VDS_REJEC TED_RETRIE S set in p roperties, will use {}", retri es); | |
1099 | } | |
1100 | re turn retri es; | |
1101 | } | |
1102 | ||
1103 | public final int getVdsRej ectedRetry DelayMs() { | |
1104 | in t waitTime Ms = 1000; | |
1105 | tr y { | |
1106 | waitTime Ms = Integ er.parseIn t(appPrope rties.getP roperty(VD S_REJECTED _RETRY_DEL AY_MS)); | |
1107 | } catch (Num berFormatE xception n fe) { | |
1108 | LOGGER.e rror("Bad format VDS _REJECTED_ RETRY_DELA Y_MS set i n properti es, will u se {}", wa itTimeMs); | |
1109 | } | |
1110 | re turn waitT imeMs; | |
1111 | } | |
1112 | ||
1113 | public final Str ing getCla ssCodesDoc uments() { | |
1114 | re turn appPr operties.g etProperty (CLASS_COD E_DOCUMENT S, ""); | |
1115 | } | |
1116 | public final Str ing getCla ssCodesImm unizations () { | |
1117 | re turn appPr operties.g etProperty (CLASS_COD E_IMMUNIZA TIONS, "") ; | |
1118 | } | |
1119 | ||
1120 | public final Str ing getCla ssCodesPro cedures() { | |
1121 | re turn appPr operties.g etProperty (CLASS_COD E_PROCEDUR ES, ""); | |
1122 | } | |
1123 | ||
1124 | public final Str ing getCla ssCodesInp atientSumm aries() { | |
1125 | re turn appPr operties.g etProperty (CLASS_COD E_INPATIEN T_SUMMARIE S, ""); | |
1126 | } | |
1127 | public final Str ing getCla ssCodesCon sultEncoun ters() { | |
1128 | re turn appPr operties.g etProperty (CLASS_COD E_CONSULT_ ENCOUNTERS , ""); | |
1129 | } | |
1130 | public final Str ing getCla ssCodesOut patientEnc ounters() { | |
1131 | re turn appPr operties.g etProperty (CLASS_COD E_OUTPATIE NT_ENCOUNT ERS, ""); | |
1132 | } | |
1133 | public final Str ing getCla ssCodesOut patientMed ications() { | |
1134 | re turn appPr operties.g etProperty (CLASS_COD E_OUTPATIE NT_MEDICAT IONS, ""); | |
1135 | } | |
1136 | public final Str ing getCla ssCodesLab Results() { | |
1137 | re turn appPr operties.g etProperty (CLASS_COD E_LAB_RESU LTS, ""); | |
1138 | } | |
1139 | public final Str ing getCla ssCodesRad iologyRepo rts() { | |
1140 | re turn appPr operties.g etProperty (CLASS_COD E_RADIOLOG Y_REPORTS, ""); | |
1141 | } | |
1142 | public final Str ing getCla ssCodesPro gressNotes () { | |
1143 | re turn appPr operties.g etProperty (CLASS_COD E_PROGRESS _NOTES, "" ); | |
1144 | } | |
1145 | public final Str ing getCla ssCodesVLE RDocuments () { | |
1146 | re turn appPr operties.g etProperty (CLASS_COD E_VLER_DOC UMENTS, "" ); | |
1147 | } | |
1148 | ||
1149 | ||
1150 | ||
1151 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.