gov.va.medora.mdo.api.PatientApi.issueConfidentialityBulletin C# (CSharp) 메소드

issueConfidentialityBulletin() 공개 메소드

public issueConfidentialityBulletin ( ConnectionSet cxns ) : IndexedHashtable
cxns ConnectionSet
리턴 IndexedHashtable
        public IndexedHashtable issueConfidentialityBulletin(ConnectionSet cxns)
        {
            return cxns.query(DAO_NAME, "issueConfidentialityBulletin", new object[] { });
        }

Same methods

PatientApi::issueConfidentialityBulletin ( AbstractConnection cxn ) : string

Usage Example

예제 #1
0
파일: PatientLib.cs 프로젝트: OSEHRA/mdws
        public PatientTO select(string sitecode, string localPid)
        {
            PatientTO result = new PatientTO();
            string msg = MdwsUtils.isAuthorizedConnection(mySession, sitecode);
            if (msg != "OK")
            {
                result.fault = new FaultTO(msg);
            }
            else if (String.IsNullOrEmpty(localPid))
            {
                result.fault = new FaultTO("Missing local PID");
            }
            if (result.fault != null)
            {
                return result;
            }

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

            try
            {
                AbstractConnection cxn = mySession.ConnectionSet.getConnection(sitecode);
                PatientApi api = new PatientApi();
                Patient p = api.select(cxn, localPid);
                result = new PatientTO(p);
                mySession.Patient = p;
                mySession.ConnectionSet.getConnection(sitecode).Pid = result.localPid;
                if (p.Confidentiality.Key > 0)
                {
                    if (p.Confidentiality.Key == 1)
                    {
                        // do nothing here - M code takes care of this per documentation
                    }
                    else if (p.Confidentiality.Key == 2)
                    {
                        api.issueConfidentialityBulletin(mySession.ConnectionSet);
                    }
                    else if (p.Confidentiality.Key > 2)
                    {
                        mySession.ConnectionSet.disconnectAll();
                        throw new ApplicationException(p.Confidentiality.Value);
                    }
                }
            }
            catch (Exception e)
            {
                result.fault = new FaultTO(e.Message);
            }
            return result;
        }
All Usage Examples Of gov.va.medora.mdo.api.PatientApi::issueConfidentialityBulletin