本文整理汇总了Python中DoctorSpring.models.Diagnose.getDealedDiagnoseByHospitalUser方法的典型用法代码示例。如果您正苦于以下问题:Python Diagnose.getDealedDiagnoseByHospitalUser方法的具体用法?Python Diagnose.getDealedDiagnoseByHospitalUser怎么用?Python Diagnose.getDealedDiagnoseByHospitalUser使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DoctorSpring.models.Diagnose
的用法示例。
在下文中一共展示了Diagnose.getDealedDiagnoseByHospitalUser方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: getDiagnoseListByHospitalUser2
# 需要导入模块: from DoctorSpring.models import Diagnose [as 别名]
# 或者: from DoctorSpring.models.Diagnose import getDealedDiagnoseByHospitalUser [as 别名]
def getDiagnoseListByHospitalUser2():
userId=session['userId']
status=request.args.get('status')
if status:
import string
status=string.atoi(status)
startDateStr=request.args.get('startDate')
startDate=None
if startDateStr:
startDate=datetime.strptime(startDateStr,"%Y-%m-%d")
else:
startDate=constant.SystemTimeLimiter.startTime
endDateStr=request.args.get('endDate')
endDate=None
if endDateStr:
endDate=datetime.strptime(endDateStr,"%Y-%m-%d")
else:
endDate=constant.SystemTimeLimiter.endTime
patientName=request.args.get('patientName')
pageNo=request.args.get('pageNumber')
pageSize=request.args.get('pageSize')
pager=Pagger(pageNo,pageSize)
diagnoses=Diagnose.getDealedDiagnoseByHospitalUser(db_session,userId,patientName,status,startDate,endDate,pager)
diagnosesDict=dataChangeService.userCenterDiagnoses(diagnoses)
resultStatus=rs.ResultStatus(rs.SUCCESS.status,rs.SUCCESS.msg,diagnosesDict)
resultDict=resultStatus.__dict__
return json.dumps(resultDict,ensure_ascii=False)