clinic/netforce_clinic/layouts/clinic_patient_form.xml

154 lines
5.9 KiB
XML

<form model="clinic.patient" show_company="1">
<head>
<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 Address" method="simple_address" perm="clinic_simple_address"/>
</button>
</head>
<field name="number"/>
<field name="trt_no"/>
<field name="card_no" required="1"/>
<field name="type_id"/>
<field name="title_id" required="1"/>
<field name="reg_date"/>
<field name="first_name" required="1"/>
<field name="last_name" required="1"/>
<!--<field name="categ_id"/>-->
<field name="doctor_id"/>
<field name="walkin"/>
<field name="department_id" invisible="1"/>
<field name="active" invisible="1"/>
<tabs>
<tab string="General">
<group span="6" columns="1">
<field name="gender"/>
<field name="marital_status"/>
<field name="card_type"/>
<field name="card_exp"/>
<field name="birthday"/>
<field name="age"/>
<field name="image"/>
<field name="mobile"/>
<field name="email"/>
</group>
<group span="6" columns="1">
<field name="job"/>
<field name="salary"/>
<field name="nation_id"/>
<field name="race_id"/>
<field name="grad_id"/>
<field name="phone"/>
<field name="weight"/>
<field name="height"/>
<field name="vascular_acc"/>
<field name="company_id" invisible="1"/>
</group>
</tab>
<tab string="Health Information">
<field name="smoke"/>
<field name="withdrawal"/>
<field name="first_hemodialysis"/>
<field name="hemodialysis"/>
<field name="first_treatment"/>
<field name="clinic_after"/>
<field name="clinic_after_name"/>
<field name="first_permanent_vascular_access"/>
<field name="first_tenckhoff_catheters"/>
<field name="start_date_clinic"/>
<field name="waiting_transplantation"/>
<field name="who_transplantation"/>
<field name="reason_of_chronic_renal_failure"/>
</tab>
<tab string="Cycles">
<group span="8" columns="1">
<field name="cycles" nolabel="1">
<list>
<field name="department_id"/>
<field name="cycle_id"/>
<field name="day"/>
</list>
</field>
</group>
<group span="4" columns="1">
</group>
<group span="8" columns="1">
<template>
<div>
<p></p>
<b>Note: </b><span style="color:green"><b>"Cycle"</b> ที่ระบุไว้ที่หน้านี้ จะเป็นข้อมูลต้นทางที่ระบบจะนำไปสร้าง Visit ล่วงหน้า</span></div>
</template>
</group>
<group span="4" columns="1">
</group>
</tab>
<tab string="Location">
<field name="departments"/>
<group span="8" columns="1">
<template>
<div>
<p></p>
<b>Note: </b><span style="color:green"><b>"Location"</b> คือ สถานที่ที่ผู้ป่วยสามารถรับการรักษา ซึ่งระบุได้มากกว่า 1 ที่</span></div>
</template>
</group>
<group span="4" columns="1">
</group>
</tab>
<tab string="Accounting">
<field name="partner_id" domain='[["is_patient","=","true"]]'/>
</tab>
<tab string="Other">
<group layout_form="stacked">
<field name="dispose" span="3"/>
<field name="resign_date" attrs='{"required":[["dispose","=","true"]]}' span="4"/>
<field name="note" attrs='{"required":[["dispose","=","true"]]}' span="4"/>
<field name="state" invisible="1"/>
<field name="hn_no" invisible="1"/>
</group>
</tab>
</tabs>
<related>
<field name="addresses"/>
<field name="visits" readonly="1"/>
<field name="hd_cases" readonly="1"/>
<field name="dialyzers" readonly="1"/>
<field name="causes" nolabel="1">
<list>
<field name="cause_id"/>
<field name="date_cause"/>
</list>
<form>
<field name="cause_id"/>
<field name="date_cause"/>
</form>
</field>
<field name="comorbilities" nolabel="1">
<list>
<field name="comorbility_id"/>
<field name="ans"/>
<field name="analysis_date" mode="year"/>
</list>
<form>
<field name="comorbility_id"/>
<field name="ans"/>
<field name="analysis_date" mode="year"/>
</form>
</field>
<field name="morbilities" nolabel="1">
<list>
<field name="morbility_id"/>
<field name="ans"/>
<field name="analysis_date" mode="year"/>
</list>
<form>
<field name="morbility_id"/>
<field name="ans"/>
<field name="analysis_date" mode="year"/>
</form>
</field>
<field name="documents"/>
<field name="comments"/>
</related>
</form>