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
bdc9169d
authored
Dec 01, 2024
by
赵增煜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问诊问题
parent
ca9bb49e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
app/Api/Controllers/PrescriptionController.php
+2
-1
No files found.
app/Api/Controllers/PrescriptionController.php
View file @
bdc9169d
...
@@ -143,9 +143,10 @@ public function create(Request $request)
...
@@ -143,9 +143,10 @@ public function create(Request $request)
$inquiry_info
=
[];
$inquiry_info
=
[];
$is_abnormal
=
0
;
// 是否异常处方单,只有一个问题回答是就是异常
$is_abnormal
=
0
;
// 是否异常处方单,只有一个问题回答是就是异常
foreach
(
$inquirys
as
$inquiry
)
{
foreach
(
$inquirys
as
$inquiry
)
{
$inquiry
=
InquiryModel
::
find
(
$inquiry
[
'inquiry_id'
]);
$inquiry_info
[]
=
[
$inquiry_info
[]
=
[
'inquiry_id'
=>
$inquiry
[
'inquiry_id'
],
'inquiry_id'
=>
$inquiry
[
'inquiry_id'
],
'question'
=>
InquiryModel
::
find
(
$inquiry
[
'inquiry_id'
])
->
value
(
'question'
)
,
'question'
=>
$inquiry
->
question
,
'answer'
=>
$inquiry
[
'answer'
]
==
1
?
1
:
0
,
// [1 => '是', 0 => '否']
'answer'
=>
$inquiry
[
'answer'
]
==
1
?
1
:
0
,
// [1 => '是', 0 => '否']
];
];
// 检查是否有一个answer是1
// 检查是否有一个answer是1
...
...
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