getRatedDisabiliities() public méthode

public getRatedDisabiliities ( ConnectionSet cxns ) : IndexedHashtable
cxns ConnectionSet
Résultat IndexedHashtable
Exemple #1
0
        // This is for iterating thru a list of patients at one site, getting the disabilities from only that site.
        public TaggedRatedDisabilityArray getRatedDisabilitiesForPatient(string dfn)
        {
            TaggedRatedDisabilityArray result = new TaggedRatedDisabilityArray();

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

            try
            {
                PatientApi patApi = new PatientApi();
                RatedDisability[] disabilities = patApi.getRatedDisabiliities(mySession.ConnectionSet.BaseConnection, dfn);
                result = new TaggedRatedDisabilityArray(mySession.ConnectionSet.BaseConnection.DataSource.SiteId.Id, disabilities);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }