public void Init(IndexedHashtable mdo) { if (mdo == null) { return; } healthSummaries = new HealthSummaryTO[mdo.Count]; for (int i = 0; i < mdo.Count; i++) { healthSummaries[i] = new HealthSummaryTO((HealthSummary)mdo.GetValue(i),(string)mdo.GetKey(i)); } count = mdo.Count; }
public HealthSummaryTO getHealthSummary(string healthSummaryId, string healthSummaryName) { HealthSummaryTO result = new HealthSummaryTO(); if (string.IsNullOrEmpty(healthSummaryId) && string.IsNullOrEmpty(healthSummaryName)) { result.fault = new FaultTO("Missing health summary Id OR health summary name. Please provide one of the parameters."); return(result); } try { HealthSummary hs = ClinicalApi.getHealthSummary(mySession.ConnectionSet.BaseConnection, new MdoDocument(healthSummaryId, healthSummaryName)); result.Init(hs); } catch (Exception e) { result.fault = new FaultTO(e.Message); } return(result); }
public HealthSummaryTO getHealthSummary(string healthSummaryId, string healthSummaryName) { HealthSummaryTO result = new HealthSummaryTO(); if (string.IsNullOrEmpty(healthSummaryId) && string.IsNullOrEmpty(healthSummaryName)) { result.fault = new FaultTO("Missing health summary Id OR health summary name. Please provide one of the parameters."); return result; } try { HealthSummary hs = ClinicalApi.getHealthSummary(mySession.ConnectionSet.BaseConnection, new MdoDocument(healthSummaryId, healthSummaryName)); result.Init(hs); } catch (Exception e) { result.fault = new FaultTO(e.Message); } return result; }
public void Init(HealthSummary[] mdo) { if (mdo == null) { return; } healthSummaries = new HealthSummaryTO[mdo.Length]; for (int i = 0; i < mdo.Length; i++) { healthSummaries[i] = new HealthSummaryTO(mdo[i]); } count = mdo.Length; }