<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <data noupdate="1">
        <!-- Configuración de parámetros para Hemograma Completo -->
        <record id="config_hemograma_hgb" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_hemograma"/>
            <field name="parameter_id" ref="param_hemoglobin"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_hemograma_hct" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_hemograma"/>
            <field name="parameter_id" ref="param_hematocrit"/>
            <field name="sequence">20</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_hemograma_rbc" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_hemograma"/>
            <field name="parameter_id" ref="param_rbc"/>
            <field name="sequence">30</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_hemograma_wbc" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_hemograma"/>
            <field name="parameter_id" ref="param_wbc"/>
            <field name="sequence">40</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_hemograma_plt" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_hemograma"/>
            <field name="parameter_id" ref="param_platelets"/>
            <field name="sequence">50</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_hemograma_neut" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_hemograma"/>
            <field name="parameter_id" ref="param_neutrophils"/>
            <field name="sequence">60</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_hemograma_lymph" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_hemograma"/>
            <field name="parameter_id" ref="param_lymphocytes"/>
            <field name="sequence">70</field>
            <field name="required">True</field>
        </record>
        
        <!-- Configuración de parámetros para Perfil Lipídico -->
        <record id="config_lipidos_chol" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_perfil_lipidico"/>
            <field name="parameter_id" ref="param_cholesterol_total"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_lipidos_hdl" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_perfil_lipidico"/>
            <field name="parameter_id" ref="param_cholesterol_hdl"/>
            <field name="sequence">20</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_lipidos_ldl" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_perfil_lipidico"/>
            <field name="parameter_id" ref="param_cholesterol_ldl"/>
            <field name="sequence">30</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_lipidos_trig" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_perfil_lipidico"/>
            <field name="parameter_id" ref="param_triglycerides"/>
            <field name="sequence">40</field>
            <field name="required">True</field>
        </record>
        
        <!-- Configuración de parámetros para Glucosa -->
        <record id="config_glucosa" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_glucosa"/>
            <field name="parameter_id" ref="param_glucose"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <!-- Configuración de parámetros para Urocultivo -->
        <record id="config_urocultivo_result" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urocultivo"/>
            <field name="parameter_id" ref="param_culture_result"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_urocultivo_organism" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urocultivo"/>
            <field name="parameter_id" ref="param_isolated_organism"/>
            <field name="sequence">20</field>
            <field name="required">False</field>
            <field name="instructions">Completar solo si el cultivo es positivo</field>
        </record>
        
        <record id="config_urocultivo_count" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urocultivo"/>
            <field name="parameter_id" ref="param_colony_count"/>
            <field name="sequence">30</field>
            <field name="required">False</field>
            <field name="instructions">Completar solo si el cultivo es positivo. Formato: >100,000 UFC/mL</field>
        </record>
        
        <!-- Configuración de parámetros para Tiempo de Protrombina -->
        <record id="config_tp_time" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_tp"/>
            <field name="parameter_id" ref="param_pt"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_tp_inr" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_tp"/>
            <field name="parameter_id" ref="param_inr"/>
            <field name="sequence">20</field>
            <field name="required">True</field>
        </record>
        
        <!-- Configuración de parámetros para Hemocultivo -->
        <record id="config_hemocultivo_result" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_hemocultivo"/>
            <field name="parameter_id" ref="param_culture_result"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_hemocultivo_organism" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_hemocultivo"/>
            <field name="parameter_id" ref="param_isolated_organism"/>
            <field name="sequence">20</field>
            <field name="required">False</field>
        </record>
        
        <!-- Configuración de parámetros para Coprocultivo -->
        <record id="config_coprocultivo_result" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_coprocultivo"/>
            <field name="parameter_id" ref="param_culture_result"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_coprocultivo_organism" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_coprocultivo"/>
            <field name="parameter_id" ref="param_isolated_organism"/>
            <field name="sequence">20</field>
            <field name="required">False</field>
        </record>
        
        <!-- Crear análisis adicionales comunes -->
        
        <!-- Análisis: Química Sanguínea -->
        <record id="analysis_quimica_sanguinea" model="product.template">
            <field name="name">Química Sanguínea Básica</field>
            <field name="is_analysis">True</field>
            <field name="analysis_type">chemistry</field>
            <field name="categ_id" ref="lims_management.product_category_analysis"/>
            <field name="type">service</field>
            <field name="purchase_ok" eval="False"/>
            <field name="sale_ok" eval="True"/>
            <field name="required_sample_type_id" ref="lims_management.sample_type_serum_tube"/>
            <field name="sample_volume_ml">3.0</field>
            <field name="technical_specifications">
                Panel básico de química sanguínea que incluye glucosa, creatinina, urea, ALT y AST.
            </field>
        </record>
        
        <!-- Configurar parámetros para Química Sanguínea -->
        <record id="config_quimica_glucose" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_quimica_sanguinea"/>
            <field name="parameter_id" ref="param_glucose"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_quimica_crea" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_quimica_sanguinea"/>
            <field name="parameter_id" ref="param_creatinine"/>
            <field name="sequence">20</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_quimica_urea" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_quimica_sanguinea"/>
            <field name="parameter_id" ref="param_urea"/>
            <field name="sequence">30</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_quimica_alt" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_quimica_sanguinea"/>
            <field name="parameter_id" ref="param_alt"/>
            <field name="sequence">40</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_quimica_ast" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_quimica_sanguinea"/>
            <field name="parameter_id" ref="param_ast"/>
            <field name="sequence">50</field>
            <field name="required">True</field>
        </record>
        
        <!-- Análisis: Urianálisis Completo -->
        <record id="analysis_urianalisis" model="product.template">
            <field name="name">Urianálisis Completo</field>
            <field name="is_analysis">True</field>
            <field name="analysis_type">other</field>
            <field name="categ_id" ref="lims_management.product_category_analysis"/>
            <field name="type">service</field>
            <field name="purchase_ok" eval="False"/>
            <field name="sale_ok" eval="True"/>
            <field name="required_sample_type_id" ref="lims_management.sample_type_urine_container"/>
            <field name="sample_volume_ml">10.0</field>
            <field name="technical_specifications">
                Examen completo de orina que incluye examen físico, químico y microscópico del sedimento.
            </field>
        </record>
        
        <!-- Configurar parámetros para Urianálisis -->
        <record id="config_urine_color" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urianalisis"/>
            <field name="parameter_id" ref="param_urine_color"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_urine_appearance" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urianalisis"/>
            <field name="parameter_id" ref="param_urine_appearance"/>
            <field name="sequence">20</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_urine_ph" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urianalisis"/>
            <field name="parameter_id" ref="param_urine_ph"/>
            <field name="sequence">30</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_urine_density" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urianalisis"/>
            <field name="parameter_id" ref="param_urine_density"/>
            <field name="sequence">40</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_urine_protein" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urianalisis"/>
            <field name="parameter_id" ref="param_urine_protein"/>
            <field name="sequence">50</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_urine_glucose" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urianalisis"/>
            <field name="parameter_id" ref="param_urine_glucose"/>
            <field name="sequence">60</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_urine_blood" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urianalisis"/>
            <field name="parameter_id" ref="param_urine_blood"/>
            <field name="sequence">70</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_urine_leukocytes" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urianalisis"/>
            <field name="parameter_id" ref="param_urine_leukocytes"/>
            <field name="sequence">80</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_urine_bacteria" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_urianalisis"/>
            <field name="parameter_id" ref="param_urine_bacteria"/>
            <field name="sequence">90</field>
            <field name="required">True</field>
        </record>
        
        <!-- Análisis: Panel de Serología -->
        <record id="analysis_serologia" model="product.template">
            <field name="name">Panel de Serología Básica</field>
            <field name="is_analysis">True</field>
            <field name="analysis_type">immunology</field>
            <field name="categ_id" ref="lims_management.product_category_analysis"/>
            <field name="type">service</field>
            <field name="purchase_ok" eval="False"/>
            <field name="sale_ok" eval="True"/>
            <field name="required_sample_type_id" ref="lims_management.sample_type_serum_tube"/>
            <field name="sample_volume_ml">5.0</field>
            <field name="technical_specifications">
                Panel serológico que incluye HIV, Hepatitis B, Hepatitis C y VDRL.
            </field>
        </record>
        
        <!-- Configurar parámetros para Serología -->
        <record id="config_sero_hiv" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_serologia"/>
            <field name="parameter_id" ref="param_hiv"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_sero_hbsag" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_serologia"/>
            <field name="parameter_id" ref="param_hbsag"/>
            <field name="sequence">20</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_sero_hcv" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_serologia"/>
            <field name="parameter_id" ref="param_hcv"/>
            <field name="sequence">30</field>
            <field name="required">True</field>
        </record>
        
        <record id="config_sero_vdrl" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_serologia"/>
            <field name="parameter_id" ref="param_vdrl"/>
            <field name="sequence">40</field>
            <field name="required">True</field>
        </record>
        
        <!-- Análisis: Prueba de Embarazo -->
        <record id="analysis_prueba_embarazo" model="product.template">
            <field name="name">Prueba de Embarazo en Sangre</field>
            <field name="is_analysis">True</field>
            <field name="analysis_type">immunology</field>
            <field name="categ_id" ref="lims_management.product_category_analysis"/>
            <field name="type">service</field>
            <field name="purchase_ok" eval="False"/>
            <field name="sale_ok" eval="True"/>
            <field name="required_sample_type_id" ref="lims_management.sample_type_serum_tube"/>
            <field name="sample_volume_ml">1.0</field>
            <field name="technical_specifications">
                Detección cualitativa de Beta-HCG en sangre.
            </field>
        </record>
        
        <record id="config_pregnancy_test" model="product.template.parameter">
            <field name="product_tmpl_id" ref="analysis_prueba_embarazo"/>
            <field name="parameter_id" ref="param_pregnancy"/>
            <field name="sequence">10</field>
            <field name="required">True</field>
        </record>
        
    </data>
</odoo>