Compare commits

...

2 Commits

Author SHA1 Message Date
ameye 6e66911b7a Backend Service 2019-04-07 20:01:53 +00:00
ameye 53545a5ae7 Backend Service 2019-04-07 19:10:36 +00:00
6 changed files with 33 additions and 37 deletions
@@ -566,6 +566,7 @@ long getMemberPractice(CVars in, CVars &out) {
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());
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);
+1 -1
View File
@@ -202,7 +202,7 @@
<div class="about_us content_box">
<div class="one_half">
<h2>About Us</h2>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Phasellus hendrerit. Pellentesque aliquet nibh nec urna. In nisi neque, aliquet vel, dapibus id, mattis vel, nisi. Sed pretium, ligula sollicitudin laoreet viverra, tortor libero sodales leo, eget blandit nunc tortor eu nibh. Nullam mollis. Ut justo.</p>
<p>The team at myFit by Flxuxtra LLC works with you to achieve your health objectives without getting in your way. Do your health your way to get the best result for you and your family. We are you, always ready and always engaged with the users to help get the best out of our solution.</p>
</div>
<div class="one_half column_last">
@@ -31,6 +31,7 @@ define('MERMS_PROVIDERS_LOADPROFILE', 150010);
define('MERMS_PROVIDERS_UPDATEPROFILE', 150010);
define('MERMS_PROVIDERS_REMINDERS', 150010);
define('MERMS_PROVIDERS_CREATEMEMBER', 150055);
define('MERMS_PROVIDERS_LINKMEMBER', 150057);
//define('', 120001);
@@ -101,6 +101,29 @@ class Patient extends Provider_Controller {
public function linkpatient(){
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>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="col-xxl-4 m-b-30">
<div class="card card-statistics h-50 mb-0">
<div class="card card-statistics h-40 mb-0">
<div class="card-header d-flex justify-content-between">
<div class="card-heading">
<h4 class="card-title">New Patient Link ID</h4>
@@ -125,8 +113,6 @@
</div>
</div>
<div class="card-body">
<div class="card-body">
<form name="linkform">
<div class="form-row">
@@ -134,8 +120,7 @@
<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">
</div>
</div>
</div>
<div class="form-row">
<div class="form-group col-md-9">
<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>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@@ -178,11 +156,11 @@
<!-- begin footer -->
<script type="text/javascript">
<!--
<!--
function connectLinkID() {
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!');
return false;
}
@@ -194,7 +172,7 @@
url: "/patient/linkpatient?patient_link_id=" + patient_link_id
}).done(function (data) {
$('#link_result').html(data);
document.offer_individual.rec_email.value = '';
document.linkform.patient_link_id.value = '';
$('#link_submit').prop('disabled', 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>
@@ -44,8 +44,7 @@
<div class="row">
<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">
<strong>Holy guacamole!</strong> You should check in on some of those
fields below.
<strong>ALERT!</strong> No system or practice alert at this moment
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<i class="ti ti-close"></i>
</button>