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
d498edb9
Commit
d498edb9
authored
6 years ago
by
Jansa Jose
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
consultaion data
parent
fa828a8a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
Webservice_model.php
admin/application/models/Webservice_model.php
+6
-4
No files found.
admin/application/models/Webservice_model.php
View file @
d498edb9
...
@@ -2522,7 +2522,7 @@ class Webservice_model extends CI_Model {
...
@@ -2522,7 +2522,7 @@ class Webservice_model extends CI_Model {
}
}
$ill
=
json_decode
(
decrypt_data
(
$result
[
'diseases'
]));
$ill
=
json_decode
(
decrypt_data
(
$result
[
'diseases'
]));
print_r
(
$ill
);
echo
"<br>"
;
//
print_r($ill);echo"<br>";
if
(
$ill
==
''
){
if
(
$ill
==
''
){
$new
=
[];
$new
=
[];
}
else
{
}
else
{
...
@@ -2531,7 +2531,7 @@ class Webservice_model extends CI_Model {
...
@@ -2531,7 +2531,7 @@ class Webservice_model extends CI_Model {
$i
=
0
;
$i
=
0
;
foreach
(
$ill
->
anamnese
as
$key
=>
$value
)
{
foreach
(
$ill
->
anamnese
as
$key
=>
$value
)
{
if
(
$key
!=
'others'
){
if
(
$key
!=
'others'
){
print_r
(
$key
);
echo
" - "
;
print_r
(
$value
);
echo
"<br>"
;
//
print_r($key); echo" - "; print_r($value);echo"<br>";
$new
[
$i
][
'name'
]
=
$key
;
$new
[
$i
][
'name'
]
=
$key
;
$new
[
$i
][
'cause'
]
=
$value
;
$new
[
$i
][
'cause'
]
=
$value
;
}
else
{
}
else
{
...
@@ -2540,7 +2540,7 @@ class Webservice_model extends CI_Model {
...
@@ -2540,7 +2540,7 @@ class Webservice_model extends CI_Model {
}
}
$i
++
;
$i
++
;
}
}
print_r
(
$news
);
echo
"<br>"
;
exit
();
//
print_r($news);echo"<br>";exit();
$result
[
'illness'
]
=
$new
;
$result
[
'illness'
]
=
$new
;
if
(
$news
[
'cause'
]
!=
''
){
if
(
$news
[
'cause'
]
!=
''
){
...
@@ -3039,6 +3039,8 @@ class Webservice_model extends CI_Model {
...
@@ -3039,6 +3039,8 @@ class Webservice_model extends CI_Model {
foreach
(
$query
as
$key
=>
$value
)
{
foreach
(
$query
as
$key
=>
$value
)
{
$new
[
$key
][
'id'
]
=
$value
->
medical_record_id
;
$new
[
$key
][
'id'
]
=
$value
->
medical_record_id
;
$new
[
$key
][
'date'
]
=
$value
->
date
;
$new
[
$key
][
'date'
]
=
$value
->
date
;
$new
[
$key
][
'time_start'
]
=
$value
->
time_start
;
}
}
//echo"<pre>";print_r($query);echo"</pre>";exit();
//echo"<pre>";print_r($query);echo"</pre>";exit();
if
(
count
(
$query
)
>
0
){
if
(
count
(
$query
)
>
0
){
...
@@ -3137,7 +3139,7 @@ class Webservice_model extends CI_Model {
...
@@ -3137,7 +3139,7 @@ class Webservice_model extends CI_Model {
unset
(
$anamse_details
->
anamnese
);
unset
(
$anamse_details
->
anamnese
);
$anamse_details
->
anamnese
=
(
object
)
$new
;
$anamse_details
->
anamnese
=
(
object
)
$new
;
$anamse_details
->
anamnese
->
principal_problem
=
decrypt_data
(
$res
->
main_complaint
);
$anamse_details
->
anamnese
->
principal_problem
=
decrypt_data
(
$res
->
main_complaint
);
$anamse_details
->
anamnese
->
description
=
decrypt_data
(
strip_tags
(
$res
->
description
));
$anamse_details
->
anamnese
->
description
=
strip_tags
(
decrypt_data
(
$res
->
description
));
if
(
isset
(
$anamse_details
->
anamnese
->
others
)){
if
(
isset
(
$anamse_details
->
anamnese
->
others
)){
if
(
in_array
(
'hepatitis'
,
$anamse_details
->
anamnese
->
others
)){
if
(
in_array
(
'hepatitis'
,
$anamse_details
->
anamnese
->
others
)){
$anamse_details
->
anamnese
->
has_hepatitis
=
true
;
$anamse_details
->
anamnese
->
has_hepatitis
=
true
;
...
...
This diff is collapsed.
Click to expand it.
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