Produced by Araxis Merge on 8/29/2017 11:27:29 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 | REFDOC-devel-20170714.zip\NVCC\NVCC.WebUI\Infrastructure | FakeDataManager.cs | Fri Jul 14 21:26:50 2017 UTC |
| 2 | REFDOC-devel-20170714.zip\NVCC\NVCC.WebUI\Infrastructure | FakeDataManager.cs | Mon Aug 28 17:38:28 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 7 | 642 |
| Changed | 6 | 12 |
| 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 | using NVCC .Models; | |
| 2 | using Syst em; | |
| 3 | using Syst em.Collect ions.Gener ic; | |
| 4 | ||
| 5 | namespace NVCC.WebUI .Infrastru cture | |
| 6 | { | |
| 7 | public static cl ass FakeDa taManager | |
| 8 | { | |
| 9 | pu blic stati c IList<Me dication> GetMedicat ionList() | |
| 10 | { | |
| 11 | var medL ist = new List<Medic ation> | |
| 12 | { | |
| 13 | new Medication | |
| 14 | { | |
| 15 | Medi cationId = 1, Medica tionNameWi thDose="TE ST ATORVAS TATIN CALC IUM 10MG T AB", Issue Date = new DateTime( 2015, 12, 01), Quant ity = "Qty :90", Fill Number=1, MaxRefills =4 | |
| 16 | }, | |
| 17 | new Medication | |
| 18 | { | |
| 19 | Medi cationId = 2, Medica tionNameWi thDose="TE ST TERAZOS IN HCL 2MG CAP", Iss ueDate = n ew DateTim e(2015, 12 , 10), Qua ntity = "Q ty:30", Fi llNumber=2 , MaxRefil ls=4 | |
| 20 | }, | |
| 21 | new Medicatio n | |
| 22 | { | |
| 23 | Medi cationId = 3, Medica tionNameWi thDose="TE ST LOSARTA N POTASSIU M 100MG TA B", IssueD ate = new DateTime(2 015, 12, 1 5), Quanti ty = "Qty: 90", FillN umber=3, M axRefills= 3 | |
| 24 | } | |
| 25 | }; | |
| 26 | ||
| 27 | return m edList; | |
| 28 | } | |
| 29 | ||
| 30 | pu blic stati c MappedUs er GetMapp edUser(boo l viabAppr oved=false ) | |
| 31 | { | |
| 32 | return n ew MappedU ser | |
| 33 | { | |
| 34 | Acce ssCode = " xyz", | |
| 35 | Admi n = true, | |
| 36 | DomainPlus NetworkUse rName = " DNS \\
|
|
| 37 | Stat ion=648, | |
| 38 | User Ien = "123 45", | |
| 39 | VaUs erId = 9, | |
| 40 | Veri fyCode = " whateva", | |
| 41 | ViaB Approved = viabAppro ved | |
| 42 | }; | |
| 43 | } | |
| 44 | ||
| 45 | pu blic stati c IList<Pr oblemDiagn osis> GetP roblemList () | |
| 46 | { | |
| 47 | var prob lemList = new List<P roblemDiag nosis> | |
| 48 | { | |
| 49 | new ProblemDia gnosis | |
| 50 | { | |
| 51 | Prob lemDiagnos isId = 1, IcdCode = "704.01", Problem = "ALOPECIA AREATA (IC D9 704.01) " | |
| 52 | }, | |
| 53 | new ProblemDia gnosis | |
| 54 | { | |
| 55 | ProblemDia gnosisId = 2, IcdCod e = "DIZZI NESS AND G IDDINESS" | |
| 56 | }, | |
| 57 | n ew Problem Diagnosis | |
| 58 | { | |
| 59 | ProblemDia gnosisId = 3, IcdCod e = "HIRSU TISM" | |
| 60 | } | |
| 61 | }; | |
| 62 | return p roblemList ; | |
| 63 | } | |
| 64 | ||
| 65 | pu blic stati c IList<Ap pointment> GetAppoin tmentList( ) | |
| 66 | { | |
| 67 | var appt List = new List<Appo intment> | |
| 68 | { | |
| 69 | new Appointmen t | |
| 70 | { | |
| 71 | Appo intmentId = 1, Appoi ntmentDate Time = "01 /01/2016", Location = "EKG OUT PT-4A103" | |
| 72 | }, | |
| 73 | new Appointmen t | |
| 74 | { | |
| 75 | Appo intmentId = 2, Appoi ntmentDate Time = "02 /01/2016", Location = "PRE OP- 4C190" | |
| 76 | }, | |
| 77 | n ew Appoint ment | |
| 78 | { | |
| 79 | Appo intmentId = 3, Appoi ntmentDate Time = "03 /01/2016", Location = "AMB SUR G UROLOGY- X" | |
| 80 | } | |
| 81 | }; | |
| 82 | return a pptList; | |
| 83 | } | |
| 84 | ||
| 85 | pu blic stati c IList<La b> GetLabL ist() | |
| 86 | { | |
| 87 | var labL ist = new List<Lab> | |
| 88 | { | |
| 89 | new Lab | |
| 90 | { | |
| 91 | LabI d = 1, Lab TestName=" Hgb", LabS pecimenDat e = new Da teTime(201 5, 12, 01) , LabResul tValue="12 3" | |
| 92 | }, | |
| 93 | new Lab | |
| 94 | { | |
| 95 | LabI d = 2, Lab TestName=" Hct", LabS pecimenDat e = new Da teTime(201 5, 12, 01) , LabResul tValue="23 4" | |
| 96 | }, | |
| 97 | new Lab | |
| 98 | { | |
| 99 | LabI d = 3, Lab TestName=" WBC", LabS pecimenDat e = new Da teTime(201 5, 12, 01) , LabResul tValue="34 5" | |
| 100 | } | |
| 101 | }; | |
| 102 | return l abList; | |
| 103 | } | |
| 104 | ||
| 105 | pu blic stati c Patient GetPatient () | |
| 106 | { | |
| 107 | var pati ent = new Patient | |
| 108 | { | |
| 109 | PatientNam e = "Nazar eth, Brian of", | |
| 110 | PatientSsn = "555555 555", | |
| 111 | DateOfBirt h = new Da teTime(200 0, 12, 25) , | |
| 112 | PatientSid = 99, | |
| 113 | Station = 999 | |
| 114 | }; | |
| 115 | return p atient; | |
| 116 | } | |
| 117 | ||
| 118 | pu blic stati c PatientP rofile Get PatientPro file() | |
| 119 | { | |
| 120 | PatientP rofile pat ientProfil e = new Pa tientProfi le(); | |
| 121 | patientP rofile.App ointments = GetAppoi ntmentList (); | |
| 122 | patientP rofile.Lab s = GetLab List(); | |
| 123 | patientP rofile.Med ications = GetMedica tionList() ; | |
| 124 | patientP rofile.Pro blemDiagno ses = GetP roblemList (); | |
| 125 | patientP rofile.Pat ient = Get Patient(); | |
| 126 | ||
| 127 | return p atientProf ile; | |
| 128 | } | |
| 129 | ||
| 130 | pu blic stati c IList<Co nsult> Get Consults() | |
| 131 | { | |
| 132 | var cons ultList = new List<C onsult> | |
| 133 | { | |
| 134 | new Consult | |
| 135 | { | |
| 136 | ConstultId = 1, Cons ultReason = "some re ason", ToR equestServ iceName = "Request S ervice 1", EarliestD ate = Date Time.Parse ("2015-01- 01"), Cprs Status = " ACTIVE" | |
| 137 | }, | |
| 138 | new Consult | |
| 139 | { | |
| 140 | Con stultId = 2, Consult Reason = " some reaso n 2", ToRe questServi ceName = " Request Se rvice 1", EarliestDa te = DateT ime.Parse( "2015-01-0 1"), CprsS tatus = "A CTIVE" | |
| 141 | }, | |
| 142 | new Consult | |
| 143 | { | |
| 144 | Con stultId = 3, Consult Reason = " some reaso n 3", ToRe questServi ceName = " Request Se rvice 1", EarliestDa te = DateT ime.Parse( "2015-01-0 1"), CprsS tatus = "A CTIVE" | |
| 145 | } | |
| 146 | }; | |
| 147 | return c onsultList ; | |
| 148 | } | |
| 149 | ||
| 150 | pu blic stati c IList<Au thorizatio n> GetAuth orizations () | |
| 151 | { | |
| 152 | var auth List = new List<Auth orization> | |
| 153 | { | |
| 154 | new Authorizat ion | |
| 155 | { | |
| 156 | Authorizat ionId = "1 ", Authori zationText = "This i s authoriz ation text 1", Autho rizationTi tle = "NON VA CHOICE TEST" | |
| 157 | }, | |
| 158 | new Authorizat ion | |
| 159 | { | |
| 160 | Au thorizatio nId = "2", Authoriza tionText = "This is authorizat ion text 2 ", Authori zationTitl e = "NON V A CHOICE T EST" | |
| 161 | }, | |
| 162 | new Authoriza tion | |
| 163 | { | |
| 164 | Au thorizatio nId = "3", Authoriza tionText = "This is authorizat ion text 3 ", Authori zationTitl e = "NON V A CHOICE T EST" | |
| 165 | } | |
| 166 | }; | |
| 167 | return a uthList; | |
| 168 | } | |
| 169 | ||
| 170 | pu blic stati c IList<Ra diologyRep ort> GetRa diologyRep orts() | |
| 171 | { | |
| 172 | var radL ist = new List<Radio logyReport > | |
| 173 | { | |
| 174 | new RadiologyR eport | |
| 175 | { | |
| 176 | RadiologyR eportId = "1", Reaso nForStudy = "Some re ason", Imp ressionTex t = "Some Impression 1", Proce dureName=" TEST PROCE DURE 1" | |
| 177 | }, | |
| 178 | new RadiologyR eport | |
| 179 | { | |
| 180 | RadiologyR eportId = "1", Reaso nForStudy = "Some re ason", Imp ressionTex t = "Some Impression 2" , Proc edureName= "TEST PROC EDURE 2" | |
| 181 | }, | |
| 182 | new Radiology Report | |
| 183 | { | |
| 184 | Radi ologyRepor tId = "1", ReasonFor Study = "S ome reason ", Impress ionText = "Some Impr ession 3", Procedure Name="TEST PROCEDURE 3" | |
| 185 | } | |
| 186 | }; | |
| 187 | return r adList; | |
| 188 | } | |
| 189 | ||
| 190 | pu blic stati c ViaUser GetViaUser (bool? via BApproved = false, s tring faul tMessage=n ull) | |
| 191 | { | |
| 192 | var viaU ser = new ViaUser {Q ueryBean = new ViaQu eryBean()} ; | |
| 193 | viaUser. ViaBApprov ed = viaBA pproved; | |
| 194 | if (faul tMessage ! = null) | |
| 195 | { | |
| 196 | viaU ser.Fault = true; | |
| 197 | viaU ser.FaultM essage = f aultMessag e; | |
| 198 | } | |
| 199 | return v iaUser; | |
| 200 | } | |
| 201 | ||
| 202 | // Users: | |
| 203 | // 0: Fred F lintstone, with ViaB and PHIPI I and an a ctive sess ion | |
| 204 | // 1: Fred F lintstone with no fa cilities a t all | |
| 205 | // 2: Fred F lintstone, with ViaB and PHIPI I but no a ctive sess ion | |
| 206 | // 3: Fred F lintstone, without V iaB and wi th PHIPII and an act ive sessio n | |
| 207 | // 4: Fred F lintstone, unknown V iaB, no PH IPII, no a ctive sess ion | |
| 208 | pu blic stati c User Get User(int i = 0) | |
| 209 | { | |
| 210 | return n ew User[] | |
| 211 | { | |
| 212 | new User() | |
| 213 | { | |
| 214 | Applicatio nUserID = 0, | |
| 215 | DomainPlus NetworkUse rName = " DNS \\ D N S DNS ", | |
| 216 | Name = "Fl intstone, Fred", | |
| 217 | CurrentDef aultFacili ty = (shor t)888, | |
| 218 | Facilities = new Dic tionary<sh ort, UserF acility>() | |
| 219 | { | |
| 220 | { | |
| 221 | (s hort)888, | |
| 222 | ne w UserFaci lity | |
| 223 | { | |
| 224 | sta3n = (short)888 , | |
| 225 | sta6a = "888", | |
| 226 | StationN ame = "Bed rock", | |
| 227 | Location Name = "BE DROCK", | |
| 228 | LastAuth DateTime = DateTime. UtcNow, | |
| 229 | ViaB = t rue, | |
| 230 | PHIPII = true, | |
| 231 | VIAToken = "XXXXX" , | |
| 232 | VIAToken Expiration = DateTim e.UtcNow.A ddHours(4) , | |
| 233 | Admin = false | |
| 234 | } | |
| 235 | } | |
| 236 | } | |
| 237 | }, | |
| 238 | new User() | |
| 239 | { | |
| 240 | Applicatio nUserID = 1, | |
| 241 | DomainPlus NetworkUse rName = " DNS \\ D N S DNS ", | |
| 242 | Name = "Fl intstone, Fred", | |
| 243 | CurrentDef aultFacili ty = (shor t)0, | |
| 244 | Facilities = new Dic tionary<sh ort, UserF acility>() | |
| 245 | }, | |
| 246 | new User() | |
| 247 | { | |
| 248 | Applicatio nUserID = 2, | |
| 249 | DomainPlus NetworkUse rName = " DNS \\ D N S DNS ", | |
| 250 | Name = "Fl intstone, Fred", | |
| 251 | CurrentDef aultFacili ty = (shor t)888, | |
| 252 | Facilities = new Dic tionary<sh ort, UserF acility>() | |
| 253 | { | |
| 254 | { | |
| 255 | (s hort)888, | |
| 256 | ne w UserFaci lity | |
| 257 | { | |
| 258 | sta3n = (short)888 , | |
| 259 | sta6a = "888", | |
| 260 | StationN ame = "Bed rock", | |
| 261 | Location Name = "BE DROCK", | |
| 262 | LastAuth DateTime = DateTime. UtcNow.Add Hours(-12) , | |
| 263 | ViaB = t rue, | |
| 264 | PHIPII = true, | |
| 265 | VIAToken = "XXXXX" , | |
| 266 | VIAToken Expiration = DateTim e.UtcNow.A ddHours(-8 ), | |
| 267 | Admin = false | |
| 268 | } | |
| 269 | } | |
| 270 | } | |
| 271 | }, | |
| 272 | new User() | |
| 273 | { // what woul d viaB fal se look li ke? | |
| 274 | Applicatio nUserID = 3, | |
| 275 | DomainPlus NetworkUse rName = " DNS \\ D N S DNS ", | |
| 276 | Name = "Fl intstone, Fred", | |
| 277 | CurrentDef aultFacili ty = (shor t)888, | |
| 278 | Facilities = new Dic tionary<sh ort, UserF acility>() | |
| 279 | { | |
| 280 | { | |
| 281 | (s hort)888, | |
| 282 | ne w UserFaci lity | |
| 283 | { | |
| 284 | sta3n = (short)888 , | |
| 285 | sta6a = "888", | |
| 286 | StationN ame = "Bed rock", | |
| 287 | Location Name = "BE DROCK", | |
| 288 | LastAuth DateTime = DateTime. UtcNow, | |
| 289 | ViaB = f alse, | |
| 290 | PHIPII = true, | |
| 291 | VIAToken = "XXXXX" , | |
| 292 | VIAToken Expiration = DateTim e.UtcNow.A ddHours(4) , | |
| 293 | Admin = false | |
| 294 | } | |
| 295 | } | |
| 296 | } | |
| 297 | }, | |
| 298 | new User() | |
| 299 | { | |
| 300 | Applicatio nUserID = 4, | |
| 301 | DomainPlus NetworkUse rName = " DNS \\ D N S DNS ", | |
| 302 | Name = "Fl intstone, Fred", | |
| 303 | CurrentDef aultFacili ty = (shor t)888, | |
| 304 | Facilities = new Dic tionary<sh ort, UserF acility>() | |
| 305 | { | |
| 306 | { | |
| 307 | (s hort)888, | |
| 308 | ne w UserFaci lity | |
| 309 | { | |
| 310 | sta3n = (short)888 , | |
| 311 | sta6a = "888", | |
| 312 | StationN ame = "Bed rock", | |
| 313 | Location Name = "BE DROCK", | |
| 314 | LastAuth DateTime = null, | |
| 315 | ViaB = n ull, | |
| 316 | PHIPII = false, | |
| 317 | VIAToken = "", | |
| 318 | VIAToken Expiration = null, | |
| 319 | Admin = false | |
| 320 | } | |
| 321 | } | |
| 322 | } | |
| 323 | } | |
| 324 | }[i]; | |
| 325 | } | |
| 326 | } | |
| 327 | } |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.