本文整理汇总了PHP中DB_Functions::getHistorico方法的典型用法代码示例。如果您正苦于以下问题:PHP DB_Functions::getHistorico方法的具体用法?PHP DB_Functions::getHistorico怎么用?PHP DB_Functions::getHistorico使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DB_Functions
的用法示例。
在下文中一共展示了DB_Functions::getHistorico方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
$response["sinais"]["temperatura"] = $sinais["temperatura"];
$response["sinais"]["taxaBatimentos"] = $sinais["taxaBatimentos"];
$response["sinais"]["glicose"] = $sinais["glicose"];
$response["sinais"]["saturacaoOxigenio"] = $sinais["saturacaoOxigenio"];
$response["sinais"]["pressaoSistolica"] = $sinais["pressaoSistolica"];
$response["sinais"]["pressaoDiastolica"] = $sinais["pressaoDiastolica"];
$response["sinais"]["funcaoPulmonar"] = $sinais["funcaoPulmonar"];
} else {
$response["erro"] = TRUE;
$response["erro_msg"] = "Nao foi encontrado sinais cadastrados para o paciente";
}
echo json_encode($response);
} else {
if ($tag == 'getHistorico') {
$idPaciente = $_POST['idPaciente'];
$historico = $db->getHistorico($idPaciente);
if ($historico) {
$response["erro"] = FALSE;
$response["historico"]["fumante"] = $historico["fumante"];
$response["historico"]["usoDeAlcool"] = $historico["usoDeAlcool"];
$response["historico"]["usoDeDroga"] = $historico["usoDeDroga"];
$response["historico"]["alergia"] = $historico["alergia"];
$response["historico"]["infoAdicional"] = $historico["infoAdicional"];
} else {
$response["erro"] = TRUE;
$response["erro_msg"] = "Nao foi encontrado o historico do paciente";
}
echo json_encode($response);
} else {
if ($tag == 'registraEvolucao') {
$idPaciente = $_POST['idPaciente'];
示例2: array
</div>
<?php
$inserePaciente = "inserePaciente";
$insereHistorico = "insereHistorico";
echo "<form class='tableRow' name={$inserePaciente} id={$inserePaciente} action='index.php' method='post'>" . "<div class='cell'><input class='id' style='width:100%' type='text' name='idPaciente' id='idPaciente' value=''/></div>" . "<div class='cell'><input class='input2' name='nome' id='nome' type='text' contentEditable=true value=''/></div>" . "<div class='cell'><input class='input2' id='dataDeNascimento' name='dataDeNascimento' type='date' contentEditable=true value=''></div>" . "<div class='cell'><input class='input2' id='sexo' name='sexo' type='text' contentEditable=true value=''></div> " . "<div class='cell'><input class='input2' id='descricao' name='descricao' type='text' contentEditable=true value=''></div> " . "<div class='cell'><input class='input2' id='quarto' name='quarto' type='number' contentEditable=true value=''></div> " . "<div class='cell'><input class='input2' id='dataDeAdmissao' name='dataDeAdmissao' value=''></div> " . "<div class='cell2' style='width:105px;'><div class='id' style='width:105px;'><select style='width:105px;' class='medicos' id='medicos' name='medicos[]' multiple='multiple' style = 'width:100%'>";
$medicos = $db->getMedicos();
while ($row = mysql_fetch_assoc($medicos)) {
$medico = $db->getInfoUsuario($row['Usuario_idUsuario']);
echo " <option value='{$row['Usuario_idUsuario']}'>{$medico['nome']}</option>";
}
echo "</select></div></div>" . "<div class='cell'><input class='input2' id='endereco' name='endereco' type='text' contentEditable=true value=''></div>" . "<div class='cell'><input class='input2' id='telefone' name='telefone' type='number' contentEditable=true value=''></div>" . "<div class='cell'><input class='input2' id='email' name='email' type='text' contentEditable=true value=''></div>" . "<input class='cell' style = 'display:none' type='text' name='tag' id='tag' value='inserePaciente'/>" . "<div class='cell'>" . "<input type='button' class='btn btn-xs btn-success' name='botaoSalva' id='botaoSalva' value='Salvar' onclick='botaoInserePaciente_clickHandler({$insereHistorico});'>" . "</div> " . "<div name={$insereHistorico} id={$insereHistorico} class='popupBoxOnePosition' action='index.php' method='post'>" . "<div class='popupBoxWrapper'>" . "<div class='popupBoxContent'>" . "<h4>Histórico Médico</h4>" . "<div><label for='fumante'>Fumante: </label><input type='checkbox' name='fumante' id='fumante'/></div>" . "<div><label for='usoDeDroga'>Uso de Droga: </label><input type='checkbox' name='usoDeDroga' id='usoDeDroga' /></div>" . "<div><label for='usoDeAlcool'>Uso de Àlcool: </label><input type='checkbox' name='usoDeAlcool' id='usoDeAlcool' /></div>" . "<div><label for='alergia'>Alergia: </label><input type='text' style='width:200px; height:100px;' name='alergia' id='alergia' value='' /></div>" . "<div><label for='infoAdicional'>Info Adicional: </label><input style='width:200px; height:100px;'type='text' name='infoAdicional' id='infoAdicional' value=''/></div><br><br>" . "<div><input type='button' class='btn btn-xs btn-success' name='popupEdita' id='popupEdita' value='Salvar' onclick='botaoInsereHistorico_clickHandler({$inserePaciente}, {$insereHistorico});' >" . "<input type='button' class='btn btn-xs btn-danger' name='popupSair' id='popupSair' value='Cancela' onclick='toggle_visibility({$insereHistorico});' ></div>" . "</div>" . "</div>" . "</div>" . "</form>" . "\n";
while ($row = mysql_fetch_assoc($pacientes)) {
$historico = $db->getHistorico($row['idPaciente']);
$formName = "form" . $row['idPaciente'];
$formHistoricoName = "historico" . $row['idPaciente'];
$popUpHistoricoName = "popUp" . $row['idPaciente'];
$medicosDoPaciente = $db->getMedicosDoPaciente($row['idPaciente']);
$arrayMedicos = array();
while ($med = mysql_fetch_assoc($medicosDoPaciente)) {
$arrayMedicos[] = $med["Medico_Usuario_idUsuario"];
}
echo "<form class='tableRow' name={$formName} id={$formName} action='index.php' method='post'>" . "<div class='cell'><input class='id' style='width:100%' type='text' name='idPaciente' id='idPaciente' value='{$row['idPaciente']}'/></div>" . "<div class='cell'><input class='input2' name='nome' id='nome' type='text' contentEditable=true value='{$row['nome']}'/></div>" . "<div class='cell'><input class='input2' id='dataDeNascimento' name='dataDeNascimento' type='date' contentEditable=true value='{$row['dataDeNascimento']}'></div>" . "<div class='cell'><input class='input2' id='sexo' name='sexo' type='text' contentEditable=true value='{$row['sexo']}'></div> " . "<div class='cell'><input class='input2' id='descricao' name='descricao' type='text' contentEditable=true value='{$row['descricao']}'></div> " . "<div class='cell'><input class='input2' id='quarto' name='quarto' type='number' contentEditable=true value='{$row['Quarto_idQuarto']}'></div> " . "<div class='cell'><input class='input2' id='dataDeAdmissao' name='dataDeAdmissao' value='{$row['dataDeAdmissao']}'></div> " . "<div class='cell2' style='min-width:150px;'><div class='id' style='width:65px;'> <select style='width:65px;' class='medicos' id='medicos2' name='medicos[]' multiple='multiple' style = 'width:100%'>";
$medicos = $db->getMedicos();
while ($row2 = mysql_fetch_assoc($medicos)) {
$medico = $db->getInfoUsuario($row2['Usuario_idUsuario']);
echo " <option value='{$row2['Usuario_idUsuario']}' ";
if (in_array($row2['Usuario_idUsuario'], $arrayMedicos)) {
echo 'selected';