fixed
This commit is contained in:
@@ -22,7 +22,7 @@ class Ttchathistory extends BaseHttpApi
|
|||||||
* 带分页
|
* 带分页
|
||||||
* current_page 当前页码
|
* current_page 当前页码
|
||||||
* list_rows 每页显示条数 默认15
|
* list_rows 每页显示条数 默认15
|
||||||
* userbaseinfo_id 基本信息ID 基本信息ID 必须
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
*
|
*
|
||||||
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
* id ID
|
* id ID
|
||||||
@@ -32,6 +32,7 @@ class Ttchathistory extends BaseHttpApi
|
|||||||
* ticket 对话票据(用于隔离用户聊天历史记录)
|
* ticket 对话票据(用于隔离用户聊天历史记录)
|
||||||
* userbaseinfo_id 基本信息ID
|
* userbaseinfo_id 基本信息ID
|
||||||
* create_time 创建时间
|
* create_time 创建时间
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
* author:wh
|
* author:wh
|
||||||
*/
|
*/
|
||||||
@@ -40,17 +41,17 @@ class Ttchathistory extends BaseHttpApi
|
|||||||
$api_desc = '获取疼痛科聊天历史';
|
$api_desc = '获取疼痛科聊天历史';
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$userbaseinfo_id = input('userbaseinfo_id');
|
$hdruserbaseinfo_id = input('hdruserbaseinfo_id');
|
||||||
if(empty($userbaseinfo_id)){
|
if(empty($hdruserbaseinfo_id)){
|
||||||
return json(Tools::set_fail('userbaseinfo_id参数错误'));
|
return json(Tools::set_fail('hdruserbaseinfo_id参数错误'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$model_obj = Db::table(TabConf::$fa_tt_chathistory);
|
$model_obj = Db::table(TabConf::$fa_tt_chathistory);
|
||||||
|
|
||||||
if(input('userbaseinfo_id')){
|
if(input('hdruserbaseinfo_id')){
|
||||||
$model_obj->where('userbaseinfo_id',input('userbaseinfo_id'));
|
$model_obj->where('hdruserbaseinfo_id',input('hdruserbaseinfo_id'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = $model_obj->paginate(['page'=>input('current_page',1),'list_rows'=>input('list_rows',15)])
|
$data = $model_obj->paginate(['page'=>input('current_page',1),'list_rows'=>input('list_rows',15)])
|
||||||
|
|||||||
@@ -0,0 +1,72 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\api\controller;
|
||||||
|
|
||||||
|
use think\Db;
|
||||||
|
use app\common\model\TabConf;
|
||||||
|
use wanghua\general_utility_tools_php\file\upload\FileUpload;
|
||||||
|
use wanghua\general_utility_tools_php\tool\Tools;
|
||||||
|
use wanghua\general_utility_tools_php\Validate;
|
||||||
|
use think\Controller;
|
||||||
|
|
||||||
|
class Ttmedicalreport extends BaseHttpApi
|
||||||
|
{
|
||||||
|
protected $controller_comments = '疼痛科病历报告(听译问诊)(一个基本信息对应一个报告)';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* desc:获取疼痛科病历报告(一个基本信息对应一个报告)
|
||||||
|
*
|
||||||
|
* api/Ttmedicalreport/getTtmedicalreportDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* userbaseid 基本信息ID
|
||||||
|
* doctor 所属医生
|
||||||
|
* username 病人
|
||||||
|
* report_content 报告内容
|
||||||
|
* name 病人姓名
|
||||||
|
* phone 病人电话
|
||||||
|
* from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
|
* create_time 生成时间
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
*/
|
||||||
|
function getTtmedicalreportDetail(){
|
||||||
|
Tools::log_to_write_txt(['获取疼痛科病历报告(一个基本信息对应一个报告) 入参:'=>input()]);
|
||||||
|
$api_desc = '获取疼痛科病历报告(一个基本信息对应一个报告)';
|
||||||
|
try {
|
||||||
|
|
||||||
|
$hdruserbaseinfo_id = input('hdruserbaseinfo_id');
|
||||||
|
if(empty($hdruserbaseinfo_id)){
|
||||||
|
return json(Tools::set_fail('hdruserbaseinfo_id参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$model_obj = Db::table(TabConf::$fa_tt_medical_report);
|
||||||
|
|
||||||
|
if(input('hdruserbaseinfo_id')){
|
||||||
|
$model_obj->where('hdruserbaseinfo_id',input('hdruserbaseinfo_id'));
|
||||||
|
}
|
||||||
|
$item = $model_obj->find();
|
||||||
|
$data = $item;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return json(Tools::set_ok('ok',$data));
|
||||||
|
}catch(\Exception $e){
|
||||||
|
Tools::log_to_write_txt([
|
||||||
|
'error'=>'获取疼痛科病历报告(一个基本信息对应一个报告).异常.'.$e->getMessage(),
|
||||||
|
'参数'=>input(),
|
||||||
|
'error_info'=>$e->getTraceAsString()
|
||||||
|
]);
|
||||||
|
return json(Tools::set_res(500,'操作异常',[]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
84
digital_doctor/application/api/controller/Tychathistory.php
Normal file
84
digital_doctor/application/api/controller/Tychathistory.php
Normal file
@@ -0,0 +1,84 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\api\controller;
|
||||||
|
|
||||||
|
use think\Db;
|
||||||
|
use app\common\model\TabConf;
|
||||||
|
use wanghua\general_utility_tools_php\file\upload\FileUpload;
|
||||||
|
use wanghua\general_utility_tools_php\tool\Tools;
|
||||||
|
use wanghua\general_utility_tools_php\Validate;
|
||||||
|
use think\Controller;
|
||||||
|
|
||||||
|
class Tychathistory extends BaseHttpApi
|
||||||
|
{
|
||||||
|
protected $controller_comments = '听译-聊天历史';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* desc:获取听译-聊天历史
|
||||||
|
*
|
||||||
|
* api/Tychathistory/getTychathistoryList
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* 带分页
|
||||||
|
* current_page 当前页码
|
||||||
|
* list_rows 每页显示条数 默认15
|
||||||
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* username 用户
|
||||||
|
* type 聊天角色
|
||||||
|
* chat_msg 问诊内容
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* create_time 创建时间
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
*/
|
||||||
|
function getTychathistoryList(){
|
||||||
|
Tools::log_to_write_txt(['获取听译-聊天历史 入参:'=>input()]);
|
||||||
|
$api_desc = '获取听译-聊天历史';
|
||||||
|
try {
|
||||||
|
|
||||||
|
$hdruserbaseinfo_id = input('hdruserbaseinfo_id');
|
||||||
|
if(empty($hdruserbaseinfo_id)){
|
||||||
|
return json(Tools::set_fail('hdruserbaseinfo_id参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$model_obj = Db::table(TabConf::$fa_ty_chathistory);
|
||||||
|
|
||||||
|
if(input('hdruserbaseinfo_id')){
|
||||||
|
$model_obj->where('hdruserbaseinfo_id',input('hdruserbaseinfo_id'));
|
||||||
|
}
|
||||||
|
|
||||||
|
$data = $model_obj->paginate(['page'=>input('current_page',1),'list_rows'=>input('list_rows',15)])
|
||||||
|
->each(function($item, $key){
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return $item;
|
||||||
|
});
|
||||||
|
|
||||||
|
// ['total'] => int(30)
|
||||||
|
// ['per_page'] => int(15)
|
||||||
|
// ['current_page'] => int(1)
|
||||||
|
// ['last_page''] => int(2)
|
||||||
|
$data = $data->toArray();//包含 data列表
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return json(Tools::set_ok('ok',$data));
|
||||||
|
}catch(\Exception $e){
|
||||||
|
Tools::log_to_write_txt([
|
||||||
|
'error'=>'获取听译-聊天历史.异常.'.$e->getMessage(),
|
||||||
|
'参数'=>input(),
|
||||||
|
'error_info'=>$e->getTraceAsString()
|
||||||
|
]);
|
||||||
|
return json(Tools::set_res(500,'操作异常',[]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,73 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace app\api\controller;
|
||||||
|
|
||||||
|
use think\Db;
|
||||||
|
use app\common\model\TabConf;
|
||||||
|
use wanghua\general_utility_tools_php\file\upload\FileUpload;
|
||||||
|
use wanghua\general_utility_tools_php\tool\Tools;
|
||||||
|
use wanghua\general_utility_tools_php\Validate;
|
||||||
|
use think\Controller;
|
||||||
|
|
||||||
|
class Tymedicalreport extends BaseHttpApi
|
||||||
|
{
|
||||||
|
protected $controller_comments = '听译-病历报告(听译问诊)(一个基本信息对应一个报告)';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* desc:获取听译-病历报告(听译问诊)(一个基本信息对应一个报告)
|
||||||
|
*
|
||||||
|
* api/Tymedicalreport/getTymedicalreportDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* userbaseid 听译病历ID
|
||||||
|
* doctor 所属医生
|
||||||
|
* username 病人
|
||||||
|
* report_content 报告内容
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* diagnostic_result 诊断结果
|
||||||
|
* create_time 生成时间
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
*/
|
||||||
|
function getTymedicalreportDetail(){
|
||||||
|
Tools::log_to_write_txt(['获取听译-病历报告(听译问诊)(一个基本信息对应一个报告) 入参:'=>input()]);
|
||||||
|
$api_desc = '获取听译-病历报告(听译问诊)(一个基本信息对应一个报告)';
|
||||||
|
try {
|
||||||
|
|
||||||
|
$hdruserbaseinfo_id = input('hdruserbaseinfo_id');
|
||||||
|
if(empty($hdruserbaseinfo_id)){
|
||||||
|
return json(Tools::set_fail('hdruserbaseinfo_id参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$model_obj = Db::table(TabConf::$fa_ty_medical_report);
|
||||||
|
|
||||||
|
if(input('hdruserbaseinfo_id')){
|
||||||
|
$model_obj->where('hdruserbaseinfo_id',input('hdruserbaseinfo_id'));
|
||||||
|
}
|
||||||
|
$item = $model_obj->find();
|
||||||
|
$data = $item;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return json(Tools::set_ok('ok',$data));
|
||||||
|
}catch(\Exception $e){
|
||||||
|
Tools::log_to_write_txt([
|
||||||
|
'error'=>'获取听译-病历报告(听译问诊)(一个基本信息对应一个报告).异常.'.$e->getMessage(),
|
||||||
|
'参数'=>input(),
|
||||||
|
'error_info'=>$e->getTraceAsString()
|
||||||
|
]);
|
||||||
|
return json(Tools::set_res(500,'操作异常',[]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -643,7 +643,7 @@
|
|||||||
* 带分页
|
* 带分页
|
||||||
* current_page 当前页码
|
* current_page 当前页码
|
||||||
* list_rows 每页显示条数 默认15
|
* list_rows 每页显示条数 默认15
|
||||||
* userbaseinfo_id 基本信息ID 基本信息ID 必须
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
*
|
*
|
||||||
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
* id ID
|
* id ID
|
||||||
@@ -653,6 +653,7 @@
|
|||||||
* ticket 对话票据(用于隔离用户聊天历史记录)
|
* ticket 对话票据(用于隔离用户聊天历史记录)
|
||||||
* userbaseinfo_id 基本信息ID
|
* userbaseinfo_id 基本信息ID
|
||||||
* create_time 创建时间
|
* create_time 创建时间
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
* author:wh
|
* author:wh
|
||||||
* api/ttchathistory/getTtchathistoryList
|
* api/ttchathistory/getTtchathistoryList
|
||||||
@@ -666,6 +667,43 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="api_ttchathistory_getTtchathistoryList_response_result"></div>
|
<div class="api_ttchathistory_getTtchathistoryList_response_result"></div>
|
||||||
|
|
||||||
|
</div><div id="api_ttmedicalreport_getTtmedicalreportDetail">
|
||||||
|
<div class="markdown_content">
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取疼痛科病历报告(一个基本信息对应一个报告)
|
||||||
|
*
|
||||||
|
* api/Ttmedicalreport/getTtmedicalreportDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* userbaseid 基本信息ID
|
||||||
|
* doctor 所属医生
|
||||||
|
* username 病人
|
||||||
|
* report_content 报告内容
|
||||||
|
* name 病人姓名
|
||||||
|
* phone 病人电话
|
||||||
|
* from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
|
* create_time 生成时间
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/ttmedicalreport/getTtmedicalreportDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
按需填写其它接口参数:
|
||||||
|
<textarea name="" id="api_ttmedicalreport_getTtmedicalreportDetail_textarea" cols="100" rows="3">/api/ttmedicalreport/getTtmedicalreportDetail</textarea>
|
||||||
|
<a href='JavaScript:;' onclick="DocObject.api_ttmedicalreport_getTtmedicalreportDetail()">测试</a>
|
||||||
|
</div>
|
||||||
|
<div class="api_ttmedicalreport_getTtmedicalreportDetail_response_result"></div>
|
||||||
|
|
||||||
</div><div id="api_ttuserbaseinfo_getTtuserbaseinfoDetail">
|
</div><div id="api_ttuserbaseinfo_getTtuserbaseinfoDetail">
|
||||||
<div class="markdown_content">
|
<div class="markdown_content">
|
||||||
***
|
***
|
||||||
@@ -716,6 +754,42 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="api_ttuserbaseinfo_getTtuserbaseinfoDetail_response_result"></div>
|
<div class="api_ttuserbaseinfo_getTtuserbaseinfoDetail_response_result"></div>
|
||||||
|
|
||||||
|
</div><div id="api_tychathistory_getTychathistoryList">
|
||||||
|
<div class="markdown_content">
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取听译-聊天历史
|
||||||
|
*
|
||||||
|
* api/Tychathistory/getTychathistoryList
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* 带分页
|
||||||
|
* current_page 当前页码
|
||||||
|
* list_rows 每页显示条数 默认15
|
||||||
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* username 用户
|
||||||
|
* type 聊天角色
|
||||||
|
* chat_msg 问诊内容
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* create_time 创建时间
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/tychathistory/getTychathistoryList
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
按需填写其它接口参数:
|
||||||
|
<textarea name="" id="api_tychathistory_getTychathistoryList_textarea" cols="100" rows="3">/api/tychathistory/getTychathistoryList</textarea>
|
||||||
|
<a href='JavaScript:;' onclick="DocObject.api_tychathistory_getTychathistoryList()">测试</a>
|
||||||
|
</div>
|
||||||
|
<div class="api_tychathistory_getTychathistoryList_response_result"></div>
|
||||||
|
|
||||||
</div><div id="api_tyfollowup_getTyfollowupDetail">
|
</div><div id="api_tyfollowup_getTyfollowupDetail">
|
||||||
<div class="markdown_content">
|
<div class="markdown_content">
|
||||||
***
|
***
|
||||||
@@ -748,6 +822,44 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="api_tyfollowup_getTyfollowupDetail_response_result"></div>
|
<div class="api_tyfollowup_getTyfollowupDetail_response_result"></div>
|
||||||
|
|
||||||
|
</div><div id="api_tymedicalreport_getTymedicalreportDetail">
|
||||||
|
<div class="markdown_content">
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取听译-病历报告(听译问诊)(一个基本信息对应一个报告)
|
||||||
|
*
|
||||||
|
* api/Tymedicalreport/getTymedicalreportDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* userbaseid 听译病历ID
|
||||||
|
* doctor 所属医生
|
||||||
|
* username 病人
|
||||||
|
* report_content 报告内容
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* diagnostic_result 诊断结果
|
||||||
|
* create_time 生成时间
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/tymedicalreport/getTymedicalreportDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
按需填写其它接口参数:
|
||||||
|
<textarea name="" id="api_tymedicalreport_getTymedicalreportDetail_textarea" cols="100" rows="3">/api/tymedicalreport/getTymedicalreportDetail</textarea>
|
||||||
|
<a href='JavaScript:;' onclick="DocObject.api_tymedicalreport_getTymedicalreportDetail()">测试</a>
|
||||||
|
</div>
|
||||||
|
<div class="api_tymedicalreport_getTymedicalreportDetail_response_result"></div>
|
||||||
|
|
||||||
</div><div id="api_userstt_getSayTicket">
|
</div><div id="api_userstt_getSayTicket">
|
||||||
<div class="markdown_content">
|
<div class="markdown_content">
|
||||||
***
|
***
|
||||||
@@ -1067,18 +1179,36 @@
|
|||||||
$('.api_ttchathistory_getTtchathistoryList_response_result').html(JSON.stringify(res, null, "\t"));
|
$('.api_ttchathistory_getTtchathistoryList_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
$('.api_ttchathistory_getTtchathistoryList_response_result').attr('style','color:green');
|
$('.api_ttchathistory_getTtchathistoryList_response_result').attr('style','color:green');
|
||||||
},'json');
|
},'json');
|
||||||
|
}, api_ttmedicalreport_getTtmedicalreportDetail(){
|
||||||
|
let url = $('#api_ttmedicalreport_getTtmedicalreportDetail_textarea').val();
|
||||||
|
$.post(url,{},function(res) {
|
||||||
|
$('.api_ttmedicalreport_getTtmedicalreportDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
|
$('.api_ttmedicalreport_getTtmedicalreportDetail_response_result').attr('style','color:green');
|
||||||
|
},'json');
|
||||||
}, api_ttuserbaseinfo_getTtuserbaseinfoDetail(){
|
}, api_ttuserbaseinfo_getTtuserbaseinfoDetail(){
|
||||||
let url = $('#api_ttuserbaseinfo_getTtuserbaseinfoDetail_textarea').val();
|
let url = $('#api_ttuserbaseinfo_getTtuserbaseinfoDetail_textarea').val();
|
||||||
$.post(url,{},function(res) {
|
$.post(url,{},function(res) {
|
||||||
$('.api_ttuserbaseinfo_getTtuserbaseinfoDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
$('.api_ttuserbaseinfo_getTtuserbaseinfoDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
$('.api_ttuserbaseinfo_getTtuserbaseinfoDetail_response_result').attr('style','color:green');
|
$('.api_ttuserbaseinfo_getTtuserbaseinfoDetail_response_result').attr('style','color:green');
|
||||||
},'json');
|
},'json');
|
||||||
|
}, api_tychathistory_getTychathistoryList(){
|
||||||
|
let url = $('#api_tychathistory_getTychathistoryList_textarea').val();
|
||||||
|
$.post(url,{},function(res) {
|
||||||
|
$('.api_tychathistory_getTychathistoryList_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
|
$('.api_tychathistory_getTychathistoryList_response_result').attr('style','color:green');
|
||||||
|
},'json');
|
||||||
}, api_tyfollowup_getTyfollowupDetail(){
|
}, api_tyfollowup_getTyfollowupDetail(){
|
||||||
let url = $('#api_tyfollowup_getTyfollowupDetail_textarea').val();
|
let url = $('#api_tyfollowup_getTyfollowupDetail_textarea').val();
|
||||||
$.post(url,{},function(res) {
|
$.post(url,{},function(res) {
|
||||||
$('.api_tyfollowup_getTyfollowupDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
$('.api_tyfollowup_getTyfollowupDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
$('.api_tyfollowup_getTyfollowupDetail_response_result').attr('style','color:green');
|
$('.api_tyfollowup_getTyfollowupDetail_response_result').attr('style','color:green');
|
||||||
},'json');
|
},'json');
|
||||||
|
}, api_tymedicalreport_getTymedicalreportDetail(){
|
||||||
|
let url = $('#api_tymedicalreport_getTymedicalreportDetail_textarea').val();
|
||||||
|
$.post(url,{},function(res) {
|
||||||
|
$('.api_tymedicalreport_getTymedicalreportDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
|
$('.api_tymedicalreport_getTymedicalreportDetail_response_result').attr('style','color:green');
|
||||||
|
},'json');
|
||||||
}, api_userstt_getSayTicket(){
|
}, api_userstt_getSayTicket(){
|
||||||
let url = $('#api_userstt_getSayTicket_textarea').val();
|
let url = $('#api_userstt_getSayTicket_textarea').val();
|
||||||
$.post(url,{},function(res) {
|
$.post(url,{},function(res) {
|
||||||
|
|||||||
@@ -468,7 +468,7 @@
|
|||||||
* 带分页
|
* 带分页
|
||||||
* current_page 当前页码
|
* current_page 当前页码
|
||||||
* list_rows 每页显示条数 默认15
|
* list_rows 每页显示条数 默认15
|
||||||
* userbaseinfo_id 基本信息ID 基本信息ID 必须
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
*
|
*
|
||||||
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
* id ID
|
* id ID
|
||||||
@@ -478,12 +478,41 @@
|
|||||||
* ticket 对话票据(用于隔离用户聊天历史记录)
|
* ticket 对话票据(用于隔离用户聊天历史记录)
|
||||||
* userbaseinfo_id 基本信息ID
|
* userbaseinfo_id 基本信息ID
|
||||||
* create_time 创建时间
|
* create_time 创建时间
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
* author:wh
|
* author:wh
|
||||||
* api/ttchathistory/getTtchathistoryList
|
* api/ttchathistory/getTtchathistoryList
|
||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取疼痛科病历报告(一个基本信息对应一个报告)
|
||||||
|
*
|
||||||
|
* api/Ttmedicalreport/getTtmedicalreportDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* userbaseid 基本信息ID
|
||||||
|
* doctor 所属医生
|
||||||
|
* username 病人
|
||||||
|
* report_content 报告内容
|
||||||
|
* name 病人姓名
|
||||||
|
* phone 病人电话
|
||||||
|
* from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
|
* create_time 生成时间
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/ttmedicalreport/getTtmedicalreportDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
***
|
***
|
||||||
```
|
```
|
||||||
/**
|
/**
|
||||||
@@ -525,6 +554,33 @@
|
|||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取听译-聊天历史
|
||||||
|
*
|
||||||
|
* api/Tychathistory/getTychathistoryList
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* 带分页
|
||||||
|
* current_page 当前页码
|
||||||
|
* list_rows 每页显示条数 默认15
|
||||||
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* username 用户
|
||||||
|
* type 聊天角色
|
||||||
|
* chat_msg 问诊内容
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* create_time 创建时间
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/tychathistory/getTychathistoryList
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
***
|
***
|
||||||
```
|
```
|
||||||
/**
|
/**
|
||||||
@@ -548,6 +604,35 @@
|
|||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取听译-病历报告(听译问诊)(一个基本信息对应一个报告)
|
||||||
|
*
|
||||||
|
* api/Tymedicalreport/getTymedicalreportDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* hdruserbaseinfo_id 统一基本信息 统一基本信息 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* userbaseid 听译病历ID
|
||||||
|
* doctor 所属医生
|
||||||
|
* username 病人
|
||||||
|
* report_content 报告内容
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* diagnostic_result 诊断结果
|
||||||
|
* create_time 生成时间
|
||||||
|
* hdruserbaseinfo_id 统一基本信息
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/tymedicalreport/getTymedicalreportDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
***
|
***
|
||||||
```
|
```
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user