128. EPMO Open Source Coordination Office Redaction File Detail Report

Produced by Araxis Merge on 6/22/2018 9:28:04 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.

128.1 Files compared

# Location File Last Modified
1 REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\NVCC.WebUI\Infrastructure FakeDataManager.cs Thu Jun 7 16:53:32 2018 UTC
2 REFDOC_2.3_06072018.zip\REFDOC 2.3_06072018\NVCC\NVCC.WebUI\Infrastructure FakeDataManager.cs Thu Jun 21 19:55:38 2018 UTC

128.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 8 1168
Changed 7 18
Inserted 0 0
Removed 0 0

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

128.4 Active regular expressions

No regular expressions were active.

128.5 Comparison detail

  1   using NVCC .Models;
  2   using NVCC .WebUI.Mod els;
  3   using Syst em;
  4   using Syst em.Collect ions.Gener ic;
  5   using Syst em.Linq;
  6  
  7   namespace  NVCC.WebUI .Infrastru cture
  8   {
  9       public  static cl ass FakeDa taManager
  10       {
  11  
  12           pu blic stati c IList<Me dication>  GetMedicat ionList()
  13           {
  14                var medL ist = new  List<Medic ation> 
  15                { 
  16                    new  Medication  
  17                    {
  18                    Medi cationId =  1, Medica tionNameWi thDose="TE ST ATORVAS TATIN CALC IUM 10MG T AB", Issue Date = new  DateTime( 2015, 12,  01), Quant ity = "90" , FillNumb er=1, MaxR efills=4,  FillDate =  new DateT ime(2015,  12, 01), R xStatus =  "Refill Ne eded"
  19                    }, 
  20                    new  Medication  
  21                    {
  22                    Medi cationId =  2, Medica tionNameWi thDose="TE ST TERAZOS IN HCL 2MG  CAP", Iss ueDate = n ew DateTim e(2015, 12 , 10), Qua ntity = "3 0", FillNu mber=2, Ma xRefills=4  , FillDat e = new Da teTime(201 6, 12, 01)
  23                    }, 
  24                     new  Medicatio
  25                    {
  26                    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 = "60",  FillNumbe r=3, MaxRe fills=3 ,  FillDate =  new DateT ime(2016,  10, 01)
  27                    }
  28                };
  29  
  30                return m edList;
  31           }
  32  
  33           pu blic stati c Division  GetDivisi on()
  34           {
  35                var divi sion = new  Division
  36                {
  37                    Divi sionName =  "AnyLocat ion",
  38                    Divi sionSid =  1,
  39                    Sta6 a = "999A" ,
  40                    Sta3 n = 999
  41                };
  42                return d ivision;
  43           }
  44  
  45           pu blic stati c IList<Vi sn> GetVis n()
  46           {
  47                var visn  = new Lis t<Visn>();
  48                visn.Add (new Visn  { ID = 8,  VISNFY17 =  8 });
  49                return v isn;
  50           }
  51  
  52           pu blic stati c IEnumera ble<ROIAdm inSearch>  GetRoiAdmi nSearchRes ults()
  53           {
  54                List<ROI AdminSearc h> adminSe archResult s = new Li st<ROIAdmi nSearch>() ;
  55                ROIAdmin Search sea rch = new  ROIAdminSe arch();
  56                search.D ateOfDiscl osure = "0 1/02/2018" ;
  57                search.D isclosureA ddress = " zahidgroup  \r8700 fo restwood l ane \rmana ssas \rVA\ r20110";
  58                search.P atientName  = "ZZTEST ,CPRSNURSE  EIGHT";
  59                search.S ta3n = 516 ;
  60                search.S tatementOf Purpose =  "Referral  for Care";
  61                search.S tationName  = "Bay Pi nes,FL";
  62                search.U serName =  "Hussin, Z ahid";
  63                search.V ISN = 8;
  64                search.n ature = "  Patient na me, SSN, a nd DOB";
  65                adminSea rchResults .Add(searc h);
  66                return a dminSearch Results.As Enumerable ();
  67           }
  68  
  69           pu blic stati c List<Use rByFacilit y> GetUser sByFacilit yId()
  70           {
  71                var user s = new Li st<UserByF acility>() ;
  72                  users.Add( new UserBy Facility {  GivenName  = "Reuter , Daphne A .", UserNa me = " DNS \\ DNS     REUTED" }) ;
  73                  users.Add( new UserBy Facility {  GivenName  = "MacMil lan, Jr.,  Richard E. ", UserNam e = " DN S         \ DNS " });
  74                  users.Add( new UserBy Facility {  GivenName  = "Rifai,  Tamer J." , UserName  = " DN S         \\ DNS " });
  75                return u sers;
  76           }
  77  
  78           pu blic stati c IList<Fa cility> Ge tFacilityB yVisnId()
  79           {
  80                var faci lity = new  List<Faci lity>();
  81                facility .Add(new F acility {  FacilityID  = 515, Fa cilityName  = "Bay Pi nes", VISN  = 8 });
  82                facility .Add(new F acility {  FacilityID  = 516, Fa cilityName  = "San Ju an", VISN  = 8 });
  83                facility .Add(new F acility {  FacilityID  = 517, Fa cilityName  = "Tampa" , VISN = 8  });
  84                facility .Add(new F acility {  FacilityID  = 518, Fa cilityName  = "Miami" , VISN = 8  });
  85                facility .Add(new F acility {  FacilityID  = 519, Fa cilityName  = "Orland o", VISN =  8 });
  86                return f acility;
  87           }
  88  
  89           pu blic stati c IEnumera ble<RoiSea rchResult>  RoiSearch ()
  90           {
  91                return G etPatientS earchResul t();
  92           }
  93  
  94           pu blic stati c IEnumera ble<RoiSea rchResult>  GetPatien tSearchRes ult()
  95           {
  96                RoiSearc hResult ro i = new Ro iSearchRes ult();
  97                BasicPat ient Patie nt = new B asicPatien t();
  98                Patient. DateOfBirt h = new Da teTime();
  99                Patient. PatientNam e = "Tami" ;
  100                Patient. PatientIcn  = "12345" ;
  101  
  102                Disclosu re dis1 =  new Disclo sure();
  103                Disclosu re dis2 =  new Disclo sure();
  104  
  105                dis1.Pat ientIcn =  "12346";
  106                dis1.Pro viderCity  = "Alexand ria";
  107                dis1.Sta tionName =  "Bay Bine s";
  108  
  109                dis1.Pat ientIcn =  "12347";
  110                dis1.Pro viderCity  = "Chantil ly";
  111                dis1.Sta tionName =  "Richmond ";
  112  
  113                List<Dis closure> d isList = n ew List<Di sclosure>( );
  114                disList. Add(dis1);
  115                disList. Add(dis2);
  116  
  117                roi.Pati ent = Pati ent;
  118                roi.Disc losures =  disList;
  119  
  120                var resu ltSet = ne w List<Roi SearchResu lt>{ roi};
  121  
  122                return r esultSet.A sEnumerabl e();
  123           }
  124  
  125           pu blic stati c IEnumera ble<Divisi on> GetDiv isions()
  126           {
  127                var divi sion = new  List<Divi sion>
  128                {
  129                    new  Division
  130                    {
  131                         DivisionNa me = "AnyL ocation",
  132                         DivisionSi d = 1,
  133                         Sta6a = "9 99A",
  134                         Sta3n = 99 9
  135                    }, 
  136                     new  Division
  137                    {
  138                         DivisionNa me = "Anot herLocatio n",
  139                         DivisionSi d = 1,
  140                         Sta6a = "9 98A",
  141                         Sta3n = 99 8
  142                    }
  143                };
  144             
  145                return d ivision.As Enumerable ();
  146           }
  147  
  148           pr ivate stat ic Station Info _stat ionInfo =  new Statio nInfo
  149                {
  150                    Faci lityFaxNum ber = "555 -555-5555" ,
  151                    Faci lityPhoneN umber = "6 66-666-666 6",
  152                    Full Address =  "123 Main  Street Anw here, AnyP lace USA 9 9999",
  153                    MedC tr = "VA A nywhere He alth Syste m"
  154                };
  155  
  156           pu blic stati c StationI nfo GetSta tionInfo()
  157           {
  158                return _ stationInf o;
  159           }
  160  
  161           pu blic stati c void Set StationInf o(StationI nfo statio nInfo)
  162           {
  163                _station Info = sta tionInfo;
  164           }
  165  
  166           pu blic stati c  List<Al lergy> Get Allergies( )
  167           {
  168                var alle rgyList =  new List<A llergy> 
  169                { 
  170                    new  Allergy 
  171                    {
  172                    Alle rgyId = 1,  AllergyTi tle = "Che ese", Orig inationDat eTime = Da teTime.Now , Verifica tionDateTi me = new D ateTime(20 16, 01, 01 )}, 
  173                    new  Allergy 
  174                    {
  175                          AllergyId  = 1, Alle rgyTitle =  "Beer",   Originatio nDateTime  = DateTime .Now, Veri ficationDa teTime = n ew DateTim e(2015, 09 , 01)}, 
  176                     new  Allergy 
  177                    {
  178                     All ergyId = 1 , AllergyT itle = "Pe nicillin",   Originat ionDateTim e = DateTi me.Now, Ve rification DateTime =  new DateT ime(2014,  10, 01)}
  179                };
  180                return a llergyList ;
  181           }
  182  
  183           pu blic stati c IList<Pr oblemDiagn osis> GetP roblemList ()
  184           {
  185                var prob lemList =  new List<P roblemDiag nosis> 
  186                { 
  187                    new  ProblemDia gnosis 
  188                    {
  189                    Prob lemListSID  = 1, IcdC ode = "704 .01", Prob lem = "ALO PECIA AREA TA (ICD9 7 04.01)"
  190                    }, 
  191                    new  ProblemDia gnosis 
  192                    {
  193                         ProblemLis tSID = 2,  IcdCode =  "555.5", P roblem = " DIZZINESS  AND GIDDIN ESS"
  194                    }, 
  195                       n ew Problem Diagnosis 
  196                    {
  197                         ProblemLis tSID = 3,  IcdCode =  "999.99",  Problem =  "HIRSUTISM "
  198                    }
  199                };
  200                return p roblemList ;
  201           }
  202  
  203           pu blic stati c IList<Ap pointment>  GetAppoin tmentList( )
  204           {
  205                var appt List = new  List<Appo intment> 
  206                { 
  207                    new  Appointmen
  208                    {
  209                    Appo intmentId  = 1, Appoi ntmentDate Time = "01 /01/2016",  Location  = "EKG OUT PT-4A103" 
  210                    }, 
  211                    new  Appointmen
  212                    {
  213                    Appo intmentId  = 2, Appoi ntmentDate Time = "02 /01/2016",  Location  = "PRE OP- 4C190" 
  214                    }, 
  215                       n ew Appoint ment 
  216                    {
  217                    Appo intmentId  = 3, Appoi ntmentDate Time = "03 /01/2016",  Location  = "AMB SUR G UROLOGY- X" 
  218                    }
  219                };
  220                return a pptList;
  221           }
  222  
  223           pu blic stati c IList<La b> GetLabL ist()
  224           {
  225                var labL ist = new  List<Lab> 
  226                { 
  227                    new  Lab 
  228                    {
  229                    LabI d = 1, Lab TestName=" Hgb", LabS pecimenDat e = new Da teTime(201 5, 12, 01) , LabResul tValue="12 3", LabRes ultNumeric Value = 12 3, Units =  "Ng", Ref Low = "150 ", RefHigh  = "200",  Abnormal =  "Y"
  230                    }, 
  231                    new  Lab 
  232                    {
  233                    LabI d = 2, Lab TestName=" Hct", LabS pecimenDat e = new Da teTime(201 5, 12, 01) , LabResul tValue="23 4", LabRes ultNumeric Value = 23 4, Units =  "Ml", Ref Low = "200 ", RefHigh  = "250",  Abnormal =  "N"
  234                    }, 
  235                     new  Lab 
  236                    {
  237                    LabI d = 3, Lab TestName=" WBC", LabS pecimenDat e = new Da teTime(201 5, 12, 01) , LabResul tValue="34 5", LabRes ultNumeric Value = 34 5, Units =  "ul", Ref Low = "200 ", RefHigh  = "350",  Abnormal =  "N"
  238                    }
  239                };
  240                return l abList;
  241           }
  242  
  243           pu blic stati c Patient  GetPatient ()
  244           {
  245                var pati ent = new  Patient
  246                    {
  247                         PatientNam e = "FAKEP ATIENT, SA M",
  248                         PatientSsn  = "555555 555",
  249                         DateOfBirt h = new Da teTime(199 0, 12, 25) ,
  250                         PatientSid  = 99,
  251                         Station =  999, 
  252                         PatientIcn  = "999", 
  253                         PatientIen  = "999", 
  254                         PhoneResid ence = "12 3-456-7890 ", 
  255                         StreetAddr ess1 = "12 3 WhoVille  Lane", 
  256                         City = "An ywhoVille"
  257                         State="Any State", 
  258                         Zip="12345 "
  259                    };
  260                return p atient;
  261           }
  262  
  263           pu blic stati c PatientP rofile Get PatientPro file()
  264           {
  265                PatientP rofile pat ientProfil e = new Pa tientProfi le();
  266                patientP rofile.App ointments  = GetAppoi ntmentList ();
  267                patientP rofile.Lab s = GetLab List();
  268                patientP rofile.Med ications =  GetMedica tionList() ;
  269                patientP rofile.Pro blemDiagno ses = GetP roblemList ();
  270                patientP rofile.Pat ient = Get Patient();
  271                patientP rofile.Vis taUser = G etViaUser( true);
  272                patientP rofile.Aut horization s = GetAut horization s();
  273                patientP rofile.Con sults = Ge tConsults( );
  274                patientP rofile.All ergies = G etAllergie s();
  275                patientP rofile.Rad iologyRepo rts = GetR adiologyRe ports();
  276                patientP rofile.Non VaMedicati ons = GetN onVaMedica tions();
  277                patientP rofile.Nex tOfKin = G etNextOfKi n();
  278                patientP rofile.Not es = GetNo tes();
  279  
  280                return p atientProf ile;
  281           }
  282  
  283           pu blic stati c NextOfKi n GetNextO fKin()
  284           {
  285                return n ew NextOfK in()
  286                {
  287                    Next OfKinId =  0,
  288                    Pati entSid = 9 9,
  289                    Stat ion = 999,
  290                    Addr essType =  "NOK",
  291                    Name OfContact  = "FAKEPAT IENT, JANE ",
  292                    Stre etAddress1  = "123 Wh oVille Lan e",
  293                    City  = "Anywho Ville",
  294                    Stat e = "AnySt ate",
  295                    Zip  = "12345",
  296                    Phon e = "123-4 56-7890",
  297                    Phon eWork = "3 21-654-098 7"
  298                };
  299           }
  300  
  301           pu blic stati c IList<No nVaMedicat ion> GetNo nVaMedicat ions()
  302           {
  303                var nonV aMeds = ne w List<Non VaMedicati on>
  304                {
  305                    new  NonVaMedic ation
  306                    {
  307                         LocalDrugN ameWithDos e = "Penic illin: 5MG ",
  308                         Medication Route = "O rally twic e daily",
  309                         NonVaMedic ationId =  1,
  310                         PatientSid  = 99,
  311                         Schedule =  "Orally f or 30 days ",
  312                         Station =  999,
  313                         StationNam e = "Anywh ere"
  314                    }
  315                };
  316                return n onVaMeds.T oList();
  317           }
  318           pu blic stati c IList<Us pConsult>  GetConsult s()
  319           {
  320                var cons ultList =  new List<U spConsult>  
  321                { 
  322                    new  UspConsult  
  323                    {
  324                         Consultsid  = 1, Cons ultReason  = "some re ason", ToR equestServ iceName =  "Request S ervice 1",  RequestDa te = DateT ime.Parse( "2016-10-0 1"), Earli estDate =  DateTime.P arse("2015 -01-01"),  CPRSStatus  = "ACTIVE ", Urgency  = "STAT"
  325                    }, 
  326                    new  UspConsult  
  327                    {
  328                     Con sultsid =  2, Consult Reason = " some reaso n 2", ToRe questServi ceName = " Request Se rvice 2",   RequestDa te = DateT ime.Parse( "2016-09-0 1"), Earli estDate =  DateTime.P arse("2015 -01-01"),  CPRSStatus  = "ACTIVE "
  329                    }
  330                };
  331                return c onsultList ;
  332           }
  333  
  334           pu blic stati c IList<Au thorizatio n> GetAuth orizations ()
  335           {
  336                var auth List = new  List<Auth orization>  
  337                { 
  338                    new  Authorizat ion 
  339                    {
  340                         Authorizat ionId = "1 ", Authori zationTitl e  = "VHA  CHOICE App roval", Au thorizatio nText = "  LOCAL TITL E: VCP-CHO ICE PROV A GRMT VAF 1 0-0386A                   \nSTAN DARD TITLE : NONVA NO TE                                          \nDATE OF  NOTE: AUG  25, 2016@1 5:26     E NTRY DATE:  AUG 25, 2 016@15:26: 24      \n       AUTH OR: DIGGS, BRIAN S         EXP C OSIGNER:                              \n      URGENCY:                               ST ATUS: COMP LETED                       \n\n REFERRAL I NFORMATION \n                        Depart ment of Ve terans Aff airs \n               VETERANS C HOICE PROV IDER AGREE MENT AUTHO RIZATION\n                               VA -FORM 10-0 386a\n\nRe ason for U se of Prov ider Agree ment:Veter an Decline d Appointm ent Time\n \nCommunit y Provider  Name(s):\ n  Bob\n\n Authorizat ion Number : xxx\n\nV A Ordering  Provider:  Me \n\nPl ease selec t referral  urgency:  \nRoutine\ n\nTo faci litate Urg ent schedu ling, plea se include  an altern ate point  \nof conta ct's (diff erent than  the NVCC  staff memb er listed  below) nam e,\nteleph one number , and rela tionship t o the pati ent (socia l worker,  triage nur se, \netc. ) in space  provided.  \n\n\nSec ondary Aut horization  Request(S AR):\n\n \ n\nService s and Time frame Auth orized:\n\ nSpecialty : \n\n  Ca rtography\ n\nType of  Specialis t:\n\n  Su rveyer\n\n Type of Se rvice/Proc edure:\n\n   Elevatio n Map\n\nN umber of V isits, Fre quency and  Duration:  \n\n  As  needed\n\n \nDate VA  Requests s ervices un der Provid er Agreeme nt:\nAug 2 9,2016@06: 00\n\n\n\n \n\nVetera n Informat ion:\nName : ZZTEST,C ENDY\nDOB:  JAN 5,195 4\nSSN: 00 0-00-0014\ nAddress:  1750 BLANK ENSHIP RD\ nPORTLAND,  OR  97233 \nPhone: 3 602705995\ n\n \n\n\n \n(include  name, add ress and p hone if kn own)\n\n\n Eligiblity  Type(From  initial a uthorizati on if appl icable):\n Choice Unu sual/Exces sive Burde n (UEXB)\n \nEligibil ity Verifi cation: \n As the aut horized VA  represent ative, I h ereby conf irm that t he Veteran  is \nelig ible for C hoice serv ices. The  Veteran's  basic elig ibility wa s verified \nin the V eterans Ch oice Viewe r applicat ion (VA Vi ewer) on:  \n08/25/20 16\n\nVete ran Other  Health Ins urance (OH I):\n\n  D oes Vetera n have bil lable OHI? :\n\n   Ye s - Vetera n has bill able OHI\n \n   Couch  cushions\ n\nService -Connected (SC) and/o r Special  Authority( SA):\n   N o - Vetera n does not  have SC/S A eligibli ty - OHI P rimary Pay er\n \n\nV A Communit y Care Man ager or eq uivalent:\ n\nName: X \n\nTitle:  X\n\nVA I ssuing Off ice:\nVA C ommunity C are Contac t #: X\nAf ter Hours  POC #: X\n \nContact  local VA C ommunity C are Office  first to  provide in formation  to VA or \ nreach VA  ordering p rovider. A ll contact  from Comm unity Care  Provider  will be \n documented  in the Ve teran's Re cord by VA  Community  Care staf f and VA O rdering \n Provider n otified fo r awarenes s. Report  all CRITIC AL FINDING S related  to this \n authorizat ion to the  VA Commun ity Care O ffice abov e.\n\nFrom  Station # : X\nFacil ity Name:  X\nStreet  Address: X \nCity: X\ nState: X\ nZip: X\nF ax: X\n \n /es/ Brian  S Diggs,  PhD\nProgr am Analyst \nSigned:  08/25/2016  15:29"
  341                    }
  342                };
  343                return a uthList;
  344           }
  345  
  346           pu blic stati c IList<Ra diologyRep ort> GetRa diologyRep orts()
  347           {
  348                var radL ist = new  List<Radio logyReport
  349                { 
  350                    new  RadiologyR eport 
  351                    {
  352                         RadiologyR eportId =  "1", Reaso nForStudy  = "Some re ason", Imp ressionTex t = "Some  Impression  1",Proced ureName="C HEST CT",  ExamDateTi me = DateT ime.Now, E xamDate =  "20161001. 120100", R eportText  = "FOOT, R IGHT, 2 VI EWS\n   \n Exm Date:  SEP 29, 20 16@10:38\n Req Phys:  AMII,JAMES  M                     Pat Loc:  LIVER/KIDN EY FACILIT ATORS-X (R \n                                             Img Loc : PDX-RAY- X\n                                             Servic e: Unknown \n\n \n\n( Case 1850  COMPLETE)  FOOT, RIGH T, 2 VIEWS               (RAD  D etailed) C PT:73620\n      Reaso n for Stud y: TEST\n\ n    Clini cal Histor y:\n       MODALITY T EST \n\n     Report S tatus: Ver ified                     Date R eported: \ n                                                  Dat e Verified : OCT 04,  2016\n     Verifier E -Sig:\n\n     Report: \n\n    Im pression:\ n      Tes t patient;  no report  necessary  for dicta tion; ADMI N complete .  \n\n     Primary D iagnostic  Code: \n\n Primary In terpreting  Staff:\n   DIANA JOY CE ARTENIA N MD, STAF F RADIOLOG IST\n           Verif ied by tra nscription ist for DI ANA JOYCE  ARTENIAN M D\n/JDA\n\ n   \n"
  353                    }, 
  354                    new  RadiologyR eport 
  355                    {
  356                         RadiologyR eportId =  "1", Reaso nForStudy  = "Some re ason", Imp ressionTex t = "Some  Impression  2" , Proc edureName= "CT NECK S OFT TISSUE  W/CONTRAS T", ExamDa teTime = D ateTime.No w, ExamDat e = "20160 901.120200 " , Report Text="FOOT , RIGHT, 2  VIEWS\n    \nExm Dat e: SEP 29,  2016@10:3 8\nReq Phy s: AMII,JA MES M                     Pat Lo c: LIVER/K IDNEY FACI LITATORS-X  (R\n                                             Img  Loc: PDX-R AY-X\n                                             Ser vice: Unkn own\n\n \n \n(Case 18 50 COMPLET E) FOOT, R IGHT, 2 VI EWS              (RAD   Detailed ) CPT:7362 0\n     Re ason for S tudy: TEST \n\n    Cl inical His tory:\n       MODALIT Y TEST \n\ n    Repor t Status:  Verified                     Dat e Reported : \n                                                   Date Verif ied: OCT 0 4, 2016\n     Verifie r E-Sig:\n \n    Repo rt:\n\n     Impressio n:\n       Test patie nt; no rep ort necess ary for di ctation; A DMIN compl ete.  \n\n     Primar y Diagnost ic Code: \ n\nPrimary  Interpret ing Staff: \n  DIANA  JOYCE ARTE NIAN MD, S TAFF RADIO LOGIST\n           Ve rified by  transcript ionist for  DIANA JOY CE ARTENIA N MD\n/JDA \n\n   \n"
  357                    }
  358                };
  359                return r adList;
  360           }
  361  
  362           pu blic stati c ViaUser  GetViaUser (bool? via BApproved  = false, s tring faul tMessage=n ull)
  363           {
  364                var viaU ser = new  ViaUser {Q ueryBean =  new ViaQu eryBean()} ;
  365                viaUser. ViaBApprov ed = viaBA pproved;
  366                if (faul tMessage ! = null)
  367                {
  368                    viaU ser.Fault  = true;
  369                    viaU ser.FaultM essage = f aultMessag e;
  370                }
  371                viaUser. Divisions  = new Divi sion[] { G etDivision () };
  372                return v iaUser;
  373           }
  374  
  375           pr ivate stat ic IList<U spAnnounce ment> _ann ouncements  = new Lis t<UspAnnou ncement>
  376                {
  377                    new  UspAnnounc ement
  378                    {
  379                         Announceme ntID = 1,
  380                         Announceme ntType = " Alert",
  381                         CreationDT  = new Dat eTime(2016 , 06, 08,  17, 00, 00 ),
  382                         Expiration DT = new D ateTime(20 16, 06, 08 , 17, 55,  00),
  383                         Creator =  "Admin",
  384                         Text =
  385                             "Due t o a reboot  of the da tabase ser ver, CITCo M will be  unavailabl e starting  at 8pm Ea stern/5pm  Pacific to night (6/8 /16). It i s anticipa ted that t he databas e server w ill be una vailable f or about h alf an hou r."
  386                    }
  387                };
  388  
  389           pu blic stati c IList<Us pAnnouncem ent> GetAn nouncement s(int acti ve)
  390           {
  391                if (acti ve == 0)
  392                {
  393                    retu rn _announ cements;
  394                }
  395                else
  396                {
  397                    retu rn _announ cements.Wh ere(a => a .CreationD T < DateTi me.UtcNow  && a.Expir ationDT >  DateTime.U tcNow).ToL ist();
  398                }
  399           }
  400  
  401           pu blic stati c void Add Announceme nt(UspAnno uncement a nnouncemen t)
  402           {
  403                var next Announceme ntID = _an nouncement s.Select(a  => a.Anno uncementID ).Max() +  1;
  404                announce ment.Annou ncementID  = nextAnno uncementID ;
  405                _announc ements.Add (announcem ent);
  406           }
  407  
  408           pu blic stati c IList<No te> GetNot es()
  409           {
  410                return n ew List<No te>
  411                {
  412                    new  Note
  413                    {
  414                         NoteAuthor  = "ANGELA  M FLINGOS ",
  415                         NoteID = " 49926122",
  416                         NoteText =  " LOCAL T ITLE: INFO RMED CONSE NT                                      \nS TANDARD TI TLE: CONSE NT                                             \nDATE  OF NOTE: J UN 20, 201 7@10:08:23   ENTRY DA TE: JUN 20 , 2017@10: 09:43       \n      A UTHOR: FLI NGOS,ANGEL A M     EX P COSIGNER :                             \n      URGEN CY:                               STATUS: C OMPLETED                       \ n\n  Signa ture Infor med Consen t for  \n    CERVIX -  BIOPSY EN DOCERVICAL  (BIOPSY O F  ENDOCER VIX (TISSU E INSIDE \ nCERVIX))  \n1. Anato mical Loca tion: jjgm bvm \n2. I nformed co nsent was  obtained   at 10:07 A M on June  20, 2017.  \n\t\tThe  full conse nt documen t can be a ccessed th rough Vist a Imaging. \n3. Patie nt name:   ZZTEST, JI ANJI S  \n 4. The pat ient HAS d ecision-ma king capac ity.    \n 5. Surroga te (if app licable):         \n6 . Reason f or the tre atment (di agnosis, c ondition,  or indicat ion): To \ nremove an d/or test  abnormal t issue of t he cervix.  \n7. Trea tment/proc edure: Thi s procedur e involves  taking a  biopsy fro m \nyour c ervix.   T he cervix  is  the lo wer, narro w end of t he uterus  that \nope ns into th e vagina.   A biopsy  is the rem oval of a  sample of  tissue \nf or analysi s.  Your d octor will  take a sa mple from  the tissue  that \nli nes the in side of yo ur cervix. \nYour doc tor may in ject a med icine to n umb your c ervix.  Yo u may also  \nbe give n a medici ne to help  you relax .  Your do ctor will  insert a \ nspeculum. This is us ed to hold  the vagin a open.You r doctor w ill \nuse  a tool to  remove tis sue from i nside your  cervix.Yo u may feel  a \npinch ing sensat ion or som e cramping  when your  doctor ta kes the \n biopsy.You r doctor w ill send t he sample( s)to be te sted. \n    \n\t\t \n     \n8.Ne ither anes thesia nor  moderate  sedation w ill be use d.\n9.Cons ent to Blo od Product s(if appli cable):\nI t is not e xpected th at blood p roducts wi ll be used  in this \ ntreatment  / procedu re.  \n10. Practition er obtaini ng consent : Zzzaates tphysician ,Eighteen  \n(PHYSICI AN) \n11.S upervising  practitio ner:  Abbe y,Kenneth  R (ANESTHE SIOLOGIST)  \n12.Prac titioner(s ) performi ng or supe rvising tr eatment /  procedure( if \n not  listed abo ve):  Abbe y,Kenneth  R (ANESTHE SIOLOGIST)  \n13.Witn ess Name(s ):                      \n \n14. Comments:\ n \n \t \n  \n   \n   \n  \n  \n   \n   \n  \n \n*** S CANNED DOC UMENT * ** \n SIGNATU RE NOT REQ UIRED\n \n  \n Electr onically F iled: 06 /  20 / 2017 \n by: ACC OUNT IMEDU SER\n                          " ,
  417                         NoteTimest amp = new  DateTime(2 017, 6, 20 , 10, 08,  00),
  418                         NoteTitle  = "INFORME D CONSENT"
  419                    },
  420                    new  Note
  421                    {
  422                         NoteAuthor  = "Walter  P. Goebel  MD",
  423                         NoteID = " 50111787",
  424                         NoteText =  " LOCAL T ITLE: PC -  FOLLOW UP                                         \nS TANDARD TI TLE: PRIMA RY CARE OU TPATIENT N OTE                      \nDATE  OF NOTE: J UL 05, 201 7@13:09      ENTRY DA TE: JUL 05 , 2017@13: 09:45       \n      A UTHOR: GOE BEL,WALTER  PAUL   EX P COSIGNER :                             \n      URGEN CY:                               STATUS: C OMPLETED                       \ n\nPlanned  Procedure : Battlefi eld Acupun cture\n\nP AIN DIAGNO SIS: chron ic pain \n  \n Pre-pr ocedure pa in assessm ent(DVCIPM ): 9 \n Po st- proced ure pain a ssessment( DVCIPM): 2 \n\nPain I nterferenc e Assessme nt\n 1. Wh at number  describes  how, durin g the past  24 hours,  pain has  interfered  \n    wit h your usu al ACTIVIT Y: 9\n 2.  What numbe r describe s how, dur ing the pa st 24 hour s, pain ha s interfer ed \nwith  \n    your  SLEEP: 9\ n 3. What  number des cribes how , during t he past 24  hours, pa in has aff ected your  \n    MOO D: 9\n 4.  What numbe r describe s how, dur ing the pa st 24 hour s, pain ha s contribu ted to \n     your ST RESS: 9\n\ nInformed  Consent:\n  The proce dure was d iscussed w ith patien t. \n The  risks and  benefits w ere explai ned and qu estions we re answere d.\n An in formed con sent was o btained.\n \nPreparat ion:\n The  patient w as in the  sitting po sition.Pro viders han ds were cl eaned. Bot h \n patie nts'ears w ere wiped  clean with  alcohol p rior to ne edle place ment. \n T ime out ch ecklist wa s complete d before t he beginni ng of the  procedure. \n\nProced ure: \n Us ing gold A SP needles , the need les were p laced in t he order o f the acro nym \n CTO PS, altern ating ears  with each  point pla cement. Af ter each p oint place ment, \n t he patient  was asked  to move o r ambulate  and the p ain score  was reasse ssed.\n Th e points u sed are: C ingulate G yrus, Thal amus, Omeg a 2, Point  Zero, She n Men. \n  A total of  5 needles  were used  for the R ight ear.\ n A total  of 5 needl es were us ed for the  Left ear. \n It was  necessary  to readjus t 0 needle (s) for th e Right ea r.\n It wa s necessar y to readj ust 0 need le(s) for  the Left e ar.\n\nPos t Procedur e: \nThe p atient tol erated the  procedure  well and  there were  no noted  problems.\ n\nI spent  a total 1 5 min prov iding one  on one acu puncture w ith one or  more \nne edles with out electr ical stimu lation.\n\ n \n \n/es / Walter P . Goebel M D\nPhysici an\nSigned : 07/05/20 17 13:11",
  425                         NoteTimest amp = new  DateTime(2 017, 7, 5,  13, 9, 0) ,
  426                         NoteTitle  = "PC - FO LLOW UP"
  427                    },
  428                    new  Note
  429                    {
  430                         NoteAuthor  = "Laurie  A. Beauch amp",
  431                         NoteID = " 49182954",
  432                         NoteText =  " LOCAL T ITLE: PC -  FOLLOW UP                                         \nS TANDARD TI TLE: PRIMA RY CARE OU TPATIENT N OTE                      \nDATE  OF NOTE: A PR 25, 201 7@09:14      ENTRY DA TE: APR 25 , 2017@09: 15:09       \n      A UTHOR: BEA UCHAMP,LAU RIE A   EX P COSIGNER :                             \n      URGEN CY:                               STATUS: C OMPLETED                       \ n\nasdfasf adsf\n \n/ es/ Laurie  A. Beauch amp\nCHIEF  HEALTH IN FORMATION  MANAGEMENT \nSigned:  04/25/2017  09:17",
  433                         NoteTimest amp = new  DateTime ( 2017, 4, 2 5, 9, 14,  0),
  434                         NoteTitle  = "PC - FO LLOW UP"
  435                    }
  436                };
  437           }
  438  
  439           //  Users:
  440           //  0: Fred F lintstone,  with ViaB  and PHIPI I and an a ctive sess ion
  441           //  1: Fred F lintstone  with no fa cilities a t all
  442           //  2: Fred F lintstone,  with ViaB  and PHIPI I but no a ctive sess ion
  443           //  3: Fred F lintstone,  without V iaB and wi th PHIPII  and an act ive sessio n
  444           //  4: Fred F lintstone,  unknown V iaB, no PH IPII, no a ctive sess ion
  445           //  5: Fred F lintstone,  with ViaB , PHIPII,  an active  session, a dmin at st ation, and  announcin g
  446           pu blic stati c User Get User(int i  = 0)
  447           {
  448                return n ew User[]
  449                {
  450                    new  User()
  451                    {
  452                         Applicatio nUserID =  0,
  453                          DomainPlus NetworkUse rName = " DNS \\ DNS     FLINTF",
  454                         Name = "Fl intstone,  Fred",
  455                         CurrentDef aultFacili ty = (shor t)888,
  456                         Facilities  = new Dic tionary<sh ort, UserF acility>()
  457                         {
  458                             {
  459                                 (s hort)888,
  460                                 ne w UserFaci lity
  461                                 {
  462                                      sta3n =  (short)888 ,
  463                                      sta6a =  "888",
  464                                      StationN ame = "Bed rock",
  465                                      Location Name = "BE DROCK",
  466                                      LastAuth DateTime =  DateTime. UtcNow,
  467                                      ViaB = t rue,
  468                                      PHIPII =  true,
  469                                      VIAToken  = "XXXXX" ,
  470                                      VIAToken Expiration  = DateTim e.UtcNow.A ddHours(4) ,
  471                                      Admin =  false
  472                                 }
  473                             }
  474                         }
  475                    },
  476                    new  User()
  477                    {
  478                         Applicatio nUserID =  1,
  479                          DomainPlus NetworkUse rName = " DNS \\ DNS     FLINTF",
  480                         Name = "Fl intstone,  Fred",
  481                         CurrentDef aultFacili ty = (shor t)0,
  482                         Facilities  = new Dic tionary<sh ort, UserF acility>()
  483                    },
  484                    new  User()
  485                    {
  486                         Applicatio nUserID =  2,
  487                          DomainPlus NetworkUse rName = " DNS \\ DNS     FLINTF",
  488                         Name = "Fl intstone,  Fred",
  489                         CurrentDef aultFacili ty = (shor t)888,
  490                         Facilities  = new Dic tionary<sh ort, UserF acility>()
  491                         {
  492                             {
  493                                 (s hort)888,
  494                                 ne w UserFaci lity
  495                                 {
  496                                      sta3n =  (short)888 ,
  497                                      sta6a =  "888",
  498                                      StationN ame = "Bed rock",
  499                                      Location Name = "BE DROCK",
  500                                      LastAuth DateTime =  DateTime. UtcNow.Add Hours(-12) ,
  501                                      ViaB = t rue,
  502                                      PHIPII =  true,
  503                                      VIAToken  = "XXXXX" ,
  504                                      VIAToken Expiration  = DateTim e.UtcNow.A ddHours(-8 ),
  505                                      Admin =  false
  506                                 }
  507                             }
  508                         }
  509                    },
  510                    new  User()
  511                    { //  what woul d viaB fal se look li ke?
  512                         Applicatio nUserID =  3,
  513                          DomainPlus NetworkUse rName = " DNS \\ DNS     FLINTF",
  514                         Name = "Fl intstone,  Fred",
  515                         CurrentDef aultFacili ty = (shor t)888,
  516                         Facilities  = new Dic tionary<sh ort, UserF acility>()
  517                         {
  518                             {
  519                                 (s hort)888,
  520                                 ne w UserFaci lity
  521                                 {
  522                                      sta3n =  (short)888 ,
  523                                      sta6a =  "888",
  524                                      StationN ame = "Bed rock",
  525                                      Location Name = "BE DROCK",
  526                                      LastAuth DateTime =  DateTime. UtcNow,
  527                                      ViaB = f alse,
  528                                      PHIPII =  true,
  529                                      VIAToken  = "XXXXX" ,
  530                                      VIAToken Expiration  = DateTim e.UtcNow.A ddHours(4) ,
  531                                      Admin =  false
  532                                 }
  533                             }
  534                         }
  535                    },
  536                    new  User()
  537                    {
  538                         Applicatio nUserID =  4,
  539                          DomainPlus NetworkUse rName = " DNS \\ DNS     FLINTF",
  540                         Name = "Fl intstone,  Fred",
  541                         CurrentDef aultFacili ty = (shor t)888,
  542                         Facilities  = new Dic tionary<sh ort, UserF acility>()
  543                         {
  544                             {
  545                                 (s hort)888,
  546                                 ne w UserFaci lity
  547                                 {
  548                                      sta3n =  (short)888 ,
  549                                      sta6a =  "888",
  550                                      StationN ame = "Bed rock",
  551                                      Location Name = "BE DROCK",
  552                                      LastAuth DateTime =  null,
  553                                      ViaB = n ull,
  554                                      PHIPII =  false,
  555                                      VIAToken  = "",
  556                                      VIAToken Expiration  = null,
  557                                      Admin =  false
  558                                 }
  559                             }
  560                         }
  561                    },
  562                    new  User()
  563                    {
  564                         Applicatio nUserID =  5,
  565                          DomainPlus NetworkUse rName = " DNS \\ DNS     FLINTF",
  566                         Name = "Fl intstone,  Fred",
  567                         CanCreateA nnouncemen t = true,
  568                         CurrentDef aultFacili ty = (shor t)888,
  569                         Facilities  = new Dic tionary<sh ort, UserF acility>()
  570                         {
  571                             {
  572                                 (s hort)888,
  573                                 ne w UserFaci lity
  574                                 {
  575                                      sta3n =  (short)888 ,
  576                                      sta6a =  "888",
  577                                      StationN ame = "Bed rock",
  578                                      Location Name = "BE DROCK",
  579                                      LastAuth DateTime =  DateTime. UtcNow,
  580                                      ViaB = t rue,
  581                                      PHIPII =  true,
  582                                      VIAToken  = "XXXXX" ,
  583                                      VIAToken Expiration  = DateTim e.UtcNow.A ddHours(4) ,
  584                                      Admin =  true
  585                                 }
  586                             }
  587                         }
  588                    },
  589  
  590                }[i];
  591           }
  592       }
  593   }