conv_bal
watcha.h 2014-10-02 00:33:21 +07:00
parent 534b172e4d
commit dacaa8c4b6
15 changed files with 105 additions and 44 deletions

View File

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

View File

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

View File

@ -0,0 +1,3 @@
<form model="clinic.comorbidity">
<field name="name"/>
</form>

View File

@ -0,0 +1,3 @@
<list model="clinic.comorbidity">
<field name="name"/>
</list>

View File

@ -14,6 +14,8 @@
<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="Cause Chronics" action="clinic_cause_chronic"/>
<item string="Comorbidity" action="clinic_comorbidity"/>
<item string="Morbidity" action="clinic_morbidity"/>
<item string="Clinic Setting" action="clinic_setting"/> <item string="Clinic Setting" action="clinic_setting"/>
</item> </item>
</menu> </menu>

View File

@ -0,0 +1,3 @@
<form model="clinic.morbidity">
<field name="name"/>
</form>

View File

@ -0,0 +1,3 @@
<list model="clinic.morbidity">
<field name="name"/>
</list>

View File

@ -61,30 +61,23 @@
</tab> </tab>
<tab string="Co-marbid"> <tab string="Co-marbid">
<separator string="Co-morbidity, before RRT"/> <separator string="Co-morbidity, before RRT"/>
<field name="check1" span="12"/> <field name="comorbility_lines" nolabel="1">
<field name="check2" span="12"/> <list>
<field name="check3" span="12"/> <field name="comorbility_id"/>
<field name="check4" span="12"/> <field name="ans"/>
<field name="check5" span="12"/> <field name="analysis_date" mode="year"/>
<field name="check6" span="12"/> </list>
<field name="check7" span="12"/> </field>
<field name="check8" span="12"/>
<field name="check9" span="12"/>
<field name="check10" span="12"/>
<field name="check11" span="12"/>
<field name="check12" span="12"/>
<field name="check13" span="12"/>
<field name="check14" span="12"/>
<field name="check15" span="12"/>
<field name="check16" span="12"/>
<field name="check17" span="12"/>
</tab> </tab>
<tab string="Morbidity"> <tab string="Morbidity">
<separator string="Morbidity, After RRT"/> <separator string="Morbidity, After RRT"/>
<field name="check18" span="12"/> <field name="morbility_lines" nolabel="1">
<field name="check19" span="12"/> <list>
<field name="check20" span="12"/> <field name="morbility_id"/>
<field name="comarbid2"/> <field name="ans"/>
<field name="analysis_date" mode="year"/>
</list>
</field>
</tab> </tab>
</tabs> </tabs>
<related> <related>

View File

@ -1,5 +1,9 @@
from . import comorbidity
from . import morbidity
from . import patient from . import patient
from . import patient_cause_line from . import patient_cause_line
from . import patient_comorbidity_line
from . import patient_morbidity_line
from . import doctor from . import doctor
from . import nurse from . import nurse
from . import visit from . import visit

View File

@ -0,0 +1,11 @@
from netforce.model import Model, fields
class Comorbidity(Model):
_name="clinic.comorbidity"
_string="Comorbidity"
_fields={
"name": fields.Char("Name",required=True,search=True),
}
Comorbidity.register()

View File

@ -0,0 +1,11 @@
from netforce.model import Model, fields
class Morbidity(Model):
_name="clinic.morbidity"
_string="Morbidity"
_fields={
"name": fields.Char("Name",required=True,search=True),
}
Morbidity.register()

View File

@ -45,7 +45,6 @@ class Patient(Model):
"nation_id": fields.Many2One("clinic.nation","Nationality"), "nation_id": fields.Many2One("clinic.nation","Nationality"),
"race_id": fields.Many2One("clinic.race","Race"), "race_id": fields.Many2One("clinic.race","Race"),
"grad_id": fields.Many2One("clinic.graduation","Graduation"), "grad_id": fields.Many2One("clinic.graduation","Graduation"),
#Patient's +
"smoke": fields.Selection([("never","Never"),("stopped","Stopped"),("smoked","Smoked")],"Smoking"), "smoke": fields.Selection([("never","Never"),("stopped","Stopped"),("smoked","Smoked")],"Smoking"),
"withdrawal" : fields.Selection([("social_security","Social Security"),("health_insurance","Health Insurance"),("etc","ETC.")],"Right of withdrawal"), "withdrawal" : fields.Selection([("social_security","Social Security"),("health_insurance","Health Insurance"),("etc","ETC.")],"Right of withdrawal"),
"first_treatment" : fields.Selection([("hd","HD"),("test","Test")], "First treatment"), "first_treatment" : fields.Selection([("hd","HD"),("test","Test")], "First treatment"),
@ -61,29 +60,10 @@ class Patient(Model):
"reason_of_chronic_renal_failure": fields.Char("Reason chronic renal failure ?"), "reason_of_chronic_renal_failure": fields.Char("Reason chronic renal failure ?"),
'cause_lines': fields.One2Many("clinic.patient.cause.line","patient_id","Cause Line"), 'cause_lines': fields.One2Many("clinic.patient.cause.line","patient_id","Cause Line"),
#Co-marbid #Co-marbid
"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"),
"check3" : fields.Boolean("The patient had been diagnosed, Cerebrovascular accident"),
"check4" : fields.Boolean("The patient had been diagnosed, PVD or Amputation"),
"check5" : fields.Boolean("The patient had been diagnosed, Congestive heart failure"),
"check6" : fields.Boolean("The patient had been diagnosed, Hypertension"),
"check7" : fields.Boolean("The patient had been diagnosed, Diabetes"),
"check8" : fields.Boolean("The patient had been diagnosed, COPD"),
"check9" : fields.Boolean("The patient had been diagnosed, Asthma"),
"check10" : fields.Boolean("The patient had been diagnosed, Pulmonary tuberculosis"),
"check11" : fields.Boolean("The patient had been diagnosed, of cancer"),
"check12" : fields.Boolean("The patient had been diagnosed, Cirrhosis"),
"check13" : fields.Boolean("The patient had been diagnosed, Dyslipidemia"),
"check14" : fields.Boolean("The patient had been diagnosed, PRCA"),
"check15" : fields.Boolean("The patient had been diagnosed, Hyperurinecemia"),
"check16" : fields.Boolean("The patient had been diagnosed, Chronic gouty arthitis"),
"check17" : fields.Boolean("The patient had been diagnosed, Parathyroidectomy"),
#"comarbid" : fields.char("Co-morbid Other"), #"comarbid" : fields.char("Co-morbid Other"),
'comorbility_lines': fields.One2Many("clinic.patient.comorbidity.line","patient_id","Comorbility"),
#Morbidity #Morbidity
"check18" : fields.Boolean("Ischemic Heart Disease"), 'morbility_lines': fields.One2Many("clinic.patient.morbidity.line","patient_id","Morbility"),
"check19" : fields.Boolean("Of cancer"),
"check20" : fields.Boolean("Cerebrovascular accident"),
"comarbid2": fields.Char("Co-morbid Other"),
#Healthcare #Healthcare
"comments": fields.One2Many("message","related_id","Comments"), "comments": fields.One2Many("message","related_id","Comments"),
"company_id": fields.Many2One("company","Company"), "company_id": fields.Many2One("company","Company"),

View File

@ -6,7 +6,7 @@ class PatientCauseLine(Model):
_name="clinic.patient.cause.line" _name="clinic.patient.cause.line"
_string="Patient Cause Line" _string="Patient Cause Line"
_fields={ _fields={
"patient_id": fields.Many2One("clinic.patient","Patient",required=True), "patient_id": fields.Many2One("clinic.patient","Patient",required=True,on_delete="cascade"),
"cause_id": fields.Many2One("clinic.cause.chronic","Cause"), "cause_id": fields.Many2One("clinic.cause.chronic","Cause"),
"date_cause": fields.Date("Date Cause"), "date_cause": fields.Date("Date Cause"),
} }

View File

@ -0,0 +1,19 @@
import time
from netforce.model import Model, fields
class PatientComorbidityLine(Model):
_name="clinic.patient.comorbidity.line"
_string="Patient Patient Comorbidity Line"
_fields={
"patient_id": fields.Many2One("clinic.patient","Patient",required=True,on_delete="cascade"),
"comorbility_id": fields.Many2One("clinic.comorbidity","Comorbidity"),
"ans": fields.Selection([['yes','Yes'],['no','No']], "Answer"),
"analysis_date": fields.Date("Analysis Date"),
}
_defaults={
'ans': "no",
}
PatientComorbidityLine.register()

View File

@ -0,0 +1,17 @@
from netforce.model import Model, fields
class PatientMorbidityLine(Model):
_name="clinic.patient.morbidity.line"
_string="Patient Patient Morbidity Line"
_fields={
"patient_id": fields.Many2One("clinic.patient","Patient",required=True,on_delete="cascade"),
"morbility_id": fields.Many2One("clinic.comorbidity","Morbidity"),
"ans": fields.Selection([['yes','Yes'],['no','No']], "Answer"),
"analysis_date": fields.Date("Analysis Date"),
}
_defaults={
'ans': "no",
}
PatientMorbidityLine.register()