Inheritance: AbstractTO
Ejemplo n.º 1
0
 public LabPanelTO(LabPanel mdo)
 {
     if (mdo == null)
     {
         return;
     }
     this.tests = new LabTestArray(mdo.Tests);
     this.name  = mdo.Name;
     this.order = new OrderTO(mdo.Order);
 }
Ejemplo n.º 2
0
 public LabPanelTO(LabPanel mdo)
 {
     if (mdo == null)
     {
         return;
     }
     this.tests = new LabTestArray(mdo.Tests);
     this.name = mdo.Name;
     this.order = new OrderTO(mdo.Order);
 }
Ejemplo n.º 3
0
        public TaggedOrderArray(string tag, Order[] orderTOs)
        {
            this.tag = tag;
            this.count = 0;

            if (orderTOs == null || orderTOs.Length == 0)
            {
                return;
            }

            items = new OrderTO[orderTOs.Length];
            this.count = orderTOs.Length;

            for (int i = 0; i < orderTOs.Length; i++)
            {
                items[i] = new OrderTO(orderTOs[i]);
            }
        }
Ejemplo n.º 4
0
        public TaggedOrderArray(string tag, Order[] orderTOs)
        {
            this.tag   = tag;
            this.count = 0;

            if (orderTOs == null || orderTOs.Length == 0)
            {
                return;
            }

            items      = new OrderTO[orderTOs.Length];
            this.count = orderTOs.Length;

            for (int i = 0; i < orderTOs.Length; i++)
            {
                items[i] = new OrderTO(orderTOs[i]);
            }
        }
Ejemplo n.º 5
0
        public OrderTO writeSimpleOrderByPolicy(string providerDUZ, string esig, string locationIEN, string orderIEN, string startDate)
        {
            OrderTO result = new OrderTO();

            if (!mySession.ConnectionSet.IsAuthorized)
            {
                result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
            }
            else if (mySession.Patient == null)
            {
                result.fault = new FaultTO("No patient selected. Need to select patient first.");
            }
            else if (String.IsNullOrEmpty(providerDUZ) || string.IsNullOrEmpty(esig) ||
                String.IsNullOrEmpty(locationIEN) || String.IsNullOrEmpty(startDate))
            {
                result.fault = new FaultTO("Failed to supply required parameters");
            }
            if (result.fault != null)
            {
                return result;
            }

            try
            {
                Order order = Order.writeSimpleOrderByPolicy(mySession.ConnectionSet.getConnection(mySession.ConnectionSet.BaseSiteId),
                    mySession.Patient, providerDUZ, esig, locationIEN, orderIEN,
                    gov.va.medora.utils.DateUtils.IsoDateStringToDateTime(startDate));
                return new OrderTO(order);
            }
            catch (Exception exc)
            {
                result.fault = new FaultTO(exc);
            }
            return result;
        }