clinic_history_sis.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- tree view -->
  5. <record id="tree_clinic_history_sis" model="ir.ui.view">
  6. <field name="name">clinic.history.sis.tree</field>
  7. <field name="model">clinic.history</field>
  8. <field name="arch" type="xml">
  9. <tree string="Orden Clinico">
  10. <field name="name"/>
  11. <field name="partner_id"/>
  12. <field name="paciente_id"/>
  13. <field name="order_date"/>
  14. <field name="planned_start_date"/>
  15. <field name="planned_end_date"/>
  16. <field name="lugar_visita"/>
  17. <field name="user_id"/>
  18. <field name="state"/>
  19. </tree>
  20. </field>
  21. </record>
  22. <!-- search view -->
  23. <record id="search_clinic_history_sis" model="ir.ui.view">
  24. <field name="name">clinic.history.sis.search</field>
  25. <field name="model">clinic.history</field>
  26. <field name="arch" type="xml">
  27. <search string="Orden Clínico">
  28. <field name="name"/>
  29. <field name="user_id"/>
  30. <field name="partner_id"/>
  31. <field name="paciente_id"/>
  32. <field name="lugar_visita"/>
  33. <filter string="Mis tareas" domain="[('user_id','=',uid)]"/>
  34. <filter string="Realizada" domain="[('state','=','done')]"/>
  35. <separator/>
  36. <group expand="0" string="Agrupado por...">
  37. <filter string="Médico" domain="[]" context="{'group_by':'user_id'}" />
  38. <filter string="Seguro" domain="[]" context="{'group_by':'partner_id'}" />
  39. <filter string="Estado" name="State" context="{'group_by':'state'}"/>
  40. </group>
  41. </search>
  42. </field>
  43. </record>
  44. <!-- form view -->
  45. <record id="form_clinic_history_sis" model="ir.ui.view">
  46. <field name="name">clinic.history.sis.form</field>
  47. <field name="model">clinic.history</field>
  48. <field name="arch" type="xml">
  49. <form string="Orden Clinico">
  50. <header>
  51. <!-- <button name="Facturado" string="Crear Factura" type="object" class="btn-primary" states="done"/> -->
  52. <button name="button_redraft" string="Atrás" type="object"/>
  53. <button name="button_in_progress" type="object" states="draft,warranty" string="Crear" class="oe_highlight" groups="base.group_user"/>
  54. <button name="button_in_progress_back" type="object" states="redraft" string="Atrás" class="oe_highlight" groups="base.group_user"/>
  55. <button name="button_redraft_back" type="object" states="in_progress,redraft" string="Adelante" class="oe_highlight" groups="base.group_user"/>
  56. <button name="button_done" type="object" states="in_progress" string="Hecho" class="oe_highlight" groups="base.group_user"/>
  57. <button name="button_done_back" type="object" states="done" string="En progreso" class="oe_highlight" groups="base.group_user"/>
  58. <button name="button_cancel" type="object" states="draft,redraft,warranty,in_progress" string="Cancelado" class="oe_highlight" groups="base.group_user"/>
  59. <field name="state" widget="statusbar" statusbar_visible="draft,redraft,in_progress,done" statusbar_colors='{"done":"red","warning":"blue","canceled":"red","in_progress":"blue"}'/>
  60. </header>
  61. <sheet>
  62. <div class="oe_title">
  63. <h1>
  64. <label string="Orden Clínico "/>
  65. <field name="name" class="oe_inline" readonly="1"/>
  66. </h1>
  67. </div>
  68. <group>
  69. <group>
  70. <field name="user_id"/>
  71. <field name="order_date" required="1"/>
  72. <field name="name_movil"/>
  73. <field name="planned_start_date" required="1"/>
  74. <field name="programado"/>
  75. <field name="tipo_paciente"/>
  76. <field name="uso_gel"/>
  77. </group>
  78. <group name="Data1">
  79. <field name="paramedico_id"/>
  80. <field name="at_base"/>
  81. <field name="nro_salida"/>
  82. <field name="planned_end_date" required="1"/>
  83. <field name="lugar_visita"/>
  84. </group>
  85. </group>
  86. <group>
  87. <group>
  88. <field name="paciente_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' attrs="{'readonly': [('state','!=', 'draft')]}" required="1"/>
  89. </group>
  90. <group>
  91. <field name="edad_paciente"/>
  92. <field name="antig_trabajo"/>
  93. </group>
  94. </group>
  95. <group>
  96. <group>
  97. <field name="partner_id" on_change="onchange_partner_id(partner_id)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options='{"always_reload": True}' attrs="{'readonly': [('state','!=', 'draft')]}" required="1"/>
  98. <field name="nro_socio1"/>
  99. <field name="ost"/>
  100. <field name="card"/>
  101. <field name="hta"/>
  102. <field name="epoc"/>
  103. <field name="embarazada"/>
  104. <field name="motivo" placeholder="describe los motivos de consulta..." />
  105. </group>
  106. <group>
  107. <field name="nro_socio"/>
  108. <field name="seguro1"/>
  109. <field name="asm"/>
  110. <field name="acv"/>
  111. <field name="conv"/>
  112. <field name="otro"/>
  113. <field name="alergico"/>
  114. <field name="tipo_alergico"/>
  115. </group>
  116. </group>
  117. <group string="Signos Vitales">
  118. <group>
  119. <field name="pa"/>
  120. <field name="fc"/>
  121. <field name="fr"/>
  122. </group>
  123. <group>
  124. <field name="temp"/>
  125. <field name="so"/>
  126. <field name="hgt"/>
  127. </group>
  128. </group>
  129. <group>
  130. <group>
  131. <field name="diagnostic" placeholder="describe hallazgo Positivos del Examen Físico (o datos de importancia)..." />
  132. <field name="indicacion" placeholder="describe la indicación médica..." />
  133. </group>
  134. </group>
  135. <notebook>
  136. <page string="Tratamiento Administrado (medicamentos y dosis)">
  137. <field name="line_ids"/>
  138. <separator string="Insumos utilizados"/>
  139. <field name="insumos_ids"/>
  140. <group >
  141. <group>
  142. <field name="respuesta_tratamiento" string="Respuesta al Tratamiento: " />
  143. </group>
  144. <group>
  145. </group>
  146. </group>
  147. <separator string="Recomendaciones y sugerencias"/>
  148. <field name="recommendations" placeholder="describe las recomendaciones..." />
  149. <separator string="Epicrisis"/>
  150. <field name="epicrisis" placeholder="describe el Epicrisis..." />
  151. <separator string="Presuntivo"/>
  152. <field name="presuntivo" placeholder="describe presuntivo ..." />
  153. <separator string="Clasificacion de la atención"/>
  154. <field name="clasificacion" />
  155. <!-- <xpath expr="//field[@name='clasificacion']" position="attributes">
  156. <attribute name="invisible">1</attribute>
  157. </xpath> -->
  158. <group>
  159. <group>
  160. <field name="informado"/>
  161. </group>
  162. <group>
  163. <field name="entregado"/>
  164. </group>
  165. </group>
  166. <xpath>
  167. <label for="signature_image_paciente" class="oe_edit_only"/>
  168. <h2><field name="signature_image_paciente" widget="signature"/></h2>
  169. </xpath>
  170. <xpath>
  171. <label for="signature_image_paramedico" class="oe_edit_only"/>
  172. <h2><field name="signature_image_paramedico" widget="signature"/></h2>
  173. </xpath>
  174. <xpath>
  175. <label for="signature_image_medico" class="oe_edit_only"/>
  176. <h2><field name="signature_image_medico" widget="signature"/></h2>
  177. </xpath>
  178. </page>
  179. </notebook>
  180. </sheet>
  181. <div class="oe_chatter">
  182. <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
  183. <field name="message_ids" widget="mail_thread"/>
  184. </div>
  185. </form>
  186. </field>
  187. </record>
  188. <!-- calendar view -->
  189. <record id="calendar_clinic_history_sis" model="ir.ui.view">
  190. <field name="name">clinic.history.sis.calendar</field>
  191. <field name="model">clinic.history</field>
  192. <field name="arch" type="xml">
  193. <calendar color="user_id" date_start="planned_start_date" string="Visitas">
  194. <field name="name"/>
  195. </calendar>
  196. </field>
  197. </record>
  198. <!-- gantt -->
  199. <record id="gantt_clinic_history_sis" model="ir.ui.view">
  200. <field name="name">clinic.history.sis.calendar</field>
  201. <field name="model">clinic.history</field>
  202. <field name="arch" type="xml">
  203. <gantt date_start="planned_start_date" date_stop="planned_end_date" progress="progress" string="Actividades" default_group_by="project_id">
  204. </gantt>
  205. </field>
  206. </record>
  207. <!-- action -->
  208. <record id="action_clinic_history_sis" model="ir.actions.act_window">
  209. <field name="name">Historial de Visita</field>
  210. <field name="type">ir.actions.act_window</field>
  211. <field name="res_model">clinic.history</field>
  212. <field name="view_type">form</field>
  213. <field name="view_mode">tree,form,calendar,gantt</field>
  214. <field name="search_view_id" ref="search_clinic_history_sis"/>
  215. </record>
  216. <!-- tree view -->
  217. <record id="tree_clinic_history_line_sis" model="ir.ui.view">
  218. <field name="name">clinic.history.line.tree</field>
  219. <field name="model">clinic.history.line</field>
  220. <field name="arch" type="xml">
  221. <tree string="Lista de Pedidos" editable="bottom">
  222. <field name="product_id" required="1"/>
  223. <field name="brand" string="Cantidad" required="1"/>
  224. <field name="number" string="Logrado" required="1"/>
  225. </tree>
  226. </field>
  227. </record>
  228. <!-- tree view -->
  229. <record id="tree_clinic_insumos_line_sis" model="ir.ui.view">
  230. <field name="name">clinic.insumos.line.tree</field>
  231. <field name="model">clinic.insumos.line</field>
  232. <field name="arch" type="xml">
  233. <tree string="Lista de Insumos Utilizados" editable="bottom">
  234. <field name="product_id" required="1"/>
  235. <field name="quantity" string="Cantidad" required="1"/>
  236. <field name="number" string="Logrado" required="1"/>
  237. </tree>
  238. </field>
  239. </record>
  240. <!-- search view -->
  241. <record id="search_clinic_history_line_sis" model="ir.ui.view">
  242. <field name="name">clinic.history.line.search</field>
  243. <field name="model">clinic.history.line</field>
  244. <field name="arch" type="xml">
  245. <search string="Línea de servicios realizados">
  246. <field name="product_id"/>
  247. <field name="quantity"/>
  248. <newline />
  249. <group expand="0" string="Agrupado por...">
  250. </group>
  251. </search>
  252. </field>
  253. </record>
  254. <record id="form_clinic_history_line_sis" model="ir.ui.view">
  255. <field name="name">clinic.history.line.form</field>
  256. <field name="model">clinic.history.line</field>
  257. <field name="arch" type="xml">
  258. <form string="Línea de servicios realizados">
  259. <sheet>
  260. <group>
  261. <field name="product_id" required="1"/>
  262. <field name="brand" required="1"/>
  263. <field name="number" required="1"/>
  264. </group>
  265. </sheet>
  266. </form>
  267. </field>
  268. </record>
  269. <record id="form_clinic_insumos_line_sis" model="ir.ui.view">
  270. <field name="name">clinic.insumos.line.form</field>
  271. <field name="model">clinic.insumos.line</field>
  272. <field name="arch" type="xml">
  273. <form string="Línea de servicios realizados">
  274. <sheet>
  275. <group>
  276. <field name="product_id" required="1"/>
  277. <field name="quantity" required="1"/>
  278. <field name="number" required="1"/>
  279. </group>
  280. </sheet>
  281. </form>
  282. </field>
  283. </record>
  284. <record id="action_clinic_history_line_sis" model="ir.actions.act_window">
  285. <field name="name">Línea de servicios realizados</field>
  286. <field name="type">ir.actions.act_window</field>
  287. <field name="res_model">clinic.history.line</field>
  288. <field name="view_type">form</field>
  289. <field name="view_mode">tree,form</field>
  290. <field name="search_view_id" ref="search_clinic_history_line_sis"/>
  291. </record>
  292. <menuitem id="clinic_history_sis" parent="base.menu_sales" action="action_clinic_history_sis" name="Orden de historia visita clínica" sequence="20"/>
  293. </data>
  294. </openerp>