상속: AbstractArrayTO
예제 #1
0
파일: NoteLib.cs 프로젝트: OSEHRA/mdws
        public PatientRecordFlagArray getPrfNoteActions(string sitecode, string noteDefinitionIEN)
        {
            PatientRecordFlagArray result = new PatientRecordFlagArray();
            string msg = MdwsUtils.isAuthorizedConnection(_mySession, sitecode);
            if (msg != "OK")
            {
                result.fault = new FaultTO(msg);
            }
            else if (noteDefinitionIEN == "")
            {
                result.fault = new FaultTO("Missing noteDefinitionIEN");
            }
            if (result.fault != null)
            {
                return result;
            }
            if (sitecode == null)
            {
                sitecode = _mySession.ConnectionSet.BaseSiteId;
            }

            try
            {
                AbstractConnection cxn = _mySession.ConnectionSet.getConnection(sitecode);
                PatientRecordFlag[] flags = _api.getPrfNoteActions(cxn, noteDefinitionIEN);
                result = new PatientRecordFlagArray(flags);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }