~openbias/bias-trunk/bias-public-trunk

« back to all changes in this revision

Viewing changes to medical/demo/medical_demo.xml

  • Committer: Jose Patricio
  • Date: 2011-10-19 03:16:40 UTC
  • Revision ID: josepato@bias.com.mx-20111019031640-05zd7r5lxwx084qu
el push inicial

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<openerp>
 
3
        <data noupdate="1">
 
4
 
 
5
<!-- Health Centers -->
 
6
 
 
7
                <record id="partner_institution1" model="res.partner">
 
8
                        <field name="name">GNU Solidario Hospital</field>
 
9
                        <field name="lastname"></field>
 
10
                        <field name="ref">55-4394-7777</field>
 
11
                        <field name="is_institution">1</field>
 
12
                </record>
 
13
 
 
14
 
 
15
                <record id="res_address_institution1" model="res.partner.address">
 
16
                        <field name="street">Avda Las Canteras 789</field>              
 
17
                        <field name="city">Las Palmas</field>
 
18
                        <field name="name">GNU Solidario Hospital</field>
 
19
                        <field name="email">info@gnusolidario.org</field>
 
20
                        <field model="res.country" name="country_id" search="[('name','=','Spain')]"/>
 
21
                        <field name="partner_id" ref="partner_institution1"/>
 
22
                </record>
 
23
 
 
24
<!-- Insurances -->
 
25
 
 
26
                <record id="partner_insurance1" model="res.partner">
 
27
                        <field name="name">Insurator</field>
 
28
                        <field name="ref">333333-5566</field>
 
29
                </record>
 
30
 
 
31
 
 
32
                <record id="partner_doctor1" model="res.partner">
 
33
                        <field name="name">Cameron</field>
 
34
                        <field name="lastname">Cordara</field>
 
35
                        <field name="ref">55555654</field>
 
36
                        <field name="is_doctor">1</field>
 
37
                        <field name="is_person">1</field>
 
38
                        <field name="user_id" search="[('name','=','Administrator')]"/>
 
39
                </record>
 
40
 
 
41
                <record id="res_address_doctor1" model="res.partner.address">
 
42
                        <field name="street">Carretera del Norte</field>
 
43
                        <field name="city">Agaete</field>
 
44
                        <field name="phone">+34 928 55432534</field>
 
45
                        <field name="email">info@gnusolidario.org</field>
 
46
                        <field name="partner_id" ref="partner_doctor1"/>
 
47
                </record>
 
48
 
 
49
                <record id="doctor1" model="medical.physician">
 
50
                        <field name="name" ref="partner_doctor1"/>
 
51
                        <field name="institution" ref="partner_institution1"/>
 
52
                        <field name="code">94834729-283</field>
 
53
                </record>
 
54
 
 
55
<!-- Patients -->
 
56
<!-- Ana -->
 
57
                <record id="partner_patient1" model="res.partner">
 
58
                        <field name="name">Ana</field>
 
59
                        <field name="lastname">Betz</field>
 
60
                        <field name="ref">46777456-Z</field>
 
61
                        <field name="is_patient">1</field>
 
62
                        <field name="is_person">1</field>
 
63
                        <field name="user_id" search="[('name','=','Administrator')]"/>
 
64
                </record>
 
65
 
 
66
                <record id="res_partner_address_1" model="res.partner.address">
 
67
                        <field name="street">Avda Marítima 5679</field>
 
68
                        <field name="city">Las Palmas</field>
 
69
                        <field name="phone">34 928 37364829</field>
 
70
                        <field name="email">medical@thymbra.com</field>
 
71
                        <field name="partner_id" ref="partner_patient1"/>
 
72
                </record>
 
73
 
 
74
 
 
75
                <record id="medical_insurance_1" model="medical.insurance">
 
76
                        <field name="name" ref="partner_patient1"/>
 
77
                        <field name="number">560432921</field>
 
78
                        <field name="company" ref="partner_insurance1"/>
 
79
                </record>
 
80
 
 
81
 
 
82
              <record id="patient1" model="medical.patient">
 
83
                        <field name="name" ref="partner_patient1"/>
 
84
                        <field name="dob">1970-04-04</field>
 
85
                        <field name="sex">f</field>
 
86
                        <field name="ethnic_group">5</field>
 
87
                        <field name="marital_status">m</field>
 
88
                        <field name="blood_type">A</field>
 
89
                        <field name="rh">+</field>
 
90
                        <field name="primary_care_doctor" ref="doctor1"/>
 
91
                        <field name="current_address" ref="res_partner_address_1"/>
 
92
                        <field name="primary_care_doctor" ref="doctor1"/>
 
93
                        <field name="current_insurance" ref="medical_insurance_1"/>
 
94
                        <field name="critical_info">- Allergic to penicillin (anaphylaxis)
 
95
- Type I Diabetes
 
96
                        </field>
 
97
                </record>
 
98
 
 
99
 
 
100
 
 
101
<!-- Josh -->
 
102
                <record id="partner_patient2" model="res.partner">
 
103
                        <field name="name">Josh</field>
 
104
                        <field name="lastname">Doe</field>
 
105
                        <field name="ref">2356453-Q</field>
 
106
                        <field name="is_patient">1</field>
 
107
                        <field name="is_person">1</field>
 
108
                        <field name="user_id" search="[('name','=','Administrator')]"/>
 
109
                </record>
 
110
 
 
111
                <record id="res_partner_address_2" model="res.partner.address">
 
112
                        <field name="street">Esperanza 15679</field>
 
113
                        <field name="partner_id" ref="partner_patient2"/>
 
114
                </record>
 
115
 
 
116
 
 
117
              <record id="patient2" model="medical.patient">
 
118
                        <field name="name" ref="partner_patient2"/>
 
119
                        <field name="dob">1985-10-11</field>
 
120
                        <field name="sex">m</field>
 
121
                        <field name="ethnic_group">5</field>
 
122
                        <field name="marital_status">s</field>
 
123
                        <field name="blood_type">B</field>
 
124
                        <field name="rh">-</field>
 
125
                        <field name="primary_care_doctor" ref="doctor1"/>
 
126
                        <field name="current_address" ref="res_partner_address_2"/>
 
127
                        <field name="primary_care_doctor" ref="doctor1"/>
 
128
                        <field name="critical_info">Intravenous heroin user. 
 
129
- TBC 
 
130
- Cerebral toxoplasmosis
 
131
- HIV positive
 
132
                        </field>
 
133
                </record>
 
134
 
 
135
 
 
136
 
 
137
 
 
138
 
 
139
 
 
140
                
 
141
 
 
142
 <!-- Demo data for Hospital Building, Units, Wards/Rooms and beds -->
 
143
 
 
144
                <record id="hospital_building_1" model="medical.hospital.building">
 
145
                        <field name="name">Wing 2</field>
 
146
                        <field name="institution" ref="partner_institution1"/>
 
147
                </record>
 
148
 
 
149
                <record id="hospital_unit_1" model="medical.hospital.unit">
 
150
                        <field name="name">Chest</field>
 
151
                        <field name="institution" ref="partner_institution1"/>
 
152
                </record>
 
153
 
 
154
                <record id="product_category_bed1" model="product.category">
 
155
                        <field name="name">Hospital Bed</field>
 
156
                        <field name="institution" ref="partner_institution1"/>
 
157
                </record>
 
158
 
 
159
 
 
160
                <record id="ward1" model="medical.hospital.ward">
 
161
                        <field name="name">Atlantico</field>
 
162
                        <field name="institution" ref="partner_institution1"/>
 
163
                        <field name="building" ref="hospital_building_1"/>
 
164
                        <field name="unit" ref="hospital_unit_1"/>
 
165
                        <field name="floor">3</field>
 
166
                        <field name="number_of_beds">5</field>
 
167
                </record>
 
168
 
 
169
                <record id="product_bed_320" model="product.product">
 
170
                        <field name="list_price">100</field>
 
171
                        <field name="standard_price">100</field>
 
172
                        <field name="uom_id" ref="product.product_uom_unit"/>
 
173
                        <field name="uom_po_id" ref="product.product_uom_unit"/>
 
174
                        <field name="type">service</field>
 
175
                        <field name="is_rental">1</field>
 
176
                        <field name="name">320</field>
 
177
                        <field name="code">BED320</field>
 
178
                        <field name="is_bed">1</field>
 
179
                        <field name="categ_id" ref="product_category_bed1"/>
 
180
                </record>
 
181
 
 
182
                <record id="bed_320" model="medical.hospital.bed">
 
183
                        <field name="name" ref="product_bed_320"/>
 
184
                        <field name="ward" ref="ward1"/>
 
185
                        <field name="telephone_number">555-5100 x0320</field>
 
186
                        <field name="state">free</field>
 
187
                </record>
 
188
 
 
189
 
 
190
        </data>
 
191
</openerp>
 
192
 
 
193