<?xml version="1.0" encoding="utf-8"?>

<!--
SPDX-FileCopyrightText: 2008-2026 Luis Falcón <falcon@gnuhealth.org>
SPDX-FileCopyrightText: 2011-2026 GNU Solidario <health@gnusolidario.org>

SPDX-License-Identifier: GPL-3.0-or-later
-->

<tryton>
    <data>

<!-- Sequences for Patient -->
        <!-- Not used anymore -->
        <record id="seq_type_gnuhealth_patient" model="ir.sequence.type">
            <field name="name">Patient</field>
        </record>
        <record id="seq_gnuhealth_patient" model="ir.sequence">
            <field name="name">Patient</field>
            <field name="sequence_type" ref="seq_type_gnuhealth_patient"></field>
            <field name="prefix">PAC</field>
            <field name="padding">3</field>
        </record>

<!-- Sequences for Patient Evaluation -->

        <record id="seq_type_gnuhealth_patient_evaluation" model="ir.sequence.type">
            <field name="name">Patient Evaluation</field>
        </record>
        <record id="seq_gnuhealth_patient_evaluation" model="ir.sequence">
            <field name="name">Patient Evaluation</field>
            <field name="sequence_type" ref="seq_type_gnuhealth_patient_evaluation"></field>
            <field name="prefix">EVAL ${year}/</field>
            <field name="padding">6</field>
            <field name="number_increment" eval="1"/>
        </record>

        
<!-- Sequences for Prescriptions -->

        <record id="seq_type_gnuhealth_prescription" model="ir.sequence.type">
            <field name="name">Prescription</field>
        </record>
        <record id="seq_gnuhealth_prescription" model="ir.sequence">
            <field name="name">Prescription</field>
            <field name="sequence_type" ref="seq_type_gnuhealth_prescription"></field>
            <field name="prefix">PRES ${year}/</field>
            <field name="padding">6</field>
            <field name="number_increment" eval="1"/>
        </record>

<!-- Sequences for Appointments -->

        <record id="seq_type_gnuhealth_appointment" model="ir.sequence.type">
            <field name="name">Appointment</field>
        </record>
        <record id="seq_gnuhealth_appointment" model="ir.sequence">
            <field name="name">Appointment</field>
            <field name="sequence_type" ref="seq_type_gnuhealth_appointment"></field>
            <field name="prefix">APP ${year}/</field>
            <field eval="0" name="padding"/>
        </record>

    </data>
</tryton>
