Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IPok_Web
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPok
IPok_Web
Commits
fe4778cd
Commit
fe4778cd
authored
Sep 01, 2018
by
Jemsheer K D
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into client
parents
e2c6455d
438165b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
25 deletions
+26
-25
Webservice.php
admin/application/controllers/Webservice.php
+1
-1
Webservice_model.php
admin/application/models/Webservice_model.php
+22
-21
Patient.php
application/controllers/Patient.php
+2
-2
patient_dash_service_summary.php
application/views/patient_dash_service_summary.php
+1
-1
No files found.
admin/application/controllers/Webservice.php
View file @
fe4778cd
...
...
@@ -5275,7 +5275,7 @@ class Webservice extends CI_Controller {
if
(
isset
(
$headers
[
'Auth'
])
&&
strlen
(
$headers
[
'Auth'
]))
{
$check_authToken
=
$this
->
Webservice_model
->
check_auth_token_doctor
(
$headers
[
'Auth'
]);
if
(
$check_authToken
){
if
(
isset
(
$_GET
[
'notification_id'
])
&&
strlen
(
trim
(
$_GET
[
'notification_id'
],
" "
))
>
0
&&
isset
(
$_GET
[
'status'
])
&&
strlen
(
trim
(
$_GET
[
'status'
],
" "
))
>
0
)
{
if
(
isset
(
$_GET
[
'notification_id'
])
&&
strlen
(
trim
(
$_GET
[
'notification_id'
],
" "
))
>
0
&&
isset
(
$_GET
[
'status'
])
)
{
$result
=
$this
->
Webservice_model
->
set_doctor_notification_status
(
$data
);
if
(
$result
==
true
){
$res
=
array
(
...
...
admin/application/models/Webservice_model.php
View file @
fe4778cd
...
...
@@ -1915,36 +1915,37 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$med_data
=
$this
->
db
->
get_where
(
'tbl_medical_records'
,
array
(
'id'
=>
$data
[
'medical_record_id'
]))
->
row
();
if
(
$med_data
->
patient_review
!=
''
){
$this
->
db
->
update
(
'tbl_medical_records'
,
array
(
'patient_review'
=>
encrypt_data
(
$data
[
'review'
])),
array
(
'id'
=>
$data
[
'medical_record_id'
]));
$revw_data
=
$this
->
db
->
get_where
(
'tbl_review'
,
array
(
'booking_id'
=>
$med_data
[
'booking_id'
]
))
->
row
();
$this
->
db
->
update
(
'tbl_review'
,
array
(
'review'
=>
$data
[
'review'
]),
array
(
'booking_id'
=>
$med_data
[
'booking_id'
]
));
$insertid
=
$revw_data
->
id
;
$revw_data
=
$this
->
db
->
get_where
(
'tbl_review'
,
array
(
'booking_id'
=>
$med_data
->
booking_id
))
->
row
();
$this
->
db
->
update
(
'tbl_review'
,
array
(
'review'
=>
$data
[
'review'
]),
array
(
'booking_id'
=>
$med_data
->
booking_id
));
$insertid
=
$revw_data
->
review_
id
;
}
else
{
$this
->
db
->
update
(
'tbl_medical_records'
,
array
(
'patient_review'
=>
encrypt_data
(
$data
[
'review'
])),
array
(
'id'
=>
$data
[
'medical_record_id'
]));
unset
(
$data
[
'medical_record_id'
]);
$this
->
db
->
insert
(
'tbl_review'
,
$data
);
$this
->
db
->
insert
(
'tbl_review'
,
array
(
'doctor_id'
=>
$data
[
'doctor_id'
],
'reviewer_id'
=>
$rslt
->
userid
,
'review'
=>
$data
[
'review'
],
'date'
=>
$data
[
'date'
],
'booking_id'
=>
$med_data
->
booking_id
)
);
$insertid
=
$this
->
db
->
insert_id
();
}
}
}
$this
->
db
->
insert
(
'tbl_doctor_notifications'
,
array
(
'doctor_id'
=>
$data
[
'doctor_id'
],
'type'
=>
'1'
,
'message'
=>
$msg
,
'time'
=>
$data
[
'date'
],
'read_status'
=>
'0'
));
$doctor_insert_id
=
$this
->
db
->
insert_id
();
$fcm_doctor
=
$this
->
db
->
get_where
(
'tbl_authtoken_doctors'
,
array
(
'doctor_id'
=>
$data
[
'doctor_id'
]))
->
row
();
$news
[
'id'
]
=
$doctor_insert_id
;
$news
[
'type'
]
=
"New Review"
;
$news
[
'message'
]
=
$msg
;
$news
[
'read_status'
]
=
false
;
$news
[
'to'
]
=
$fcm_doctor
->
fcm_token
;
$doctor_type
=
'2'
;
$doctor_push
=
$this
->
push_sent
(
$news
,
$doctor_type
);
if
(
$doctor_push
){
if
(
$this
->
db
->
insert
(
'tbl_doctor_notifications'
,
array
(
'doctor_id'
=>
$data
[
'doctor_id'
],
'type'
=>
'1'
,
'message'
=>
$msg
,
'time'
=>
$data
[
'date'
],
'read_status'
=>
'0'
))){
$doctor_insert_id
=
$this
->
db
->
insert_id
();
$fcm_doctor
=
$this
->
db
->
get_where
(
'tbl_authtoken_doctors'
,
array
(
'doctor_id'
=>
$data
[
'doctor_id'
]))
->
row
();
$news
[
'id'
]
=
$doctor_insert_id
;
$news
[
'type'
]
=
"New Review"
;
$news
[
'message'
]
=
$msg
;
$news
[
'read_status'
]
=
false
;
$news
[
'to'
]
=
$fcm_doctor
->
fcm_token
;
$doctor_type
=
'2'
;
$doctor_push
=
$this
->
push_sent
(
$news
,
$doctor_type
);
$res
=
array
(
"status"
=>
"success"
,
"msg"
=>
"Insertion Success"
,
'data'
=>
array
(
'id'
=>
$insertid
,
'review'
=>
$data
[
'review'
]));
}
else
{
$res
=
array
(
"status"
=>
"failed"
,
"msg"
=>
"Insertion failed"
);
}
else
{
$res
=
array
(
"status"
=>
"failed"
,
"msg"
=>
"Insertion failed"
);
}
}
else
{
$res
=
array
(
"status"
=>
"failed"
,
"msg"
=>
"Medical Record Id Doesnot Exist"
);
}
}
else
{
$res
=
array
(
"status"
=>
"failed"
,
"msg"
=>
"Invalid Auth token"
);
...
...
@@ -2300,7 +2301,7 @@ CASE when tbl_doctors.gender='0' then 'MALE' when tbl_doctors.gender='1' then 'F
$res
=
$this
->
db
->
get
()
->
result
();
foreach
(
$res
as
$key
=>
$values
)
{
$new_fee
=
$values
->
fee
-
(
$values
->
fee
*
$query
->
amount
/
100
);
$values
->
fee
=
$new_fee
;
$values
->
fee
=
(
string
)
$new_fee
;
$new_array
[]
=
$values
;
}
$result
=
array
(
"status"
=>
"success"
,
"data"
=>
$new_array
);
...
...
application/controllers/Patient.php
View file @
fe4778cd
...
...
@@ -710,7 +710,7 @@ public function record()
$doctor_data
=
$this
->
Doctor_model
->
get_single_doctor
(
$booking_details
[
'doc_id'
]);
$patient_data
=
$this
->
Patient_model
->
get_single_patient
(
$booking_details
[
'pat_id'
]);
//echo "<pre>";print_r($record_data);echo "<br>";
$record_data
[
'diseases'
]
=
json_decode
(
decrypt_data
(
$record_data
[
'diseases'
]));
$record_data
[
'prescribtions'
]
=
json_decode
(
decrypt_data
(
$record_data
[
'prescribtions'
]));
$record_data
[
'exams'
]
=
json_decode
(
decrypt_data
(
$record_data
[
'exams'
]));
...
...
@@ -718,7 +718,7 @@ public function record()
$record_data
[
'letters'
]
=
json_decode
(
decrypt_data
(
$record_data
[
'letters'
]));
//print_r($record_data);die();
//
echo "<pre>";
print_r($record_data);die();
$template
[
'page'
]
=
"patient_dash_service_summary"
;
$template
[
'page_title'
]
=
"Record"
;
$template
[
'record_data'
]
=
$record_data
;
...
...
application/views/patient_dash_service_summary.php
View file @
fe4778cd
...
...
@@ -56,7 +56,7 @@
<div
class=
"tab-content"
>
<div
class=
"ip_profile_tab_top p0"
>
<div
class=
"ip_profile_tab_name"
>
<h3>
<?php
if
(
!
empty
(
$record_data
[
'main_complaint'
]))
echo
$record_data
[
'main_complaint'
]
;
?>
</h3>
<h3>
<?php
if
(
!
empty
(
$record_data
[
'main_complaint'
]))
echo
decrypt_data
(
$record_data
[
'main_complaint'
])
;
?>
</h3>
</div>
<div
class=
"clear"
></div>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment