
<?php
//$Centro_Sal_Origen, $DIAG_CITA, $FOLIO_REF_Origen, $NOM_PERS, $ID_DOC, $ID_MED_CON_Origen, $FECHA, $CLAVE_PAC, $Centro_Sal_AgendaDestino, $ID_MED_CON_AgendaDestino, $TIPO_DE_CITA, $wsClave
//
//
/*  */
//#c9ffcd
// 
$color= '';
$prioridad_color='';
foreach($result->respuesta as $reg){ ?>
<?php print_r($reg); ?>		
<?php switch ($reg->prioridad_triage) {
    case 1:
        $prioridad_color = 'background-color: #FA0000;';
        break;
    case 2:
        $prioridad_color = 'background-color: #FFFF00;';
        break;
    case 3:
       $prioridad_color = 'background-color: #59ab5d;';
        break;
}   

if($reg->le_han_registrado_signos==0){
	$color= 'font-weight: bold; ';
} else if($reg->le_han_registrado_signos==1) { $color= 'font-weight: bold;'; } else{ $color= ''; }?>		
	<tr class="espacios_agenda" style="{!! $prioridad_color !!};"  title="{!! $reg->paciente !!} - {!! $reg->clave_pac !!} ({!! $fecha !!})" data-hora_ini_segmento="{!! $reg->hora !!}" data-id_cita="{!! $reg->id_cita !!}" data-clave_pac="{!! $reg->clave_pac !!}" data-id_urgencia="{!! $reg->id_urgencia !!}" data-centro_sal="{!! $reg->centro_sal !!}" data-motivo="{!! $reg->motivo !!}" data-folio="{!! $reg->folio_u !!}" ><td style="font-weight: bold;  text-align: center;">{!! $reg->hora !!}</td><td style=" {!! $color !!} " >
		{!! $reg->paciente !!} 

		<?php // print_r($reg); ?>		
	</td> <td style="text-align: center;">
		<span class="fa fa-pencil-square-o contiene-svg tirar" aria-hidden="true" style="cursor: pointer;" title="Crear/Abrir nota" onclick="iniciar_consulta('<?php echo $reg->id_cita; ?>', '<?php echo $reg->clave_pac; ?>','<?php echo $reg->centro_sal; ?>', '<?php echo $reg->id_med_con; ?>');"></span> <span>&nbsp;</span>  
		
		<span class="fa fa-file-text-o contiene-svg tirar" aria-hidden="true" style="cursor: pointer;" title="Consultar nota" onclick="imprimirNota('<?php echo $reg->folio; ?>', '<?php echo $reg->clave_pac; ?>','<?php echo $reg->centro_sal; ?>');" ></span> <span>&nbsp;</span> 
		
		<span class="fa fa-files-o contiene-svg tirar" aria-hidden="true" style="cursor: pointer;" title="Hoja Frontal" onclick="consultar_HojaFrontal('<?php echo $reg->id_cita; ?>', '<?php echo $reg->clave_pac; ?>','<?php echo $reg->centro_sal; ?>');"></span> <span>&nbsp;</span> 
		
		<span class="fa fa-address-card contiene-svg tirar" aria-hidden="true" style="cursor: pointer;" title="Ver datos del paciente" onclick="editarRegistroPaciente('<?php echo $reg->clave_pac; ?>');"></span> <span>&nbsp;</span> 
		</td></tr>
	<?php
}
?>	




