|
.
.
.
/// <summary>
/// Returns summary information for the specified problem code
/// </summary>
/// <param name="pcValue">The value associated with the problem code</param>
/// <param name="cs">The code system in which the problem code has meaning</param>
/// <param name="objAppErr">The application error object</param>
/// <returns></returns>
public static XElement getProblemCode(string pcValue, PCCodeSystem cs, Language lang, ref ToolKit.AppErr objAppErr)
{
XElement problemCode = null;
string url = MedlinePlusConnectBaseURL + "?mainSearchCriteria.v.cs=" + getPCCodeSystemValue(cs);
url += "&mainSearchCriteria.v.c=" + HttpUtility.UrlEncode(pcValue);
url += "&informationRecipient.languageCode.c=" + getLanguageValue(lang);
try
{
problemCode = XElement.Load(url);
}
catch (Exception ex)
{
objAppErr.AppErrNum = -1;
objAppErr.AppErrMsg = ex.Message;
objAppErr.LoadException(ex);
}
return problemCode;
}
.
.
.
|