예제 #1
0
 public InpatientStay[] getAdmissions(AbstractConnection cxn)
 {
     IEncounterDao dao = (IEncounterDao)cxn.getDao(DAO_NAME);
     if (dao == null)
     {
         return null;
     }
     return dao.getAdmissions();
 }
예제 #2
0
 public Appointment[] getAppointments(AbstractConnection cxn)
 {
     IEncounterDao dao = (IEncounterDao)cxn.getDao(DAO_NAME);
     if (dao == null)
     {
         return null;
     }
     return dao.getAppointments();
 }
예제 #3
0
파일: EncounterApi.cs 프로젝트: OSEHRA/mdo
 public Appointment[] getAppointments(AbstractConnection cxn, int pastDays, int futureDays)
 {
     IEncounterDao dao = (IEncounterDao)cxn.getDao(DAO_NAME);
     if (dao == null)
     {
         return null;
     }
     return dao.getAppointments(pastDays,futureDays);
 }
예제 #4
0
 public void addConnection(string sitecode, AbstractConnection cxn)
 {
     lock (_cxns)
     {
         if (!_cxns.ContainsKey(sitecode))
         {
             _cxns.Add(sitecode, new List<AbstractConnection>());
         }
         _cxns[sitecode].Add(cxn);
     }
 }
예제 #5
0
파일: ToolsApi.cs 프로젝트: OSEHRA/mdo
 public string[] ddrLister(
     AbstractConnection cxn,
     string file,
     string iens,
     string flds,
     string flags,
     string maxRex,
     string from,
     string part,
     string xref,
     string screen,
     string identifier)
 {
     VistaToolsDao dao = new VistaToolsDao(cxn);
     return dao.ddrLister(file, iens, flds, flags, maxRex, from, part, xref, screen, identifier);
 }
예제 #6
0
        // This constructor is needed for API level tests.
        public MockConnection(string siteId, string protocol, bool updateRpc = false)
            : base(null)
        {
            this.DataSource = new DataSource();
            this.DataSource.SiteId = new SiteId(siteId, "Mock");
            this.DataSource.Protocol = protocol;

            _sqliteCxn = new XSqliteConnection(this.DataSource);

            this.Account = new MockAccount(this);
            //this.Account.IsAuthenticated = true;
            this.updateRpc = updateRpc;

            AbstractCredentials credentials = new VistaCredentials();
            credentials.AccountName = "AccessCode";
            credentials.AccountPassword = "******";
            AbstractPermission permission = new MenuOption(VistaConstants.MDWS_CONTEXT);
            permission.IsPrimary = true;
            this.Account.Permissions.Add(permission.Name, permission);
        }
예제 #7
0
 public override IToolsDao getToolsDao(AbstractConnection cxn)
 {
     return new VistaToolsDao(cxn); ;
 }
예제 #8
0
파일: Claim.cs 프로젝트: OSEHRA/mdo
 internal static IClaimsDao getDao(AbstractConnection cxn)
 {
     AbstractDaoFactory f = AbstractDaoFactory.getDaoFactory(AbstractDaoFactory.getConstant(cxn.DataSource.Protocol));
     return f.getClaimsDao(cxn);
 }
예제 #9
0
 public MockConnection(DataSource dataSource)
     : base(dataSource)
 {
     _sqliteCxn = new XSqliteConnection(dataSource);
 }
예제 #10
0
파일: ConnectionSet.cs 프로젝트: OSEHRA/mdo
 public abstract object getDao(string daoName, AbstractConnection c);
예제 #11
0
파일: ConnectionSet.cs 프로젝트: OSEHRA/mdo
 public override object getDao(string daoName, AbstractConnection c)
 {
     AbstractDaoFactory f = AbstractDaoFactory.getDaoFactory(AbstractDaoFactory.getConstant(c.DataSource.Protocol));
     return f.getDaoByName(daoName, c);
 }
예제 #12
0
 public override IRadiologyDao getRadiologyDao(AbstractConnection cxn)
 {
     return(new VistaRadiologyDao(cxn));
 }
예제 #13
0
 public override INoteDao getNoteDao(AbstractConnection cxn)
 {
     return(new VistaNoteDao(cxn));
 }
예제 #14
0
 public override ILabsDao getLabsDao(AbstractConnection cxn)
 {
     return(new VistaLabsDao(cxn));
 }
예제 #15
0
 public override IPharmacyDao getPharmacyDao(AbstractConnection cxn)
 {
     return(new VistaPharmacyDao(cxn));
 }
예제 #16
0
 public override IEncounterDao getEncounterDao(AbstractConnection cxn)
 {
     return(new VistaEncounterDao(cxn));
 }
예제 #17
0
 public override IPatientDao getPatientDao(AbstractConnection cxn)
 {
     return(new VistaPatientDao(cxn));
 }
예제 #18
0
 public override IUserDao getUserDao(AbstractConnection cxn)
 {
     return(new VistaUserDao(cxn));
 }
예제 #19
0
 public override IToolsDao getToolsDao(AbstractConnection cxn)
 {
     return(new VistaToolsDao(cxn));;
 }
예제 #20
0
 public override IEncounterDao getEncounterDao(AbstractConnection cxn)
 {
     return new VistaEncounterDao(cxn);
 }
예제 #21
0
 public override IVitalsDao getVitalsDao(AbstractConnection cxn)
 {
     return(new VistaVitalsDao(cxn));
 }
예제 #22
0
 public override IPharmacyDao getPharmacyDao(AbstractConnection cxn)
 {
     return new VistaPharmacyDao(cxn);
 }
예제 #23
0
 public override IChemHemDao getChemHemDao(AbstractConnection cxn)
 {
     return(new VistaChemHemDao(cxn));
 }
예제 #24
0
파일: ConnectionSet.cs 프로젝트: OSEHRA/mdo
 public abstract override bool skipThisConnection(AbstractConnection c);
예제 #25
0
 public override IClaimsDao getClaimsDao(AbstractConnection cxn)
 {
     return(new VistaClaimsDao(cxn));
 }
예제 #26
0
파일: ConnectionSet.cs 프로젝트: OSEHRA/mdo
 public override bool skipThisConnection(AbstractConnection c)
 {
     return !c.IsConnected;
 }
예제 #27
0
 public override IConsultDao getConsultDao(AbstractConnection cxn)
 {
     return(new VistaConsultDao(cxn));
 }
예제 #28
0
파일: ConnectionSet.cs 프로젝트: OSEHRA/mdo
 public abstract bool skipThisConnection(AbstractConnection c);
예제 #29
0
 public override IRemindersDao getRemindersDao(AbstractConnection cxn)
 {
     return(new VistaRemindersDao(cxn));
 }
예제 #30
0
        public void reallocateConnection(AbstractConnection cxn)
        {
            Thread t = new Thread(new ParameterizedThreadStart(threadedReallocateConnection));

            t.Start(cxn);
        }
예제 #31
0
 public override IVitalsDao getVitalsDao(AbstractConnection cxn)
 {
     return new VistaVitalsDao(cxn);
 }
예제 #32
0
 public override IRemindersDao getRemindersDao(AbstractConnection cxn)
 {
     return new VistaRemindersDao(cxn);
 }
예제 #33
0
 public override IClinicalDao getClinicalDao(AbstractConnection cxn)
 {
     return new VistaClinicalDao(cxn);
 }
예제 #34
0
 public override IUserDao getUserDao(AbstractConnection cxn)
 {
     return new VistaUserDao(cxn);
 }
예제 #35
0
 public override ISchedulingDao getSchedulingDao(AbstractConnection cxn)
 {
     return(new VistaSchedulingDao(cxn));
 }
예제 #36
0
 public override IChemHemDao getChemHemDao(AbstractConnection cxn)
 {
     return new VistaChemHemDao(cxn);
 }
예제 #37
0
 public override ILocationDao getLocationDao(AbstractConnection cxn)
 {
     return new VistaLocationDao(cxn);
 }
예제 #38
0
 public override IConsultDao getConsultDao(AbstractConnection cxn)
 {
     return new VistaConsultDao(cxn);
 }
예제 #39
0
 public override IOrdersDao getOrdersDao(AbstractConnection cxn)
 {
     return new VistaOrdersDao(cxn);
 }
예제 #40
0
 public override ILabsDao getLabsDao(AbstractConnection cxn)
 {
     return new VistaLabsDao(cxn);
 }
예제 #41
0
 public override IOrdersDao getOrdersDao(AbstractConnection cxn)
 {
     return(new VistaOrdersDao(cxn));
 }
예제 #42
0
 public override INoteDao getNoteDao(AbstractConnection cxn)
 {
     return new VistaNoteDao(cxn);
 }
예제 #43
0
파일: ConnectionSet.cs 프로젝트: OSEHRA/mdo
 public ConnectionSet(AbstractConnection c)
 {
     myCxns = new Dictionary<string, AbstractConnection>();
     myCxns.Add(c.DataSource.SiteId.Id, c);
     baseSiteId = c.DataSource.SiteId.Id;
 }
예제 #44
0
 public override IPatientDao getPatientDao(AbstractConnection cxn)
 {
     return new VistaPatientDao(cxn);
 }
예제 #45
0
파일: ConnectionSet.cs 프로젝트: OSEHRA/mdo
 public override object getDao(string daoName, AbstractConnection c)
 {
     return c;
 }
예제 #46
0
 public override IRadiologyDao getRadiologyDao(AbstractConnection cxn)
 {
     return new VistaRadiologyDao(cxn);
 }
예제 #47
0
 public MockConnection(DataSource dataSource) : base(dataSource)
 {
     _sqliteCxn = new XSqliteConnection(dataSource);
 }