parent
4b8cf286ed
commit
9de345409c
|
@ -70,18 +70,9 @@ class ReportDiscontinuePatient(Model):
|
||||||
department_id=obj.department_id.id
|
department_id=obj.department_id.id
|
||||||
# new patient of this month
|
# new patient of this month
|
||||||
dom=[]
|
dom=[]
|
||||||
dom.append(['date','>=',time_start])
|
dom.append(['date','>=',"%s 00:00:00"%(time_start)])
|
||||||
dom.append(['date','<=',time_stop])
|
dom.append(['date','<=',"%s 23:59:59"%(time_stop)])
|
||||||
dom.append(['type','=','out'])
|
dom.append(['type','=','out'])
|
||||||
#dom.append(['resign_date','>=',time_start])
|
|
||||||
#dom.append(['resign_date','<=',time_stop])
|
|
||||||
#dom.append(['walkin','=',"no"])
|
|
||||||
#dom.append(['dispose','=',True])
|
|
||||||
#if branch_id:
|
|
||||||
#dom.append(['branch_id','=',branch_id])
|
|
||||||
#if department_id:
|
|
||||||
#dom.append(['department_id','=',department_id])
|
|
||||||
print("dom ", dom)
|
|
||||||
records=get_model('clinic.patient.move').search_browse(dom)
|
records=get_model('clinic.patient.move').search_browse(dom)
|
||||||
lines=[]
|
lines=[]
|
||||||
no=1
|
no=1
|
||||||
|
|
|
@ -113,6 +113,8 @@ class ReportHDCaseDetail(Model):
|
||||||
report_type=obj.report_type or 'topic1'
|
report_type=obj.report_type or 'topic1'
|
||||||
hdcase_type=obj.hdcase_type or 'completed'
|
hdcase_type=obj.hdcase_type or 'completed'
|
||||||
patient_type_id=obj.patient_type_id.id
|
patient_type_id=obj.patient_type_id.id
|
||||||
|
time_start="%s 00:00:00"%(time_start)
|
||||||
|
time_stop="%s 23:59:59"%(time_stop)
|
||||||
prev_year=year
|
prev_year=year
|
||||||
next_year=year
|
next_year=year
|
||||||
prev_month=crr_month-1
|
prev_month=crr_month-1
|
||||||
|
|
|
@ -69,8 +69,8 @@ class ReportRecentPatient(Model):
|
||||||
department_id=obj.department_id.id
|
department_id=obj.department_id.id
|
||||||
# new patient of this month
|
# new patient of this month
|
||||||
dom=[]
|
dom=[]
|
||||||
dom.append(['date','>=',time_start])
|
dom.append(['date','>=',"%s 00:00:00"%(time_start)])
|
||||||
dom.append(['date','<=',time_stop])
|
dom.append(['date','<=',"%s 23:59:59"%(time_stop)])
|
||||||
dom.append(['type','=',"in"])
|
dom.append(['type','=',"in"])
|
||||||
records=get_model('clinic.patient.move').search_browse(dom)
|
records=get_model('clinic.patient.move').search_browse(dom)
|
||||||
lines=[]
|
lines=[]
|
||||||
|
|
Loading…
Reference in New Issue