<?php
// PARTIAL: GENERADOR DE RECETAS (CLON EXACTO DE VISTAS/PLAN.PHP)
// ESTE ES EL DISEÑO QUE EL USUARIO QUIERE. NO MODIFICAR.
?>
<!-- 
<div class="col-row">
    <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
        <div class="panel panel-primary">
            <div class="panel-body">
                <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <div style="display: flex; align-items: center; gap: 30px;">
                        <label>Receta
                            <button type="button" class="btn btn-sm btn-success" onclick="agregarReceta()"><i
                                    class="fa fa-plus"></i>
                            </button>
                        </label>
                        <label>
                            Vigencia
                            <input type="text" class="control" name="vigencia" required="" placeholder="Ej: 3 días">
                        </label>
                    </div>
                    <div class="table-responsive">
                        <table id="recetas" class="table table-bordered table-striped">
                            <thead style="background-color: #A9D0F5;">
                                <tr>
                                    <th>Borrar</th>
                                    <th>Medicamento</th>
                                    <th>Concentración</th>
                                    <th>Forma Farmacéutica</th>
                                    <th>Vía Admin.</th>
                                    <th>Cantidad</th>
                                    <th>Posología</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr class="filasr" id="filar0">
                                    <td>
                                        <button type="button" class="btn btn-sm btn-danger" onclick="eliminarReceta(0)">
                                            <i class="fa fa-trash"></i>
                                        </button>
                                    </td>
                                    <td>
                                        <input type="text" class="form-control medicamento-input" id="medicamento_0"
                                            name="medicamento[]" autocomplete="off" data-row="0" required="">
                                        <input type="hidden" id="medicamento_id_0" name="medicamento_id[]">
                                    </td>
                                    <td><input type="text" class="form-control" name="concentracion[]"
                                            placeholder="Ej: 500MLG">
                                    </td>
                                    <td><input type="text" class="form-control" id="presentacion_0"
                                            name="presentacion[]"></td>
                                    <td>
                                        <select class="form-control" name="via_administracion[]">
                                            <option value="ORAL">ORAL</option>
                                            <option value="SUBLINGUAL">SUBLINGUAL</option>
                                            <option value="BUCAL">BUCAL</option>
                                            <option value="RECTAL">RECTAL</option>
                                            <option value="INTRAVENOSA">INTRAVENOSA</option>
                                            <option value="INTRAMUSCULAR">INTRAMUSCULAR
                                            </option>
                                            <option value="SUBCUTANEA">SUBCUTANEA</option>
                                            <option value="INTRARECTAL">INTRARECTAL</option>
                                            <option value="INTRADERMICA">INTRADERMICA
                                            </option>
                                            <option value="TOPICA">TOPICA</option>
                                            <option value="TOPICADERMICA">TOPICADERMICA
                                            </option>
                                            <option value="TRANSDERMICA">TRANSDERMICA
                                            </option>
                                            <option value="OFTALMICA">OFTALMICA</option>
                                            <option value="OTICA">OTICA</option>
                                            <option value="NASAL">NASAL</option>
                                            <option value="VAGINAL">VAGINAL</option>
                                            <option value="INHALATORIA">INHALATORIA</option>
                                            <option value="RESPIRATORIA">RESPIRATORIA
                                            </option>
                                        </select>
                                    </td>
                                    <td><input type="text" class="form-control" name="cantidad[]" placeholder="cant.">
                                    </td>
                                    <td><input type="text" class="form-control" name="posologia[]"></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <label>Indicaciones:</label>
                    <textarea class="form-control" name="tratamiento" id="tratamiento" rows="5"
                        placeholder="Instrucciones para la medicación..."></textarea>
                </div>
                <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <label>Signos de Alarma:</label>
                    <textarea class="form-control" name="signnose_de_alarma" id="signnose_de_alarma"
                        rows="5"></textarea>
                </div>
                <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                    <label>Indicaciones no farmacológicas:</label>
                    <textarea class="form-control" name="Indicaciones_no_farmacologicas"
                        id="Indicaciones_no_farmacologicas" rows="5"></textarea>
                </div>
            </div>
        </div>
    </div>
</div>
-->