conv_bal
watcha.h 2014-10-01 23:59:35 +07:00
parent 1ee80f051a
commit 534b172e4d
22 changed files with 75 additions and 46 deletions

View File

@ -0,0 +1,6 @@
<action>
<field name="string">CauseChronics</field>
<field name="view_cls">multi_view</field>
<field name="model">clinic.cause.chronic</field>
<field name="menu">clinic_menu</field>
</action>

View File

@ -0,0 +1,5 @@
<form model="clinic.cause.chronic">
<field name="name"/>
<field name="sequence"/>
<field name="default"/>
</form>

View File

@ -0,0 +1,5 @@
<list model="clinic.cause.chronic">
<field name="name"/>
<field name="sequence"/>
<field name="default"/>
</list>

View File

@ -13,6 +13,7 @@
<item string="Graduations" action="clinic_grade"/> <item string="Graduations" action="clinic_grade"/>
<item string="Nationalities" action="clinic_nation"/> <item string="Nationalities" action="clinic_nation"/>
<item string="Races" action="clinic_race"/> <item string="Races" action="clinic_race"/>
<item string="Cause Chronics" action="clinic_cause_chronic"/>
<item string="Clinic Setting" action="clinic_setting"/> <item string="Clinic Setting" action="clinic_setting"/>
</item> </item>
</menu> </menu>

View File

@ -52,21 +52,12 @@
<field name="reason_of_chronic_renal_failure"/> <field name="reason_of_chronic_renal_failure"/>
</tab> </tab>
<tab string="Cause Of Chronic Renal Failure"> <tab string="Cause Of Chronic Renal Failure">
<field name="ac_mi"/> <field name="cause_lines" nolabel="1">
<field name="co_an"/> <list>
<field name="ce_ac"/> <field name="cause_id"/>
<field name="hypertnsion"/> <field name="date_cause"/>
<field name="dia"/> </list>
<field name="copd"/> </field>
<field name="asthma"/>
<field name="pul_tub"/>
<field name="cancer"/>
<field name="cirrhosis"/>
<field name="dyslip"/>
<field name="prca"/>
<field name="hyperucemia"/>
<field name="cga"/>
<field name="parathy"/>
</tab> </tab>
<tab string="Co-marbid"> <tab string="Co-marbid">
<separator string="Co-morbidity, before RRT"/> <separator string="Co-morbidity, before RRT"/>

View File

@ -1,14 +1,16 @@
from . import clinic_patient from . import patient
from . import clinic_doctor from . import patient_cause_line
from . import clinic_nurse from . import doctor
from . import clinic_visit from . import nurse
from . import clinic_hd_case from . import visit
from . import clinic_hd_case_line from . import hd_case
from . import clinic_hd_case_line_detail from . import hd_case_line
from . import clinic_dialyzer from . import hd_case_line_detail
from . import clinic_department from . import dialyzer
from . import clinic_education from . import department
from . import clinic_setting from . import education
from . import clinic_graduation from . import setting
from . import clinic_nation from . import graduation
from . import clinic_race from . import nation
from . import race
from . import cause_chronic

View File

@ -0,0 +1,17 @@
from netforce.model import Model, fields
class CauseChronic(Model):
_name="clinic.cause.chronic"
_string="Cause Chronic"
_fields={
"name": fields.Char("Name",required=True,search=True),
'default': fields.Boolean("Default"),
'sequence': fields.Integer("Sequence"),
}
_defaults={
'sequence': 0,
}
CauseChronic.register()

View File

@ -59,23 +59,7 @@ class Patient(Model):
"waiting_transplantation": fields.Selection([("yes","Yes"),("no","No")],"Kidney Transplantation Waiting ?"), "waiting_transplantation": fields.Selection([("yes","Yes"),("no","No")],"Kidney Transplantation Waiting ?"),
"who_transplantation": fields.Char("Who is Transplantation?"), "who_transplantation": fields.Char("Who is Transplantation?"),
"reason_of_chronic_renal_failure": fields.Char("Reason chronic renal failure ?"), "reason_of_chronic_renal_failure": fields.Char("Reason chronic renal failure ?"),
"ac_mi": fields.Boolean("Acute MI"), 'cause_lines': fields.One2Many("clinic.patient.cause.line","patient_id","Cause Line"),
"co_an": fields.Boolean("Coronary Angioplasty"),
"ce_ac": fields.Boolean("Cerebrovascular Accident"),
"pvd": fields.Boolean("PVD or Amputation"),
"co_he": fields.Boolean("Congestive heart failure"),
"hypertnsion": fields.Boolean("Hypertension"),
"dia": fields.Boolean("Diabetes"),
"copd": fields.Boolean("Copd"),
"asthma": fields.Boolean("Asthma"),
"pul_tub": fields.Boolean("Pulmonary tuberculosis"),
"cancer": fields.Boolean("Cancer"),
"cirrhosis": fields.Boolean("Cirrhosis"),
"dyslip": fields.Boolean("Dyslipidemia"),
"prca": fields.Boolean("PRCA"),
"hyperucemia": fields.Boolean("Hyperurinencemia"),
"cga": fields.Boolean("Chronic gouty arthitis"),
"parathy": fields.Boolean("Parathyroidectomy"),
#Co-marbid #Co-marbid
"check1" : fields.Boolean("The patient had been diagnosed, Acute MI or Unstable angina"), "check1" : fields.Boolean("The patient had been diagnosed, Acute MI or Unstable angina"),
"check2" : fields.Boolean("The patient had been diagnosed, Coronary angioplasty or CABG"), "check2" : fields.Boolean("The patient had been diagnosed, Coronary angioplasty or CABG"),

View File

@ -0,0 +1,18 @@
import time
from netforce.model import Model, fields
class PatientCauseLine(Model):
_name="clinic.patient.cause.line"
_string="Patient Cause Line"
_fields={
"patient_id": fields.Many2One("clinic.patient","Patient",required=True),
"cause_id": fields.Many2One("clinic.cause.chronic","Cause"),
"date_cause": fields.Date("Date Cause"),
}
_defaults={
'date_cause': lambda *a: time.strftime("%Y-%m-%d"),
}
PatientCauseLine.register()