Merge lp:~echeverrifm/oemedical/oemedical_socioeconomics into lp:oemedical

Proposed by Federico Manuel Echeverri Choux
Status: Needs review
Proposed branch: lp:~echeverrifm/oemedical/oemedical_socioeconomics
Merge into: lp:oemedical
Diff against target: 952 lines (+264/-597)
11 files modified
oemedical_socioeconomics/__openerp__.py (+43/-102)
oemedical_socioeconomics/models/__init__.py (+2/-0)
oemedical_socioeconomics/models/oemedical_socioeconomics.py (+127/-0)
oemedical_socioeconomics/oemedical_menu.xml (+0/-211)
oemedical_socioeconomics/oemedical_socioeconomics/__init__.py (+0/-24)
oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics.py (+0/-128)
oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics_view.xml (+0/-80)
oemedical_socioeconomics/security/ir.model.access.csv (+1/-0)
oemedical_socioeconomics/security/oemedical_security.xml (+3/-52)
oemedical_socioeconomics/views/oemedical_menu.xml (+9/-0)
oemedical_socioeconomics/views/oemedical_socioeconomics_view.xml (+79/-0)
To merge this branch: bzr merge lp:~echeverrifm/oemedical/oemedical_socioeconomics
Reviewer Review Type Date Requested Status
Alexandre Fayolle - camptocamp Needs Resubmitting
Yannick Vaucher @ Camptocamp Approve
Review via email: mp+205523@code.launchpad.net

Description of the change

[IMP] Improve oemedical socioeconomics module (Fix oemedical_socioeconomics_view.xml view, improve menu, add security file .csv and remove groups of oemedical_security.xml )

[IMP] Improve oemedical socioeconomics module (Fix some problems to install, Remove comments, improve dependences and move files

To post a comment you must log in.
Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

Description was completely removed is that on purpose ?

review: Needs Information
126. By Federico Manuel Echeverri Choux

[IMP] Improve description Socioeconomics module and clean code of oemedical_socioeconomics.py file

Revision history for this message
Federico Manuel Echeverri Choux (echeverrifm) wrote :

> Description was completely removed is that on purpose ?

Hello Yannick

Sorry i forgot description, because this module have old description of oemedical.
But i now put this description module for oemedical socioeconomics

Regrads and thank for your time

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

152 + 'views/oemedical_socioeconomics_view.xml', # view has errors, please correct before enabling....

You may want to remove the comment ?

Otherwise looks good.

review: Needs Fixing
127. By Federico Manuel Echeverri Choux

[IMP] Improve __openerp__.py of socioeconomics module

Revision history for this message
Federico Manuel Echeverri Choux (echeverrifm) wrote :

> 152 + 'views/oemedical_socioeconomics_view.xml', # view has errors,
> please correct before enabling....
>
> You may want to remove the comment ?
>
> Otherwise looks good.

Hello Yannick

i removed that

Regards

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

Mispellings:

l.75 Infraestructure
l.893 please remove commented field

Otherwise LGTM

review: Needs Fixing
128. By Federico Manuel Echeverri Choux

[IMP] Improve oemedical_socioeconomics module (fix description on __openerp__.py and remove commented field on oemedical_socioeconomics_view.xml )

Revision history for this message
Federico Manuel Echeverri Choux (echeverrifm) wrote :

> Mispellings:
>
> l.75 Infraestructure
> l.893 please remove commented field
>
> Otherwise LGTM

Hello Yannick

I do it

Could you check it? please

Thanks and regards

Revision history for this message
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote :

Thanks Frederico

review: Approve
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

Hello,

The management of the project has moved to Github: https://github.com/OCA/vertical-medical

Please migrate your merge proposal to Github. You may want to check https://github.com/OCA/maintainers-tools/wiki/How-to-move-a-Merge-Proposal-to-GitHub for an explanation on how to proceed.

Thanks for contributing to the project

review: Needs Resubmitting

Unmerged revisions

128. By Federico Manuel Echeverri Choux

[IMP] Improve oemedical_socioeconomics module (fix description on __openerp__.py and remove commented field on oemedical_socioeconomics_view.xml )

127. By Federico Manuel Echeverri Choux

[IMP] Improve __openerp__.py of socioeconomics module

126. By Federico Manuel Echeverri Choux

[IMP] Improve description Socioeconomics module and clean code of oemedical_socioeconomics.py file

125. By Federico Manuel Echeverri Choux

[IMP] Improve oemedical socioeconomics module (Fix oemedical_socioeconomics_view.xml view, improve menu, add security file .csv and remove groups of oemedical_security.xml )

124. By Federico Manuel Echeverri Choux

[IMP] Improve oemedical socioeconomics module (Fix some problems to install, Remove comments, improve dependences and move file )

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'oemedical_socioeconomics/__openerp__.py'
--- oemedical_socioeconomics/__openerp__.py 2014-01-15 10:20:02 +0000
+++ oemedical_socioeconomics/__openerp__.py 2014-04-02 14:40:29 +0000
@@ -34,124 +34,65 @@
34##############################################################################34##############################################################################
35{35{
3636
37 'name': 'OeMedical : Free Health and Hospital Information System',37 'name': 'OeMedical : Socioeconomics',
38 'version': '1.0',38 'version': '1.0',
39 'author': "OeMEdical Team",39 'author': "OeMEdical Team",
40 'category': 'Generic Modules/Others',40 'category': 'Generic Modules/Others',
41 'depends': ['base', 'sale', 'purchase', 'account', 'product'],41 'depends': ['oemedical'],
42 'application': True,42 'application': True,
43 'description': """43 'description': """
4444
45About OeMedical45About OeMedical Socio Economics
46---------------46-------------------------------
4747
48OeMedical is a multi-user, highly scalable, centralized Electronic48Socialeconomics Module for:
49Medical Record (EMR) and Hospital Information System for openERP.49
5050Main
51OeMedical provides a free universal Health and Hospital Information System,51
52so doctors and institutions all over the world,52 Socialeconomics Level
53specially in developing countries will benefit from a centralized,53 Education Level
54high quality, secure and scalable system.54 Housing Conditions
5555 ----------------------
56OeMedical at a glance:56 Works at home
5757
58 * Strong focus in family medicine and Primary Health Care58Infrastructure
59 59
60 * Major interest in Socio-economics (housing conditions, substance abuse,60 Sanitary Sewers
61 education...)61 Running Water
62 62 Trash recollection
63 * Diseases and Medical procedures standards (like ICD-10 / ICD-10-PCS ...)63 Electrical supply
64 64 Gas supply
65 * Patient Genetic and Hereditary risks : Over 4200 genes related to65 Telephone
66 diseases (NCBI / Genecards)66 Television
67 67 Internet
68 * Epidemiological and other statistical reports68
69 69Family
70 * 100% paperless patient examination and history taking70
71 71 Single parent family
72 * Patient Administration 72 Domestic violence
73 (creation, evaluations / consultations, history ... )73 Working children
74 74 Teenage pregnancy
75 * Doctor Administration75 Sexual abuse
76 76 Drug addiction
77 * Lab Administration77 School withdrawal
78 78 Has been in prison
79 * Medicine / Drugs information (vademécum)79 Is currently in prison
80 80 Relative in prison
81 * Medical stock and supply chain management81
82
83 * Hospital Financial Administration
84
85 * Designed with industry standards in mind
86
87 * Open Source : Licensed under AGPL
88
89""",82""",
90 "website": "http://launchpad.net/oemedical",83 "website": "http://launchpad.net/oemedical",
91 "licence": "AGPL v3",84 "licence": "AGPL v3",
92 "data": [85 "data": [
93 'sequence/oemedical_sequence.xml',86 'views/oemedical_menu.xml',
94 'views/oemedical_secondary_condition_view.xml',87 'views/oemedical_socioeconomics_view.xml',
95 'views/oemedical_pathology_category_view.xml',
96 'views/oemedical_signs_and_symptoms_view.xml',
97 'views/product_product_view.xml',
98 'views/oemedical_physician_view.xml',
99 'views/oemedical_directions_view.xml',
100 'views/oemedical_insurance_view.xml',
101 'views/res_partner_view.xml',
102 'views/oemedical_pathology_view.xml',
103 'views/oemedical_operational_area_view.xml',
104 'views/oemedical_ethnicity_view.xml',
105 'views/oemedical_operational_sector_view.xml',
106 'views/oemedical_prescription_order_view.xml',
107 'views/oemedical_medicament_category_view.xml',
108 'views/oemedical_insurance_plan_view.xml',
109 'views/oemedical_diagnostic_hypothesis_view.xml',
110 'views/oemedical_procedure_view.xml',
111 'views/oemedical_medication_template_view.xml',
112 'views/oemedical_vaccination_view.xml',
113 'views/oemedical_medication_dosage_view.xml',
114 'views/oemedical_family_member_view.xml',
115 'views/oemedical_hospital_ward_view.xml',
116 'views/oemedical_hospital_or_view.xml',
117 'views/oemedical_drug_form_view.xml',
118 'views/oemedical_patient_medication_view.xml',
119 'views/oemedical_patient_evaluation_view.xml',
120 'views/oemedical_hospital_building_view.xml',
121 'views/oemedical_patient_view.xml',
122 'views/oemedical_prescription_line_view.xml',
123 'views/oemedical_patient_disease_view.xml',
124 'views/oemedical_drug_route_view.xml',
125 'views/oemedical_hospital_unit_view.xml',
126 'views/oemedical_appointment_view.xml',
127 'views/oemedical_specialty_view.xml',
128 'views/oemedical_family_view.xml',
129 'views/oemedical_hospital_bed_view.xml',
130 'views/oemedical_occupation_view.xml',
131 'views/oemedical_disease_group_members_view.xml',
132 'views/oemedical_medicament_view.xml',
133 'views/oemedical_pathology_group_view.xml',
134 #'views/oemedical_gynecology_and_obstetrics_view.xml', # view has errors, please correct before enabling....
135 #'views/oemedical_lifestyle_view.xml',
136 'views/data/recreational_drugs.xml',
137 #'views/oemedical_disease_gene_view.xml', # view has errors, please correct before enabling....
138 'views/data/disease_genes.xml',
139 #'views/oemedical_socioeconomics_view.xml', # view has errors, please correct before enabling....
140 #'views/oemedical_lab_view.xml', # view has errors, please correct before enabling....
141 'security/oemedical_security.xml',88 'security/oemedical_security.xml',
142 'security/ir.model.access.csv',89 'security/ir.model.access.csv',
143 'oemedical_menu.xml',
144 ],90 ],
145 "demo": [91 "demo": [
14692
147 ],93 ],
148 'test':[94 'test':[
149 'test/physician.yml',95
150 'test/patient.yml',
151 'test/partners.yml',
152 'test/insurance_plan.yml',
153 'test/insurance.yml',
154 'test/physician_speciality.yml'
155 ],96 ],
156 'css': [97 'css': [
15798
@@ -163,6 +104,6 @@
163104
164 ],105 ],
165 "active": False,106 "active": False,
166 "installable": False,107 "installable": True,
167}108}
168# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:109# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
169110
=== modified file 'oemedical_socioeconomics/models/__init__.py'
--- oemedical_socioeconomics/models/__init__.py 2014-01-15 10:20:02 +0000
+++ oemedical_socioeconomics/models/__init__.py 2014-04-02 14:40:29 +0000
@@ -18,3 +18,5 @@
1818
1919
20# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:20# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
21
22import oemedical_socioeconomics
2123
=== added file 'oemedical_socioeconomics/models/oemedical_socioeconomics.py'
--- oemedical_socioeconomics/models/oemedical_socioeconomics.py 1970-01-01 00:00:00 +0000
+++ oemedical_socioeconomics/models/oemedical_socioeconomics.py 2014-04-02 14:40:29 +0000
@@ -0,0 +1,127 @@
1# -*- coding: utf-8 -*-
2#/#############################################################################
3#
4# Tech-Receptives Solutions Pvt. Ltd.
5# Copyright (C) 2004-TODAY Tech-Receptives(<http://www.techreceptives.com>)
6# Special Credit and Thanks to Thymbra Latinoamericana S.A.
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21#/#############################################################################
22
23from openerp.osv import fields, orm
24from openerp.tools.translate import _
25from dateutil.relativedelta import relativedelta
26from datetime import datetime
27
28
29class OeMedicalSocioeconomics(orm.Model):
30
31 _inherit='oemedical.patient'
32
33 _columns={
34 'ses' : fields.selection([
35 (None, ''),
36 ('0', 'Lower'),
37 ('1', 'Lower-middle'),
38 ('2', 'Middle'),
39 ('3', 'Middle-upper'),
40 ('4', 'Higher'),
41 ], 'Socioeconomics', help="SES - Socioeconomic Status", sort=False),
42 'housing' : fields.selection([
43 (None, ''),
44 ('0', 'Shanty, deficient sanitary conditions'),
45 ('1', 'Small, crowded but with good sanitary conditions'),
46 ('2', 'Comfortable and good sanitary conditions'),
47 ('3', 'Roomy and excellent sanitary conditions'),
48 ('4', 'Luxury and excellent sanitary conditions'),
49 ], 'Housing conditions', help="Housing and sanitary living conditions", sort=False),
50 'hostile_area' : fields.boolean('Hostile Area', help="Check if patient lives in a zone of high hostility (eg, war)"),
51 'sewers' : fields.boolean('Sanitary Sewers'),
52 'water' : fields.boolean('Running Water'),
53 'trash' : fields.boolean('Trash recollection'),
54 'electricity' : fields.boolean('Electrical supply'),
55 'gas' : fields.boolean('Gas supply'),
56 'telephone' : fields.boolean('Telephone'),
57 'television' : fields.boolean('Television'),
58 'internet' : fields.boolean('Internet'),
59 'single_parent' : fields.boolean('Single parent family'),
60 'domestic_violence' : fields.boolean('Domestic violence'),
61 'working_children' : fields.boolean('Working children'),
62 'teenage_pregnancy' : fields.boolean('Teenage pregnancy'),
63 'sexual_abuse' : fields.boolean('Sexual abuse'),
64 'drug_addiction' : fields.boolean('Drug addiction'),
65 'school_withdrawal' : fields.boolean('School withdrawal'),
66 'prison_past' : fields.boolean('Has been in prison'),
67 'prison_current' : fields.boolean('Is currently in prison'),
68 'relative_in_prison' : fields.boolean('Relative in prison', help="Check if someone from the nuclear family - parents sibblings is or has been in prison"),
69 'ses_notes' : fields.text('Extra info'),
70 'fam_apgar_help' : fields.selection([
71 (None, ''),
72 ('0', 'None'),
73 ('1', 'Moderately'),
74 ('2', 'Very much'),
75 ], 'Help from family',
76 help="Is the patient satisfied with the level of help coming from the family when there is a problem ?", sort=False),
77 'fam_apgar_discussion' : fields.selection([
78 (None, ''),
79 ('0', 'None'),
80 ('1', 'Moderately'),
81 ('2', 'Very much'),
82 ], 'Problems discussion',
83 help="Is the patient satisfied with the level talking over the problems as family ?", sort=False),
84 'fam_apgar_decisions' : fields.selection([
85 (None, ''),
86 ('0', 'None'),
87 ('1', 'Moderately'),
88 ('2', 'Very much'),
89 ], 'Decision making',
90 help="Is the patient satisfied with the level of making important decisions as a group ?", sort=False),
91 'fam_apgar_timesharing' : fields.selection([
92 (None, ''),
93 ('0', 'None'),
94 ('1', 'Moderately'),
95 ('2', 'Very much'),
96 ], 'Time sharing',
97 help="Is the patient satisfied with the level of time that they spend together ?", sort=False),
98 'fam_apgar_affection' : fields.selection([
99 (None, ''),
100 ('0', 'None'),
101 ('1', 'Moderately'),
102 ('2', 'Very much'),
103 ], 'Family affection',
104 help="Is the patient satisfied with the level of affection coming from the family ?", sort=False),
105 'fam_apgar_score' : fields.integer('Score', help="Total Family APGAR 7 - 10 : Functional Family 4 - 6 : Some level of disfunction \n" \
106 "0 - 3 : Severe disfunctional family \n"),
107 'income' : fields.selection([
108 (None, ''),
109 ('h', 'High'),
110 ('m', 'Medium / Average'),
111 ('l', 'Low'),
112 ], 'Income', sort=False),
113 'education' : fields.selection([
114 (None, ''),
115 ('0', 'None'),
116 ('1', 'Incomplete Primary School'),
117 ('2', 'Primary School'),
118 ('3', 'Incomplete Secondary School'),
119 ('4', 'Secondary School'),
120 ('5', 'University'),
121 ], 'Education Level', help="Education Level", sort=False),
122 'works_at_home' : fields.boolean('Works at home', help="Check if the patient works at his / her house"),
123 'hours_outside' : fields.integer('Hours outside home', help="Number of hours a day the patient spend outside the house"),
124
125 }
126
127
0128
=== removed file 'oemedical_socioeconomics/oemedical_menu.xml'
--- oemedical_socioeconomics/oemedical_menu.xml 2014-01-15 10:20:02 +0000
+++ oemedical_socioeconomics/oemedical_menu.xml 1970-01-01 00:00:00 +0000
@@ -1,211 +0,0 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<openerp>
3 <data>
4 <menuitem id="oemedical_root" name="OeMedical" sequence="10" />
5
6
7<!--Menu Patient-->
8
9 <menuitem id="oemedical_patient_root" name="Patient" parent="oemedical_root"
10 sequence="10" />
11 <menuitem id="oemedical_patient" name=" Patient"
12 parent="oemedical_patient_root" sequence="10"
13 action="act_open_oemedical_patient_view" />
14
15 <menuitem id="oemedical_family" name=" Family" parent="oemedical_patient_root"
16 sequence="20" action="act_open_oemedical_family_view" />
17
18 <menuitem id="oemedical_family_member" name=" Family Member"
19 parent="oemedical_patient_root" sequence="30"
20 action="act_open_oemedical_family_member_view" />
21
22
23<!--Appointment-->
24
25 <menuitem id="oemedical_appoitment_root" name="Appoitment"
26 parent="oemedical_root" sequence="20" />
27
28 <menuitem id="oemedical_appointment" name=" Appointment"
29 parent="oemedical_appoitment_root" sequence="10"
30 action="act_open_oemedical_appointment_view" />
31
32<!--Prescriptions-->
33
34 <menuitem id="oemedical_prescription_root" name="Prescription"
35 parent="oemedical_root" sequence="30" />
36
37 <menuitem id="oemedical_prescription_order" name="Prescription Order"
38 parent="oemedical_prescription_root" sequence="10"
39 action="act_open_oemedical_prescription_order_view" />
40
41<!-- Laboratory -->
42 <menuitem name="Laboratory" id="oemedical_laboratory_menu"
43 parent="oemedical_root" sequence="4"/>
44
45
46<!--Configurations-->
47
48 <menuitem id="oemedical_root_sub" name="Configuration"
49 parent="oemedical_root" sequence="100" />
50
51<!-- Laboratory -->
52 <menuitem name="Laboratory" id="oemedical_conf_laboratory"
53 parent="oemedical_root_sub" sequence="3"/>
54
55
56<!-- Diseases -->
57
58 <menuitem id="oemedical_root_disease" name="Disease"
59 parent="oemedical_root_sub" sequence="10" />
60
61<!-- Menu of Pathology-->
62
63 <menuitem id="oemedical_pathology_category" name=" Pathology Category"
64 parent="oemedical_root_disease" sequence="10"
65 action="act_open_oemedical_pathology_category_view" />
66
67 <menuitem id="oemedical_pathology" name=" Pathology"
68 parent="oemedical_root_disease" sequence="30"
69 action="act_open_oemedical_pathology_view" />
70
71 <menuitem id="oemedical_pathology_group" name=" Pathology Group"
72 parent="oemedical_root_disease" sequence="20"
73 action="act_open_oemedical_pathology_group_view" />
74
75 <menuitem id="oemedical_root_disease_cat" name="Categories"
76 parent="oemedical_root_disease" sequence="100" />
77
78 <menuitem id="oemedical_disease_group_members" name=" Disease Group"
79 parent="oemedical_root_disease_cat" sequence="10"
80 action="act_open_oemedical_disease_group_members_view" />
81
82<!-- Misc -->
83
84 <menuitem id="oemedical_root_misc" name="Misc"
85 parent="oemedical_root_sub" sequence="200" />
86
87<!-- Occupation ( Config/misc/Occupation) )-->
88
89 <menuitem id="oemedical_occupation" name=" Occupation"
90 parent="oemedical_root_misc" sequence="20"
91 action="act_open_oemedical_occupation_view" />
92
93<!-- Medical Specialty ( Config/misc/specialty) )-->
94
95 <menuitem id="oemedical_specialty" name=" Medical Specialty"
96 parent="oemedical_root_misc" sequence="10"
97 action="act_open_oemedical_specialty_view" />
98
99<!-- Ethnicity ( Config/misc/Ethnicity) )-->
100
101 <menuitem id="oemedical_ethnicity" name="Ethnicity" parent="oemedical_root_misc"
102 sequence="10" action="act_open_oemedical_ethnicity_view" />
103
104
105
106
107
108
109<!--Medicaments-->
110
111 <menuitem id="oemedical_medicament_root" name="Medicaments"
112 parent="oemedical_root_sub" sequence="50" />
113
114
115 <menuitem id="oemedical_medicament" name="Medicaments"
116 parent="oemedical_medicament_root" sequence="10"
117 action="act_open_oemedical_medicament_view" />
118
119 <menuitem id="oemedical_medication_template" name=" Medication Template"
120 parent="oemedical_medicament_root" sequence="20"
121 action="act_open_oemedical_medication_template_view" />
122
123 <menuitem id="oemedical_medication_frequencies" name="Medication Frequencies"
124 parent="oemedical_medicament_root" sequence="30"
125 action="act_open_oemedical_medication_dosage_view" />
126
127 <menuitem id="oemedical_drug_route" name=" Drug Admin Route"
128 parent="oemedical_medicament_root" sequence="80"
129 action="act_open_oemedical_drug_route_view" />
130
131 <menuitem id="oemedical_drug_form" name=" Drug Form"
132 parent="oemedical_medicament_root" sequence="90"
133 action="act_open_oemedical_drug_form_view" />
134
135
136 <menuitem id="oemedical_medicament_category" name=" Medicament Category"
137 parent="oemedical_medicament_root" sequence="100"
138 action="act_open_oemedical_medicament_category_view" />
139
140<!--Hospital Centers-->
141
142 <menuitem id="oemedical_health_center_root" name="Health Center"
143 parent="oemedical_root_sub" sequence="10" />
144
145 <menuitem id="oemedical_hospital_building" name=" Hospital Building"
146 parent="oemedical_health_center_root" sequence="10"
147 action="act_open_oemedical_hospital_building_view" />
148
149 <menuitem id="oemedical_hospital_unit" name=" Hospital Unit"
150 parent="oemedical_health_center_root" sequence="20"
151 action="act_open_oemedical_hospital_unit_view" />
152
153 <menuitem id="oemedical_hospital_ward" name=" Hospital Ward"
154 parent="oemedical_health_center_root" sequence="30"
155 action="act_open_oemedical_hospital_ward_view" />
156
157 <menuitem id="oemedical_hospital_or" name=" Hospital Or"
158 parent="oemedical_health_center_root" sequence="40"
159 action="act_open_oemedical_hospital_or_view" />
160
161 <menuitem id="oemedical_hospital_bed" name=" Hospital Bed"
162 parent="oemedical_health_center_root" sequence="50"
163 action="act_open_oemedical_hospital_bed_view" />
164
165 <menuitem id="oemedical_operational_area" name=" Operational Area"
166 parent="oemedical_health_center_root" sequence="60"
167 action="act_open_oemedical_operational_area_view" />
168
169 <menuitem id="oemedical_operational_sector" name=" Operational Sector"
170 parent="oemedical_health_center_root" sequence="70"
171 action="act_open_oemedical_operational_sector_view" />
172
173
174<!-- Physician Conf -->
175
176 <menuitem name="Health Professionals" id="oemedical_conf_physicians"
177 parent="oemedical_root_sub" sequence="20" />
178
179 <menuitem id="oemedical_physician" name=" Physician" parent="oemedical_conf_physicians"
180 sequence="10" action="act_open_oemedical_physician_view" />
181
182
183<!-- Insurance -->
184
185 <menuitem name="Insurances" id="oemedical_conf_insurances"
186 parent="oemedical_root_misc" sequence="20" />
187
188 <menuitem id="oemedical_insurance" name=" Insurance"
189 parent="oemedical_conf_insurances" sequence="10"
190 action="act_open_oemedical_insurance_view" />
191
192 <menuitem id="oemedical_insurance_plan" name=" Insurance Plan"
193 parent="oemedical_conf_insurances" sequence="20"
194 action="act_open_oemedical_insurance_plan_view" />
195
196
197
198
199 <menuitem id="oemedical_diagnostic_hypothesis" name=" Diagnostic Hypothesis"
200 parent="oemedical_root_sub" sequence="10"
201 action="act_open_oemedical_diagnostic_hypothesis_view" />
202 <menuitem id="oemedical_predure" name=" Procedure" parent="oemedical_root_sub"
203 sequence="10" action="act_open_oemedical_procedure_view" />
204
205 <menuitem id="oemedical_vaccination" name=" Vaccination"
206 parent="oemedical_root_sub" sequence="10"
207 action="act_open_oemedical_vaccination_view" />
208
209
210 </data>
211</openerp>
2120
=== removed directory 'oemedical_socioeconomics/oemedical_socioeconomics'
=== removed file 'oemedical_socioeconomics/oemedical_socioeconomics/__init__.py'
--- oemedical_socioeconomics/oemedical_socioeconomics/__init__.py 2014-01-15 10:20:02 +0000
+++ oemedical_socioeconomics/oemedical_socioeconomics/__init__.py 1970-01-01 00:00:00 +0000
@@ -1,24 +0,0 @@
1# -*- coding: utf-8 -*-
2##############################################################################
3#
4# Tech-Receptives Solutions Pvt. Ltd.
5# Copyright (C) 2004-TODAY Tech-Receptives(<http://www.techreceptives.com>)
6# Special Credit and Thanks to Thymbra Latinoamericana S.A.
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23
24import oemedical_socioeconomics
250
=== removed file 'oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics.py'
--- oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics.py 2014-01-15 10:20:02 +0000
+++ oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics.py 1970-01-01 00:00:00 +0000
@@ -1,128 +0,0 @@
1# -*- coding: utf-8 -*-
2#/#############################################################################
3#
4# Tech-Receptives Solutions Pvt. Ltd.
5# Copyright (C) 2004-TODAY Tech-Receptives(<http://www.techreceptives.com>)
6# Special Credit and Thanks to Thymbra Latinoamericana S.A.
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21#/#############################################################################
22
23from openerp.osv import fields, orm
24from openerp.tools.translate import _
25from dateutil.relativedelta import relativedelta
26from datetime import datetime
27
28
29class OeMedicalSocioeconomics(orm.Model):
30
31 _inherit='oemedical.patient'
32
33 _columns={
34 'ses' : fields.selection([
35 (None, ''),
36 ('0', 'Lower'),
37 ('1', 'Lower-middle'),
38 ('2', 'Middle'),
39 ('3', 'Middle-upper'),
40 ('4', 'Higher'),
41 ], 'Socioeconomics', help="SES - Socioeconomic Status", sort=False),
42 'housing' : fields.selection([
43 (None, ''),
44 ('0', 'Shanty, deficient sanitary conditions'),
45 ('1', 'Small, crowded but with good sanitary conditions'),
46 ('2', 'Comfortable and good sanitary conditions'),
47 ('3', 'Roomy and excellent sanitary conditions'),
48 ('4', 'Luxury and excellent sanitary conditions'),
49 ], 'Housing conditions', help="Housing and sanitary living conditions", sort=False),
50 'hostile_area' : fields.boolean('Hostile Area', help="Check if patient lives in a zone of high hostility (eg, war)"),
51 'sewers' : fields.boolean('Sanitary Sewers'),
52 'water' : fields.boolean('Running Water'),
53 'trash' : fields.boolean('Trash recollection'),
54 'electricity' : fields.boolean('Electrical supply'),
55 'gas' : fields.boolean('Gas supply'),
56 'telephone' : fields.boolean('Telephone'),
57 'television' : fields.boolean('Television'),
58 'internet' : fields.boolean('Internet'),
59 'single_parent' : fields.boolean('Single parent family'),
60 'domestic_violence' : fields.boolean('Domestic violence'),
61 'working_children' : fields.boolean('Working children'),
62 'teenage_pregnancy' : fields.boolean('Teenage pregnancy'),
63 'sexual_abuse' : fields.boolean('Sexual abuse'),
64 'drug_addiction' : fields.boolean('Drug addiction'),
65 'school_withdrawal' : fields.boolean('School withdrawal'),
66 'prison_past' : fields.boolean('Has been in prison'),
67 'prison_current' : fields.boolean('Is currently in prison'),
68 'relative_in_prison' : fields.boolean('Relative in prison', help="Check if someone from the nuclear family - parents sibblings is or has been in prison"),
69 'ses_notes' : fields.text('Extra info'),
70 'fam_apgar_help' : fields.selection([
71 (None, ''),
72 ('0', 'None'),
73 ('1', 'Moderately'),
74 ('2', 'Very much'),
75 ], 'Help from family',
76 help="Is the patient satisfied with the level of help coming from the family when there is a problem ?", sort=False),
77 'fam_apgar_discussion' : fields.selection([
78 (None, ''),
79 ('0', 'None'),
80 ('1', 'Moderately'),
81 ('2', 'Very much'),
82 ], 'Problems discussion',
83 help="Is the patient satisfied with the level talking over the problems as family ?", sort=False),
84 'fam_apgar_decisions' : fields.selection([
85 (None, ''),
86 ('0', 'None'),
87 ('1', 'Moderately'),
88 ('2', 'Very much'),
89 ], 'Decision making',
90 help="Is the patient satisfied with the level of making important decisions as a group ?", sort=False),
91 'fam_apgar_timesharing' : fields.selection([
92 (None, ''),
93 ('0', 'None'),
94 ('1', 'Moderately'),
95 ('2', 'Very much'),
96 ], 'Time sharing',
97 help="Is the patient satisfied with the level of time that they spend together ?", sort=False),
98 'fam_apgar_affection' : fields.selection([
99 (None, ''),
100 ('0', 'None'),
101 ('1', 'Moderately'),
102 ('2', 'Very much'),
103 ], 'Family affection',
104 help="Is the patient satisfied with the level of affection coming from the family ?", sort=False),
105 'fam_apgar_score' : fields.integer('Score', help="Total Family APGAR 7 - 10 : Functional Family 4 - 6 : Some level of disfunction \n" \
106 "0 - 3 : Severe disfunctional family \n"),
107 'income' : fields.selection([
108 (None, ''),
109 ('h', 'High'),
110 ('m', 'Medium / Average'),
111 ('l', 'Low'),
112 ], 'Income', sort=False),
113 'education' : fields.selection([
114 (None, ''),
115 ('0', 'None'),
116 ('1', 'Incomplete Primary School'),
117 ('2', 'Primary School'),
118 ('3', 'Incomplete Secondary School'),
119 ('4', 'Secondary School'),
120 ('5', 'University'),
121 ], 'Education Level', help="Education Level", sort=False),
122 'works_at_home' : fields.boolean('Works at home', help="Check if the patient works at his / her house"),
123 'hours_outside' : fields.integer('Hours outside home', help="Number of hours a day the patient spend outside the house"),
124
125 }
126
127
128OeMedicalSocioeconomics()
1290
=== removed file 'oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics_view.xml'
--- oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics_view.xml 2014-01-15 10:20:02 +0000
+++ oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics_view.xml 1970-01-01 00:00:00 +0000
@@ -1,80 +0,0 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<openerp>
3 <data>
4
5 <record model="ir.ui.view" id="view_oemedical_patient_form_socio_economics">
6 <field name="name">oemedical.patient.view.inherit.socio_economics</field>
7 <field name="model">oemedical.patient</field>
8 <field name="inherit_id" ref="oemedical.view_oemedical_patient_form" />
9 <field name="type">form</field>
10 <field name="arch" type="xml">
11 <data>
12 <xpath expr="//notebook/page[@string='Misc']" position="before">
13 <page string="Socioeconomics" id="page_socioeconomics">
14 <notebook>
15 <page string="Main" id="page_ses_main">
16 <group colspan="4" col="4" id="group_ses_holder2">
17 <field name="ses"/>
18 <field name="housing"/>
19 <field name="education"/>
20<!-- <field name="occupation"/>-->
21 </group>
22 <newline/>
23 <group col="6" id="group_socioecomics_work">
24 <newline/>
25 <field name="works_at_home"/>
26 <field name="hours_outside"/>
27 <field name="hostile_area"/>
28 </group>
29 <newline/>
30 <newline/>
31 <group string="Notes" id="group_ses_notes">
32 <field colspan="4" name="ses_notes"/>
33 </group>
34 </page>
35 <page string="Infrastructure" id="page_infrastructure">
36
37 <group colspan="4" col="8" id="group_ses_infraestructure">
38 <field name="sewers"/>
39 <field name="water"/>
40 <field name="trash"/>
41 <field name="electricity"/>
42 <field name="gas"/>
43 <field name="telephone"/>
44 <field name="television"/>
45 <field name="internet"/>
46
47 </group>
48 </page>
49 <page string="Family" id="page_family">
50 <group colspan="4" col="6" string="Family APGAR" id="group_ses_family_apgar">
51 <field name="fam_apgar_help" />
52 <field name="fam_apgar_discussion"/>
53 <field name="fam_apgar_decisions"/>
54 <field name="fam_apgar_timesharing"/>
55 <field name="fam_apgar_affection"/>
56 <field name="fam_apgar_score"/>
57 </group>
58 <newline/>
59 <group colspan="4" col="8" string="Other Family Issues" id="group_ses_other_family_issues">
60 <field name="single_parent"/>
61 <field name="domestic_violence"/>
62 <field name="working_children"/>
63 <field name="teenage_pregnancy"/>
64 <field name="sexual_abuse"/>
65 <field name="drug_addiction"/>
66 <field name="school_withdrawal"/>
67 <field name="prison_past"/>
68 <field name="prison_current"/>
69 <field name="relative_in_prison"/>
70 </group>
71 </page>
72 </notebook>
73 </page>
74 </xpath>
75 </data>
76 </field>
77 </record>
78
79 </data>
80</openerp>
810
=== added file 'oemedical_socioeconomics/security/ir.model.access.csv'
--- oemedical_socioeconomics/security/ir.model.access.csv 1970-01-01 00:00:00 +0000
+++ oemedical_socioeconomics/security/ir.model.access.csv 2014-04-02 14:40:29 +0000
@@ -0,0 +1,1 @@
1id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
02
=== modified file 'oemedical_socioeconomics/security/oemedical_security.xml'
--- oemedical_socioeconomics/security/oemedical_security.xml 2014-01-08 06:02:09 +0000
+++ oemedical_socioeconomics/security/oemedical_security.xml 2014-04-02 14:40:29 +0000
@@ -2,56 +2,7 @@
2<openerp>2<openerp>
3<data noupdate="0">3<data noupdate="0">
44
5 <record id="group_oemedical_user" model="res.groups">5</data>
6 <field name="name">OEMedical User</field>6
7 <field name="category_id" ref="base.module_category_accounting_and_finance"/>7
8 <field name="users" eval="[(4, ref('base.user_root'))]"/>
9 <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
10 </record>
11
12 <record id="group_oemedical_doctor" model="res.groups">
13 <field name="name">OEMedical Doctor</field>
14 <field name="category_id" ref="base.module_category_accounting_and_finance"/>
15 <field name="users" eval="[(4, ref('base.user_root'))]"/>
16 <field name="implied_ids" eval="[(4, ref('group_oemedical_user')),(4, ref('base.group_user'))]"/>
17 </record>
18
19 <record id="group_oemedical_assistant" model="res.groups">
20 <field name="name">OEMedical Assistant</field>
21 <field name="category_id" ref="base.module_category_accounting_and_finance"/>
22 <field name="users" eval="[(4, ref('base.user_root'))]"/>
23 <field name="implied_ids" eval="[(4, ref('group_oemedical_user')),(4, ref('base.group_user'))]"/>
24 </record>
25
26 <record id="group_oemedical_center_manager" model="res.groups">
27 <field name="name">OEMedical Center Manager</field>
28 <field name="category_id" ref="base.module_category_accounting_and_finance"/>
29 <field name="implied_ids" eval="[(4, ref('group_oemedical_user')),(4, ref('group_oemedical_doctor'))]"/>
30 </record>
31
32 <record id="group_oemedical_manager" model="res.groups">
33 <field name="name">OEMedical Manager</field>
34 <field name="category_id" ref="base.module_category_accounting_and_finance"/>
35 <field name="implied_ids" eval="[(4, ref('group_oemedical_center_manager'))]"/>
36 </record>
37
38</data>
39
40<data noupdate="0">
41 <record id="oemedical_appointment_access_rule_physician" model="ir.rule">
42 <field name="name">Appointment Entry</field>
43 <field name="model_id" ref="model_oemedical_appointment"/>
44 <field name="global" eval="True"/>
45 <field name="groups" eval="[(4, ref('group_oemedical_doctor'))]"/>
46 <field name="domain_force">[('doctor.user_id', '=', user.id)]</field>
47 </record>
48
49 <record id="oemedical_appointment_access_rule_assistant" model="ir.rule">
50 <field name="name">Appointment Entry</field>
51 <field name="model_id" ref="model_oemedical_appointment"/>
52 <field name="global" eval="True"/>
53 <field name="groups" eval="[(4, ref('group_oemedical_assistant'))]"/>
54 <field name="domain_force">[('institution','=',user.parent_id.id)]</field>
55 </record>
56</data>
57</openerp>8</openerp>
589
=== added file 'oemedical_socioeconomics/views/oemedical_menu.xml'
--- oemedical_socioeconomics/views/oemedical_menu.xml 1970-01-01 00:00:00 +0000
+++ oemedical_socioeconomics/views/oemedical_menu.xml 2014-04-02 14:40:29 +0000
@@ -0,0 +1,9 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<openerp>
3 <data>
4 <menuitem id="oemedical_root" name="OeMedical" sequence="10" />
5
6
7
8 </data>
9</openerp>
010
=== added file 'oemedical_socioeconomics/views/oemedical_socioeconomics_view.xml'
--- oemedical_socioeconomics/views/oemedical_socioeconomics_view.xml 1970-01-01 00:00:00 +0000
+++ oemedical_socioeconomics/views/oemedical_socioeconomics_view.xml 2014-04-02 14:40:29 +0000
@@ -0,0 +1,79 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<openerp>
3 <data>
4
5 <record model="ir.ui.view" id="view_oemedical_patient_form_socio_economics">
6 <field name="name">oemedical.patient.view.inherit.socio_economics</field>
7 <field name="model">oemedical.patient</field>
8 <field name="inherit_id" ref="oemedical.view_oemedical_patient_form" />
9 <field name="type">form</field>
10 <field name="arch" type="xml">
11 <data>
12 <xpath expr="//notebook/page[@string='General Information']" position="after">
13 <page string="Socioeconomics" id="page_socioeconomics">
14 <notebook>
15 <page string="Main" id="page_ses_main">
16 <group colspan="4" col="4" id="group_ses_holder2">
17 <field name="ses"/>
18 <field name="housing"/>
19 <field name="education"/>
20 </group>
21 <newline/>
22 <group col="6" id="group_socioecomics_work">
23 <newline/>
24 <field name="works_at_home"/>
25 <field name="hours_outside"/>
26 <field name="hostile_area"/>
27 </group>
28 <newline/>
29 <newline/>
30 <group string="Notes" id="group_ses_notes">
31 <field colspan="4" name="ses_notes"/>
32 </group>
33 </page>
34 <page string="Infrastructure" id="page_infrastructure">
35
36 <group colspan="4" col="8" id="group_ses_infraestructure">
37 <field name="sewers"/>
38 <field name="water"/>
39 <field name="trash"/>
40 <field name="electricity"/>
41 <field name="gas"/>
42 <field name="telephone"/>
43 <field name="television"/>
44 <field name="internet"/>
45
46 </group>
47 </page>
48 <page string="Family" id="page_family">
49 <group colspan="4" col="6" string="Family APGAR" id="group_ses_family_apgar">
50 <field name="fam_apgar_help" />
51 <field name="fam_apgar_discussion"/>
52 <field name="fam_apgar_decisions"/>
53 <field name="fam_apgar_timesharing"/>
54 <field name="fam_apgar_affection"/>
55 <field name="fam_apgar_score"/>
56 </group>
57 <newline/>
58 <group colspan="4" col="8" string="Other Family Issues" id="group_ses_other_family_issues">
59 <field name="single_parent"/>
60 <field name="domestic_violence"/>
61 <field name="working_children"/>
62 <field name="teenage_pregnancy"/>
63 <field name="sexual_abuse"/>
64 <field name="drug_addiction"/>
65 <field name="school_withdrawal"/>
66 <field name="prison_past"/>
67 <field name="prison_current"/>
68 <field name="relative_in_prison"/>
69 </group>
70 </page>
71 </notebook>
72 </page>
73 </xpath>
74 </data>
75 </field>
76 </record>
77
78 </data>
79</openerp>