예제 #1
0
?>


<!-- Historial de Examen Fisico -->
<?php 
if ($Gexamen > 0) {
    ?>
<div id="Gexamen" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-header">
    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
    <h3 id="myModalLabel">Historial de Examenes Fisicos</h3>
  </div>
  <div class="modal-body">
 	<!-- Evaluar politicas de cancelación -->
 	<?php 
    $Glosexamenes = HistorialExamenFisico::model()->findAll("paciente_id = {$model->id}");
    foreach ($Glosexamenes as $Glos_examenes) {
        $fecha = date('d-m-Y', strtotime($Glos_examenes->fecha));
        $this->widget('zii.widgets.CDetailView', array('data' => $Glos_examenes, 'attributes' => array(array('name' => 'fecha', 'value' => $fecha, ''), 'diagnosticoPrincipal.diagnostico', 'diagnosticoRelacionado.diagnostico', 'peso', 'altura', 'imc', 'observaciones')));
        echo "<hr>";
    }
    ?>
  </div>
  	
   <div class="modal-footer">
    <!-- <button class="btn" data-dismiss="modal" aria-hidden="true">Cerrar</button> -->
  </div>
</div>

<?php 
}
 /**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return HistorialExamenFisico the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = HistorialExamenFisico::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
예제 #3
0
			<?php 
//echo $form->labelEx($model,'personal_id');
?>
			<?php 
//echo $form->dropDownList($model, 'personal_id',CHtml::listData(Personal::model()->findAll("activo = 'SI' and id_perfil = 1"),'id','nombreCompleto'), array('class'=>'input-xxlarge'));
?>
			<?php 
//echo $form->error($model,'personal_id');
?>
		</div>
	</div>
	<div class="row">
		<div class="span1"></div>
		<div class="span5 text-center">
		<?php 
$elimc = HistorialExamenFisico::model()->find("cita_id = {$idCita}");
?>
			<h3 class="text-center">IMC: <span class="text-info"><?php 
echo $otroImc;
?>
</span></h3>
			<?php 
if ($tabla > 0) {
    ?>
			<a href="#tabla" role="button" class="btn btn-warning" data-toggle="modal">Ver Tabla de Medidas</a>
			<?php 
}
?>
		</div>
		<div class="span5">
		
예제 #4
0
    $elPaciente = "0";
}
$paciente = Paciente::model()->find("id={$elPaciente}");
//Calculo de Edad
$anio_nacimiento = Yii::app()->dateformatter->format("yyyy", $paciente->fecha_nacimiento);
$edadpaciente = date("Y") - $anio_nacimiento;
//array('name'=>'Edad', 'value'=>$edadpaciente, ''),
//Historial y variables
$cabeza_cuello = "";
$cardiopulmonar = "";
$abdomen = "";
$extremidades = "";
$sistema_nervioso = "";
$piel_fanera = "";
$otros = "";
$elHistorial = HistorialExamenFisico::model()->findAll("paciente_id={$elPaciente}");
foreach ($elHistorial as $el_historial) {
    $cabeza_cuello = $cabeza_cuello . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->cabeza_cuello . "<br><br>";
    $cardiopulmonar = $cardiopulmonar . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->cardiopulmonar . "<br><br>";
    $abdomen = $abdomen . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->abdomen . "<br><br>";
    $extremidades = $extremidades . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->extremidades . "<br><br>";
    $sistema_nervioso = $sistema_nervioso . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->sistema_nervioso . "<br><br>";
    $piel_fanera = $piel_fanera . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->piel_fanera . "<br><br>";
    $otros = $otros . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->otros . "<br><br>";
}
?>
				<p class="note">Campos con <span class="required">*</span> son requeridos.</p>		
	<div class="row">

		<div class="span1"></div>
		<div class="span5">
예제 #5
0
    $contorno = $contorno . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->contorno . "<br>";
    $cintura = $cintura . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->cintura . "<br>";
    $umbilical = $umbilical . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->umbilical . "<br>";
    $abd_inferior = $abd_inferior . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->abd_inferior . "<br>";
    $abd_superior = $abd_superior . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->abd_superior . "<br>";
    $cadera = $cadera . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->cadera . "<br>";
    $piernas = $piernas . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->piernas . "<br>";
    $muslo_derecho = $muslo_derecho . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->muslo_derecho . "<br>";
    $muslo_izquierdo = $muslo_izquierdo . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->muslo_izquierdo . "<br>";
    $brazo_derecho = $brazo_derecho . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->brazo_derecho . "<br>";
    $brazo_izquierdo = $brazo_izquierdo . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->brazo_izquierdo . "<br>";
    $observaciones = $observaciones . date('d-m-Y', strtotime($el_historial->fecha)) . "<br>" . $el_historial->personal->nombreCompleto . "<br>---------------<br>" . $el_historial->observaciones . "<br>";
}
//IMC mas reciente
$cImc = HistorialExamenFisico::model()->count("paciente_id = {$elPaciente}");
$elImc = HistorialExamenFisico::model()->find("paciente_id = {$elPaciente}");
if ($cImc > 0) {
    $otroImc = $elImc->imc;
} else {
    $otroImc = 0;
}
?>
				<p class="note">Campos con <span class="required">*</span> son requeridos.</p>		
	<div class="row">

		<div class="span1"></div>
		<div class="span10">
			<h4 class="text-center">Datos de Paciente</h4>

			<?php 
$this->widget('zii.widgets.CDetailView', array('data' => $paciente, 'attributes' => array('nombreCompleto', 'n_identificacion', array('name' => 'Edad', 'value' => $edadpaciente, ''), 'email', 'telefono1', 'celular')));