gov.va.medora.mdws.MdwsUtils.isAuthorizedConnection C# (CSharp) Method

isAuthorizedConnection() public static method

public static isAuthorizedConnection ( MySession mySession ) : string
mySession MySession
return string
        public static string isAuthorizedConnection(MySession mySession)
        {
            return isAuthorizedConnection(mySession, null);
        }

Same methods

MdwsUtils::isAuthorizedConnection ( MySession mySession, string sitecode ) : string

Usage Example

Ejemplo n.º 1
0
        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);
        }
All Usage Examples Of gov.va.medora.mdws.MdwsUtils::isAuthorizedConnection