Ejemplo n.º 1
0
    $losDiagnosticos = HistorialDiagnosticoDetalle::model()->findAll("historial_diagnostico_id = {$idDiagnostico->id}");
} else {
    $losDiagnosticos = HistorialDiagnosticoDetalle::model()->findAll("historial_diagnostico_id = 0");
}
if ($medicina > 0) {
    $losPlanes = HistorialMedicinaBiologicaDetalle::model()->findAll("historial_medicina_biologica_id = {$idMedicina->id}");
} else {
    $losPlanes = HistorialMedicinaBiologicaDetalle::model()->findAll("historial_medicina_biologica_id = 0");
}
//Contadores Generales
$Ganamnesis = HistorialAnamnesis::model()->count("paciente_id = {$model->paciente_id}");
$Gexamen = HistorialExamenFisico::model()->count("paciente_id = {$model->paciente_id}");
$Gformulacion = HistorialFormulacion::model()->count("paciente_id = {$model->paciente_id}");
$Gevaluacion = HistorialEvaluacionMedica::model()->count("paciente_id = {$model->paciente_id}");
$Gcosmetologica = HistorialEvaluacionCosmetologica::model()->count("paciente_id = {$model->paciente_id}");
$Gnotas = HistorialNotasEnfermeria::model()->count("paciente_id = {$model->paciente_id}");
$Glaboratorio = HistorialLaboratorio::model()->count("paciente_id = {$model->paciente_id}");
$Gsistemas = HistorialRevisionSistema::model()->count("paciente_id = {$model->paciente_id}");
$Gtabla = HistorialTablaMedidas::model()->count("paciente_id = {$model->paciente_id}");
$Gplan = HistorialPlanTratamiento::model()->count("paciente_id = {$model->paciente_id}");
$GevolucionEnfermeria = HistorialEvaluacionEnfermeria::model()->count("paciente_id = {$model->paciente_id}");
$Gdiagnostico = HistorialDiagnostico::model()->count("paciente_id = {$model->paciente_id}");
$GplanMedicina = HistorialMedicinaBiologica::model()->count("paciente_id = {$model->paciente_id}");
$Gfotos = PacienteFotografias::model()->count("paciente_id = {$model->paciente_id}");
$Gresultados = PacienteResultadosLab::model()->count("paciente_id = {$model->paciente_id}");
?>

<?php 
$elSaldo = 0;
//Verificar si hay cuentas por cobrar
$DetalleCxC = CuentasXcDetalle::model()->find("cita_id = {$model->id} and contrato_id is NULL");
 /**
  * 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 HistorialNotasEnfermeria the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = HistorialNotasEnfermeria::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Ejemplo n.º 3
0
<?php

//Detalles
$idCita = $_GET['id'];
$historialNotas = HistorialNotasEnfermeria::model()->find("cita_id = {$idCita}");
$detalleNotas = HistorialNotasEnfermeriaDetalles::model()->findAll("historial_notas_enfermeria_id = {$historialNotas->id}");
//$elnumero = $laFactura->factura->numero;
?>

			<style type="text/css">
			p{
				margin: 2px 0px;
			}
				
			</style>

<body>
<div style="background-image: url(images/membrete_varios.jpg); background-repeat: no-repeat; height:100%; width:100%; padding:0px 0px 0px 40px;">			
<!-- <div style="height:175px"></div> -->
<div style="padding:170px 0px 0px 0px;">

<table>
	<tr>
		<td><p><b>N°: </b><?php 
echo $historialNotas->id;
?>
</p></td>
	</tr>
	<tr>
		<td width="400"><p><b>NOMBRE: </b><?php 
echo $historialNotas->paciente->nombreCompleto;