def get_choose_despeak_page(doctor_id, select_date, time_desc=TIME_DESC['MORNING'], dept_name=DEPT_NAME_BOBY, triage_no='330'): doctor = ALL_DOCTORS.get(doctor_id) param_dict = {'DOCTOR_ID':doctor_id, 'DOCTOR':doctor, 'SelectDate':select_date, 'TIME_DESC':time_desc, 'DEPT_NAME':dept_name, 'TRIAGE_NO':triage_no} params = encode_url_params(param_dict) url = '%s?%s' % (XMFY_CHOOSE_DESPEAK_URL, params) return read_url(url)
def get_despeak_page(doctor_id, select_date, select_time, dept_name=DEPT_NAME_BOBY): doctor = ALL_DOCTORS.get(doctor_id) param_dict = { 'DOCTOR_ID': doctor_id, 'DOCTOR': doctor, 'SelectDate': select_date, 'SelectTime': select_time, 'DEPT_NAME': dept_name } params = encode_url_params(param_dict) url = '%s?%s' % (XMFY_DESPEAK_URL, params) return read_url(url)
def get_choose_despeak_page(doctor_id, select_date, time_desc=TIME_DESC['MORNING'], dept_name=DEPT_NAME_BOBY, triage_no='330'): doctor = ALL_DOCTORS.get(doctor_id) param_dict = { 'DOCTOR_ID': doctor_id, 'DOCTOR': doctor, 'SelectDate': select_date, 'TIME_DESC': time_desc, 'DEPT_NAME': dept_name, 'TRIAGE_NO': triage_no } params = encode_url_params(param_dict) url = '%s?%s' % (XMFY_CHOOSE_DESPEAK_URL, params) return read_url(url)
def despeak(doctor_id, select_date, select_time, phone, icardid, username, dept_name=DEPT_NAME_BOBY, triage_no='330'): doctor = ALL_DOCTORS.get(doctor_id) param_dict = { 'DOCTOR_ID': doctor_id, 'DOCTOR': doctor, 'SelectDate': select_date, 'SelectTime': select_time, 'DEPT_NAME': dept_name, 'TRIAGE_NO': triage_no, 'phone': phone, 'icardid': icardid, 'username': username, 'ok': u' 查 询 ' } return post_url(XMFY_DESPEAK_FORM_URL, param_dict)
def despeak(doctor_id, select_date, select_time, phone, icardid, username, dept_name=DEPT_NAME_BOBY, triage_no='330'): doctor = ALL_DOCTORS.get(doctor_id) param_dict = {'DOCTOR_ID':doctor_id, 'DOCTOR':doctor, 'SelectDate':select_date, 'SelectTime':select_time, 'DEPT_NAME':dept_name, 'TRIAGE_NO':triage_no, 'phone':phone, 'icardid':icardid, 'username':username, 'ok': u' 查 询 ' } return post_url(XMFY_DESPEAK_FORM_URL, param_dict)
def get_despeak_page(doctor_id, select_date, select_time, dept_name=DEPT_NAME_BOBY): doctor = ALL_DOCTORS.get(doctor_id) param_dict = {'DOCTOR_ID':doctor_id, 'DOCTOR':doctor, 'SelectDate':select_date, 'SelectTime':select_time, 'DEPT_NAME':dept_name} params = encode_url_params(param_dict) url = '%s?%s' % (XMFY_DESPEAK_URL, params) return read_url(url)