clinic/netforce_clinic/layouts/clinic_patient_form.xml

177 lines
6.9 KiB
XML

<form model="clinic.patient" show_company="1">
<head>
<field name="type_id"/>
<button string="Options" dropdown="1">
<item string="Share To Another Location" action="clinic_share_location"/>
</button>
</head>
<field name="number"/>
<field name="trt_no"/>
<field name="card_no" attrs='{"required":[["card_type","=","identification"]]}'/>
<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="doctor_id" required="1"/>
<field name="department_id" required="1"/>
<field name="walkin" onchange="onchange_walkin"/>
<field name="vascular_acc"/>
<field name="location" readonly="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" onchange="onchange_nation"/>
<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" perm="clinic_patient_health">
<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="Cycle Setting">
<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 style="color:#3477b0">"Cycle"</b> ที่ระบุไว้ที่หน้านี้ จะเป็นข้อมูลต้นทางที่ระบบจะนำไปสร้าง Visit ล่วงหน้า</span></div>
</template>
</group>
<group span="4" columns="1">
</group>
</tab>
<!--
<tab string="Department">
<field name="department_id" string="Main Department"/>
<group span="8" columns="1">
<template>
<div>
<p></p>
<b>Note: </b><span style="color:green"><b style="color:#3477b0">"Main Department"</b> คือ สถานที่หลักที่ผู้ป่วยรักษา</span></div>
</template>
</group>
<group span="4" columns="1">
</group>
</tab>
-->
<!--
<tab string="HD Departments">
<field name="departments" nolabel="1"/>
<group span="8" columns="1">
<template>
<div>
<p></p>
<b>Note: </b><span style="color:green"><b style="color:#3477b0">"HD Departments"</b> คือ สถานที่ที่ผู้ป่วยสามารถรับการรักษา ซึ่งระบุได้มากกว่า 1 ที่</span></div>
</template>
</group>
<group span="4" columns="1">
</group>
</tab>
-->
<tab string="Accounting" perm="clinic_patient_account">
<field name="partner_id" domain='[["is_patient","=","true"]]'/>
</tab>
<tab string="Dispose Info">
<group>
<field name="dispose"/>
<field name="resign_date" attrs='{"required":[["dispose","=","true"]]}'/>
<field name="note" attrs='{"required":[["dispose","=","true"]]}'/>
<field name="state" invisible="1"/>
<field name="hn_no" invisible="1"/>
</group>
</tab>
<tab string="Log">
<group>
<field name="c_time"/>
<field name="w_time"/>
<field name="c_uid"/>
<field name="w_uid"/>
</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>