123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- <?xml version="1.0" encoding="UTF-8"?>
- <openerp>
- <data>
- <!-- tree view -->
- <record id="tree_clinic_history_sis" model="ir.ui.view">
- <field name="name">clinic.history.sis.tree</field>
- <field name="model">clinic.history</field>
- <field name="arch" type="xml">
- <tree string="Orden Clinico">
- <field name="name"/>
- <field name="partner_id"/>
- <field name="paciente_id"/>
- <field name="order_date"/>
- <field name="planned_start_date"/>
- <field name="planned_end_date"/>
- <field name="lugar_visita"/>
- <field name="user_id"/>
- <field name="state"/>
- </tree>
- </field>
- </record>
- <!-- search view -->
- <record id="search_clinic_history_sis" model="ir.ui.view">
- <field name="name">clinic.history.sis.search</field>
- <field name="model">clinic.history</field>
- <field name="arch" type="xml">
- <search string="Orden Clínico">
- <field name="name"/>
- <field name="user_id"/>
- <field name="partner_id"/>
- <field name="paciente_id"/>
- <field name="lugar_visita"/>
- <filter string="Mis tareas" domain="[('user_id','=',uid)]"/>
- <filter string="Realizada" domain="[('state','=','done')]"/>
- <separator/>
- <group expand="0" string="Agrupado por...">
- <filter string="Médico" domain="[]" context="{'group_by':'user_id'}" />
- <filter string="Seguro" domain="[]" context="{'group_by':'partner_id'}" />
- <filter string="Estado" name="State" context="{'group_by':'state'}"/>
- </group>
- </search>
- </field>
- </record>
- <!-- form view -->
- <record id="form_clinic_history_sis" model="ir.ui.view">
- <field name="name">clinic.history.sis.form</field>
- <field name="model">clinic.history</field>
- <field name="arch" type="xml">
- <form string="Orden Clinico">
- <header>
- <!-- <button name="Facturado" string="Crear Factura" type="object" class="btn-primary" states="done"/> -->
- <button name="button_redraft" string="Atrás" type="object"/>
- <button name="button_in_progress" type="object" states="draft,warranty" string="Crear" class="oe_highlight" groups="base.group_user"/>
- <button name="button_in_progress_back" type="object" states="redraft" string="Atrás" class="oe_highlight" groups="base.group_user"/>
- <button name="button_redraft_back" type="object" states="in_progress,redraft" string="Adelante" class="oe_highlight" groups="base.group_user"/>
- <button name="button_done" type="object" states="in_progress" string="Hecho" class="oe_highlight" groups="base.group_user"/>
- <button name="button_done_back" type="object" states="done" string="En progreso" class="oe_highlight" groups="base.group_user"/>
- <button name="button_cancel" type="object" states="draft,redraft,warranty,in_progress" string="Cancelado" class="oe_highlight" groups="base.group_user"/>
- <field name="state" widget="statusbar" statusbar_visible="draft,redraft,in_progress,done" statusbar_colors='{"done":"red","warning":"blue","canceled":"red","in_progress":"blue"}'/>
- </header>
- <sheet>
- <div class="oe_title">
- <h1>
- <label string="Orden Clínico "/>
- <field name="name" class="oe_inline" readonly="1"/>
- </h1>
- </div>
- <group>
- <group>
- <field name="user_id"/>
- <field name="order_date" required="1"/>
- <field name="name_movil"/>
- <field name="planned_start_date" required="1"/>
- <field name="programado"/>
- <field name="tipo_paciente"/>
- <field name="uso_gel"/>
- </group>
- <group name="Data1">
- <field name="paramedico_id"/>
- <field name="at_base"/>
- <field name="nro_salida"/>
- <field name="planned_end_date" required="1"/>
- <field name="lugar_visita"/>
- </group>
- </group>
- <group>
- <group>
- <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"/>
- </group>
- <group>
- <field name="edad_paciente"/>
- <field name="antig_trabajo"/>
- </group>
- </group>
- <group>
- <group>
- <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"/>
- <field name="nro_socio1"/>
- <field name="ost"/>
- <field name="card"/>
- <field name="hta"/>
- <field name="epoc"/>
- <field name="embarazada"/>
- <field name="motivo" placeholder="describe los motivos de consulta..." />
- </group>
- <group>
- <field name="nro_socio"/>
- <field name="seguro1"/>
- <field name="asm"/>
- <field name="acv"/>
- <field name="conv"/>
- <field name="otro"/>
- <field name="alergico"/>
- <field name="tipo_alergico"/>
- </group>
- </group>
- <group string="Signos Vitales">
- <group>
- <field name="pa"/>
- <field name="fc"/>
- <field name="fr"/>
- </group>
- <group>
- <field name="temp"/>
- <field name="so"/>
- <field name="hgt"/>
- </group>
- </group>
- <group>
- <group>
- <field name="diagnostic" placeholder="describe hallazgo Positivos del Examen Físico (o datos de importancia)..." />
- <field name="indicacion" placeholder="describe la indicación médica..." />
- </group>
- </group>
- <notebook>
- <page string="Tratamiento Administrado (medicamentos y dosis)">
- <field name="line_ids"/>
- <separator string="Insumos utilizados"/>
- <field name="insumos_ids"/>
- <group >
- <group>
- <field name="respuesta_tratamiento" string="Respuesta al Tratamiento: " />
- </group>
- <group>
- </group>
- </group>
- <separator string="Recomendaciones y sugerencias"/>
- <field name="recommendations" placeholder="describe las recomendaciones..." />
- <separator string="Epicrisis"/>
- <field name="epicrisis" placeholder="describe el Epicrisis..." />
- <separator string="Presuntivo"/>
- <field name="presuntivo" placeholder="describe presuntivo ..." />
- <separator string="Clasificacion de la atención"/>
- <field name="clasificacion" />
- <!-- <xpath expr="//field[@name='clasificacion']" position="attributes">
- <attribute name="invisible">1</attribute>
- </xpath> -->
- <group>
- <group>
- <field name="informado"/>
- </group>
- <group>
- <field name="entregado"/>
- </group>
- </group>
- <xpath>
- <label for="signature_image_paciente" class="oe_edit_only"/>
- <h2><field name="signature_image_paciente" widget="signature"/></h2>
- </xpath>
- <xpath>
- <label for="signature_image_paramedico" class="oe_edit_only"/>
- <h2><field name="signature_image_paramedico" widget="signature"/></h2>
- </xpath>
- <xpath>
- <label for="signature_image_medico" class="oe_edit_only"/>
- <h2><field name="signature_image_medico" widget="signature"/></h2>
- </xpath>
- </page>
- </notebook>
- </sheet>
- <div class="oe_chatter">
- <field name="message_follower_ids" widget="mail_followers" groups="base.group_user"/>
- <field name="message_ids" widget="mail_thread"/>
- </div>
- </form>
- </field>
- </record>
- <!-- calendar view -->
- <record id="calendar_clinic_history_sis" model="ir.ui.view">
- <field name="name">clinic.history.sis.calendar</field>
- <field name="model">clinic.history</field>
- <field name="arch" type="xml">
- <calendar color="user_id" date_start="planned_start_date" string="Visitas">
- <field name="name"/>
- </calendar>
- </field>
- </record>
- <!-- gantt -->
- <record id="gantt_clinic_history_sis" model="ir.ui.view">
- <field name="name">clinic.history.sis.calendar</field>
- <field name="model">clinic.history</field>
- <field name="arch" type="xml">
- <gantt date_start="planned_start_date" date_stop="planned_end_date" progress="progress" string="Actividades" default_group_by="project_id">
- </gantt>
- </field>
- </record>
- <!-- action -->
- <record id="action_clinic_history_sis" model="ir.actions.act_window">
- <field name="name">Historial de Visita</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">clinic.history</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form,calendar,gantt</field>
- <field name="search_view_id" ref="search_clinic_history_sis"/>
- </record>
- <!-- tree view -->
- <record id="tree_clinic_history_line_sis" model="ir.ui.view">
- <field name="name">clinic.history.line.tree</field>
- <field name="model">clinic.history.line</field>
- <field name="arch" type="xml">
- <tree string="Lista de Pedidos" editable="bottom">
- <field name="product_id" required="1"/>
- <field name="brand" string="Cantidad" required="1"/>
- <field name="number" string="Logrado" required="1"/>
- </tree>
- </field>
- </record>
- <!-- tree view -->
- <record id="tree_clinic_insumos_line_sis" model="ir.ui.view">
- <field name="name">clinic.insumos.line.tree</field>
- <field name="model">clinic.insumos.line</field>
- <field name="arch" type="xml">
- <tree string="Lista de Insumos Utilizados" editable="bottom">
- <field name="product_id" required="1"/>
- <field name="quantity" string="Cantidad" required="1"/>
- <field name="number" string="Logrado" required="1"/>
- </tree>
- </field>
- </record>
- <!-- search view -->
- <record id="search_clinic_history_line_sis" model="ir.ui.view">
- <field name="name">clinic.history.line.search</field>
- <field name="model">clinic.history.line</field>
- <field name="arch" type="xml">
- <search string="Línea de servicios realizados">
- <field name="product_id"/>
- <field name="quantity"/>
- <newline />
- <group expand="0" string="Agrupado por...">
- </group>
- </search>
- </field>
- </record>
- <record id="form_clinic_history_line_sis" model="ir.ui.view">
- <field name="name">clinic.history.line.form</field>
- <field name="model">clinic.history.line</field>
- <field name="arch" type="xml">
- <form string="Línea de servicios realizados">
- <sheet>
- <group>
- <field name="product_id" required="1"/>
- <field name="brand" required="1"/>
- <field name="number" required="1"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record id="form_clinic_insumos_line_sis" model="ir.ui.view">
- <field name="name">clinic.insumos.line.form</field>
- <field name="model">clinic.insumos.line</field>
- <field name="arch" type="xml">
- <form string="Línea de servicios realizados">
- <sheet>
- <group>
- <field name="product_id" required="1"/>
- <field name="quantity" required="1"/>
- <field name="number" required="1"/>
- </group>
- </sheet>
- </form>
- </field>
- </record>
- <record id="action_clinic_history_line_sis" model="ir.actions.act_window">
- <field name="name">Línea de servicios realizados</field>
- <field name="type">ir.actions.act_window</field>
- <field name="res_model">clinic.history.line</field>
- <field name="view_type">form</field>
- <field name="view_mode">tree,form</field>
- <field name="search_view_id" ref="search_clinic_history_line_sis"/>
- </record>
- <menuitem id="clinic_history_sis" parent="base.menu_sales" action="action_clinic_history_sis" name="Orden de historia visita clínica" sequence="20"/>
- </data>
- </openerp>
|