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
a51afca5
Commit
a51afca5
authored
Aug 03, 2018
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
medical
parent
833dc789
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Webservice.php
admin/application/controllers/Webservice.php
+1
-1
Webservice_model.php
admin/application/models/Webservice_model.php
+3
-2
No files found.
admin/application/controllers/Webservice.php
View file @
a51afca5
...
...
@@ -2008,7 +2008,7 @@ print_r(date('H:i',$ms));exit();*/
if
((
isset
(
$data
[
'doctor_id'
]))
&&
strlen
(
$data
[
'doctor_id'
])
&&
isset
(
$data
[
'review'
])
&&
strlen
(
$data
[
'review'
])
&&
isset
(
$data
[
'medical_record_id'
])
&&
strlen
(
$data
[
'medical_record_id'
])){
$result
=
$this
->
Webservice_model
->
doctor_review
(
$data
,
$headers
[
'Auth'
]);
if
(
$result
[
'status'
]
==
'success'
){
$res
=
array
(
"status"
=>
"success"
);
$res
=
array
(
"status"
=>
"success"
,
'data'
=>
$result
[
'data'
]
);
}
else
{
$res
=
array
(
"status"
=>
"error"
,
...
...
admin/application/models/Webservice_model.php
View file @
a51afca5
...
...
@@ -1879,6 +1879,7 @@ class Webservice_model extends CI_Model {
}
unset
(
$data
[
'medical_record_id'
]);
if
(
$this
->
db
->
insert
(
'tbl_review'
,
$data
)){
$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
();
...
...
@@ -1890,7 +1891,7 @@ class Webservice_model extends CI_Model {
$doctor_type
=
'2'
;
$doctor_push
=
$this
->
push_sent
(
$news
,
$doctor_type
);
$res
=
array
(
"status"
=>
"success"
,
"msg"
=>
"Insertion Success"
);
$res
=
array
(
"status"
=>
"success"
,
"msg"
=>
"Insertion Success"
,
'data'
=>
array
(
'id'
=>
$insertid
,
'review'
=>
$data
[
'review'
])
);
}
else
{
$res
=
array
(
"status"
=>
"failed"
,
"msg"
=>
"Insertion failed"
);
}
...
...
@@ -2590,7 +2591,7 @@ class Webservice_model extends CI_Model {
}
else
{
foreach
(
$budget
as
$key
=>
$value
)
{
$bud
[
$key
][
'service_name'
]
=
$value
->
procedure
;
$bud
[
$key
][
'service_charge'
]
=
$value
->
amount
;
$bud
[
$key
][
'service_charge'
]
=
$value
->
amount
*
$value
->
quantity
;
}
$result
[
'services'
]
=
$bud
;
}
...
...
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