gov.va.medora.mdws.OrdersLib.getConsultsForPatient C# (CSharp) Method

getConsultsForPatient() public method

public getConsultsForPatient ( ) : TaggedConsultArrays
return gov.va.medora.mdws.dto.TaggedConsultArrays
        public TaggedConsultArrays getConsultsForPatient()
        {
            TaggedConsultArrays result = new TaggedConsultArrays();

            if (!mySession.ConnectionSet.IsAuthorized)
            {
                result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
            }
            if (result.fault != null)
            {
                return result;
            }

            try
            {
                IndexedHashtable t = Consult.getConsultsForPatient(mySession.ConnectionSet);
                return new TaggedConsultArrays(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
                return result;
            }
        }

Usage Example

Ejemplo n.º 1
0
        public TaggedConsultArray getConsultsForPatient()
        {
            TaggedConsultArray result = new TaggedConsultArray();

            try
            {
                OrdersLib           lib = new OrdersLib(mySession);
                TaggedConsultArrays ta  = lib.getConsultsForPatient();
                if (ta.fault != null)
                {
                    result.fault = ta.fault;
                    return(result);
                }
                result = ta.arrays[0];
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return(result);
        }
All Usage Examples Of gov.va.medora.mdws.OrdersLib::getConsultsForPatient