def sc_test004(test_suite_details): '''This tests clinic features such as expand the entry, add and edit, and Patient demographics''' testname = sys._getframe().f_code.co_name test_driver = TestHelper.TestDriver(testname) test_driver.pre_test_run(test_suite_details) try: VistA = test_driver.connect_VistA(test_suite_details) SC = SCActions(VistA, scheduling='Scheduling') time = SC.schtime(plushour=1) SC.signon() SC.makeapp(patient='345238901', datetime=time) SC.signon() SC.patdem(name='Ten', mult='2') SC.signon() SC.expandentry(vlist1=['TEN', 'SCHEDULED', '30'], vlist2=['Event', 'Date', 'User', 'TESTMASTER'], vlist3=['NEXT AVAILABLE', 'NO', '0'], vlist4=['1933', 'MALE', 'UNANSWERED'], vlist5=['Combat Veteran:', 'No check out information'], mult='2') SC.signon() SC.addedit(name='345623902', icd='305.91') SC.signoff() test_driver.post_test_run(test_suite_details) except TestHelper.TestError, e: test_driver.exception_handling(test_suite_details, e)
def sc_test004(test_suite_details): ''' This tests clinic features such as expand the entry, add and edit, and Patient demographics ''' testname = sys._getframe().f_code.co_name test_driver = TestHelper.TestDriver(testname) test_driver.pre_test_run(test_suite_details) try: VistA = test_driver.connect_VistA(test_suite_details) SC = SCActions(VistA, scheduling='Scheduling') time = SC.schtime(plushour=1) SC.signon() tclinic = SC.getclinic() SC.makeapp(clinic=tclinic, patient='345238901', datetime=time) SC.signon() SC.patdem(clinic=tclinic, name='Ten', mult='2') SC.signon() SC.expandentry(clinic=tclinic, vlist1=['TEN', 'SCHEDULED', '30'], vlist2=['Event', 'Date', 'User', 'USER'], vlist3=['NEXT AVAILABLE', 'NO', '0'], vlist4=['1933', 'MALE', 'UNANSWERED'], vlist5=['Combat Veteran:', 'No check out information'], mult='3') SC.signon() SC.addedit(clinic=tclinic, name='354623902', icd='305.91', icd10='F18.10') SC.signoff() test_driver.post_test_run(test_suite_details) except TestHelper.TestError, e: test_driver.exception_handling(test_suite_details, e)
def sc_test004(resultlog, result_dir, namespace): """ This tests clinic features such as expand the entry, add and edit, and Patient demographics """ testname = sys._getframe().f_code.co_name resultlog.write("\n" + testname + ", " + str(datetime.datetime.today()) + ": ") logging.debug("\n" + testname + ", " + str(datetime.datetime.today()) + ": ") try: VistA = connect_VistA(testname, result_dir, namespace) SC = SCActions(VistA, scheduling="Scheduling") time = SC.schtime(plushour=1) SC.signon() tclinic = SC.getclinic() SC.makeapp(clinic=tclinic, patient="345238901", datetime=time) SC.signon() SC.patdem(clinic=tclinic, name="Ten", mult="2") SC.signon() SC.expandentry( clinic=tclinic, vlist1=["TEN", "SCHEDULED", "30"], vlist2=["Event", "Date", "User", "TESTMASTER"], vlist3=["NEXT AVAILABLE", "NO", "0"], vlist4=["1933", "MALE", "UNANSWERED"], vlist5=["Combat Veteran:", "No check out information"], mult="3", ) SC.signon() SC.addedit(clinic=tclinic, name="354623902", icd="305.91") SC.signoff() except TestHelper.TestError, e: resultlog.write("\nEXCEPTION ERROR:" + str(e)) logging.error("*****exception*********" + str(e))
def sc_test004(resultlog, result_dir, namespace): '''This tests clinic features such as expand the entry, add and edit, and Patient demographics''' testname = sys._getframe().f_code.co_name resultlog.write('\n' + testname + ', ' + str(datetime.datetime.today()) + ': ') logging.debug('\n' + testname + ', ' + str(datetime.datetime.today()) + ': ') try: VistA = connect_VistA(testname, result_dir, namespace) SC = SCActions(VistA, scheduling='Scheduling') time = SC.schtime(plushour=1) SC.signon() tclinic = SC.getclinic() SC.makeapp(clinic=tclinic, patient='345238901', datetime=time) SC.signon() SC.patdem(clinic=tclinic, name='Ten', mult='2') SC.signon() SC.expandentry(clinic=tclinic, vlist1=['TEN', 'SCHEDULED', '30'], vlist2=['Event', 'Date', 'User', 'TESTMASTER'], vlist3=['NEXT AVAILABLE', 'NO', '0'], vlist4=['1933', 'MALE', 'UNANSWERED'], vlist5=['Combat Veteran:', 'No check out information'], mult='3') SC.signon() SC.addedit(clinic=tclinic, name='354623902', icd='305.91') SC.signoff() except TestHelper.TestError, e: resultlog.write('\nEXCEPTION ERROR:' + str(e)) logging.error('*****exception*********' + str(e))
def sc_test004(resultlog, result_dir, namespace): ''' This tests clinic features such as expand the entry, add and edit, and Patient demographics ''' testname = sys._getframe().f_code.co_name resultlog.write('\n' + testname + ', ' + str(datetime.datetime.today()) + ': ') logging.debug('\n' + testname + ', ' + str(datetime.datetime.today()) + ': ') try: VistA = connect_VistA(testname, result_dir, namespace) SC = SCActions(VistA, scheduling='Scheduling') time = SC.schtime(plushour=1) SC.signon() tclinic = SC.getclinic() SC.makeapp(clinic=tclinic, patient='345238901', datetime=time) SC.signon() SC.patdem(clinic=tclinic, name='Ten', mult='2') SC.signon() SC.expandentry(clinic=tclinic, vlist1=['TEN', 'SCHEDULED', '30'], vlist2=['Event', 'Date', 'User', 'TESTMASTER'], vlist3=['NEXT AVAILABLE', 'NO', '0'], vlist4=['1933', 'MALE', 'UNANSWERED'], vlist5=['Combat Veteran:', 'No check out information'], mult='3') SC.signon() SC.addedit(clinic=tclinic, name='354623902', icd='305.91') SC.signoff() except TestHelper.TestError, e: resultlog.write('\nEXCEPTION ERROR:' + str(e)) logging.error('*****exception*********' + str(e))