예제 #1
0
        public void TestSetPatientInformation()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioSetPatientInformationCommand command = new DsioSetPatientInformationCommand(broker);

                command.AddCommandArguments(TestConfiguration.DefaultPatientDfn, DsioPatientInformationFields.LmpKey, "06/06/2014");

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Fail, response.Status);
            }
        }
        private BrokerOperationResult CallSaveRpc(string dfn, Dictionary <string, string> newValues)
        {
            BrokerOperationResult returnResult = new BrokerOperationResult();

            DsioSetPatientInformationCommand command = new DsioSetPatientInformationCommand(this.broker);

            foreach (string key in newValues.Keys)
            {
                command.AddCommandArguments(dfn, key, newValues[key]);

                RpcResponse response = command.Execute();

                returnResult.SetResult(response.Status == RpcResponseStatus.Success, response.InformationalMessage);

                if (!returnResult.Success)
                {
                    break;
                }
            }

            return(returnResult);
        }