improve menu
parent
6a43030468
commit
58ec5de459
|
@ -1,7 +1,5 @@
|
|||
<action>
|
||||
<field name="name">clinic_board</field>
|
||||
<field name="string">Clinic Board</field>
|
||||
<field name="view_cls">board</field>
|
||||
<field name="view_xml">clinic_board</field>
|
||||
<field name="menu">clinic_menu</field>
|
||||
<field name="view">template_view</field>
|
||||
<field name="template">clinic_page</field>
|
||||
<field name="menu">clinic_menu</field>
|
||||
</action>
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
<item string="Reporting" perm="clinic_report">
|
||||
<item string="Visit Summary" action="clinic_report_visit"/>
|
||||
<item string="HD Case Summary" action="clinic_report_hd_case_summary"/>
|
||||
<item string="HD Case Detail" action="clinic_report_hd_case_detail"/>
|
||||
<item string="Medical Summary" action="clinic_report_medical_summary"/>
|
||||
<item string="Recent Patient" action="clinic_report_recent_patient"/>
|
||||
<item string="Discontinue Patient" action="clinic_report_discontinue_patient"/>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<field name="type_id"/>
|
||||
<button string="Options" dropdown="1">
|
||||
<item string="Generate Visit" action="clinic_gen_visit"/>
|
||||
<item string="New Dialyzer" method="new_dialyzer"/>
|
||||
<!--<item string="New Dialyzer" method="new_dialyzer"/>-->
|
||||
<item string="New Address" method="simple_address" perm="clinic_simple_address"/>
|
||||
</button>
|
||||
</head>
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
<list model="clinic.patient">
|
||||
<!--
|
||||
<head>
|
||||
<button string="Generate Visit" action="clinic_gen_visit" type="success"/>
|
||||
</head>
|
||||
-->
|
||||
<field name="reg_date"/>
|
||||
<field name="hn_no"/>
|
||||
<field name="trt_no"/>
|
||||
|
@ -11,5 +13,5 @@
|
|||
<field name="branch_id"/>
|
||||
<field name="department_id"/>
|
||||
<field name="doctor_id"/>
|
||||
<field name="image" preview='1'/>
|
||||
<!--<field name="image" preview='1'/>-->
|
||||
</list>
|
||||
|
|
|
@ -14,6 +14,5 @@
|
|||
<field name="department_id"/>
|
||||
<field name="level_id"/>
|
||||
<field name="categ_id"/>
|
||||
<field name="image" preview="1"/>
|
||||
<!--<field name="state"/>-->
|
||||
<!--<field name="image" preview="1"/>-->
|
||||
</list>
|
||||
|
|
|
@ -47,7 +47,7 @@ class Patient(Model):
|
|||
"hn_no": fields.Char("HN",function="_get_hn_no",store=True),
|
||||
"hn": fields.Char("REF/HN",search=False),
|
||||
"name": fields.Char("Name",required=True,search=True),
|
||||
"reg_date": fields.Date("Register Date",required=False,search=True),
|
||||
"reg_date": fields.Date("Reg. Date",required=False,search=True),
|
||||
"birthday": fields.Date("Birthday",required=False,search=True),
|
||||
"phone": fields.Char("Phone",required=False,search=True),
|
||||
"mobile": fields.Char("Mobile",required=False,search=True),
|
||||
|
@ -57,9 +57,9 @@ class Patient(Model):
|
|||
'email': fields.Char("Email"),
|
||||
"weight": fields.Float("Weight (kg.)"),
|
||||
"height": fields.Float("Height (cm.)"),
|
||||
"card_type": fields.Selection([("identification","Identification"),("passport","Passport")],"ID Type"),
|
||||
'card_no' : fields.Char("ID"),
|
||||
'card_exp' : fields.Date("ID Exp."),
|
||||
"card_type": fields.Selection([("identification","Identification"),("passport","Passport")],"Card Type"),
|
||||
'card_no' : fields.Char("ID Card"),
|
||||
'card_exp' : fields.Date("Card Exp."),
|
||||
"app_no": fields.Char("Application No."),
|
||||
"salary": fields.Selection([["20000","5,001-20,000"],["50000","20,001-50,000"],["100000","50,001-100,000"],["100001","100,000+"]], "Salary"),
|
||||
"addresses": fields.One2Many("address","patient_id","Addresses"),
|
||||
|
|
|
@ -0,0 +1,104 @@
|
|||
{{#view "page" title="Clinic Board"}}
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div class="nf-board-title">
|
||||
<h3>{{t "Staffs"}}</h3>
|
||||
</div>
|
||||
<div style="margin-bottom:20px">
|
||||
<div>
|
||||
<a href="#name=clinic_staff&tab_no=0">{{t "Staffs"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_staff&tab_no=3">{{t "Doctors"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_staff&tab_no=4">{{t "Nurses"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nf-board-title">
|
||||
<h3>{{t "Patients"}}</h3>
|
||||
</div>
|
||||
<div style="margin-bottom:20px">
|
||||
<div>
|
||||
<a href="#name=clinic_patient">{{t "Patients"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_dialyzer">{{t "Dialyzers"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_patient_type">{{t "Patient Types"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_patient_categ">{{t "Patient Categories"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_patient_cycle">{{t "Patient Cycles"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nf-board-title">
|
||||
<h3>{{t "Reports"}}</h3>
|
||||
</div>
|
||||
<div style="margin-bottom:20px">
|
||||
<div>
|
||||
<a href="#name=clinic_report_visit">{{t "Visit Summary"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_report_hd_case_summary">{{t " HD Case Summary"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_report_medical_summary">{{t " Medical Summary"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_report_recent_patient">{{t "Recent Patient"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_report_discontinue_patient">{{t "Discontinue Patient"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div class="nf-board-title">
|
||||
<h3>{{t "Cycles"}}</h3>
|
||||
</div>
|
||||
<div style="margin-bottom:20px">
|
||||
<div>
|
||||
<a href="#name=clinic_cycle">{{t "Cycles"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_cycle_item">{{t "Cycle Items"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nf-board-title">
|
||||
<h3>{{t "Visits"}}</h3>
|
||||
</div>
|
||||
<div style="margin-bottom:20px">
|
||||
<div>
|
||||
<a href="#name=clinic_visit">{{t "Visits"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_visit_board">{{t "Visit Board"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_visit&mode=form">{{t "New Visit"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_make_apt">{{t "Make An Appointment"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="nf-board-title">
|
||||
<h3>{{t "HD Cases"}}</h3>
|
||||
</div>
|
||||
<div style="margin-bottom:20px">
|
||||
<div>
|
||||
<a href="#name=clinic_hd_case">{{t "HD Cases"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_shop">{{t "RD Shop"}}</a>
|
||||
</div>
|
||||
<div>
|
||||
<a href="#name=clinic_sickbed">{{t "Sickbed"}}</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{{/view}}
|
|
@ -1,14 +1,12 @@
|
|||
todo:
|
||||
- urgent:
|
||||
- set nurse's profile -> many2many
|
||||
- change department on user profile
|
||||
|
||||
- change profile
|
||||
- Because of one user can access more than branch
|
||||
- report doctor & nurse ***
|
||||
-
|
||||
- matching payment ***
|
||||
- script generate hd case
|
||||
|
||||
|
||||
- urgent -> done:
|
||||
- change department on user profile -> ok
|
||||
- Because of one user can access more than branch
|
||||
- move between branch -> next phase
|
||||
- patient
|
||||
- sale medicine -> ok
|
||||
|
|
Loading…
Reference in New Issue