getSpecialties() public method

public getSpecialties ( AbstractConnection cxn ) : DictionaryHashList
cxn AbstractConnection
return DictionaryHashList
コード例 #1
0
ファイル: EncounterLib.cs プロジェクト: OSEHRA/mdws
        public TaggedText getSpecialties(string sitecode)
        {
            TaggedText result = new TaggedText();
            string msg = MdwsUtils.isAuthorizedConnection(mySession, sitecode);
            if (msg != "OK")
            {
                result.fault = new FaultTO(msg);
            }
            if (result.fault != null)
            {
                return result;
            }

            if (sitecode == null)
            {
                sitecode = mySession.ConnectionSet.BaseSiteId;
            }

            try
            {
                EncounterApi api = new EncounterApi();
                AbstractConnection cxn = mySession.ConnectionSet.getConnection(sitecode);
                DictionaryHashList specialties = api.getSpecialties(cxn);
                result = new TaggedText(sitecode, specialties);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }