コード例 #1
0
        public static string getPCCodeSystemValue(PCCodeSystem cs)
        {
            string codeSystemValue = "";

            switch (cs)
            {
            case PCCodeSystem.ICD9CM:
                codeSystemValue = "2.16.840.1.113883.6.103";
                break;

            case PCCodeSystem.ICD10CM:
                codeSystemValue = "2.16.840.1.113883.6.90";
                break;

            case PCCodeSystem.SNOMED_CT_CORE_Problem_List_Subset:
                codeSystemValue = "2.16.840.1.113883.6.96";
                break;

            default:
                codeSystemValue = "2.16.840.1.113883.6.96";
                break;
            }

            return(codeSystemValue);
        }
コード例 #2
0
        /// <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)
        {
            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)
            {
            }

            return(problemCode);
        }