Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵增煜
/
tzt-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
90f2b164
authored
Dec 12, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修复
parent
78d7e0ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/Api/Controllers/PrescriptionController.php
+3
-3
No files found.
app/Api/Controllers/PrescriptionController.php
View file @
90f2b164
...
@@ -152,10 +152,10 @@ public function create(Request $request)
...
@@ -152,10 +152,10 @@ public function create(Request $request)
// 问诊问题
// 问诊问题
$inquiry_info
=
[];
$inquiry_info
=
[];
$is_abnormal
=
0
;
// 是否异常处方单,只有一个问题回答是就是异常
$is_abnormal
=
0
;
// 是否异常处方单,只有一个问题回答是就是异常
Log
::
info
(
'inquirys:'
.
json_encode
(
$inquirys
));
//
Log::info('inquirys:'.json_encode($inquirys));
foreach
(
$inquirys
as
$inquiry
)
{
foreach
(
$inquirys
as
$inquiry
)
{
$inquiry
=
InquiryModel
::
find
(
$inquiry
[
'inquiry_id'
]);
$answer
=
intval
(
$inquiry
[
'answer'
]);
$answer
=
intval
(
$inquiry
[
'answer'
]);
$inquiry
=
InquiryModel
::
find
(
$inquiry
[
'inquiry_id'
]);
$inquiry_info
[]
=
[
$inquiry_info
[]
=
[
'inquiry_id'
=>
$inquiry
[
'inquiry_id'
],
'inquiry_id'
=>
$inquiry
[
'inquiry_id'
],
'question'
=>
$inquiry
->
question
,
'question'
=>
$inquiry
->
question
,
...
@@ -166,7 +166,7 @@ public function create(Request $request)
...
@@ -166,7 +166,7 @@ public function create(Request $request)
$is_abnormal
=
1
;
// 如果有一个answer是1,设置$is_abnormal为1
$is_abnormal
=
1
;
// 如果有一个answer是1,设置$is_abnormal为1
}
}
}
}
Log
::
info
(
'inquiry_info'
.
json_encode
(
$inquiry_info
));
//
Log::info('inquiry_info'.json_encode($inquiry_info));
$prescription
->
inquiry_info
=
$inquiry_info
;
$prescription
->
inquiry_info
=
$inquiry_info
;
// 用药信息
// 用药信息
$drug_info
=
[];
$drug_info
=
[];
...
...
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