Backend Service
This commit is contained in:
@@ -566,6 +566,7 @@ long getMemberPractice(CVars in, CVars &out) {
|
|||||||
out["total_record"] = "0";
|
out["total_record"] = "0";
|
||||||
|
|
||||||
const PGresult *res = pgsql_query("SELECT p.id AS patient_id,p.status AS patient_status, pra.* FROM patients p LEFT JOIN practice pra ON pra.id=p.practice_id WHERE p.member_id = %lu", in["member_id"].Long());
|
const PGresult *res = pgsql_query("SELECT p.id AS patient_id,p.status AS patient_status, pra.* FROM patients p LEFT JOIN practice pra ON pra.id=p.practice_id WHERE p.member_id = %lu", in["member_id"].Long());
|
||||||
|
|
||||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||||
out["total_record"] = pgsql_num_rows(res);
|
out["total_record"] = pgsql_num_rows(res);
|
||||||
|
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ define('MERMS_PROVIDERS_LOADPROFILE', 150010);
|
|||||||
define('MERMS_PROVIDERS_UPDATEPROFILE', 150010);
|
define('MERMS_PROVIDERS_UPDATEPROFILE', 150010);
|
||||||
define('MERMS_PROVIDERS_REMINDERS', 150010);
|
define('MERMS_PROVIDERS_REMINDERS', 150010);
|
||||||
define('MERMS_PROVIDERS_CREATEMEMBER', 150055);
|
define('MERMS_PROVIDERS_CREATEMEMBER', 150055);
|
||||||
|
define('MERMS_PROVIDERS_LINKMEMBER', 150057);
|
||||||
//define('', 120001);
|
//define('', 120001);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -101,6 +101,29 @@ class Patient extends Provider_Controller {
|
|||||||
|
|
||||||
public function linkpatient(){
|
public function linkpatient(){
|
||||||
echo 'Ameye';
|
echo 'Ameye';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if ($_GET) {
|
||||||
|
$data['patient_link_id'] = trim($this->input->get('patient_link_id'));
|
||||||
|
$data['practice_id'] = $_SESSION['practice_id'];
|
||||||
|
$data['practice_user_id'] = $_SESSION['practice_id'];
|
||||||
|
$data["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||||
|
$data["action"] = MERMS_PROVIDERS_LINKMEMBER;
|
||||||
|
$out = array();
|
||||||
|
$ret = $this->mermsemr_api($data, $out);
|
||||||
|
$data["account_message"] = "This is the return " . $ret;
|
||||||
|
echo "Linked Result :";
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
echo 'Invalid call...';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -96,26 +96,14 @@
|
|||||||
<button type="submit" class="btn btn-primary">Add Patient</button>
|
<button type="submit" class="btn btn-primary">Add Patient</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-xxl-4 m-b-30">
|
<div class="col-xxl-4 m-b-30">
|
||||||
|
<div class="card card-statistics h-40 mb-0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="card card-statistics h-50 mb-0">
|
|
||||||
<div class="card-header d-flex justify-content-between">
|
<div class="card-header d-flex justify-content-between">
|
||||||
<div class="card-heading">
|
<div class="card-heading">
|
||||||
<h4 class="card-title">New Patient Link ID</h4>
|
<h4 class="card-title">New Patient Link ID</h4>
|
||||||
@@ -125,8 +113,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
|
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<form name="linkform">
|
<form name="linkform">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
@@ -134,8 +120,7 @@
|
|||||||
<label for="inputLinkID">Enter Link ID</label>
|
<label for="inputLinkID">Enter Link ID</label>
|
||||||
<input type="text" class="form-control" id="patient_link_id" name="patient_link_id" value="<?= isset($patient_link_id) ? $patient_link_id : '' ?>" placeholder="Link ID : WE34RTH587">
|
<input type="text" class="form-control" id="patient_link_id" name="patient_link_id" value="<?= isset($patient_link_id) ? $patient_link_id : '' ?>" placeholder="Link ID : WE34RTH587">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
<div class="form-group col-md-9">
|
<div class="form-group col-md-9">
|
||||||
<div id="link_result">[]</div>
|
<div id="link_result">[]</div>
|
||||||
@@ -144,17 +129,10 @@
|
|||||||
<button type="submit" id="link_submit" class="btn btn-primary" onclick="return connectLinkID()">Link Patient</button>
|
<button type="submit" id="link_submit" class="btn btn-primary" onclick="return connectLinkID()">Link Patient</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
@@ -178,11 +156,11 @@
|
|||||||
<!-- begin footer -->
|
<!-- begin footer -->
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
<!--
|
<!--
|
||||||
|
|
||||||
function connectLinkID() {
|
function connectLinkID() {
|
||||||
var patient_link_id = document.linkform.patient_link_id.value;
|
var patient_link_id = document.linkform.patient_link_id.value;
|
||||||
if (patient_link_id == '' || !isEmail(patient_link_id)) {
|
if (patient_link_id === '' || )) {
|
||||||
alert('You must enter valid linkID to continue!');
|
alert('You must enter valid linkID to continue!');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -194,7 +172,7 @@
|
|||||||
url: "/patient/linkpatient?patient_link_id=" + patient_link_id
|
url: "/patient/linkpatient?patient_link_id=" + patient_link_id
|
||||||
}).done(function (data) {
|
}).done(function (data) {
|
||||||
$('#link_result').html(data);
|
$('#link_result').html(data);
|
||||||
document.offer_individual.rec_email.value = '';
|
document.linkform.patient_link_id.value = '';
|
||||||
$('#link_submit').prop('disabled', false);
|
$('#link_submit').prop('disabled', false);
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
@@ -203,12 +181,6 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
function Show_Alert(Input_Id) {
|
|
||||||
|
|
||||||
var My_Message = document.getElementById(Input_Id).value;
|
|
||||||
|
|
||||||
alert('Hello, ' + My_Message);
|
|
||||||
|
|
||||||
}
|
|
||||||
// -->
|
// -->
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -44,8 +44,7 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="alert border-0 alert-primary bg-gradient m-b-30 alert-dismissible fade show border-radius-none" role="alert">
|
<div class="alert border-0 alert-primary bg-gradient m-b-30 alert-dismissible fade show border-radius-none" role="alert">
|
||||||
<strong>Holy guacamole!</strong> You should check in on some of those
|
<strong>ALERT!</strong> No system or practice alert at this moment
|
||||||
fields below.
|
|
||||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||||
<i class="ti ti-close"></i>
|
<i class="ti ti-close"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
Reference in New Issue
Block a user