rename
parent
1ee80f051a
commit
534b172e4d
|
@ -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>
|
|
@ -0,0 +1,5 @@
|
|||
<form model="clinic.cause.chronic">
|
||||
<field name="name"/>
|
||||
<field name="sequence"/>
|
||||
<field name="default"/>
|
||||
</form>
|
|
@ -0,0 +1,5 @@
|
|||
<list model="clinic.cause.chronic">
|
||||
<field name="name"/>
|
||||
<field name="sequence"/>
|
||||
<field name="default"/>
|
||||
</list>
|
|
@ -13,6 +13,7 @@
|
|||
<item string="Graduations" action="clinic_grade"/>
|
||||
<item string="Nationalities" action="clinic_nation"/>
|
||||
<item string="Races" action="clinic_race"/>
|
||||
<item string="Cause Chronics" action="clinic_cause_chronic"/>
|
||||
<item string="Clinic Setting" action="clinic_setting"/>
|
||||
</item>
|
||||
</menu>
|
||||
|
|
|
@ -52,21 +52,12 @@
|
|||
<field name="reason_of_chronic_renal_failure"/>
|
||||
</tab>
|
||||
<tab string="Cause Of Chronic Renal Failure">
|
||||
<field name="ac_mi"/>
|
||||
<field name="co_an"/>
|
||||
<field name="ce_ac"/>
|
||||
<field name="hypertnsion"/>
|
||||
<field name="dia"/>
|
||||
<field name="copd"/>
|
||||
<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"/>
|
||||
<field name="cause_lines" nolabel="1">
|
||||
<list>
|
||||
<field name="cause_id"/>
|
||||
<field name="date_cause"/>
|
||||
</list>
|
||||
</field>
|
||||
</tab>
|
||||
<tab string="Co-marbid">
|
||||
<separator string="Co-morbidity, before RRT"/>
|
||||
|
|
|
@ -1,14 +1,16 @@
|
|||
from . import clinic_patient
|
||||
from . import clinic_doctor
|
||||
from . import clinic_nurse
|
||||
from . import clinic_visit
|
||||
from . import clinic_hd_case
|
||||
from . import clinic_hd_case_line
|
||||
from . import clinic_hd_case_line_detail
|
||||
from . import clinic_dialyzer
|
||||
from . import clinic_department
|
||||
from . import clinic_education
|
||||
from . import clinic_setting
|
||||
from . import clinic_graduation
|
||||
from . import clinic_nation
|
||||
from . import clinic_race
|
||||
from . import patient
|
||||
from . import patient_cause_line
|
||||
from . import doctor
|
||||
from . import nurse
|
||||
from . import visit
|
||||
from . import hd_case
|
||||
from . import hd_case_line
|
||||
from . import hd_case_line_detail
|
||||
from . import dialyzer
|
||||
from . import department
|
||||
from . import education
|
||||
from . import setting
|
||||
from . import graduation
|
||||
from . import nation
|
||||
from . import race
|
||||
from . import cause_chronic
|
||||
|
|
|
@ -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()
|
|
@ -59,23 +59,7 @@ class Patient(Model):
|
|||
"waiting_transplantation": fields.Selection([("yes","Yes"),("no","No")],"Kidney Transplantation Waiting ?"),
|
||||
"who_transplantation": fields.Char("Who is Transplantation?"),
|
||||
"reason_of_chronic_renal_failure": fields.Char("Reason chronic renal failure ?"),
|
||||
"ac_mi": fields.Boolean("Acute MI"),
|
||||
"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"),
|
||||
'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"),
|
|
@ -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()
|
Loading…
Reference in New Issue