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;
}