Merge lp:~echeverrifm/oemedical/oemedical_socioeconomics into lp:oemedical
- oemedical_socioeconomics
- Merge into trunk
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 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexandre Fayolle - camptocamp | Needs Resubmitting | ||
Yannick Vaucher @ Camptocamp | Approve | ||
Review via email: mp+205523@code.launchpad.net |
Commit message
Description of the change
[IMP] Improve oemedical socioeconomics module (Fix oemedical_
[IMP] Improve oemedical socioeconomics module (Fix some problems to install, Remove comments, improve dependences and move files
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : | # |
- 126. By Federico Manuel Echeverri Choux
-
[IMP] Improve description Socioeconomics module and clean code of oemedical_
socioeconomics. py file
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
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : | # |
152 + 'views/
You may want to remove the comment ?
Otherwise looks good.
- 127. By Federico Manuel Echeverri Choux
-
[IMP] Improve __openerp__.py of socioeconomics module
Federico Manuel Echeverri Choux (echeverrifm) wrote : | # |
> 152 + 'views/
> please correct before enabling....
>
> You may want to remove the comment ?
>
> Otherwise looks good.
Hello Yannick
i removed that
Regards
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : | # |
Mispellings:
l.75 Infraestructure
l.893 please remove commented field
Otherwise LGTM
- 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 )
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
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : | # |
Thanks Frederico
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote : | # |
Hello,
The management of the project has moved to Github: https:/
Please migrate your merge proposal to Github. You may want to check https:/
Thanks for contributing to the project
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
1 | === modified file 'oemedical_socioeconomics/__openerp__.py' | |||
2 | --- oemedical_socioeconomics/__openerp__.py 2014-01-15 10:20:02 +0000 | |||
3 | +++ oemedical_socioeconomics/__openerp__.py 2014-04-02 14:40:29 +0000 | |||
4 | @@ -34,124 +34,65 @@ | |||
5 | 34 | ############################################################################## | 34 | ############################################################################## |
6 | 35 | { | 35 | { |
7 | 36 | 36 | ||
9 | 37 | 'name': 'OeMedical : Free Health and Hospital Information System', | 37 | 'name': 'OeMedical : Socioeconomics', |
10 | 38 | 'version': '1.0', | 38 | 'version': '1.0', |
11 | 39 | 'author': "OeMEdical Team", | 39 | 'author': "OeMEdical Team", |
12 | 40 | 'category': 'Generic Modules/Others', | 40 | 'category': 'Generic Modules/Others', |
14 | 41 | 'depends': ['base', 'sale', 'purchase', 'account', 'product'], | 41 | 'depends': ['oemedical'], |
15 | 42 | 'application': True, | 42 | 'application': True, |
16 | 43 | 'description': """ | 43 | 'description': """ |
17 | 44 | 44 | ||
62 | 45 | About OeMedical | 45 | About OeMedical Socio Economics |
63 | 46 | --------------- | 46 | ------------------------------- |
64 | 47 | 47 | ||
65 | 48 | OeMedical is a multi-user, highly scalable, centralized Electronic | 48 | Socialeconomics Module for: |
66 | 49 | Medical Record (EMR) and Hospital Information System for openERP. | 49 | |
67 | 50 | 50 | Main | |
68 | 51 | OeMedical provides a free universal Health and Hospital Information System, | 51 | |
69 | 52 | so doctors and institutions all over the world, | 52 | Socialeconomics Level |
70 | 53 | specially in developing countries will benefit from a centralized, | 53 | Education Level |
71 | 54 | high quality, secure and scalable system. | 54 | Housing Conditions |
72 | 55 | 55 | ---------------------- | |
73 | 56 | OeMedical at a glance: | 56 | Works at home |
74 | 57 | 57 | ||
75 | 58 | * Strong focus in family medicine and Primary Health Care | 58 | Infrastructure |
76 | 59 | 59 | ||
77 | 60 | * Major interest in Socio-economics (housing conditions, substance abuse, | 60 | Sanitary Sewers |
78 | 61 | education...) | 61 | Running Water |
79 | 62 | 62 | Trash recollection | |
80 | 63 | * Diseases and Medical procedures standards (like ICD-10 / ICD-10-PCS ...) | 63 | Electrical supply |
81 | 64 | 64 | Gas supply | |
82 | 65 | * Patient Genetic and Hereditary risks : Over 4200 genes related to | 65 | Telephone |
83 | 66 | diseases (NCBI / Genecards) | 66 | Television |
84 | 67 | 67 | Internet | |
85 | 68 | * Epidemiological and other statistical reports | 68 | |
86 | 69 | 69 | Family | |
87 | 70 | * 100% paperless patient examination and history taking | 70 | |
88 | 71 | 71 | Single parent family | |
89 | 72 | * Patient Administration | 72 | Domestic violence |
90 | 73 | (creation, evaluations / consultations, history ... ) | 73 | Working children |
91 | 74 | 74 | Teenage pregnancy | |
92 | 75 | * Doctor Administration | 75 | Sexual abuse |
93 | 76 | 76 | Drug addiction | |
94 | 77 | * Lab Administration | 77 | School withdrawal |
95 | 78 | 78 | Has been in prison | |
96 | 79 | * Medicine / Drugs information (vademécum) | 79 | Is currently in prison |
97 | 80 | 80 | Relative in prison | |
98 | 81 | * Medical stock and supply chain management | 81 | |
55 | 82 | |||
56 | 83 | * Hospital Financial Administration | ||
57 | 84 | |||
58 | 85 | * Designed with industry standards in mind | ||
59 | 86 | |||
60 | 87 | * Open Source : Licensed under AGPL | ||
61 | 88 | |||
99 | 89 | """, | 82 | """, |
100 | 90 | "website": "http://launchpad.net/oemedical", | 83 | "website": "http://launchpad.net/oemedical", |
101 | 91 | "licence": "AGPL v3", | 84 | "licence": "AGPL v3", |
102 | 92 | "data": [ | 85 | "data": [ |
151 | 93 | 'sequence/oemedical_sequence.xml', | 86 | 'views/oemedical_menu.xml', |
152 | 94 | 'views/oemedical_secondary_condition_view.xml', | 87 | 'views/oemedical_socioeconomics_view.xml', |
105 | 95 | 'views/oemedical_pathology_category_view.xml', | ||
106 | 96 | 'views/oemedical_signs_and_symptoms_view.xml', | ||
107 | 97 | 'views/product_product_view.xml', | ||
108 | 98 | 'views/oemedical_physician_view.xml', | ||
109 | 99 | 'views/oemedical_directions_view.xml', | ||
110 | 100 | 'views/oemedical_insurance_view.xml', | ||
111 | 101 | 'views/res_partner_view.xml', | ||
112 | 102 | 'views/oemedical_pathology_view.xml', | ||
113 | 103 | 'views/oemedical_operational_area_view.xml', | ||
114 | 104 | 'views/oemedical_ethnicity_view.xml', | ||
115 | 105 | 'views/oemedical_operational_sector_view.xml', | ||
116 | 106 | 'views/oemedical_prescription_order_view.xml', | ||
117 | 107 | 'views/oemedical_medicament_category_view.xml', | ||
118 | 108 | 'views/oemedical_insurance_plan_view.xml', | ||
119 | 109 | 'views/oemedical_diagnostic_hypothesis_view.xml', | ||
120 | 110 | 'views/oemedical_procedure_view.xml', | ||
121 | 111 | 'views/oemedical_medication_template_view.xml', | ||
122 | 112 | 'views/oemedical_vaccination_view.xml', | ||
123 | 113 | 'views/oemedical_medication_dosage_view.xml', | ||
124 | 114 | 'views/oemedical_family_member_view.xml', | ||
125 | 115 | 'views/oemedical_hospital_ward_view.xml', | ||
126 | 116 | 'views/oemedical_hospital_or_view.xml', | ||
127 | 117 | 'views/oemedical_drug_form_view.xml', | ||
128 | 118 | 'views/oemedical_patient_medication_view.xml', | ||
129 | 119 | 'views/oemedical_patient_evaluation_view.xml', | ||
130 | 120 | 'views/oemedical_hospital_building_view.xml', | ||
131 | 121 | 'views/oemedical_patient_view.xml', | ||
132 | 122 | 'views/oemedical_prescription_line_view.xml', | ||
133 | 123 | 'views/oemedical_patient_disease_view.xml', | ||
134 | 124 | 'views/oemedical_drug_route_view.xml', | ||
135 | 125 | 'views/oemedical_hospital_unit_view.xml', | ||
136 | 126 | 'views/oemedical_appointment_view.xml', | ||
137 | 127 | 'views/oemedical_specialty_view.xml', | ||
138 | 128 | 'views/oemedical_family_view.xml', | ||
139 | 129 | 'views/oemedical_hospital_bed_view.xml', | ||
140 | 130 | 'views/oemedical_occupation_view.xml', | ||
141 | 131 | 'views/oemedical_disease_group_members_view.xml', | ||
142 | 132 | 'views/oemedical_medicament_view.xml', | ||
143 | 133 | 'views/oemedical_pathology_group_view.xml', | ||
144 | 134 | #'views/oemedical_gynecology_and_obstetrics_view.xml', # view has errors, please correct before enabling.... | ||
145 | 135 | #'views/oemedical_lifestyle_view.xml', | ||
146 | 136 | 'views/data/recreational_drugs.xml', | ||
147 | 137 | #'views/oemedical_disease_gene_view.xml', # view has errors, please correct before enabling.... | ||
148 | 138 | 'views/data/disease_genes.xml', | ||
149 | 139 | #'views/oemedical_socioeconomics_view.xml', # view has errors, please correct before enabling.... | ||
150 | 140 | #'views/oemedical_lab_view.xml', # view has errors, please correct before enabling.... | ||
153 | 141 | 'security/oemedical_security.xml', | 88 | 'security/oemedical_security.xml', |
154 | 142 | 'security/ir.model.access.csv', | 89 | 'security/ir.model.access.csv', |
155 | 143 | 'oemedical_menu.xml', | ||
156 | 144 | ], | 90 | ], |
157 | 145 | "demo": [ | 91 | "demo": [ |
158 | 146 | 92 | ||
159 | 147 | ], | 93 | ], |
160 | 148 | 'test':[ | 94 | 'test':[ |
167 | 149 | 'test/physician.yml', | 95 | |
162 | 150 | 'test/patient.yml', | ||
163 | 151 | 'test/partners.yml', | ||
164 | 152 | 'test/insurance_plan.yml', | ||
165 | 153 | 'test/insurance.yml', | ||
166 | 154 | 'test/physician_speciality.yml' | ||
168 | 155 | ], | 96 | ], |
169 | 156 | 'css': [ | 97 | 'css': [ |
170 | 157 | 98 | ||
171 | @@ -163,6 +104,6 @@ | |||
172 | 163 | 104 | ||
173 | 164 | ], | 105 | ], |
174 | 165 | "active": False, | 106 | "active": False, |
176 | 166 | "installable": False, | 107 | "installable": True, |
177 | 167 | } | 108 | } |
178 | 168 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | 109 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
179 | 169 | 110 | ||
180 | === modified file 'oemedical_socioeconomics/models/__init__.py' | |||
181 | --- oemedical_socioeconomics/models/__init__.py 2014-01-15 10:20:02 +0000 | |||
182 | +++ oemedical_socioeconomics/models/__init__.py 2014-04-02 14:40:29 +0000 | |||
183 | @@ -18,3 +18,5 @@ | |||
184 | 18 | 18 | ||
185 | 19 | 19 | ||
186 | 20 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | 20 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
187 | 21 | |||
188 | 22 | import oemedical_socioeconomics | ||
189 | 21 | 23 | ||
190 | === added file 'oemedical_socioeconomics/models/oemedical_socioeconomics.py' | |||
191 | --- oemedical_socioeconomics/models/oemedical_socioeconomics.py 1970-01-01 00:00:00 +0000 | |||
192 | +++ oemedical_socioeconomics/models/oemedical_socioeconomics.py 2014-04-02 14:40:29 +0000 | |||
193 | @@ -0,0 +1,127 @@ | |||
194 | 1 | # -*- coding: utf-8 -*- | ||
195 | 2 | #/############################################################################# | ||
196 | 3 | # | ||
197 | 4 | # Tech-Receptives Solutions Pvt. Ltd. | ||
198 | 5 | # Copyright (C) 2004-TODAY Tech-Receptives(<http://www.techreceptives.com>) | ||
199 | 6 | # Special Credit and Thanks to Thymbra Latinoamericana S.A. | ||
200 | 7 | # | ||
201 | 8 | # This program is free software: you can redistribute it and/or modify | ||
202 | 9 | # it under the terms of the GNU Affero General Public License as | ||
203 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
204 | 11 | # License, or (at your option) any later version. | ||
205 | 12 | # | ||
206 | 13 | # This program is distributed in the hope that it will be useful, | ||
207 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
208 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
209 | 16 | # GNU Affero General Public License for more details. | ||
210 | 17 | # | ||
211 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
212 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
213 | 20 | # | ||
214 | 21 | #/############################################################################# | ||
215 | 22 | |||
216 | 23 | from openerp.osv import fields, orm | ||
217 | 24 | from openerp.tools.translate import _ | ||
218 | 25 | from dateutil.relativedelta import relativedelta | ||
219 | 26 | from datetime import datetime | ||
220 | 27 | |||
221 | 28 | |||
222 | 29 | class OeMedicalSocioeconomics(orm.Model): | ||
223 | 30 | |||
224 | 31 | _inherit='oemedical.patient' | ||
225 | 32 | |||
226 | 33 | _columns={ | ||
227 | 34 | 'ses' : fields.selection([ | ||
228 | 35 | (None, ''), | ||
229 | 36 | ('0', 'Lower'), | ||
230 | 37 | ('1', 'Lower-middle'), | ||
231 | 38 | ('2', 'Middle'), | ||
232 | 39 | ('3', 'Middle-upper'), | ||
233 | 40 | ('4', 'Higher'), | ||
234 | 41 | ], 'Socioeconomics', help="SES - Socioeconomic Status", sort=False), | ||
235 | 42 | 'housing' : fields.selection([ | ||
236 | 43 | (None, ''), | ||
237 | 44 | ('0', 'Shanty, deficient sanitary conditions'), | ||
238 | 45 | ('1', 'Small, crowded but with good sanitary conditions'), | ||
239 | 46 | ('2', 'Comfortable and good sanitary conditions'), | ||
240 | 47 | ('3', 'Roomy and excellent sanitary conditions'), | ||
241 | 48 | ('4', 'Luxury and excellent sanitary conditions'), | ||
242 | 49 | ], 'Housing conditions', help="Housing and sanitary living conditions", sort=False), | ||
243 | 50 | 'hostile_area' : fields.boolean('Hostile Area', help="Check if patient lives in a zone of high hostility (eg, war)"), | ||
244 | 51 | 'sewers' : fields.boolean('Sanitary Sewers'), | ||
245 | 52 | 'water' : fields.boolean('Running Water'), | ||
246 | 53 | 'trash' : fields.boolean('Trash recollection'), | ||
247 | 54 | 'electricity' : fields.boolean('Electrical supply'), | ||
248 | 55 | 'gas' : fields.boolean('Gas supply'), | ||
249 | 56 | 'telephone' : fields.boolean('Telephone'), | ||
250 | 57 | 'television' : fields.boolean('Television'), | ||
251 | 58 | 'internet' : fields.boolean('Internet'), | ||
252 | 59 | 'single_parent' : fields.boolean('Single parent family'), | ||
253 | 60 | 'domestic_violence' : fields.boolean('Domestic violence'), | ||
254 | 61 | 'working_children' : fields.boolean('Working children'), | ||
255 | 62 | 'teenage_pregnancy' : fields.boolean('Teenage pregnancy'), | ||
256 | 63 | 'sexual_abuse' : fields.boolean('Sexual abuse'), | ||
257 | 64 | 'drug_addiction' : fields.boolean('Drug addiction'), | ||
258 | 65 | 'school_withdrawal' : fields.boolean('School withdrawal'), | ||
259 | 66 | 'prison_past' : fields.boolean('Has been in prison'), | ||
260 | 67 | 'prison_current' : fields.boolean('Is currently in prison'), | ||
261 | 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"), | ||
262 | 69 | 'ses_notes' : fields.text('Extra info'), | ||
263 | 70 | 'fam_apgar_help' : fields.selection([ | ||
264 | 71 | (None, ''), | ||
265 | 72 | ('0', 'None'), | ||
266 | 73 | ('1', 'Moderately'), | ||
267 | 74 | ('2', 'Very much'), | ||
268 | 75 | ], 'Help from family', | ||
269 | 76 | help="Is the patient satisfied with the level of help coming from the family when there is a problem ?", sort=False), | ||
270 | 77 | 'fam_apgar_discussion' : fields.selection([ | ||
271 | 78 | (None, ''), | ||
272 | 79 | ('0', 'None'), | ||
273 | 80 | ('1', 'Moderately'), | ||
274 | 81 | ('2', 'Very much'), | ||
275 | 82 | ], 'Problems discussion', | ||
276 | 83 | help="Is the patient satisfied with the level talking over the problems as family ?", sort=False), | ||
277 | 84 | 'fam_apgar_decisions' : fields.selection([ | ||
278 | 85 | (None, ''), | ||
279 | 86 | ('0', 'None'), | ||
280 | 87 | ('1', 'Moderately'), | ||
281 | 88 | ('2', 'Very much'), | ||
282 | 89 | ], 'Decision making', | ||
283 | 90 | help="Is the patient satisfied with the level of making important decisions as a group ?", sort=False), | ||
284 | 91 | 'fam_apgar_timesharing' : fields.selection([ | ||
285 | 92 | (None, ''), | ||
286 | 93 | ('0', 'None'), | ||
287 | 94 | ('1', 'Moderately'), | ||
288 | 95 | ('2', 'Very much'), | ||
289 | 96 | ], 'Time sharing', | ||
290 | 97 | help="Is the patient satisfied with the level of time that they spend together ?", sort=False), | ||
291 | 98 | 'fam_apgar_affection' : fields.selection([ | ||
292 | 99 | (None, ''), | ||
293 | 100 | ('0', 'None'), | ||
294 | 101 | ('1', 'Moderately'), | ||
295 | 102 | ('2', 'Very much'), | ||
296 | 103 | ], 'Family affection', | ||
297 | 104 | help="Is the patient satisfied with the level of affection coming from the family ?", sort=False), | ||
298 | 105 | 'fam_apgar_score' : fields.integer('Score', help="Total Family APGAR 7 - 10 : Functional Family 4 - 6 : Some level of disfunction \n" \ | ||
299 | 106 | "0 - 3 : Severe disfunctional family \n"), | ||
300 | 107 | 'income' : fields.selection([ | ||
301 | 108 | (None, ''), | ||
302 | 109 | ('h', 'High'), | ||
303 | 110 | ('m', 'Medium / Average'), | ||
304 | 111 | ('l', 'Low'), | ||
305 | 112 | ], 'Income', sort=False), | ||
306 | 113 | 'education' : fields.selection([ | ||
307 | 114 | (None, ''), | ||
308 | 115 | ('0', 'None'), | ||
309 | 116 | ('1', 'Incomplete Primary School'), | ||
310 | 117 | ('2', 'Primary School'), | ||
311 | 118 | ('3', 'Incomplete Secondary School'), | ||
312 | 119 | ('4', 'Secondary School'), | ||
313 | 120 | ('5', 'University'), | ||
314 | 121 | ], 'Education Level', help="Education Level", sort=False), | ||
315 | 122 | 'works_at_home' : fields.boolean('Works at home', help="Check if the patient works at his / her house"), | ||
316 | 123 | 'hours_outside' : fields.integer('Hours outside home', help="Number of hours a day the patient spend outside the house"), | ||
317 | 124 | |||
318 | 125 | } | ||
319 | 126 | |||
320 | 127 | |||
321 | 0 | 128 | ||
322 | === removed file 'oemedical_socioeconomics/oemedical_menu.xml' | |||
323 | --- oemedical_socioeconomics/oemedical_menu.xml 2014-01-15 10:20:02 +0000 | |||
324 | +++ oemedical_socioeconomics/oemedical_menu.xml 1970-01-01 00:00:00 +0000 | |||
325 | @@ -1,211 +0,0 @@ | |||
326 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
327 | 2 | <openerp> | ||
328 | 3 | <data> | ||
329 | 4 | <menuitem id="oemedical_root" name="OeMedical" sequence="10" /> | ||
330 | 5 | |||
331 | 6 | |||
332 | 7 | <!--Menu Patient--> | ||
333 | 8 | |||
334 | 9 | <menuitem id="oemedical_patient_root" name="Patient" parent="oemedical_root" | ||
335 | 10 | sequence="10" /> | ||
336 | 11 | <menuitem id="oemedical_patient" name=" Patient" | ||
337 | 12 | parent="oemedical_patient_root" sequence="10" | ||
338 | 13 | action="act_open_oemedical_patient_view" /> | ||
339 | 14 | |||
340 | 15 | <menuitem id="oemedical_family" name=" Family" parent="oemedical_patient_root" | ||
341 | 16 | sequence="20" action="act_open_oemedical_family_view" /> | ||
342 | 17 | |||
343 | 18 | <menuitem id="oemedical_family_member" name=" Family Member" | ||
344 | 19 | parent="oemedical_patient_root" sequence="30" | ||
345 | 20 | action="act_open_oemedical_family_member_view" /> | ||
346 | 21 | |||
347 | 22 | |||
348 | 23 | <!--Appointment--> | ||
349 | 24 | |||
350 | 25 | <menuitem id="oemedical_appoitment_root" name="Appoitment" | ||
351 | 26 | parent="oemedical_root" sequence="20" /> | ||
352 | 27 | |||
353 | 28 | <menuitem id="oemedical_appointment" name=" Appointment" | ||
354 | 29 | parent="oemedical_appoitment_root" sequence="10" | ||
355 | 30 | action="act_open_oemedical_appointment_view" /> | ||
356 | 31 | |||
357 | 32 | <!--Prescriptions--> | ||
358 | 33 | |||
359 | 34 | <menuitem id="oemedical_prescription_root" name="Prescription" | ||
360 | 35 | parent="oemedical_root" sequence="30" /> | ||
361 | 36 | |||
362 | 37 | <menuitem id="oemedical_prescription_order" name="Prescription Order" | ||
363 | 38 | parent="oemedical_prescription_root" sequence="10" | ||
364 | 39 | action="act_open_oemedical_prescription_order_view" /> | ||
365 | 40 | |||
366 | 41 | <!-- Laboratory --> | ||
367 | 42 | <menuitem name="Laboratory" id="oemedical_laboratory_menu" | ||
368 | 43 | parent="oemedical_root" sequence="4"/> | ||
369 | 44 | |||
370 | 45 | |||
371 | 46 | <!--Configurations--> | ||
372 | 47 | |||
373 | 48 | <menuitem id="oemedical_root_sub" name="Configuration" | ||
374 | 49 | parent="oemedical_root" sequence="100" /> | ||
375 | 50 | |||
376 | 51 | <!-- Laboratory --> | ||
377 | 52 | <menuitem name="Laboratory" id="oemedical_conf_laboratory" | ||
378 | 53 | parent="oemedical_root_sub" sequence="3"/> | ||
379 | 54 | |||
380 | 55 | |||
381 | 56 | <!-- Diseases --> | ||
382 | 57 | |||
383 | 58 | <menuitem id="oemedical_root_disease" name="Disease" | ||
384 | 59 | parent="oemedical_root_sub" sequence="10" /> | ||
385 | 60 | |||
386 | 61 | <!-- Menu of Pathology--> | ||
387 | 62 | |||
388 | 63 | <menuitem id="oemedical_pathology_category" name=" Pathology Category" | ||
389 | 64 | parent="oemedical_root_disease" sequence="10" | ||
390 | 65 | action="act_open_oemedical_pathology_category_view" /> | ||
391 | 66 | |||
392 | 67 | <menuitem id="oemedical_pathology" name=" Pathology" | ||
393 | 68 | parent="oemedical_root_disease" sequence="30" | ||
394 | 69 | action="act_open_oemedical_pathology_view" /> | ||
395 | 70 | |||
396 | 71 | <menuitem id="oemedical_pathology_group" name=" Pathology Group" | ||
397 | 72 | parent="oemedical_root_disease" sequence="20" | ||
398 | 73 | action="act_open_oemedical_pathology_group_view" /> | ||
399 | 74 | |||
400 | 75 | <menuitem id="oemedical_root_disease_cat" name="Categories" | ||
401 | 76 | parent="oemedical_root_disease" sequence="100" /> | ||
402 | 77 | |||
403 | 78 | <menuitem id="oemedical_disease_group_members" name=" Disease Group" | ||
404 | 79 | parent="oemedical_root_disease_cat" sequence="10" | ||
405 | 80 | action="act_open_oemedical_disease_group_members_view" /> | ||
406 | 81 | |||
407 | 82 | <!-- Misc --> | ||
408 | 83 | |||
409 | 84 | <menuitem id="oemedical_root_misc" name="Misc" | ||
410 | 85 | parent="oemedical_root_sub" sequence="200" /> | ||
411 | 86 | |||
412 | 87 | <!-- Occupation ( Config/misc/Occupation) )--> | ||
413 | 88 | |||
414 | 89 | <menuitem id="oemedical_occupation" name=" Occupation" | ||
415 | 90 | parent="oemedical_root_misc" sequence="20" | ||
416 | 91 | action="act_open_oemedical_occupation_view" /> | ||
417 | 92 | |||
418 | 93 | <!-- Medical Specialty ( Config/misc/specialty) )--> | ||
419 | 94 | |||
420 | 95 | <menuitem id="oemedical_specialty" name=" Medical Specialty" | ||
421 | 96 | parent="oemedical_root_misc" sequence="10" | ||
422 | 97 | action="act_open_oemedical_specialty_view" /> | ||
423 | 98 | |||
424 | 99 | <!-- Ethnicity ( Config/misc/Ethnicity) )--> | ||
425 | 100 | |||
426 | 101 | <menuitem id="oemedical_ethnicity" name="Ethnicity" parent="oemedical_root_misc" | ||
427 | 102 | sequence="10" action="act_open_oemedical_ethnicity_view" /> | ||
428 | 103 | |||
429 | 104 | |||
430 | 105 | |||
431 | 106 | |||
432 | 107 | |||
433 | 108 | |||
434 | 109 | <!--Medicaments--> | ||
435 | 110 | |||
436 | 111 | <menuitem id="oemedical_medicament_root" name="Medicaments" | ||
437 | 112 | parent="oemedical_root_sub" sequence="50" /> | ||
438 | 113 | |||
439 | 114 | |||
440 | 115 | <menuitem id="oemedical_medicament" name="Medicaments" | ||
441 | 116 | parent="oemedical_medicament_root" sequence="10" | ||
442 | 117 | action="act_open_oemedical_medicament_view" /> | ||
443 | 118 | |||
444 | 119 | <menuitem id="oemedical_medication_template" name=" Medication Template" | ||
445 | 120 | parent="oemedical_medicament_root" sequence="20" | ||
446 | 121 | action="act_open_oemedical_medication_template_view" /> | ||
447 | 122 | |||
448 | 123 | <menuitem id="oemedical_medication_frequencies" name="Medication Frequencies" | ||
449 | 124 | parent="oemedical_medicament_root" sequence="30" | ||
450 | 125 | action="act_open_oemedical_medication_dosage_view" /> | ||
451 | 126 | |||
452 | 127 | <menuitem id="oemedical_drug_route" name=" Drug Admin Route" | ||
453 | 128 | parent="oemedical_medicament_root" sequence="80" | ||
454 | 129 | action="act_open_oemedical_drug_route_view" /> | ||
455 | 130 | |||
456 | 131 | <menuitem id="oemedical_drug_form" name=" Drug Form" | ||
457 | 132 | parent="oemedical_medicament_root" sequence="90" | ||
458 | 133 | action="act_open_oemedical_drug_form_view" /> | ||
459 | 134 | |||
460 | 135 | |||
461 | 136 | <menuitem id="oemedical_medicament_category" name=" Medicament Category" | ||
462 | 137 | parent="oemedical_medicament_root" sequence="100" | ||
463 | 138 | action="act_open_oemedical_medicament_category_view" /> | ||
464 | 139 | |||
465 | 140 | <!--Hospital Centers--> | ||
466 | 141 | |||
467 | 142 | <menuitem id="oemedical_health_center_root" name="Health Center" | ||
468 | 143 | parent="oemedical_root_sub" sequence="10" /> | ||
469 | 144 | |||
470 | 145 | <menuitem id="oemedical_hospital_building" name=" Hospital Building" | ||
471 | 146 | parent="oemedical_health_center_root" sequence="10" | ||
472 | 147 | action="act_open_oemedical_hospital_building_view" /> | ||
473 | 148 | |||
474 | 149 | <menuitem id="oemedical_hospital_unit" name=" Hospital Unit" | ||
475 | 150 | parent="oemedical_health_center_root" sequence="20" | ||
476 | 151 | action="act_open_oemedical_hospital_unit_view" /> | ||
477 | 152 | |||
478 | 153 | <menuitem id="oemedical_hospital_ward" name=" Hospital Ward" | ||
479 | 154 | parent="oemedical_health_center_root" sequence="30" | ||
480 | 155 | action="act_open_oemedical_hospital_ward_view" /> | ||
481 | 156 | |||
482 | 157 | <menuitem id="oemedical_hospital_or" name=" Hospital Or" | ||
483 | 158 | parent="oemedical_health_center_root" sequence="40" | ||
484 | 159 | action="act_open_oemedical_hospital_or_view" /> | ||
485 | 160 | |||
486 | 161 | <menuitem id="oemedical_hospital_bed" name=" Hospital Bed" | ||
487 | 162 | parent="oemedical_health_center_root" sequence="50" | ||
488 | 163 | action="act_open_oemedical_hospital_bed_view" /> | ||
489 | 164 | |||
490 | 165 | <menuitem id="oemedical_operational_area" name=" Operational Area" | ||
491 | 166 | parent="oemedical_health_center_root" sequence="60" | ||
492 | 167 | action="act_open_oemedical_operational_area_view" /> | ||
493 | 168 | |||
494 | 169 | <menuitem id="oemedical_operational_sector" name=" Operational Sector" | ||
495 | 170 | parent="oemedical_health_center_root" sequence="70" | ||
496 | 171 | action="act_open_oemedical_operational_sector_view" /> | ||
497 | 172 | |||
498 | 173 | |||
499 | 174 | <!-- Physician Conf --> | ||
500 | 175 | |||
501 | 176 | <menuitem name="Health Professionals" id="oemedical_conf_physicians" | ||
502 | 177 | parent="oemedical_root_sub" sequence="20" /> | ||
503 | 178 | |||
504 | 179 | <menuitem id="oemedical_physician" name=" Physician" parent="oemedical_conf_physicians" | ||
505 | 180 | sequence="10" action="act_open_oemedical_physician_view" /> | ||
506 | 181 | |||
507 | 182 | |||
508 | 183 | <!-- Insurance --> | ||
509 | 184 | |||
510 | 185 | <menuitem name="Insurances" id="oemedical_conf_insurances" | ||
511 | 186 | parent="oemedical_root_misc" sequence="20" /> | ||
512 | 187 | |||
513 | 188 | <menuitem id="oemedical_insurance" name=" Insurance" | ||
514 | 189 | parent="oemedical_conf_insurances" sequence="10" | ||
515 | 190 | action="act_open_oemedical_insurance_view" /> | ||
516 | 191 | |||
517 | 192 | <menuitem id="oemedical_insurance_plan" name=" Insurance Plan" | ||
518 | 193 | parent="oemedical_conf_insurances" sequence="20" | ||
519 | 194 | action="act_open_oemedical_insurance_plan_view" /> | ||
520 | 195 | |||
521 | 196 | |||
522 | 197 | |||
523 | 198 | |||
524 | 199 | <menuitem id="oemedical_diagnostic_hypothesis" name=" Diagnostic Hypothesis" | ||
525 | 200 | parent="oemedical_root_sub" sequence="10" | ||
526 | 201 | action="act_open_oemedical_diagnostic_hypothesis_view" /> | ||
527 | 202 | <menuitem id="oemedical_predure" name=" Procedure" parent="oemedical_root_sub" | ||
528 | 203 | sequence="10" action="act_open_oemedical_procedure_view" /> | ||
529 | 204 | |||
530 | 205 | <menuitem id="oemedical_vaccination" name=" Vaccination" | ||
531 | 206 | parent="oemedical_root_sub" sequence="10" | ||
532 | 207 | action="act_open_oemedical_vaccination_view" /> | ||
533 | 208 | |||
534 | 209 | |||
535 | 210 | </data> | ||
536 | 211 | </openerp> | ||
537 | 212 | 0 | ||
538 | === removed directory 'oemedical_socioeconomics/oemedical_socioeconomics' | |||
539 | === removed file 'oemedical_socioeconomics/oemedical_socioeconomics/__init__.py' | |||
540 | --- oemedical_socioeconomics/oemedical_socioeconomics/__init__.py 2014-01-15 10:20:02 +0000 | |||
541 | +++ oemedical_socioeconomics/oemedical_socioeconomics/__init__.py 1970-01-01 00:00:00 +0000 | |||
542 | @@ -1,24 +0,0 @@ | |||
543 | 1 | # -*- coding: utf-8 -*- | ||
544 | 2 | ############################################################################## | ||
545 | 3 | # | ||
546 | 4 | # Tech-Receptives Solutions Pvt. Ltd. | ||
547 | 5 | # Copyright (C) 2004-TODAY Tech-Receptives(<http://www.techreceptives.com>) | ||
548 | 6 | # Special Credit and Thanks to Thymbra Latinoamericana S.A. | ||
549 | 7 | # | ||
550 | 8 | # This program is free software: you can redistribute it and/or modify | ||
551 | 9 | # it under the terms of the GNU Affero General Public License as | ||
552 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
553 | 11 | # License, or (at your option) any later version. | ||
554 | 12 | # | ||
555 | 13 | # This program is distributed in the hope that it will be useful, | ||
556 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
557 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
558 | 16 | # GNU Affero General Public License for more details. | ||
559 | 17 | # | ||
560 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
561 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
562 | 20 | # | ||
563 | 21 | ############################################################################## | ||
564 | 22 | |||
565 | 23 | |||
566 | 24 | import oemedical_socioeconomics | ||
567 | 25 | 0 | ||
568 | === removed file 'oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics.py' | |||
569 | --- oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics.py 2014-01-15 10:20:02 +0000 | |||
570 | +++ oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics.py 1970-01-01 00:00:00 +0000 | |||
571 | @@ -1,128 +0,0 @@ | |||
572 | 1 | # -*- coding: utf-8 -*- | ||
573 | 2 | #/############################################################################# | ||
574 | 3 | # | ||
575 | 4 | # Tech-Receptives Solutions Pvt. Ltd. | ||
576 | 5 | # Copyright (C) 2004-TODAY Tech-Receptives(<http://www.techreceptives.com>) | ||
577 | 6 | # Special Credit and Thanks to Thymbra Latinoamericana S.A. | ||
578 | 7 | # | ||
579 | 8 | # This program is free software: you can redistribute it and/or modify | ||
580 | 9 | # it under the terms of the GNU Affero General Public License as | ||
581 | 10 | # published by the Free Software Foundation, either version 3 of the | ||
582 | 11 | # License, or (at your option) any later version. | ||
583 | 12 | # | ||
584 | 13 | # This program is distributed in the hope that it will be useful, | ||
585 | 14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
586 | 15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
587 | 16 | # GNU Affero General Public License for more details. | ||
588 | 17 | # | ||
589 | 18 | # You should have received a copy of the GNU Affero General Public License | ||
590 | 19 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
591 | 20 | # | ||
592 | 21 | #/############################################################################# | ||
593 | 22 | |||
594 | 23 | from openerp.osv import fields, orm | ||
595 | 24 | from openerp.tools.translate import _ | ||
596 | 25 | from dateutil.relativedelta import relativedelta | ||
597 | 26 | from datetime import datetime | ||
598 | 27 | |||
599 | 28 | |||
600 | 29 | class OeMedicalSocioeconomics(orm.Model): | ||
601 | 30 | |||
602 | 31 | _inherit='oemedical.patient' | ||
603 | 32 | |||
604 | 33 | _columns={ | ||
605 | 34 | 'ses' : fields.selection([ | ||
606 | 35 | (None, ''), | ||
607 | 36 | ('0', 'Lower'), | ||
608 | 37 | ('1', 'Lower-middle'), | ||
609 | 38 | ('2', 'Middle'), | ||
610 | 39 | ('3', 'Middle-upper'), | ||
611 | 40 | ('4', 'Higher'), | ||
612 | 41 | ], 'Socioeconomics', help="SES - Socioeconomic Status", sort=False), | ||
613 | 42 | 'housing' : fields.selection([ | ||
614 | 43 | (None, ''), | ||
615 | 44 | ('0', 'Shanty, deficient sanitary conditions'), | ||
616 | 45 | ('1', 'Small, crowded but with good sanitary conditions'), | ||
617 | 46 | ('2', 'Comfortable and good sanitary conditions'), | ||
618 | 47 | ('3', 'Roomy and excellent sanitary conditions'), | ||
619 | 48 | ('4', 'Luxury and excellent sanitary conditions'), | ||
620 | 49 | ], 'Housing conditions', help="Housing and sanitary living conditions", sort=False), | ||
621 | 50 | 'hostile_area' : fields.boolean('Hostile Area', help="Check if patient lives in a zone of high hostility (eg, war)"), | ||
622 | 51 | 'sewers' : fields.boolean('Sanitary Sewers'), | ||
623 | 52 | 'water' : fields.boolean('Running Water'), | ||
624 | 53 | 'trash' : fields.boolean('Trash recollection'), | ||
625 | 54 | 'electricity' : fields.boolean('Electrical supply'), | ||
626 | 55 | 'gas' : fields.boolean('Gas supply'), | ||
627 | 56 | 'telephone' : fields.boolean('Telephone'), | ||
628 | 57 | 'television' : fields.boolean('Television'), | ||
629 | 58 | 'internet' : fields.boolean('Internet'), | ||
630 | 59 | 'single_parent' : fields.boolean('Single parent family'), | ||
631 | 60 | 'domestic_violence' : fields.boolean('Domestic violence'), | ||
632 | 61 | 'working_children' : fields.boolean('Working children'), | ||
633 | 62 | 'teenage_pregnancy' : fields.boolean('Teenage pregnancy'), | ||
634 | 63 | 'sexual_abuse' : fields.boolean('Sexual abuse'), | ||
635 | 64 | 'drug_addiction' : fields.boolean('Drug addiction'), | ||
636 | 65 | 'school_withdrawal' : fields.boolean('School withdrawal'), | ||
637 | 66 | 'prison_past' : fields.boolean('Has been in prison'), | ||
638 | 67 | 'prison_current' : fields.boolean('Is currently in prison'), | ||
639 | 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"), | ||
640 | 69 | 'ses_notes' : fields.text('Extra info'), | ||
641 | 70 | 'fam_apgar_help' : fields.selection([ | ||
642 | 71 | (None, ''), | ||
643 | 72 | ('0', 'None'), | ||
644 | 73 | ('1', 'Moderately'), | ||
645 | 74 | ('2', 'Very much'), | ||
646 | 75 | ], 'Help from family', | ||
647 | 76 | help="Is the patient satisfied with the level of help coming from the family when there is a problem ?", sort=False), | ||
648 | 77 | 'fam_apgar_discussion' : fields.selection([ | ||
649 | 78 | (None, ''), | ||
650 | 79 | ('0', 'None'), | ||
651 | 80 | ('1', 'Moderately'), | ||
652 | 81 | ('2', 'Very much'), | ||
653 | 82 | ], 'Problems discussion', | ||
654 | 83 | help="Is the patient satisfied with the level talking over the problems as family ?", sort=False), | ||
655 | 84 | 'fam_apgar_decisions' : fields.selection([ | ||
656 | 85 | (None, ''), | ||
657 | 86 | ('0', 'None'), | ||
658 | 87 | ('1', 'Moderately'), | ||
659 | 88 | ('2', 'Very much'), | ||
660 | 89 | ], 'Decision making', | ||
661 | 90 | help="Is the patient satisfied with the level of making important decisions as a group ?", sort=False), | ||
662 | 91 | 'fam_apgar_timesharing' : fields.selection([ | ||
663 | 92 | (None, ''), | ||
664 | 93 | ('0', 'None'), | ||
665 | 94 | ('1', 'Moderately'), | ||
666 | 95 | ('2', 'Very much'), | ||
667 | 96 | ], 'Time sharing', | ||
668 | 97 | help="Is the patient satisfied with the level of time that they spend together ?", sort=False), | ||
669 | 98 | 'fam_apgar_affection' : fields.selection([ | ||
670 | 99 | (None, ''), | ||
671 | 100 | ('0', 'None'), | ||
672 | 101 | ('1', 'Moderately'), | ||
673 | 102 | ('2', 'Very much'), | ||
674 | 103 | ], 'Family affection', | ||
675 | 104 | help="Is the patient satisfied with the level of affection coming from the family ?", sort=False), | ||
676 | 105 | 'fam_apgar_score' : fields.integer('Score', help="Total Family APGAR 7 - 10 : Functional Family 4 - 6 : Some level of disfunction \n" \ | ||
677 | 106 | "0 - 3 : Severe disfunctional family \n"), | ||
678 | 107 | 'income' : fields.selection([ | ||
679 | 108 | (None, ''), | ||
680 | 109 | ('h', 'High'), | ||
681 | 110 | ('m', 'Medium / Average'), | ||
682 | 111 | ('l', 'Low'), | ||
683 | 112 | ], 'Income', sort=False), | ||
684 | 113 | 'education' : fields.selection([ | ||
685 | 114 | (None, ''), | ||
686 | 115 | ('0', 'None'), | ||
687 | 116 | ('1', 'Incomplete Primary School'), | ||
688 | 117 | ('2', 'Primary School'), | ||
689 | 118 | ('3', 'Incomplete Secondary School'), | ||
690 | 119 | ('4', 'Secondary School'), | ||
691 | 120 | ('5', 'University'), | ||
692 | 121 | ], 'Education Level', help="Education Level", sort=False), | ||
693 | 122 | 'works_at_home' : fields.boolean('Works at home', help="Check if the patient works at his / her house"), | ||
694 | 123 | 'hours_outside' : fields.integer('Hours outside home', help="Number of hours a day the patient spend outside the house"), | ||
695 | 124 | |||
696 | 125 | } | ||
697 | 126 | |||
698 | 127 | |||
699 | 128 | OeMedicalSocioeconomics() | ||
700 | 129 | 0 | ||
701 | === removed file 'oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics_view.xml' | |||
702 | --- oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics_view.xml 2014-01-15 10:20:02 +0000 | |||
703 | +++ oemedical_socioeconomics/oemedical_socioeconomics/oemedical_socioeconomics_view.xml 1970-01-01 00:00:00 +0000 | |||
704 | @@ -1,80 +0,0 @@ | |||
705 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
706 | 2 | <openerp> | ||
707 | 3 | <data> | ||
708 | 4 | |||
709 | 5 | <record model="ir.ui.view" id="view_oemedical_patient_form_socio_economics"> | ||
710 | 6 | <field name="name">oemedical.patient.view.inherit.socio_economics</field> | ||
711 | 7 | <field name="model">oemedical.patient</field> | ||
712 | 8 | <field name="inherit_id" ref="oemedical.view_oemedical_patient_form" /> | ||
713 | 9 | <field name="type">form</field> | ||
714 | 10 | <field name="arch" type="xml"> | ||
715 | 11 | <data> | ||
716 | 12 | <xpath expr="//notebook/page[@string='Misc']" position="before"> | ||
717 | 13 | <page string="Socioeconomics" id="page_socioeconomics"> | ||
718 | 14 | <notebook> | ||
719 | 15 | <page string="Main" id="page_ses_main"> | ||
720 | 16 | <group colspan="4" col="4" id="group_ses_holder2"> | ||
721 | 17 | <field name="ses"/> | ||
722 | 18 | <field name="housing"/> | ||
723 | 19 | <field name="education"/> | ||
724 | 20 | <!-- <field name="occupation"/>--> | ||
725 | 21 | </group> | ||
726 | 22 | <newline/> | ||
727 | 23 | <group col="6" id="group_socioecomics_work"> | ||
728 | 24 | <newline/> | ||
729 | 25 | <field name="works_at_home"/> | ||
730 | 26 | <field name="hours_outside"/> | ||
731 | 27 | <field name="hostile_area"/> | ||
732 | 28 | </group> | ||
733 | 29 | <newline/> | ||
734 | 30 | <newline/> | ||
735 | 31 | <group string="Notes" id="group_ses_notes"> | ||
736 | 32 | <field colspan="4" name="ses_notes"/> | ||
737 | 33 | </group> | ||
738 | 34 | </page> | ||
739 | 35 | <page string="Infrastructure" id="page_infrastructure"> | ||
740 | 36 | |||
741 | 37 | <group colspan="4" col="8" id="group_ses_infraestructure"> | ||
742 | 38 | <field name="sewers"/> | ||
743 | 39 | <field name="water"/> | ||
744 | 40 | <field name="trash"/> | ||
745 | 41 | <field name="electricity"/> | ||
746 | 42 | <field name="gas"/> | ||
747 | 43 | <field name="telephone"/> | ||
748 | 44 | <field name="television"/> | ||
749 | 45 | <field name="internet"/> | ||
750 | 46 | |||
751 | 47 | </group> | ||
752 | 48 | </page> | ||
753 | 49 | <page string="Family" id="page_family"> | ||
754 | 50 | <group colspan="4" col="6" string="Family APGAR" id="group_ses_family_apgar"> | ||
755 | 51 | <field name="fam_apgar_help" /> | ||
756 | 52 | <field name="fam_apgar_discussion"/> | ||
757 | 53 | <field name="fam_apgar_decisions"/> | ||
758 | 54 | <field name="fam_apgar_timesharing"/> | ||
759 | 55 | <field name="fam_apgar_affection"/> | ||
760 | 56 | <field name="fam_apgar_score"/> | ||
761 | 57 | </group> | ||
762 | 58 | <newline/> | ||
763 | 59 | <group colspan="4" col="8" string="Other Family Issues" id="group_ses_other_family_issues"> | ||
764 | 60 | <field name="single_parent"/> | ||
765 | 61 | <field name="domestic_violence"/> | ||
766 | 62 | <field name="working_children"/> | ||
767 | 63 | <field name="teenage_pregnancy"/> | ||
768 | 64 | <field name="sexual_abuse"/> | ||
769 | 65 | <field name="drug_addiction"/> | ||
770 | 66 | <field name="school_withdrawal"/> | ||
771 | 67 | <field name="prison_past"/> | ||
772 | 68 | <field name="prison_current"/> | ||
773 | 69 | <field name="relative_in_prison"/> | ||
774 | 70 | </group> | ||
775 | 71 | </page> | ||
776 | 72 | </notebook> | ||
777 | 73 | </page> | ||
778 | 74 | </xpath> | ||
779 | 75 | </data> | ||
780 | 76 | </field> | ||
781 | 77 | </record> | ||
782 | 78 | |||
783 | 79 | </data> | ||
784 | 80 | </openerp> | ||
785 | 81 | 0 | ||
786 | === added file 'oemedical_socioeconomics/security/ir.model.access.csv' | |||
787 | --- oemedical_socioeconomics/security/ir.model.access.csv 1970-01-01 00:00:00 +0000 | |||
788 | +++ oemedical_socioeconomics/security/ir.model.access.csv 2014-04-02 14:40:29 +0000 | |||
789 | @@ -0,0 +1,1 @@ | |||
790 | 1 | id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink | ||
791 | 0 | 2 | ||
792 | === modified file 'oemedical_socioeconomics/security/oemedical_security.xml' | |||
793 | --- oemedical_socioeconomics/security/oemedical_security.xml 2014-01-08 06:02:09 +0000 | |||
794 | +++ oemedical_socioeconomics/security/oemedical_security.xml 2014-04-02 14:40:29 +0000 | |||
795 | @@ -2,56 +2,7 @@ | |||
796 | 2 | <openerp> | 2 | <openerp> |
797 | 3 | <data noupdate="0"> | 3 | <data noupdate="0"> |
798 | 4 | 4 | ||
851 | 5 | <record id="group_oemedical_user" model="res.groups"> | 5 | </data> |
852 | 6 | <field name="name">OEMedical User</field> | 6 | |
853 | 7 | <field name="category_id" ref="base.module_category_accounting_and_finance"/> | 7 | |
802 | 8 | <field name="users" eval="[(4, ref('base.user_root'))]"/> | ||
803 | 9 | <field name="implied_ids" eval="[(4, ref('base.group_user'))]"/> | ||
804 | 10 | </record> | ||
805 | 11 | |||
806 | 12 | <record id="group_oemedical_doctor" model="res.groups"> | ||
807 | 13 | <field name="name">OEMedical Doctor</field> | ||
808 | 14 | <field name="category_id" ref="base.module_category_accounting_and_finance"/> | ||
809 | 15 | <field name="users" eval="[(4, ref('base.user_root'))]"/> | ||
810 | 16 | <field name="implied_ids" eval="[(4, ref('group_oemedical_user')),(4, ref('base.group_user'))]"/> | ||
811 | 17 | </record> | ||
812 | 18 | |||
813 | 19 | <record id="group_oemedical_assistant" model="res.groups"> | ||
814 | 20 | <field name="name">OEMedical Assistant</field> | ||
815 | 21 | <field name="category_id" ref="base.module_category_accounting_and_finance"/> | ||
816 | 22 | <field name="users" eval="[(4, ref('base.user_root'))]"/> | ||
817 | 23 | <field name="implied_ids" eval="[(4, ref('group_oemedical_user')),(4, ref('base.group_user'))]"/> | ||
818 | 24 | </record> | ||
819 | 25 | |||
820 | 26 | <record id="group_oemedical_center_manager" model="res.groups"> | ||
821 | 27 | <field name="name">OEMedical Center Manager</field> | ||
822 | 28 | <field name="category_id" ref="base.module_category_accounting_and_finance"/> | ||
823 | 29 | <field name="implied_ids" eval="[(4, ref('group_oemedical_user')),(4, ref('group_oemedical_doctor'))]"/> | ||
824 | 30 | </record> | ||
825 | 31 | |||
826 | 32 | <record id="group_oemedical_manager" model="res.groups"> | ||
827 | 33 | <field name="name">OEMedical Manager</field> | ||
828 | 34 | <field name="category_id" ref="base.module_category_accounting_and_finance"/> | ||
829 | 35 | <field name="implied_ids" eval="[(4, ref('group_oemedical_center_manager'))]"/> | ||
830 | 36 | </record> | ||
831 | 37 | |||
832 | 38 | </data> | ||
833 | 39 | |||
834 | 40 | <data noupdate="0"> | ||
835 | 41 | <record id="oemedical_appointment_access_rule_physician" model="ir.rule"> | ||
836 | 42 | <field name="name">Appointment Entry</field> | ||
837 | 43 | <field name="model_id" ref="model_oemedical_appointment"/> | ||
838 | 44 | <field name="global" eval="True"/> | ||
839 | 45 | <field name="groups" eval="[(4, ref('group_oemedical_doctor'))]"/> | ||
840 | 46 | <field name="domain_force">[('doctor.user_id', '=', user.id)]</field> | ||
841 | 47 | </record> | ||
842 | 48 | |||
843 | 49 | <record id="oemedical_appointment_access_rule_assistant" model="ir.rule"> | ||
844 | 50 | <field name="name">Appointment Entry</field> | ||
845 | 51 | <field name="model_id" ref="model_oemedical_appointment"/> | ||
846 | 52 | <field name="global" eval="True"/> | ||
847 | 53 | <field name="groups" eval="[(4, ref('group_oemedical_assistant'))]"/> | ||
848 | 54 | <field name="domain_force">[('institution','=',user.parent_id.id)]</field> | ||
849 | 55 | </record> | ||
850 | 56 | </data> | ||
854 | 57 | </openerp> | 8 | </openerp> |
855 | 58 | 9 | ||
856 | === added file 'oemedical_socioeconomics/views/oemedical_menu.xml' | |||
857 | --- oemedical_socioeconomics/views/oemedical_menu.xml 1970-01-01 00:00:00 +0000 | |||
858 | +++ oemedical_socioeconomics/views/oemedical_menu.xml 2014-04-02 14:40:29 +0000 | |||
859 | @@ -0,0 +1,9 @@ | |||
860 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
861 | 2 | <openerp> | ||
862 | 3 | <data> | ||
863 | 4 | <menuitem id="oemedical_root" name="OeMedical" sequence="10" /> | ||
864 | 5 | |||
865 | 6 | |||
866 | 7 | |||
867 | 8 | </data> | ||
868 | 9 | </openerp> | ||
869 | 0 | 10 | ||
870 | === added file 'oemedical_socioeconomics/views/oemedical_socioeconomics_view.xml' | |||
871 | --- oemedical_socioeconomics/views/oemedical_socioeconomics_view.xml 1970-01-01 00:00:00 +0000 | |||
872 | +++ oemedical_socioeconomics/views/oemedical_socioeconomics_view.xml 2014-04-02 14:40:29 +0000 | |||
873 | @@ -0,0 +1,79 @@ | |||
874 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
875 | 2 | <openerp> | ||
876 | 3 | <data> | ||
877 | 4 | |||
878 | 5 | <record model="ir.ui.view" id="view_oemedical_patient_form_socio_economics"> | ||
879 | 6 | <field name="name">oemedical.patient.view.inherit.socio_economics</field> | ||
880 | 7 | <field name="model">oemedical.patient</field> | ||
881 | 8 | <field name="inherit_id" ref="oemedical.view_oemedical_patient_form" /> | ||
882 | 9 | <field name="type">form</field> | ||
883 | 10 | <field name="arch" type="xml"> | ||
884 | 11 | <data> | ||
885 | 12 | <xpath expr="//notebook/page[@string='General Information']" position="after"> | ||
886 | 13 | <page string="Socioeconomics" id="page_socioeconomics"> | ||
887 | 14 | <notebook> | ||
888 | 15 | <page string="Main" id="page_ses_main"> | ||
889 | 16 | <group colspan="4" col="4" id="group_ses_holder2"> | ||
890 | 17 | <field name="ses"/> | ||
891 | 18 | <field name="housing"/> | ||
892 | 19 | <field name="education"/> | ||
893 | 20 | </group> | ||
894 | 21 | <newline/> | ||
895 | 22 | <group col="6" id="group_socioecomics_work"> | ||
896 | 23 | <newline/> | ||
897 | 24 | <field name="works_at_home"/> | ||
898 | 25 | <field name="hours_outside"/> | ||
899 | 26 | <field name="hostile_area"/> | ||
900 | 27 | </group> | ||
901 | 28 | <newline/> | ||
902 | 29 | <newline/> | ||
903 | 30 | <group string="Notes" id="group_ses_notes"> | ||
904 | 31 | <field colspan="4" name="ses_notes"/> | ||
905 | 32 | </group> | ||
906 | 33 | </page> | ||
907 | 34 | <page string="Infrastructure" id="page_infrastructure"> | ||
908 | 35 | |||
909 | 36 | <group colspan="4" col="8" id="group_ses_infraestructure"> | ||
910 | 37 | <field name="sewers"/> | ||
911 | 38 | <field name="water"/> | ||
912 | 39 | <field name="trash"/> | ||
913 | 40 | <field name="electricity"/> | ||
914 | 41 | <field name="gas"/> | ||
915 | 42 | <field name="telephone"/> | ||
916 | 43 | <field name="television"/> | ||
917 | 44 | <field name="internet"/> | ||
918 | 45 | |||
919 | 46 | </group> | ||
920 | 47 | </page> | ||
921 | 48 | <page string="Family" id="page_family"> | ||
922 | 49 | <group colspan="4" col="6" string="Family APGAR" id="group_ses_family_apgar"> | ||
923 | 50 | <field name="fam_apgar_help" /> | ||
924 | 51 | <field name="fam_apgar_discussion"/> | ||
925 | 52 | <field name="fam_apgar_decisions"/> | ||
926 | 53 | <field name="fam_apgar_timesharing"/> | ||
927 | 54 | <field name="fam_apgar_affection"/> | ||
928 | 55 | <field name="fam_apgar_score"/> | ||
929 | 56 | </group> | ||
930 | 57 | <newline/> | ||
931 | 58 | <group colspan="4" col="8" string="Other Family Issues" id="group_ses_other_family_issues"> | ||
932 | 59 | <field name="single_parent"/> | ||
933 | 60 | <field name="domestic_violence"/> | ||
934 | 61 | <field name="working_children"/> | ||
935 | 62 | <field name="teenage_pregnancy"/> | ||
936 | 63 | <field name="sexual_abuse"/> | ||
937 | 64 | <field name="drug_addiction"/> | ||
938 | 65 | <field name="school_withdrawal"/> | ||
939 | 66 | <field name="prison_past"/> | ||
940 | 67 | <field name="prison_current"/> | ||
941 | 68 | <field name="relative_in_prison"/> | ||
942 | 69 | </group> | ||
943 | 70 | </page> | ||
944 | 71 | </notebook> | ||
945 | 72 | </page> | ||
946 | 73 | </xpath> | ||
947 | 74 | </data> | ||
948 | 75 | </field> | ||
949 | 76 | </record> | ||
950 | 77 | |||
951 | 78 | </data> | ||
952 | 79 | </openerp> |
Description was completely removed is that on purpose ?