getTreatingSpecialtyReports() 공개 메소드

public getTreatingSpecialtyReports ( ConnectionSet cxns, string fromDate, string toDate, int nrpts ) : IndexedHashtable
cxns ConnectionSet
fromDate string
toDate string
nrpts int
리턴 IndexedHashtable
예제 #1
0
파일: EncounterLib.cs 프로젝트: OSEHRA/mdws
        public TaggedTextArray getTreatingSpecialtyReports(string fromDate, string toDate, int nrpts)
        {
            TaggedTextArray result = new TaggedTextArray();

            if (!mySession.ConnectionSet.IsAuthorized)
            {
                result.fault = new FaultTO("Connections not ready for operation", "Need to login?");
            }
            else if (fromDate == "")
            {
                result.fault = new FaultTO("Missing fromDate");
            }
            else if (toDate == "")
            {
                result.fault = new FaultTO("Missing toDate");
            }
            if (result.fault != null)
            {
                return result;
            }

            try
            {
                EncounterApi api = new EncounterApi();
                IndexedHashtable t = api.getTreatingSpecialtyReports(mySession.ConnectionSet, fromDate, toDate, nrpts);
                result = new TaggedTextArray(t);
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e);
            }
            return result;
        }