#============================================================ # main - unit testing #------------------------------------------------------------ if __name__ == '__main__': if len(sys.argv) < 2: sys.exit() if sys.argv[1] != 'test': sys.exit() gmI18N.activate_locale() gmI18N.install_domain('gnumed') gmPG2.request_login_params(setup_pool=True) #-------------------------------------------------------- def test_gen_item(): for item in get_generic_emr_items(order_by=None, patient=12, return_pks=False): print('------------------------------') print(item.format(eol='\n')) print(item.staff_id) input('<next>') #print(item.specialized_item) #input('<next>') #-------------------------------------------------------- test_gen_item()
def test_print_generic_document(): #gmStaff.set_current_provider_to_logged_on_user() from Gnumed.pycommon import gmPG2 gmPG2.request_login_params(setup_pool = True) gmPraxis.activate_first_praxis_branch() print_generic_document() #parent=None, jobtype=None, episode=None
map_urb_zip_country2region(urb='Kassel', zip='34119', country=None, country_code='DE')) print( map_urb_zip_country2region(urb='Kassel', zip='34119', country=None, country_code=None)) # print map_urb_zip_country2region(urb = 'Kassel', zip = '34119', country = u'Deutschland', country_code = 'DE') # print map_urb_zip_country2region(urb = 'Kassel', zip = '34119', country = u'Deutschland', country_code = 'DE') # print map_urb_zip_country2region(urb = 'Kassel', zip = '34119', country = u'Deutschland', country_code = 'DE') # print map_urb_zip_country2region(urb = 'Kassel', zip = '34119', country = u'Deutschland', country_code = 'DE') #-------------------------------------------------------- #gmPG2.get_connection() l, creds = gmPG2.request_login_params() gmConnectionPool.gmConnectionPool().credentials = creds test_address_exists() #test_create_address() #test_get_countries() #test_get_country_for_region() #test_delete_tag() #test_tag_images() test_get_billing_address() #test_map_urb_zip_region2country() #test_map_urb_zip_country2region()