31 lines
754 B
PHP
31 lines
754 B
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
include('log_entry.php');
|
|
error_reporting(E_ERROR | E_PARSE);
|
|
|
|
$patient_id = $_POST['patient_id'];
|
|
|
|
// $data = array();
|
|
$report_section = "";
|
|
?>
|
|
|
|
<?php
|
|
$sql = "select * from patient_master where primary_patient_id='" . $patient_id . "'";
|
|
|
|
error_log("sql for dependent list " . $sql);
|
|
$result = mysqli_query($conn, $sql);
|
|
|
|
|
|
while ($row = mysqli_fetch_assoc($result)) {
|
|
// array_push($data, $row['patient_name']);
|
|
$r_id = $row['id'];
|
|
$r_name = $row['patient_name'];
|
|
$r_relation = $row['relation_type'];
|
|
$report_section .= "<option value='$r_id'>$r_name ($r_relation)</option>";
|
|
}
|
|
|
|
error_log("data " .$report_section);
|
|
|
|
echo json_encode($report_section);
|
|
?>
|