<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <style>
        table, table tr td, table tbody tr td {
            word-wrap: break-word;
        }
        .header {
            width: 100%;
        }

        .logo {
            width: 200px;
        }

        .htd2 {
            text-align: center;
            font-size: 18px;
            font-weight: 700;
            padding: 0px;
            margin: 0px;
        }

        .htd3 {
            font-size: 10px;
            text-align: right;
            width: 200px;
        }

        .subtitulo {
            font-size: 19px;
            text-align: center;
            font-weight: 500;
            padding: 0px;
            margin: 0px;
        }

        .titulo {
            border-top: 1px solid #000000;
            font-size: 20px;
            font-weight: 700;
            text-align: center;
        }

        .table2 {
            width: 100%;
            border-collapse: collapse;

        }

        .table2 tr, .table2 td {
            border: 1px solid black;
        }

        .text-center {
            text-align: center;
        }

        .table-bordered {
            border-collapse: collapse;
        }

        .table-bordered tr, .table-bordered td, .table-bordered th {
            border: 1px solid black;
        }

    </style>
</head>
<body>

<table class="header" cellpadding="0" cellspacing="0">
    <tr>
        <td class="logo" rowspan="3">
            <img width="150" src="{{url('img/gob.jpg')}}" alt="">
        </td>
        <td height="14" class="htd2">Secretaría de Salud</td>
        <td class="htd3" rowspan="3">
            <p style="margin: 0px;"><strong>Clave:</strong> FO-08-01-11</p>
            <p style="margin: 0px;"><strong>Emisión:</strong> 28/09/17</p>
            <p style="margin: 0px;"><strong>Versión:</strong> 0</p>
            <p style="margin: 0px;"><strong>Página:</strong> 1 de 1</p>
        </td>
    </tr>
    <tr>
        <td height="14" class="subtitulo">Hospital Regional Universitario</td>
    </tr>
    <tr>
        <td height="20" class="titulo">IDENTIFICACIÓN DEL PACIENTE</td>
    </tr>
</table>

<table class="table2" style="font-weight: 600; font-size: 16px;">
    <tr>
        <td colspan="2">{{utf8_decode($data['paciente'])}}</td>
        <td class="text-center" width="20%">No. Expediente</td>
    </tr>
    <tr>
        <td> </td>
        <td></td>
        <td>{{$data['numero_expe'][0]}}</td>
    </tr>
</table>
<br>
<table class="table2">
    <tr>
        <td width="30">EDAD</td>
        <td width="50">{{substr(utf8_decode($data['edad']),0,2)}}</td>
        <td>SEXO</td>
        <td colspan="2">{{substr(utf8_decode($data['sexo']),0,1)}}</td>
        <td>Fecha de Nacimiento</td>
        <td>{{substr(utf8_decode($data['fecha_nacimiento']),0,2)}}</td>
        <td>{{substr(utf8_decode($data['fecha_nacimiento']),3,2)}}</td>
        <td>{{substr(utf8_decode($data['fecha_nacimiento']),6,4)}}</td>
    </tr>
    <tr>
        <td colspan="2">SERVICIO</td>
        <td colspan="3">{{utf8_decode($data['servicio'])}}</td>
        <td colspan="2">No. DE CAMA</td>
        <td colspan="2">{{utf8_decode($data['nocama'])}}</td>
    </tr>
    <tr>
        <td colspan="2">FECHA DE INGRESO</td>
        <td colspan="1">{{substr(utf8_decode($data['fechaing']),0,2)}}</td>
        <td colspan="1">{{substr(utf8_decode($data['fechaing']),3,2)}}</td>
        <td colspan="1">{{substr(utf8_decode($data['fechaing']),6,4)}}</td>
        <td colspan="2">HORA DE INGRESO</td>
        <td colspan="2">17:51:55</td>
    </tr>
    <tr>
        <td colspan="2">No. DE SEGURO POPULAR</td>
        <td colspan="5">{{$data['folio_afil']}}</td>
        <td colspan="1">NSC</td>
        <td colspan="1"></td>
    </tr>
    <tr>
        <td colspan="2">DIAGNÓSTICO MÉDICO</td>
        <td colspan="7">{{utf8_decode($data['diagnosticomedico'])}}</td>
    </tr>
    <tr>
        <td colspan="2">MEDICO TRATANTE</td>
        <td colspan="7"></td>
    </tr>
    <tr>
        <td colspan="4" style="color: darkgray; background-color: transparent;">ALERGIAS</td>
        <td colspan="5" style="color: darkgray;">OBSERVACIONES</td>
    </tr>
    <tr>
        <td colspan="9" style="color: darkgray;">NOMBRE COMPLETO DE ENFERMERA(O) QUE INGRESA</td>
    </tr>
</table>

<p style="vertical-align: middle;padding: 10px; font-size: 10px;text-align: center;">COMITÉ DE CALIDAD Y SEGURIDAD DEL PACIENTE/UNIDAD DE GESTIÓN DE CALIDAD/DEPARTAMENTO DE
    ENFERMERÍA</p>

<div style="width: 100%; height: 80px;" >

        <table class="" border="1"  style=" font-size:10px; width: 100%; border-collapse: collapse; table-layout: fixed;">
            <tr>
                <td class="text-center" colspan="14">RIESGO DE CAÍDAS</td>
                <td></td>
                <td class="text-center" colspan="14">RIESGO DE ÚLCERAS POR PRESIÓN</td>
            </tr>
            <tr>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td rowspan="4"></td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
                <td colspan="2" style="color: darkgray;">FECHA</td>
            </tr>
            <tr>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
            </tr>
            <tr>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
            </tr>
            <tr>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
            </tr>
        </table>

        <!--<table class="" border="1" style=" font-size:10px;width: 100%; border-collapse: collapse; table-layout: fixed;">
            <tr>
                <td class="text-center" colspan="14">RIESGO DE ÚLCERAS POR PRESIÓN</td>
            </tr>
            <tr>
                <td colspan="2">FECHA</td>
                <td colspan="2">FECHA</td>
                <td colspan="2">FECHA</td>
                <td colspan="2">FECHA</td>
                <td colspan="2">FECHA</td>
                <td colspan="2">FECHA</td>
                <td colspan="2">FECHA</td>
            </tr>
            <tr>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
                <td style="width: 50%;">TM</td>
                <td style="width: 50%;"></td>
            </tr>
            <tr>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
                <td>TV</td>
                <td></td>
            </tr>
            <tr>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
                <td>TN</td>
                <td></td>
            </tr>
        </table>-->



</div>

<div style="width: 100%; height: 50px; display: inline-block; border: 1px solid transparent;">
    <p class="text-center" style="float: left; width: 30%;"><span
                style="font-size:15px; padding-left:15px; background:green;">&nbsp;</span> BAJO RIESGO</p>
    <p class="text-center" style="float: left; width: 30%;"><span
                style="font-size:15px; padding-left:15px; background:yellow;">&nbsp;</span> MEDIANO RIESGO</p>
    <p class="text-center" style="float: left; width: 30%;"><span
                style="font-size:15px; padding-left:15px; background:red;">&nbsp;</span> ALTO RIESGO</p>
</div>
<br>
<table class="table-bordered" style="width: 100%; table-layout: fixed;">
    <tr>
        <th colspan="4" style="width: 300px;">EGRESO</th>
    </tr>
    <tr>
        <td>MÉDICO QUE AUTORIZA</td>
        <td colspan="3"></td>
    </tr>
    <tr>
        <td>FECHA DE EGRESO</td>
        <td colspan="3"></td>
    </tr>
    <tr>
        <td>MOTIVO DE ALTA</td>
        <td colspan="3"></td>
    </tr>
    <tr>
        <td>ENFERMERÍA</td>
        <td colspan="3">Vo. Bo.</td>
    </tr>
    <tr>
        <td>ADMISIÓN</td>
        <td colspan="3">FIRMA</td>
    </tr>
    <tr>
        <td>CAJA</td>
        <td colspan="3">FIRMA</td>
    </tr>
    <tr>
        <td>TRABAJO SOCIAL</td>
        <td colspan="3">FIRMA</td>
    </tr>
    <tr>
        <td>COMPROMISO DE PAGO FOLIO No.</td>
        <td colspan="1"></td>
        <td colspan="1">EXENTO No.</td>
        <td colspan="1"></td>
    </tr>
    <tr>
        <td>&nbsp;</td>
        <td colspan="3">&nbsp;</td>
    </tr>
    <tr>
        <td>SEGURIDAD</td>
        <td colspan="3">FIRMA</td>
    </tr>
    <tr>
        <td>OBSERVACIONES</td>
        <td colspan="3"></td>
    </tr>
</table>
</body>
</html>