clean
parent
534b172e4d
commit
dacaa8c4b6
|
@ -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>
|
|
@ -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>
|
|
@ -0,0 +1,3 @@
|
|||
<form model="clinic.comorbidity">
|
||||
<field name="name"/>
|
||||
</form>
|
|
@ -0,0 +1,3 @@
|
|||
<list model="clinic.comorbidity">
|
||||
<field name="name"/>
|
||||
</list>
|
|
@ -14,6 +14,8 @@
|
|||
<item string="Nationalities" action="clinic_nation"/>
|
||||
<item string="Races" action="clinic_race"/>
|
||||
<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>
|
||||
</menu>
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<form model="clinic.morbidity">
|
||||
<field name="name"/>
|
||||
</form>
|
|
@ -0,0 +1,3 @@
|
|||
<list model="clinic.morbidity">
|
||||
<field name="name"/>
|
||||
</list>
|
|
@ -61,30 +61,23 @@
|
|||
</tab>
|
||||
<tab string="Co-marbid">
|
||||
<separator string="Co-morbidity, before RRT"/>
|
||||
<field name="check1" span="12"/>
|
||||
<field name="check2" span="12"/>
|
||||
<field name="check3" span="12"/>
|
||||
<field name="check4" span="12"/>
|
||||
<field name="check5" span="12"/>
|
||||
<field name="check6" span="12"/>
|
||||
<field name="check7" span="12"/>
|
||||
<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"/>
|
||||
<field name="comorbility_lines" nolabel="1">
|
||||
<list>
|
||||
<field name="comorbility_id"/>
|
||||
<field name="ans"/>
|
||||
<field name="analysis_date" mode="year"/>
|
||||
</list>
|
||||
</field>
|
||||
</tab>
|
||||
<tab string="Morbidity">
|
||||
<separator string="Morbidity, After RRT"/>
|
||||
<field name="check18" span="12"/>
|
||||
<field name="check19" span="12"/>
|
||||
<field name="check20" span="12"/>
|
||||
<field name="comarbid2"/>
|
||||
<field name="morbility_lines" nolabel="1">
|
||||
<list>
|
||||
<field name="morbility_id"/>
|
||||
<field name="ans"/>
|
||||
<field name="analysis_date" mode="year"/>
|
||||
</list>
|
||||
</field>
|
||||
</tab>
|
||||
</tabs>
|
||||
<related>
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
from . import comorbidity
|
||||
from . import morbidity
|
||||
from . import patient
|
||||
from . import patient_cause_line
|
||||
from . import patient_comorbidity_line
|
||||
from . import patient_morbidity_line
|
||||
from . import doctor
|
||||
from . import nurse
|
||||
from . import visit
|
||||
|
|
|
@ -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()
|
|
@ -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()
|
|
@ -45,7 +45,6 @@ class Patient(Model):
|
|||
"nation_id": fields.Many2One("clinic.nation","Nationality"),
|
||||
"race_id": fields.Many2One("clinic.race","Race"),
|
||||
"grad_id": fields.Many2One("clinic.graduation","Graduation"),
|
||||
#Patient's +
|
||||
"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"),
|
||||
"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 ?"),
|
||||
'cause_lines': fields.One2Many("clinic.patient.cause.line","patient_id","Cause Line"),
|
||||
#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"),
|
||||
'comorbility_lines': fields.One2Many("clinic.patient.comorbidity.line","patient_id","Comorbility"),
|
||||
#Morbidity
|
||||
"check18" : fields.Boolean("Ischemic Heart Disease"),
|
||||
"check19" : fields.Boolean("Of cancer"),
|
||||
"check20" : fields.Boolean("Cerebrovascular accident"),
|
||||
"comarbid2": fields.Char("Co-morbid Other"),
|
||||
'morbility_lines': fields.One2Many("clinic.patient.morbidity.line","patient_id","Morbility"),
|
||||
#Healthcare
|
||||
"comments": fields.One2Many("message","related_id","Comments"),
|
||||
"company_id": fields.Many2One("company","Company"),
|
||||
|
|
|
@ -6,7 +6,7 @@ class PatientCauseLine(Model):
|
|||
_name="clinic.patient.cause.line"
|
||||
_string="Patient Cause Line"
|
||||
_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"),
|
||||
"date_cause": fields.Date("Date Cause"),
|
||||
}
|
||||
|
|
|
@ -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()
|
|
@ -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()
|
Loading…
Reference in New Issue