Ejemplo n.º 1
0
        public void TestUpdateANoteWithPregnancy()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioCreateANoteCommand command = new DsioCreateANoteCommand(broker);

                DsioPregnancy preg = this.GetOrCreatePregnancy(broker, TestConfiguration.DefaultPatientDfn);

                Assert.IsNotNull(preg);

                command.AddCommandArguments(TestConfiguration.DefaultPatientDfn, "PHONE CALL #1 (FIRST CONTACT)", "Tue Note", "A Subject Goes Here", new DsioNoteData(), preg.Ien);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                DsioUpdateANoteCommand updCommand = new DsioUpdateANoteCommand(broker);

                //command.AddCommandArguments("197", "PHONE CALL #1 (FIRST CONTACT)", "Thursday Notes", "test subject", new DsioNoteData(), "9999");
                updCommand.AddCommandArguments(command.Ien, "This is edited without preg", "New Subject", null, "");

                response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }
        public void TestGetDoc()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioSaveIheDocCommand saveCommand = new DsioSaveIheDocCommand(broker);

                // TODO: Get content somewhere else...
                string content = File.ReadAllText(testFile);

                // This works...
                saveCommand.AddCommandArguments("", Guid.NewGuid().ToString("B"), "715", "OUT", DateTime.Now.ToString(), DateTime.Now.ToString(), "APS", "This is a Test Title", "VA", "Outside Clinic", content);

                RpcResponse saveResponse = saveCommand.Execute();

                string addedIen = saveCommand.Ien;

                //DsioIheGetDocCommand command = new DsioIheGetDocCommand(broker);
                DsioGetIheDocsCommand command = new DsioGetIheDocsCommand(broker);

                command.AddCommandArguments("", addedIen, -1, -1);

                RpcResponse response = command.Execute();

                Assert.IsNotNull(response);
                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }
Ejemplo n.º 3
0
        public void TestCreateTrackingLog()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioCreateTrackingLogCommand command = new DsioCreateTrackingLogCommand(broker);

                string   dfn       = TestConfiguration.DefaultPatientDfn;
                string   eventType = "0";
                string   reason    = "Pregnant";
                string[] comment   = new string[] { "line1", "line2" };

                command.AddCommandArguments(dfn, eventType, reason, comment);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                eventType = "1";

                command.AddCommandArguments(dfn, eventType, reason, comment);

                response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                broker.Disconnect();
            }
        }
Ejemplo n.º 4
0
        public void TestGetTracking_AllEntries()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioGetTrackingCommand command = new DsioGetTrackingCommand(broker);

                command.AddGetAllParameters(1, 5);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
                Assert.IsNotNull(command.TrackingItems);

                if (command.TrackingItems.Count > 0)
                {
                    foreach (DsioTrackingItem item in command.TrackingItems)
                    {
                        Assert.IsFalse(string.IsNullOrWhiteSpace(item.Id));
                        Assert.IsFalse(string.IsNullOrWhiteSpace(item.Dfn));
                        Assert.IsFalse(string.IsNullOrWhiteSpace(item.PatientName));
                        //Assert.IsFalse(string.IsNullOrWhiteSpace(item.Reason));
                        Assert.IsFalse(string.IsNullOrWhiteSpace(item.Source));
                        Assert.IsFalse(string.IsNullOrWhiteSpace(item.TrackingItemDateTime));
                        Assert.IsFalse(string.IsNullOrWhiteSpace(item.TrackingType));
                        Assert.IsFalse(string.IsNullOrWhiteSpace(item.User));
                    }
                }
                broker.Disconnect();
            }
        }
Ejemplo n.º 5
0
        public void TestSaveNewPatientChecklistItem()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioSaveMccPatChecklistCommand command = new DsioSaveMccPatChecklistCommand(broker);

                DsioPatientChecklistItem item = new DsioPatientChecklistItem()
                {
                    PatientDfn          = "28",
                    PregnancyIen        = "4",
                    Category            = "First Trimester Requirements",
                    Description         = "Friday Tests",
                    ItemType            = DsioChecklistItemType.Lab,
                    DueCalculationType  = DsioChecklistCalculationType.None,
                    DueCalculationValue = "0",
                    CompletionStatus    = DsioChecklistCompletionStatus.Complete,
                    Link            = "12345",
                    SpecificDueDate = Util.GetFileManDate(new DateTime(2014, 9, 1)),
                    CompletionLink  = "54321",
                    Note            = "Checklist Item Note Text",
                    InProgress      = "1",
                    EducationIen    = "8"
                };

                command.AddCommandArguments(item);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                broker.Disconnect();
            }
        }
Ejemplo n.º 6
0
        public void TestCreateANote()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 3);

                DsioCreateANoteCommand command = new DsioCreateANoteCommand(broker);

                string[] TiuNoteTitleText = new string[] {
                    "MCC DASHBOARD NOTE",
                    "DASHBOARD CDA INCOMING",
                    "PHONE CALL #1 (FIRST CONTACT)",
                    "PHONE CALL #2 (12 WEEKS)",
                    "PHONE CALL #3 (20 WEEKS)",
                    "PHONE CALL #4 (28 WEEKS)",
                    "PHONE CALL #5 (36 WEEKS)",
                    "PHONE CALL #6A (41 WEEKS NOT DELIVERED)",
                    "PHONE CALL #6B (41 WEEKS DELIVERED) TOPICS",
                    "PHONE CALL #7 (6 WEEKS POSTPARTUM) TOPICS",
                };

                foreach (string title in TiuNoteTitleText)
                {
                    command.AddCommandArguments(patDfn, title, "Monday Notes", "test subject", new DsioNoteData(), "");
                    //command.AddCommandArguments("740", "MCC DASHBOARD NOTE", "Monday Notes", "test subject", new DsioNoteData());
                    //command.AddCommandArguments("740", "MCC Phone Call #1 (Initial Contact)", "Test MCC Call #1", "test subject", new DsioNoteData());
                    //command.AddCommandArguments("740", "PHONE CALL #7 (6 WEEKS POST-PARTUM) TOPICS", "Monday Notes", "test subject", new DsioNoteData());
                    //command.AddCommandArguments("740", "PHONE CALL #6A (41 WEEKS NOT DELIVERED)", "Monday Notes", "test subject", new DsioNoteData());

                    RpcResponse response = command.Execute();

                    Assert.AreEqual(RpcResponseStatus.Success, response.Status, string.Format("{0} could not be created", title));
                }
            }
        }
        private void TestDivisionSet(int userIndex, string divId, RpcResponseStatus expectedResponse)
        {
            Queue <CommandBase> commandQueue = new Queue <CommandBase>();

            using (RpcBroker broker = GetConnectedBroker())
            {
                commandQueue.Enqueue(new XusSignonSetupCommand(broker));

                XusAvCodeCommand avCommand = new XusAvCodeCommand(broker);
                avCommand.AddCommandArguments(ValidAccessCodes[userIndex], ValidVerifyCodes[userIndex]);

                commandQueue.Enqueue(avCommand);

                XusDivisionSetCommand divCommand = new XusDivisionSetCommand(broker, divId);

                commandQueue.Enqueue(divCommand);

                RpcResponse response = ExecuteCommandQueue(commandQueue);

                // *** Check results ***
                Assert.AreEqual(expectedResponse, response.Status);

                broker.Disconnect();
            }
        }
Ejemplo n.º 8
0
        public void TestSignNote()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioCreateANoteCommand commandCreate = new DsioCreateANoteCommand(broker);

                commandCreate.AddCommandArguments(patDfn, "MCC DASHBOARD NOTE", "Note text for Friday", "test subject", new DsioNoteData(), "");

                RpcResponse response = commandCreate.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                DsioSignANoteCommand command = new DsioSignANoteCommand(broker);

                command.AddCommandArguments(commandCreate.Ien, "NUR1234");

                response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                broker.Disconnect();
            }
        }
        public void TestSavePatientItem()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioSavePatientEducationCommand command = new DsioSavePatientEducationCommand(broker);

                DsioPatientEducationItem edItem = new DsioPatientEducationItem()
                {
                    PatientDfn  = "647",
                    CompletedOn = Util.GetFileManDateAndTime(DateTime.Now),
                    Description = "Testing",
                    Category    = "Other",
                    ItemType    = "E",
                    CodeSystem  = "N",
                    //Url = "http://testurl"
                    //Description = "D234567891123456789212345678931234567894123456789512345678961234567897123456789812345678991234567890",
                    //Category = "C234567891123456789212345678931234567894123456789512345678961234567897123456789812345678991234567890",
                    //ItemType = "L",
                    //CodeSystem = "None",
                    //Url = "U234567891123456789212345678931234567894123456789512345678961234567897123456789812345678991234567890"
                };

                command.AddCommandArguments(edItem);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
                Assert.IsNotNull(command.Ien);

                broker.Disconnect();
            }
        }
        public void TestSavePatientItemCopy()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioSavePatientEducationCommand command = new DsioSavePatientEducationCommand(broker);

                DsioPatientEducationItem edItem = new DsioPatientEducationItem()
                {
                    PatientDfn       = "715",
                    CompletedOn      = Util.GetFileManDate(DateTime.Now),
                    EducationItemIen = "8"
                };

                command.AddCommandArguments(edItem);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
                Assert.IsNotNull(command.Ien);

                broker.Disconnect();
            }
        }
Ejemplo n.º 11
0
        public void TestSaveIHE()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioSaveIheDocCommand command = new DsioSaveIheDocCommand(broker);

                // TODO: Get content somewhere else...
                //string content = File.ReadAllText(@"Z:\VMShared\Source\TestCCD\test_aphp_header.xml");
                string content = File.ReadAllText(testFile);

                // This works...
                command.AddCommandArguments("", Guid.NewGuid().ToString("B"), "126", "OUT", DateTime.Now.ToString(), DateTime.Now.ToString(), "APS", "This is a Test Title", "VA", "Outside Clinic", content);
                //command.AddCommandArguments("", Guid.NewGuid().ToString("B"), "299", "OUT", DateTime.Now.ToString(), DateTime.Now.ToString(), "APS", "This is a Test Title", "VA", "Outside Clinic", "");
                //command.AddCommandArguments("", Guid.NewGuid().ToString("B"), "144", "OUT", DateTime.Now.ToString(), DateTime.Now.ToString(), "APS", "This is a Test Title", "VA", "Outside Clinic", content);

                // These do not...
                //command.AddCommandArguments("", Guid.NewGuid().ToString("B"), "8", "OUT", DateTime.Now.ToString(), DateTime.Now.ToString(), "APS", "This is a Test Title", "VA", "Outside Clinic", "");
                //command.AddCommandArguments("", "12345", "8", "OUT", DateTime.Now.ToString(), DateTime.Now.ToString(), "APS", "This is a Test Title", "VA", "Outside Clinic", "");

                //command.AddCommandArguments("", Guid.NewGuid().ToString("B"), "144", "OUT", DateTime.Now.ToString(), DateTime.Now.ToString(), "APS", "This is a Test Title", "VA", "Outside Clinic", "");

                RpcResponse response = command.Execute();

                Assert.IsNotNull(response);
                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }
Ejemplo n.º 12
0
        public void TestFailedGetUserInfo()
        {
            Queue <CommandBase> commandQueue = new Queue <CommandBase>();

            using (RpcBroker broker = GetConnectedBroker())
            {
                commandQueue.Enqueue(new XusSignonSetupCommand(broker));

                XusAvCodeCommand avCommand = new XusAvCodeCommand(broker);

                avCommand.AddCommandArguments(ValidAccessCodes[0], ValidVerifyCodes[0]);

                //commandQueue.Enqueue(avCommand);

                XusGetUserInfoCommand userInfoCommand = new XusGetUserInfoCommand(broker);

                commandQueue.Enqueue(userInfoCommand);

                RpcResponse response = ExecuteCommandQueue(commandQueue);

                // *** Check results ***
                Assert.AreEqual(RpcResponseStatus.Fail, response.Status);

                broker.Disconnect();
            }
        }
Ejemplo n.º 13
0
        public void TestGetContactNotesByDateRange()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioGetTiuNotesCommand command = new DsioGetTiuNotesCommand(broker);

                string[] TiuNoteTitleText = new string[] {
                    "PHONE CALL #1 (FIRST CONTACT)",
                    "PHONE CALL #2 (12 WEEKS)",
                    "PHONE CALL #3 (20 WEEKS)",
                    "PHONE CALL #4 (28 WEEKS)",
                    "PHONE CALL #5 (36 WEEKS)",
                    "PHONE CALL #6A (41 WEEKS",
                    "PHONE CALL #6B (12 WEEKS)",
                    "PHONE CALL #7 (6 WEEKS POSTPARTUM) TOPICS",
                    "MCC Phone Call – Additional"
                };

                command.AddCommandArguments(patDfn, TiuNoteTitleText, "08/11/2014", "08/15/2014", 1, 100, true, "", "");

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
                broker.Disconnect();
            }
        }
Ejemplo n.º 14
0
        public void TestGetProgressNoteText()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioCreateANoteCommand command = new DsioCreateANoteCommand(broker);

                command.AddCommandArguments(TestConfiguration.DefaultPatientDfn, "MCC DASHBOARD NOTE", "Note Text Here", "Some Subject", new DsioNoteData(), "");

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status, "MCC DASHBOARD NOTE could not be created");

                Assert.IsFalse(string.IsNullOrWhiteSpace(command.Ien));

                DsioGetRecordTextCommand getCommand = new DsioGetRecordTextCommand(broker);

                getCommand.AddCommandArgument(command.Ien, DsioGetRecordTextMode.HeaderAndBody);

                response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                broker.Disconnect();
            }
        }
Ejemplo n.º 15
0
        public void TestCreateDashboardNote()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 3);

                DsioCreateANoteCommand command = new DsioCreateANoteCommand(broker);

                command.AddCommandArguments("100017", "MCC DASHBOARD NOTE", "Note Text Here", "Some Subject", new DsioNoteData(), "");

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status, "MCC DASHBOARD NOTE could not be created");

                Assert.IsFalse(string.IsNullOrWhiteSpace(command.Ien));

                DsioGetTiuNotesCommand getCommand = new DsioGetTiuNotesCommand(broker);

                getCommand.AddCommandArguments("100017", new string[] { "MCC DASHBOARD NOTE" }, "", "", 0, 0, false, command.Ien, "");

                response = getCommand.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status, "MCC DASHBOARD NOTE could not be retrieved");

                Assert.IsNotNull(getCommand.Notes);
                Assert.IsTrue(getCommand.Notes.Count == 1);
                Assert.AreEqual(getCommand.Notes[0].Ien, command.Ien);
            }
        }
Ejemplo n.º 16
0
        public void TestSaveChecklistItem()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioSaveMccChecklistCommand command = new DsioSaveMccChecklistCommand(broker);

                DsioChecklistItem item = new DsioChecklistItem()
                {
                    Ien                 = "",
                    Description         = "Send Link to Pregnancy Video",
                    ItemType            = DsioChecklistItemType.EducationItem,
                    DueCalculationType  = DsioChecklistCalculationType.WeeksGa,
                    DueCalculationValue = "12",
                    Category            = "Some New Category",
                    EducationIen        = "8"
                };

                //6:Send Link to Pregnancy Video^2:Education Item^2:WEEKS GA^12^0:0^3456

                command.AddCommandArguments(item);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                broker.Disconnect();
            }
        }
Ejemplo n.º 17
0
        public void TestUserInfoCommand()
        {
            Queue <CommandBase> commandQueue = new Queue <CommandBase>();

            using (RpcBroker broker = GetConnectedBroker())
            {
                commandQueue.Enqueue(new XusSignonSetupCommand(broker));

                XusAvCodeCommand avCommand = new XusAvCodeCommand(broker);

                avCommand.AddCommandArguments(TestConfiguration.ValidAccessCodes[2], TestConfiguration.ValidVerifyCodes[2]);

                commandQueue.Enqueue(avCommand);

                OrwuUserInfoCommand testCommand = new OrwuUserInfoCommand(broker);

                commandQueue.Enqueue(testCommand);

                RpcResponse response = ExecuteCommandQueue(commandQueue);

                // *** Check results ***
                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                Assert.IsTrue((testCommand.UserInfo.Timeout > 0));

                broker.Disconnect();
            }
        }
Ejemplo n.º 18
0
        public void TestGetAllNotes()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioGetTiuNotesCommand command = new DsioGetTiuNotesCommand(broker);

                string[] tiuNoteTitleText = new string[] {
                    "MCC DASHBOARD NOTE",
                    "DASHBOARD CDA INCOMING",
                    "PHONE CALL #1 (FIRST CONTACT)",
                    "PHONE CALL #2 (12 WEEKS)",
                    "PHONE CALL #3 (20 WEEKS)",
                    "PHONE CALL #4 (28 WEEKS)",
                    "PHONE CALL #5 (36 WEEKS)",
                    "PHONE CALL #6A (41 WEEKS NOT DELIVERED)",
                    "PHONE CALL #6B (41 WEEKS DELIVERED) TOPICS",
                    "PHONE CALL #7 (6 WEEKS POSTPARTUM) TOPICS",
                };

                //command.AddCommandArguments("100032", tiuNoteTitleText, "", "", 1, 100, true, "", "");
                command.AddCommandArguments("168", tiuNoteTitleText, "", "", 1, 100, true, "", "");

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }
Ejemplo n.º 19
0
        public void TestUpdateNonVAItem()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 3);

                string newIen = SaveNewNonVAItem(broker);

                DsioGetExternalEntityCommand getCommand = new DsioGetExternalEntityCommand(broker);

                getCommand.AddCommandArguments(newIen, 1, 10);

                RpcResponse response = getCommand.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);

                DsioSaveExternalEntityCommand command = new DsioSaveExternalEntityCommand(broker);

                Assert.IsNotNull(getCommand.NonVAEntities);
                Assert.IsTrue(getCommand.NonVAEntities.Count == 1);

                DsioNonVAItem nonVAEntity = getCommand.NonVAEntities[0];

                nonVAEntity.EntityName = string.Format("Updated {0} Hospital", GetRandom());

                command.AddCommandArguments(nonVAEntity);

                response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }
        public void TestSavePerson()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                this.SavePerson(broker);
            }
        }
Ejemplo n.º 21
0
        public void TestSaveNonVAItem()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 3);

                SaveNewNonVAItem(broker);
            }
        }
Ejemplo n.º 22
0
        public void TestHasKeyCommand()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                TestHasSecurityKeyCommand(broker, "WEBM ADMIN");

                broker.Disconnect();
            }
        }
Ejemplo n.º 23
0
        protected RpcBroker GetConnectedBroker()
        {
            RpcBroker returnVal = new RpcBroker(TestConfiguration.ValidServerName, TestConfiguration.ValidPort);

            if (!returnVal.Connect())
            {
                Assert.Fail("Could not connect broker");
            }

            return(returnVal);
        }
Ejemplo n.º 24
0
        public void TestGetXml()
        {
            using (RpcBroker broker = new RpcBroker("sdfsdf", 0))
            {
                MockCommand cmd = new MockCommand(broker);

                string xml = cmd.GetXmlDescription();

                Assert.IsTrue((!string.IsNullOrWhiteSpace(xml)), "Xml is Null or Whitespace");
            }
        }
Ejemplo n.º 25
0
        public void TestSavePatientItem()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                SaveNewPatientItem(broker);

                broker.Disconnect();
            }
        }
Ejemplo n.º 26
0
        public void TestGetAllAlerts()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioGetAlertsCommand command = new DsioGetAlertsCommand(broker);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }
Ejemplo n.º 27
0
        public void TestSavePerson()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioSavePersonCommand command = new DsioSavePersonCommand(broker);

                DsioLinkedPerson fof = new DsioLinkedPerson();

                fof.PatientDfn = "715";

                DsioAddress addr = new DsioAddress();
                addr.StreetLine1 = "1234 Five Street";
                addr.StreetLine2 = "#3";
                addr.City        = "Seven";
                addr.State       = "SC";
                addr.ZipCode     = "90099";

                fof.Address = addr;

                List <DsioTelephone> telList = new List <DsioTelephone>();
                telList.Add(new DsioTelephone()
                {
                    Number = "800-800-8000", Usage = DsioTelephone.HomePhoneUsage
                });
                telList.Add(new DsioTelephone()
                {
                    Number = "900-900-9000", Usage = DsioTelephone.WorkPhoneUsage
                });
                telList.Add(new DsioTelephone()
                {
                    Number = "700-700-7000", Usage = DsioTelephone.MobilePhoneUsage
                });

                fof.TelephoneList.AddRange(telList);

                string temp = Guid.NewGuid().ToString();

                // TODO: Need random name generator to test this successfully repeatedly...
                fof.Name        = "Test,NamedOB";// +Guid.NewGuid().ToString();
                fof.DOB         = DateTime.Now.Subtract(new TimeSpan(10000, 0, 0, 0)).ToShortDateString();
                fof.YearsSchool = "18";

                command.AddCommandArguments(fof);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }
Ejemplo n.º 28
0
        public void TestGetReminderListNothingFound()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioGetReminderListCommand command = new DsioGetReminderListCommand(broker);

                command.AddCommandArguments("12345", 1, 10);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }
        public void TestGetPatientEducationItemsPaged()
        {
            using (RpcBroker broker = this.GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioGetPatientEducationCommand command = new DsioGetPatientEducationCommand(broker);

                command.AddCommandArguments("715", "", "", "", "", 2, 2);

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }
Ejemplo n.º 30
0
        public void TestGetDashboardNotes()
        {
            using (RpcBroker broker = GetConnectedBroker())
            {
                this.SignonToBroker(broker, 2);

                DsioGetTiuNotesCommand command = new DsioGetTiuNotesCommand(broker);

                command.AddCommandArguments(patDfn, new string[] { "MCC DASHBOARD NOTE" }, "", "", 1, 100, true, "", "");

                RpcResponse response = command.Execute();

                Assert.AreEqual(RpcResponseStatus.Success, response.Status);
            }
        }