gov.va.medora.mdws.PatientLib.getDemographics C# (CSharp) Method

getDemographics() public method

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

            string msg = MdwsUtils.isAuthorizedConnection(mySession);
            if (msg != "OK")
            {
                result.fault = new FaultTO(msg);
            }
            else if (String.IsNullOrEmpty(mySession.ConnectionSet.BaseConnection.Pid) || mySession.Patient == null)
            {
                result.fault = new FaultTO("Need to select patient");
            }
            if (result.fault != null)
            {
                return result;
            }
            try
            {
                result = new PatientTO(getHomeData(mySession.Patient));
            }
            catch (Exception exc)
            {
                result.fault = new FaultTO(exc);
            }
            return result;
        }

Usage Example

Ejemplo n.º 1
0
        public PatientTO getDemographics()
        {
            PatientLib lib = new PatientLib(MySession);

            return(lib.getDemographics());
        }
All Usage Examples Of gov.va.medora.mdws.PatientLib::getDemographics