38 lines
1.9 KiB
XML
38 lines
1.9 KiB
XML
<form model="clinic.visit" attrs='{"readonly":[["state","in",["treatment"]]]}' show_company="1">
|
|
<head>
|
|
<field name="state"/>
|
|
<button string="Print" icon="print" action="report_visit_form"/>
|
|
<button string="Options" dropdown="1">
|
|
<item string="Copy" method="copy"/>
|
|
<item string="Create Dialyzer" method="create_dialyzer"/>
|
|
<item string="Generate Cycle" method="generate_cycle"/>
|
|
</button>
|
|
</head>
|
|
<tabs>
|
|
<tab string="General">
|
|
<group span="6" columns="1">
|
|
<field name="number"/>
|
|
<field name="time_start" onchange="onchange_time" attrs='{"required":[["state","=","waiting_treatment"]]}'/>
|
|
<field name="department_id"/>
|
|
<field name="cycle_id" onchange="onchange_time" required="1"/>
|
|
</group>
|
|
<group span="6" columns="1">
|
|
<field name="patient_id" onchange="onchange_patient"/>
|
|
<field name="time_stop" attrs='{"required":[["state","=","waiting_treatment"]]}'/>
|
|
<field name="doctor_id"/>
|
|
<field name="nurse_id" attrs='{"required":[["state","=","waiting_treatment"]]}'/>
|
|
</group>
|
|
</tab>
|
|
</tabs>
|
|
<foot>
|
|
<button string="Confirm" type="success" method="confirm" states="draft" />
|
|
<button string="Do Treatment" type="success" method="do_treatment" icon="arrow-right" states="waiting_treatment" />
|
|
<button string="Dicard" type="warning" icon="trash" method="discard" states="waiting_treatment" confirm="Are you sure to cancel HD case?"/>
|
|
<button string="Re Visit" type="default" attrs='{"invisible":[["state","=","treatment"]]}' icon="repeat" method="reopen" states="cancelled" />
|
|
</foot>
|
|
<related>
|
|
<field name="hd_cases" readonly="1"/>
|
|
<field name="comments"/>
|
|
</related>
|
|
</form>
|