xxxxx
parent
fdb60c2c95
commit
97c90ac975
|
@ -2,7 +2,7 @@
|
||||||
<field name="string">Schedules</field>
|
<field name="string">Schedules</field>
|
||||||
<field name="view_cls">multi_view</field>
|
<field name="view_cls">multi_view</field>
|
||||||
<field name="model">clinic.schedule</field>
|
<field name="model">clinic.schedule</field>
|
||||||
<field name="modes">list,page,form,calendar</field>
|
<field name="modes">calendar,list,page,form</field>
|
||||||
<field name="tabs">[["All",[]],["Draft",[["state","=","draft"]]],["Confirmed",[["state","=","confirmed"]]]]</field>
|
<field name="tabs">[["All",[]],["Draft",[["state","=","draft"]]],["Confirmed",[["state","=","confirmed"]]]]</field>
|
||||||
<field name="menu">clinic_menu</field>
|
<field name="menu">clinic_menu</field>
|
||||||
</action>
|
</action>
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
<item string="Levels" action="clinic_personal_level"/>
|
<item string="Levels" action="clinic_personal_level"/>
|
||||||
</item>
|
</item>
|
||||||
<item string="Patients">
|
<item string="Patients">
|
||||||
|
<item string="Register" action="clinic_patient" action_options="mode=form"/>
|
||||||
<item string="Patients" action="clinic_patient"/>
|
<item string="Patients" action="clinic_patient"/>
|
||||||
<item string="Dialyzers" action="clinic_dialyzer"/>
|
<item string="Dialyzers" action="clinic_dialyzer"/>
|
||||||
<divider/>
|
<divider/>
|
||||||
|
@ -36,6 +37,7 @@
|
||||||
<item string="Generate Visit" action="clinic_gen_visit_form"/>
|
<item string="Generate Visit" action="clinic_gen_visit_form"/>
|
||||||
</item>
|
</item>
|
||||||
<item string="HD Cases" action="clinic_hd_case"/>
|
<item string="HD Cases" action="clinic_hd_case"/>
|
||||||
|
<!--<item string="POS" icon="arrow-right" url="/static/pos/index.html"/>-->
|
||||||
<item string="Reports">
|
<item string="Reports">
|
||||||
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
|
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
|
||||||
<item string="Medical Summary" action="clinic_report_medical_summary"/>
|
<item string="Medical Summary" action="clinic_report_medical_summary"/>
|
||||||
|
|
|
@ -89,6 +89,7 @@
|
||||||
<field name="note" nolabel="1"/>
|
<field name="note" nolabel="1"/>
|
||||||
<field name="active"/>
|
<field name="active"/>
|
||||||
<field name="resign_date" readonly="1"/>
|
<field name="resign_date" readonly="1"/>
|
||||||
|
<field name="rm_remain_visit" attrs='{"invisible":[["active","=","true"]]}'/>
|
||||||
</tab>
|
</tab>
|
||||||
</tabs>
|
</tabs>
|
||||||
<related>
|
<related>
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
<calendar model="clinic.schedule" date_field="date" start_field="time_start" end_field="time_stop">
|
<calendar model="clinic.schedule" date_field="date" start_field="time_start" end_field="time_stop">
|
||||||
|
<head replace="1">
|
||||||
|
<button string="Print"/>
|
||||||
|
</head>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="state"/>
|
<field name="state"/>
|
||||||
</calendar>
|
</calendar>
|
||||||
|
|
|
@ -30,8 +30,8 @@ class HDCase(Model):
|
||||||
|
|
||||||
_fields={
|
_fields={
|
||||||
"number": fields.Char("Number",required=True,search=True),
|
"number": fields.Char("Number",required=True,search=True),
|
||||||
"time_start": fields.DateTime("Time start",required=True,search=True),
|
"time_start": fields.DateTime("Time Start",required=True,search=True),
|
||||||
"time_stop": fields.DateTime("Time stop",required=True,search=True),
|
"time_stop": fields.DateTime("Time Stop",required=True,search=True),
|
||||||
"date": fields.Date("Time stop",required=True,search=True),
|
"date": fields.Date("Time stop",required=True,search=True),
|
||||||
"patient_id": fields.Many2One("clinic.patient","Patient",required=True,search=True),
|
"patient_id": fields.Many2One("clinic.patient","Patient",required=True,search=True),
|
||||||
"nurse_id": fields.Many2One("clinic.personal","Approve By", domain=[['type','=','nurse']]),
|
"nurse_id": fields.Many2One("clinic.personal","Approve By", domain=[['type','=','nurse']]),
|
||||||
|
@ -44,7 +44,7 @@ class HDCase(Model):
|
||||||
"per_bp_stop": fields.Integer("/Per stop"),
|
"per_bp_stop": fields.Integer("/Per stop"),
|
||||||
"epo_tn" : fields.Char("EpoTn (Drug name)"),
|
"epo_tn" : fields.Char("EpoTn (Drug name)"),
|
||||||
"epo_unit" : fields.Integer("EpoUnit (Unit of Used drug)"),
|
"epo_unit" : fields.Integer("EpoUnit (Unit of Used drug)"),
|
||||||
"hct": fields.Integer("HCT %"),
|
"hct": fields.Integer("HCT % (<40)"),
|
||||||
"hct_msg" : fields.Char("HCT message"),
|
"hct_msg" : fields.Char("HCT message"),
|
||||||
"check_goverment_pay" : fields.Boolean("The Government Pay"),
|
"check_goverment_pay" : fields.Boolean("The Government Pay"),
|
||||||
"check_personal_pay" : fields.Boolean("Pay yourself"),
|
"check_personal_pay" : fields.Boolean("Pay yourself"),
|
||||||
|
@ -99,7 +99,7 @@ class HDCase(Model):
|
||||||
"number": _get_number,
|
"number": _get_number,
|
||||||
"company_id": lambda *a: get_active_company(),
|
"company_id": lambda *a: get_active_company(),
|
||||||
'hct': 0,
|
'hct': 0,
|
||||||
'hct_msg': "Reimbursement of medicines : 1,125/Week",
|
'hct_msg': "สามารถเบิกค่ายาสูงสุดไม่เกิน 1,125บาท ต่อ สัปดาห์",
|
||||||
'fee_paid': False,
|
'fee_paid': False,
|
||||||
}
|
}
|
||||||
_order="date desc,number desc"
|
_order="date desc,number desc"
|
||||||
|
@ -540,12 +540,12 @@ class HDCase(Model):
|
||||||
data['hct']=0
|
data['hct']=0
|
||||||
hct=data["hct"]
|
hct=data["hct"]
|
||||||
msg=""
|
msg=""
|
||||||
if(hct<=36):
|
if(hct<36):
|
||||||
msg="Reimbursement of medicines : 1,125/Week"
|
msg="สามารถเบิกค่ายาสูงสุดไม่เกิน 1,125บาท ต่อ สัปดาห์"
|
||||||
elif(hct>36 and hct<39):
|
elif(hct>=36 and hct<=39):
|
||||||
msg="Reimbursement of medicines : 750/Week"
|
msg="สามารถเบิกค่ายาสูงสุดไม่เกิน 750บาท ต่อ สัปดาห์"
|
||||||
elif(hct>=39):
|
elif(hct> 39):
|
||||||
msg="Can not be drawn"
|
msg="ไม่สามารถเบิกค่ายาฉีดได้ทุกตัว"
|
||||||
data['hct_msg']=msg
|
data['hct_msg']=msg
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
|
@ -82,6 +82,7 @@ class Patient(Model):
|
||||||
'doctor_id': fields.Many2One("clinic.personal","Doctor",domain=[['type','=','doctor']]),
|
'doctor_id': fields.Many2One("clinic.personal","Doctor",domain=[['type','=','doctor']]),
|
||||||
"documents": fields.One2Many("document","related_id","Documents"),
|
"documents": fields.One2Many("document","related_id","Documents"),
|
||||||
'resign_date': fields.Date("Resign Date"),
|
'resign_date': fields.Date("Resign Date"),
|
||||||
|
'rm_remain_visit': fields.Boolean("Auto Remove Remaining Visit"),
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_number(self,context={}):
|
def _get_number(self,context={}):
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
|
customize ui
|
||||||
|
- attribute color for field
|
||||||
cycle dialy
|
cycle dialy
|
||||||
-list of cycle items
|
-list of cycle items
|
||||||
- report all compute all cost
|
- report all compute all cost
|
||||||
|
|
||||||
|
- sale medical
|
||||||
visit dialy
|
visit dialy
|
||||||
list of visits
|
list of visits
|
||||||
schedule planing for nurses / personal
|
schedule planing for nurses / personal
|
||||||
|
|
||||||
import payment
|
import payment
|
||||||
- error report
|
- error report
|
||||||
|
- manual matching
|
||||||
|
|
Loading…
Reference in New Issue