Produced by Araxis Merge on 6/9/2017 9:11:58 AM 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 | VistA_Evo_Surgery_V1.0.zip\srgui\src\js | api.js | Tue Jun 6 16:51:56 2017 UTC |
| 2 | VistA_Evo_Surgery_V1.0.zip\srgui\src\js | api.js | Thu Jun 8 15:46:29 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 390 |
| 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 | "use stric t"; | |
| 2 | const conf ig = requi re("./env. json"); | |
| 3 | ||
| 4 | let API_Ba se = confi g.NODE_API _EXTERNAL; | |
| 5 | console.lo g("ENV - " , config.N ODE_ENV); | |
| 6 | if ("devel op" == con fig.NODE_E NV) { | |
| 7 | AP I_Base = c onfig.NODE _API_INTER NAL; | |
| 8 | } | |
| 9 | console.lo g("API_Bas e - ", API _Base); | |
| 10 | ||
| 11 | /** | |
| 12 | * Here's where any constants for the AP I and non API URL's should be going | |
| 13 | **/ | |
| 14 | ||
| 15 | ||
| 16 | const Gene ricHelpURL = "http:/ / URL /pm/iehr/v ista_evolu tion/eHMP/ Help_Wiki/ Wiki%20Pag e%20Librar y/Accessin g%20the%20 eHMP%20App lication.a spx"; | |
| 17 | const APIR outes = { | |
| 18 | ||
| 19 | // Base | |
| 20 | "A PI_Base": API_Base, | |
| 21 | ||
| 22 | // API calls below her e DO NOT r equre acce ss token | |
| 23 | "A uthenticat e": "authe nticate", | |
| 24 | "F acilities" : "facilit ies", | |
| 25 | ||
| 26 | // API calls here are local file s, no acce ss token o r API_Base required | |
| 27 | "V iewRoles": "/data_fi les/view_r oles_map.j son", | |
| 28 | "S SLQIs": "/ data_files /sslqi.jso n", | |
| 29 | "P OC_Countri es": "/dat a_files/po c_countrie s.json", | |
| 30 | "S earchBy": "/data_fil es/search- by.json", | |
| 31 | "C aseByProvi derLocal": "/data_fi les/cases- provider.j son", | |
| 32 | "P roviderWor kTimesLoca l": "/data _files/pro vider-work -times.jso n", | |
| 33 | "A llProvider WorkTimesL ocal": "/d ata_files/ all-provid er-work-ti mes.json", | |
| 34 | ||
| 35 | ||
| 36 | // API calls below her e require access tok en | |
| 37 | "F acilitiesD etails": " v1/facilit ies", | |
| 38 | ||
| 39 | "P atientAll" : "v1/pati ent/all", | |
| 40 | "P atientLast Five": "v1 /patient/f ive/", | |
| 41 | "P atientId": "v1/patie nt/", | |
| 42 | "P atientSSN" : "v1/pati ent/ssn/", | |
| 43 | "P atientSurg eryDetails ": "/v1/su rgery/", | |
| 44 | ||
| 45 | "C ase": "v1/ cases", | |
| 46 | "C aseSearch" : "v1/case s/search", | |
| 47 | "C aseByID": "v1/ca ses/", | |
| 48 | "E xtendedCas e": "v1/ca ses/extend ", | |
| 49 | "L istRoleNam es": "v1/r oles", | |
| 50 | "L istKeys": "v1/roles/ list/keys" , | |
| 51 | "R ooms": "v1 /room/all" , | |
| 52 | "C asesForRoo m": "v1/ca ses/room/: roomid", | |
| 53 | ||
| 54 | "C PT": "v1/c pt/", | |
| 55 | "C PTDuration ": "v1/cpt /config/du ration/", | |
| 56 | "C PTDuration Search": " v1/cpt/con fig/durati on/search" , | |
| 57 | "C PTDuration Calculate" : "v1/cpt/ config/dur ation/calc ulate", | |
| 58 | ||
| 59 | "L istRoles": "v1/roles ", | |
| 60 | "S SLQIReserv ation":"v1 /sslqi/res ervation", | |
| 61 | "S SLQISearch ": "v1/ssl qi/search" , | |
| 62 | "S SLQI": "v1 /sslqi", | |
| 63 | ||
| 64 | // This is t he list of Rooms | |
| 65 | "R oomConfig" : "v1/room /all", | |
| 66 | "R oomEvents" : "v1/room /or/events /", | |
| 67 | // This is t he configs | |
| 68 | "A dminRoomTy peConfig": "v1/speci alty/room/ config/", | |
| 69 | ||
| 70 | "C aseSchedul eType": "v 1/field/ca seSchedule Type", | |
| 71 | "P reOpInfect ion": "v1/ field/preO pInfection ", | |
| 72 | "A nesthesiaT echnique": "v1/field /anesthesi aTechnique ", | |
| 73 | "A dmissionSt atus": "v1 /field/adm issionStat us", | |
| 74 | "I ntraoperat iveXrays": "v1/field /intraoper ativeXrays ", | |
| 75 | "B loodTypeXm atch": "v1/field/ bloodTypeX match", | |
| 76 | "C ancelTimef rame": "v1 /field/can celTimefra me", | |
| 77 | "B loodProduc tInfo": "v 1/field/bl oodProduct Info", | |
| 78 | "P rocedureLa terality": "v1/field /procedure Laterality ", | |
| 79 | "C aseType": "v1/field/ case_type" , | |
| 80 | "C aseStatus" : "v1/fiel d/case_sta tus", | |
| 81 | "C aseByProvi der": "v1/ cases/prov ider", | |
| 82 | "P rovider": "v1/provid er", | |
| 83 | ||
| 84 | "a mbulationD evicePreop ": "v1/fie ld/ambulat ion_device ", | |
| 85 | "a nginaSever ity": "v1/ field/angi na_severit y", | |
| 86 | "a nginaTimef rame": "v1 /field/ang ina_timefr ame", | |
| 87 | "a scites": " v1/field/a scites", | |
| 88 | "b leedingDis orders": " v1/field/b leeding_di sorders", | |
| 89 | "c ardiac": " v1/field/c ardiac", | |
| 90 | "c entral_ner v_sys_illn ess": "v1/ field/cent ral_nerv_s ys_illness ", | |
| 91 | "c hronicSter oidUse": " v1/field/c hronic_ste roid_use", | |
| 92 | "c oma": "v1/ field/coma ", | |
| 93 | "c ongestiveH eartFailur ePreop": " v1/field/c ongestive_ heart_fail ure_preop" , | |
| 94 | "h istoryOfCO PD": "v1/f ield/copd_ history", | |
| 95 | "c urrentPneu monia": "v 1/field/cu rrent_pneu monia", | |
| 96 | "d iabetesMel litusPreop Mgmt": "v1 /field/dia betes_mell itus", | |
| 97 | "d iabetesMel litusChron ic": "v1/f ield/diabe tes_mellit us", | |
| 98 | "d isseminate d_cancer": "v1/field /dissemina ted_cancer ", | |
| 99 | "d nrStatus": "v1/field /dnr_statu s", | |
| 100 | "d onorSerolo gyHIV": "v 1/field/do nor_serolo gy", | |
| 101 | "d yspnea": " v1/field/d yspnea", | |
| 102 | "e sophagealV arices": " v1/field/e sophageal_ varices", | |
| 103 | "p reopFunctH ealthStatu s": "v1/fi eld/functi onal_healt h_status", | |
| 104 | "g astrointes tinal": "v 1/field/ga strointest inal", | |
| 105 | "g eneral": " v1/field/g eneral", | |
| 106 | "h air_remova l_method": "v1/field /hair_remo val_method ", | |
| 107 | "h emiplegia_ hemiparesi s": "v1/fi eld/hemipl egia_hemip aresis", | |
| 108 | "h epatobilia ry": "v1/f ield/hepat obiliary", | |
| 109 | "h istoryOfCV D": "v1/fi eld/histor y_of_cvd", | |
| 110 | "c vdRepair": "v1/field /history_o f_cvd", | |
| 111 | "h omeless": "v1/field/ homeless", | |
| 112 | "h xRadRxPlan nedSurgFie ld": "v1/f ield/hx_ra d_rx_plann ed_surg_fi eld", | |
| 113 | "h ypertensio n": "v1/fi eld/hypert ension", | |
| 114 | "i mpairedCog nitiveFunc tion": "v1 /field/imp aired_cogn itive_func tion", | |
| 115 | "i mpairedSen sorium": " v1/field/i mpaired_se nsorium", | |
| 116 | "c hemoForMal igLastNine ty": "v1/f ield/malig _chemo", | |
| 117 | "b leedingRis kDueToMed" : "v1/fiel d/medicati on_bleedin g_risk", | |
| 118 | "n utritional ImmuneOthe r": "v1/fi eld/nutrit ional_immu ne_other", | |
| 119 | "o n_dialysis ": "v1/fie ld/on_dial ysis", | |
| 120 | "o penWound": "v1/field /open_woun d", | |
| 121 | "p acking": " v1/field/p acking", | |
| 122 | "p atient_edu _assessmen t": "v1/fi eld/patien t_edu_asse ssment", | |
| 123 | "p ci": "v1/f ield/pci", | |
| 124 | "p eripheralA rterialDis ease": "v1 /field/per ipheral_ar terial_dis ease", | |
| 125 | "p ositiveDru gScreening ": "v1/fie ld/positiv e_drug_scr eening", | |
| 126 | "p regnancy": "v1/field /pregnancy ", | |
| 127 | "p reopSepsis ": "v1/fie ld/preop_s epsis", | |
| 128 | "p reopSleepA pnea": "v1 /field/pre op_sleep_a pnea", | |
| 129 | "p riorMI": " v1/field/p rior_mi", | |
| 130 | "p riorSurgSa meOpField" : "v1/fiel d/prior_su rg_same_op _field", | |
| 131 | "p ulmonary": "v1/field /pulmonary ", | |
| 132 | "r adiotherap yLastNinet y": "v1/fi eld/radio_ therapy_la st_ninety" , | |
| 133 | "r enal": "v1 /field/ren al", | |
| 134 | "r enalFailur e": "v1/fi eld/renal_ failure", | |
| 135 | "r esidence30 DaysPreop" : "v1/fiel d/residenc e", | |
| 136 | "r est_pain_g aingrene": "v1/field /rest_pain _gaingrene ", | |
| 137 | "t enPercDecr WeightLoss ": "v1/fie ld/ten_per c_weight_l oss", | |
| 138 | "t obaccoUseT imeframe": "v1/field /tobacco_t imeframe", | |
| 139 | "t obaccoUse" : "v1/fiel d/tobacco_ use", | |
| 140 | "t ransfusion GTFourRBCU nits": "v1 /field/tra nsfusion_g t_four_rbc s", | |
| 141 | "t umor_invol ving_cns": "v1/field /tumor_inv olving_cns ", | |
| 142 | "e tohGTTwoDr inksPerDay ": "v1/fie ld/two_dri nks_day", | |
| 143 | "v ascular": "v1/field/ vascular", | |
| 144 | "v entilatorD ependent": "v1/field /ventilato r_dependen t", | |
| 145 | "w ound_class ification" : "v1/fiel d/wound_cl assificati on", | |
| 146 | ||
| 147 | "P eople": "v 1/list/peo ple/", | |
| 148 | "S pecialty": "v1/list/ specialty/ ", | |
| 149 | "R oomType": "v1/list/o r/types", | |
| 150 | "O RRooms": " v1/list/or ", | |
| 151 | "C aseClosure Reasons": "v1/list/c losureReas ons", | |
| 152 | "C aseCancelR easons": " v1/list/ca ncelReason s", | |
| 153 | "P ostopCare" : "v1/list /postopCar e", | |
| 154 | "P ositions": "v1/list/ positions" , | |
| 155 | "P lannedImpl ants": "v1 /list/plan nedImplant s", | |
| 156 | "S pecialEqui pment": "v 1/list/spe cial/equip ment", | |
| 157 | "S pecialSupp lies": "v1 /list/spec ial/suppli es", | |
| 158 | "S pecialInst ruments": "v1/list/s pecial/ins truments", | |
| 159 | "P harmacyIte ms": "v1/l ist/pharma cyItems", | |
| 160 | "H ospitalLoc ations": " v1/list/ho spitalLoca tions", | |
| 161 | "A ttendingCo des": "v1/ list/atten dingCodes" , | |
| 162 | "A neSuperCod es": "v1/l ist/aneSup erCodes", | |
| 163 | "A saClass": "v1/list/a saClass", | |
| 164 | "I CDCodes": "v1/list/i cd", | |
| 165 | "M edicalSpec ialty": "v 1/list/med icalSpecia lty", | |
| 166 | "N otificatio ns": "v1/n otificatio n", | |
| 167 | "D urationRep ortQuery": "v1/cpt/c onfig/dura tion/searc h" | |
| 168 | ||
| 169 | ||
| 170 | ||
| 171 | ||
| 172 | }; | |
| 173 | ||
| 174 | const getL ocalURL = function(a piName) { | |
| 175 | re turn APIRo utes[apiNa me]; | |
| 176 | }; | |
| 177 | ||
| 178 | const getU RL = funct ion(apiNam e, p1) { | |
| 179 | if (typeof A PIRoutes[a piName] == = "undefin ed") { | |
| 180 | thro w new Erro r("API key " + apiNa me + " not found."); | |
| 181 | } | |
| 182 | ||
| 183 | le t url = AP IRoutes[ap iName]; | |
| 184 | co nst sep = ("/" === u rl.slice(- 1)) ? "" : "/"; | |
| 185 | co nst localU RL = (0 == = url.inde xOf("/data _files")); | |
| 186 | if (!localUR L) { | |
| 187 | url = APIRoute s.API_Base + APIRout es[apiName ] + (p1 ? `${sep}${p 1}` : ""); | |
| 188 | } | |
| 189 | re turn url; | |
| 190 | }; | |
| 191 | ||
| 192 | module.exp orts = { | |
| 193 | ge tLocalURL: getLocalU RL, | |
| 194 | ge tURL: getU RL, | |
| 195 | Ge nericHelpU RL: Generi cHelpURL | |
| 196 | }; |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.