23 lines
499 B
PHP
23 lines
499 B
PHP
<?php
|
|
include('includes/config/config.php');
|
|
include('includes/functions.php');
|
|
include('log_entry.php');
|
|
$empId = $_REQUEST['emp_id'];
|
|
|
|
$data = array();
|
|
$value = array();
|
|
$value_id = array();
|
|
|
|
|
|
$drug_ids = getDrugAllergyDataIds($empId);
|
|
$drug_names = getDrugAllergyData($empId);
|
|
|
|
$value_id = explode(",", $drug_ids);
|
|
$value = explode(",", $drug_names);
|
|
|
|
|
|
$data['value'] = $value;
|
|
$data['valueIds'] = $value_id;
|
|
error_log("final drug allergy data " . print_r($data, true));
|
|
echo json_encode($data);
|