fixed
This commit is contained in:
@@ -12,8 +12,9 @@ use think\Controller;
|
|||||||
class Hdrmedicalreport extends BaseHttpApi
|
class Hdrmedicalreport extends BaseHttpApi
|
||||||
{
|
{
|
||||||
protected $controller_comments = '问诊报告存档(疼痛科、听译、h5问诊统一存放)(一个基本信息对应一个报告)';
|
protected $controller_comments = '问诊报告存档(疼痛科、听译、h5问诊统一存放)(一个基本信息对应一个报告)';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* desc:病历列表
|
||||||
*
|
*
|
||||||
* api/Hdrmedicalreport/getHdrmedicalreportList
|
* api/Hdrmedicalreport/getHdrmedicalreportList
|
||||||
*
|
*
|
||||||
|
|||||||
103
digital_doctor/application/api/controller/Hdruserbaseinfo.php
Normal file
103
digital_doctor/application/api/controller/Hdruserbaseinfo.php
Normal file
@@ -0,0 +1,103 @@
|
|||||||
|
<?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 Hdruserbaseinfo extends BaseHttpApi
|
||||||
|
{
|
||||||
|
protected $controller_comments = '统一问诊用户基本信息';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* desc:根据所属医生账号、病患姓名和病患电话查询病历
|
||||||
|
*
|
||||||
|
* api/Hdruserbaseinfo/getHdruserbaseinfoDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* doctor 所属医生 所属医生 必须
|
||||||
|
* name 病人姓名 病人姓名 必须
|
||||||
|
* phone 联系方式 联系方式 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* date 日期
|
||||||
|
* doctor 所属医生
|
||||||
|
* hdrdepartment_id 科室
|
||||||
|
* from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* age 病人年龄
|
||||||
|
* edu 教育程度
|
||||||
|
* career_year 职业及年限
|
||||||
|
* power 体力要求
|
||||||
|
* satisfaction 经济满意度
|
||||||
|
* old_career_year 过往职业及年限
|
||||||
|
* old_career_power 过往职业体力要求
|
||||||
|
* support 社会支持度
|
||||||
|
* marriage 婚姻状况
|
||||||
|
* live 居住情况
|
||||||
|
* home 家庭关系
|
||||||
|
* address 地址
|
||||||
|
* phone 联系方式
|
||||||
|
* wechat_no 微信号
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* create_time 创建时间
|
||||||
|
* is_flow 是否接受随访:yes=是,no=否
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
*/
|
||||||
|
function getHdruserbaseinfoDetail(){
|
||||||
|
Tools::log_to_write_txt(['根据所属医生账号、病患姓名和病患电话查询病历 入参:'=>input()]);
|
||||||
|
$api_desc = '根据所属医生账号、病患姓名和病患电话查询病历';
|
||||||
|
try {
|
||||||
|
|
||||||
|
$doctor = input('doctor');
|
||||||
|
if(empty($doctor)){
|
||||||
|
return json(Tools::set_fail('doctor参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
$name = input('name');
|
||||||
|
if(empty($name)){
|
||||||
|
return json(Tools::set_fail('name参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
$phone = input('phone');
|
||||||
|
if(empty($phone)){
|
||||||
|
return json(Tools::set_fail('phone参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$model_obj = Db::table(TabConf::$fa_hdruserbaseinfo);
|
||||||
|
|
||||||
|
if(input('doctor')){
|
||||||
|
$model_obj->where('doctor',input('doctor'));
|
||||||
|
}
|
||||||
|
if(input('name')){
|
||||||
|
$model_obj->where('name',input('name'));
|
||||||
|
}
|
||||||
|
if(input('phone')){
|
||||||
|
$model_obj->where('phone',input('phone'));
|
||||||
|
}
|
||||||
|
$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,'操作异常',[]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -146,8 +146,6 @@ class Reporttt extends BaseHttpApi
|
|||||||
// //["role" => "user", "content" => '']
|
// //["role" => "user", "content" => '']
|
||||||
//];
|
//];
|
||||||
|
|
||||||
//保存疼痛科聊天记录
|
|
||||||
$this->setTtChatHistory($sub_content,$user['username'],$ticket);
|
|
||||||
|
|
||||||
//chatGpt设置前置聊天上下文
|
//chatGpt设置前置聊天上下文
|
||||||
$chatobj->setBefore($sub_content);
|
$chatobj->setBefore($sub_content);
|
||||||
@@ -185,6 +183,8 @@ class Reporttt extends BaseHttpApi
|
|||||||
foreach ($data as $item){
|
foreach ($data as $item){
|
||||||
//只新增不修改
|
//只新增不修改
|
||||||
$DATAID = Db::table('fa_tt_userbaseinfo')->insert($basedata);
|
$DATAID = Db::table('fa_tt_userbaseinfo')->insert($basedata);
|
||||||
|
//保存疼痛科聊天记录
|
||||||
|
$this->setTtChatHistory($sub_content,$user['username'],$DATAID,$ticket);
|
||||||
$item['userbaseid'] = $DATAID;
|
$item['userbaseid'] = $DATAID;
|
||||||
$item['from'] = input('from','num_per');//来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
$item['from'] = input('from','num_per');//来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
Db::table('fa_tt_medical_report')->insert($item);
|
Db::table('fa_tt_medical_report')->insert($item);
|
||||||
@@ -208,7 +208,7 @@ class Reporttt extends BaseHttpApi
|
|||||||
* author:wh
|
* author:wh
|
||||||
* @param $sub_content
|
* @param $sub_content
|
||||||
*/
|
*/
|
||||||
private function setTtChatHistory($sub_content,$username,$ticket){
|
private function setTtChatHistory($sub_content,$username,$userbaseinfo_id,$ticket){
|
||||||
//$content = [
|
//$content = [
|
||||||
// //["role" => "user", "content" => '']
|
// //["role" => "user", "content" => '']
|
||||||
//];
|
//];
|
||||||
@@ -220,6 +220,7 @@ class Reporttt extends BaseHttpApi
|
|||||||
'type'=>empty($content[0])?'':$content[0],
|
'type'=>empty($content[0])?'':$content[0],
|
||||||
'chat_msg'=>$item['content'],
|
'chat_msg'=>$item['content'],
|
||||||
'ticket'=>$ticket,
|
'ticket'=>$ticket,
|
||||||
|
'userbaseinfo_id'=>$userbaseinfo_id,
|
||||||
];
|
];
|
||||||
$data[] = $d;
|
$data[] = $d;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -251,10 +251,10 @@ class Reportty extends BaseHttpApi
|
|||||||
if(empty($medicalrecord)){
|
if(empty($medicalrecord)){
|
||||||
$data['ticket'] = $ticket;
|
$data['ticket'] = $ticket;
|
||||||
//新增听译病历信息
|
//新增听译病历信息
|
||||||
$userbaseid = Db::table('fa_ty_usermedicalrecord')->insertGetId($data);
|
$usermedicalrecord_id = Db::table('fa_ty_usermedicalrecord')->insertGetId($data);
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
$userbaseid = $medicalrecord['id'];
|
$usermedicalrecord_id = $medicalrecord['id'];
|
||||||
Db::table('fa_ty_usermedicalrecord')
|
Db::table('fa_ty_usermedicalrecord')
|
||||||
->where('ticket',$ticket)
|
->where('ticket',$ticket)
|
||||||
->update($data);
|
->update($data);
|
||||||
@@ -309,7 +309,8 @@ EOF;
|
|||||||
Db::table('fa_ty_medical_report')
|
Db::table('fa_ty_medical_report')
|
||||||
->where('id',$dataid)
|
->where('id',$dataid)
|
||||||
->data([
|
->data([
|
||||||
'userbaseid'=>$userbaseid,//创建报告的时候这个字段是空,修改报告再补填这个字段
|
//病历信息id
|
||||||
|
'userbaseid'=>$usermedicalrecord_id,//创建报告的时候这个字段是空,修改报告再补填这个字段
|
||||||
'report_content'=>$str,
|
'report_content'=>$str,
|
||||||
'name'=>$data['name'],
|
'name'=>$data['name'],
|
||||||
'gender'=>$data['gender'],
|
'gender'=>$data['gender'],
|
||||||
@@ -321,11 +322,11 @@ EOF;
|
|||||||
Db::table(TabConf::$fa_hdrmedical_report)
|
Db::table(TabConf::$fa_hdrmedical_report)
|
||||||
->where('id',$dataid)
|
->where('id',$dataid)
|
||||||
->data([
|
->data([
|
||||||
'userbaseid'=>$userbaseid,//创建报告的时候这个字段是空,修改报告再补填这个字段
|
//病历信息id
|
||||||
|
'userbaseid'=>$usermedicalrecord_id,//创建报告的时候这个字段是空,修改报告再补填这个字段
|
||||||
'report_content'=>$str,
|
'report_content'=>$str,
|
||||||
'name'=>$data['name'],
|
'name'=>$data['name'],
|
||||||
'gender'=>$data['gender'],
|
'gender'=>$data['gender'],
|
||||||
'diagnostic_result'=>input('diagnostic_result',''),
|
|
||||||
])
|
])
|
||||||
->update();
|
->update();
|
||||||
|
|
||||||
|
|||||||
@@ -14,36 +14,58 @@ class Ttchathistory extends BaseHttpApi
|
|||||||
protected $controller_comments = '疼痛科聊天历史';
|
protected $controller_comments = '疼痛科聊天历史';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* desc:获取数智人固定问答聊天历史
|
* desc:获取疼痛科聊天历史
|
||||||
*
|
*
|
||||||
* api/Ttchathistory/getTtchathistoryList
|
* api/Ttchathistory/getTtchathistoryList
|
||||||
*
|
*
|
||||||
* 参数:
|
* 参数:
|
||||||
|
* 带分页
|
||||||
|
* current_page 当前页码
|
||||||
|
* list_rows 每页显示条数 默认15
|
||||||
|
* userbaseinfo_id 基本信息ID 基本信息ID 必须
|
||||||
*
|
*
|
||||||
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
* id ID
|
* id ID
|
||||||
* username 聊天用户
|
* username 用户
|
||||||
* relation 医生患者关系
|
* type 聊天角色
|
||||||
* chat_msg 问诊内容
|
* chat_msg 问诊内容
|
||||||
|
* ticket 对话票据(用于隔离用户聊天历史记录)
|
||||||
|
* userbaseinfo_id 基本信息ID
|
||||||
* create_time 创建时间
|
* create_time 创建时间
|
||||||
|
|
||||||
* author:wh
|
* author:wh
|
||||||
*/
|
*/
|
||||||
function getTtchathistoryList(){
|
function getTtchathistoryList(){
|
||||||
Tools::log_to_write_txt(['获取数智人固定问答聊天历史 入参:'=>input()]);
|
Tools::log_to_write_txt(['获取疼痛科聊天历史 入参:'=>input()]);
|
||||||
$api_desc = '获取数智人固定问答聊天历史';
|
$api_desc = '获取疼痛科聊天历史';
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
$userbaseinfo_id = input('userbaseinfo_id');
|
||||||
|
if(empty($userbaseinfo_id)){
|
||||||
|
return json(Tools::set_fail('userbaseinfo_id参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$model_obj = Db::table(TabConf::$fa_tt_chathistory);
|
$model_obj = Db::table(TabConf::$fa_tt_chathistory);
|
||||||
|
|
||||||
$data = $model_obj->select();
|
if(input('userbaseinfo_id')){
|
||||||
if(empty($data)){
|
$model_obj->where('userbaseinfo_id',input('userbaseinfo_id'));
|
||||||
return json(Tools::set_ok('ok',$data));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$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列表
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -51,7 +73,7 @@ class Ttchathistory extends BaseHttpApi
|
|||||||
return json(Tools::set_ok('ok',$data));
|
return json(Tools::set_ok('ok',$data));
|
||||||
}catch(\Exception $e){
|
}catch(\Exception $e){
|
||||||
Tools::log_to_write_txt([
|
Tools::log_to_write_txt([
|
||||||
'error'=>'获取数智人固定问答聊天历史.异常.'.$e->getMessage(),
|
'error'=>'获取疼痛科聊天历史.异常.'.$e->getMessage(),
|
||||||
'参数'=>input(),
|
'参数'=>input(),
|
||||||
'error_info'=>$e->getTraceAsString()
|
'error_info'=>$e->getTraceAsString()
|
||||||
]);
|
]);
|
||||||
|
|||||||
101
digital_doctor/application/api/controller/Ttuserbaseinfo.php
Normal file
101
digital_doctor/application/api/controller/Ttuserbaseinfo.php
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
<?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 Ttuserbaseinfo extends BaseHttpApi
|
||||||
|
{
|
||||||
|
protected $controller_comments = '疼痛科用户基本信息';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* desc:查询数字人数据
|
||||||
|
*
|
||||||
|
* api/Ttuserbaseinfo/getTtuserbaseinfoDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* doctor 所属医生 所属医生 必须
|
||||||
|
* name 病人姓名 病人姓名 必须
|
||||||
|
* phone 联系方式 联系方式 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* doctor 所属医生
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* age 病人年龄
|
||||||
|
* edu 教育程度
|
||||||
|
* career_year 职业及年限
|
||||||
|
* power 体力要求
|
||||||
|
* satisfaction 经济满意度
|
||||||
|
* old_career_year 过往职业及年限
|
||||||
|
* old_career_power 过往职业体力要求
|
||||||
|
* support 社会支持度
|
||||||
|
* marriage 婚姻状况
|
||||||
|
* live 居住情况
|
||||||
|
* home 家庭关系
|
||||||
|
* address 地址
|
||||||
|
* phone 联系方式
|
||||||
|
* wechat_no 微信号
|
||||||
|
* create_time 创建时间
|
||||||
|
* is_flow 是否接受随访:yes=是,no=否
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* hdrdepartment_id 科室
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
*/
|
||||||
|
function getTtuserbaseinfoDetail(){
|
||||||
|
Tools::log_to_write_txt(['查询数字人数据 入参:'=>input()]);
|
||||||
|
$api_desc = '查询数字人数据';
|
||||||
|
try {
|
||||||
|
|
||||||
|
$doctor = input('doctor');
|
||||||
|
if(empty($doctor)){
|
||||||
|
return json(Tools::set_fail('doctor参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
$name = input('name');
|
||||||
|
if(empty($name)){
|
||||||
|
return json(Tools::set_fail('name参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
$phone = input('phone');
|
||||||
|
if(empty($phone)){
|
||||||
|
return json(Tools::set_fail('phone参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$model_obj = Db::table(TabConf::$fa_tt_userbaseinfo);
|
||||||
|
|
||||||
|
if(input('doctor')){
|
||||||
|
$model_obj->where('doctor',input('doctor'));
|
||||||
|
}
|
||||||
|
if(input('name')){
|
||||||
|
$model_obj->where('name',input('name'));
|
||||||
|
}
|
||||||
|
if(input('phone')){
|
||||||
|
$model_obj->where('phone',input('phone'));
|
||||||
|
}
|
||||||
|
$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,'操作异常',[]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
67
digital_doctor/application/api/controller/Tyfollowup.php
Normal file
67
digital_doctor/application/api/controller/Tyfollowup.php
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
<?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 Tyfollowup extends BaseHttpApi
|
||||||
|
{
|
||||||
|
protected $controller_comments = '随访记录(听译助手)';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* desc:获取随访记录(听译助手)
|
||||||
|
*
|
||||||
|
* api/Tyfollowup/getTyfollowupDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* report_dataid 报告ID 报告ID 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* report_dataid 报告ID
|
||||||
|
* name 姓名
|
||||||
|
* phone 电话
|
||||||
|
* content 随访内容
|
||||||
|
* create_time 随访时间
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
*/
|
||||||
|
function getTyfollowupDetail(){
|
||||||
|
Tools::log_to_write_txt(['获取随访记录(听译助手) 入参:'=>input()]);
|
||||||
|
$api_desc = '获取随访记录(听译助手)';
|
||||||
|
try {
|
||||||
|
|
||||||
|
$report_dataid = input('report_dataid');
|
||||||
|
if(empty($report_dataid)){
|
||||||
|
return json(Tools::set_fail('report_dataid参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$model_obj = Db::table(TabConf::$fa_ty_followup);
|
||||||
|
|
||||||
|
if(input('report_dataid')){
|
||||||
|
$model_obj->where('report_dataid',input('report_dataid'));
|
||||||
|
}
|
||||||
|
$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,'操作异常',[]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
<?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 Tyusermedicalrecord extends BaseHttpApi
|
||||||
|
{
|
||||||
|
protected $controller_comments = '听译问诊-患者病历信息';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* desc:获取听译问诊-患者病历信息
|
||||||
|
*
|
||||||
|
* api/Tyusermedicalrecord/getTyusermedicalrecordDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* username 所属医生 所属医生 必须
|
||||||
|
* name 病人姓名 病人姓名 必须
|
||||||
|
* phone 联系方式 联系方式 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* username 所属医生
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* age 病人年龄
|
||||||
|
* main_complaint 主诉
|
||||||
|
* medical_history 病史
|
||||||
|
* past_history 既往史
|
||||||
|
* allergy_history 过敏史
|
||||||
|
* family_history 家族史
|
||||||
|
* personal_history 个人史
|
||||||
|
* menstrual_marital_history 月经婚育史
|
||||||
|
* diagnosis 诊断
|
||||||
|
* treatment 医嘱
|
||||||
|
* phone 联系方式
|
||||||
|
* status 问诊状态
|
||||||
|
* create_time 创建时间
|
||||||
|
* ticket 对话票据
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
*/
|
||||||
|
function getTyusermedicalrecordDetail(){
|
||||||
|
Tools::log_to_write_txt(['获取听译问诊-患者病历信息 入参:'=>input()]);
|
||||||
|
$api_desc = '获取听译问诊-患者病历信息';
|
||||||
|
try {
|
||||||
|
|
||||||
|
$username = input('username');
|
||||||
|
if(empty($username)){
|
||||||
|
return json(Tools::set_fail('username参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
$name = input('name');
|
||||||
|
if(empty($name)){
|
||||||
|
return json(Tools::set_fail('name参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
$phone = input('phone');
|
||||||
|
if(empty($phone)){
|
||||||
|
return json(Tools::set_fail('phone参数错误'));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
$model_obj = Db::table(TabConf::$fa_ty_usermedicalrecord);
|
||||||
|
|
||||||
|
if(input('username')){
|
||||||
|
$model_obj->where('username',input('username'));
|
||||||
|
}
|
||||||
|
if(input('name')){
|
||||||
|
$model_obj->where('name',input('name'));
|
||||||
|
}
|
||||||
|
if(input('phone')){
|
||||||
|
$model_obj->where('phone',input('phone'));
|
||||||
|
}
|
||||||
|
$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,'操作异常',[]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@@ -39,7 +39,7 @@
|
|||||||
***
|
***
|
||||||
```
|
```
|
||||||
/**
|
/**
|
||||||
* desc:获取问诊报告存档(疼痛科、听译、h5问诊统一存放)(一个基本信息对应一个报告)
|
* desc:病历列表
|
||||||
*
|
*
|
||||||
* api/Hdrmedicalreport/getHdrmedicalreportList
|
* api/Hdrmedicalreport/getHdrmedicalreportList
|
||||||
*
|
*
|
||||||
@@ -238,6 +238,58 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="api_hdrregister_getHdrregisterList_response_result"></div>
|
<div class="api_hdrregister_getHdrregisterList_response_result"></div>
|
||||||
|
|
||||||
|
</div><div id="api_hdruserbaseinfo_getHdruserbaseinfoDetail">
|
||||||
|
<div class="markdown_content">
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:根据所属医生账号、病患姓名和病患电话查询病历
|
||||||
|
*
|
||||||
|
* api/Hdruserbaseinfo/getHdruserbaseinfoDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* doctor 所属医生 所属医生 必须
|
||||||
|
* name 病人姓名 病人姓名 必须
|
||||||
|
* phone 联系方式 联系方式 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* date 日期
|
||||||
|
* doctor 所属医生
|
||||||
|
* hdrdepartment_id 科室
|
||||||
|
* from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* age 病人年龄
|
||||||
|
* edu 教育程度
|
||||||
|
* career_year 职业及年限
|
||||||
|
* power 体力要求
|
||||||
|
* satisfaction 经济满意度
|
||||||
|
* old_career_year 过往职业及年限
|
||||||
|
* old_career_power 过往职业体力要求
|
||||||
|
* support 社会支持度
|
||||||
|
* marriage 婚姻状况
|
||||||
|
* live 居住情况
|
||||||
|
* home 家庭关系
|
||||||
|
* address 地址
|
||||||
|
* phone 联系方式
|
||||||
|
* wechat_no 微信号
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* create_time 创建时间
|
||||||
|
* is_flow 是否接受随访:yes=是,no=否
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/hdruserbaseinfo/getHdruserbaseinfoDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
按需填写其它接口参数:
|
||||||
|
<textarea name="" id="api_hdruserbaseinfo_getHdruserbaseinfoDetail_textarea" cols="100" rows="3">/api/hdruserbaseinfo/getHdruserbaseinfoDetail</textarea>
|
||||||
|
<a href='JavaScript:;' onclick="DocObject.api_hdruserbaseinfo_getHdruserbaseinfoDetail()">测试</a>
|
||||||
|
</div>
|
||||||
|
<div class="api_hdruserbaseinfo_getHdruserbaseinfoDetail_response_result"></div>
|
||||||
|
|
||||||
</div><div id="api_reporttt_createReport">
|
</div><div id="api_reporttt_createReport">
|
||||||
<div class="markdown_content">
|
<div class="markdown_content">
|
||||||
***
|
***
|
||||||
@@ -467,18 +519,23 @@
|
|||||||
***
|
***
|
||||||
```
|
```
|
||||||
/**
|
/**
|
||||||
* desc:获取数智人固定问答聊天历史
|
* desc:获取疼痛科聊天历史
|
||||||
*
|
*
|
||||||
* api/Ttchathistory/getTtchathistoryList
|
* api/Ttchathistory/getTtchathistoryList
|
||||||
*
|
*
|
||||||
* 参数:
|
* 参数:
|
||||||
|
* 带分页
|
||||||
|
* current_page 当前页码
|
||||||
|
* list_rows 每页显示条数 默认15
|
||||||
|
* userbaseinfo_id 基本信息ID 基本信息ID 必须
|
||||||
*
|
*
|
||||||
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
* id ID
|
* id ID
|
||||||
* username 聊天用户
|
* username 用户
|
||||||
* relation 医生患者关系
|
* type 聊天角色
|
||||||
* chat_msg 问诊内容
|
* chat_msg 问诊内容
|
||||||
|
* ticket 对话票据(用于隔离用户聊天历史记录)
|
||||||
|
* userbaseinfo_id 基本信息ID
|
||||||
* create_time 创建时间
|
* create_time 创建时间
|
||||||
|
|
||||||
* author:wh
|
* author:wh
|
||||||
@@ -493,6 +550,134 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="api_ttchathistory_getTtchathistoryList_response_result"></div>
|
<div class="api_ttchathistory_getTtchathistoryList_response_result"></div>
|
||||||
|
|
||||||
|
</div><div id="api_ttuserbaseinfo_getTtuserbaseinfoDetail">
|
||||||
|
<div class="markdown_content">
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:查询数字人数据
|
||||||
|
*
|
||||||
|
* api/Ttuserbaseinfo/getTtuserbaseinfoDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* doctor 所属医生 所属医生 必须
|
||||||
|
* name 病人姓名 病人姓名 必须
|
||||||
|
* phone 联系方式 联系方式 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* doctor 所属医生
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* age 病人年龄
|
||||||
|
* edu 教育程度
|
||||||
|
* career_year 职业及年限
|
||||||
|
* power 体力要求
|
||||||
|
* satisfaction 经济满意度
|
||||||
|
* old_career_year 过往职业及年限
|
||||||
|
* old_career_power 过往职业体力要求
|
||||||
|
* support 社会支持度
|
||||||
|
* marriage 婚姻状况
|
||||||
|
* live 居住情况
|
||||||
|
* home 家庭关系
|
||||||
|
* address 地址
|
||||||
|
* phone 联系方式
|
||||||
|
* wechat_no 微信号
|
||||||
|
* create_time 创建时间
|
||||||
|
* is_flow 是否接受随访:yes=是,no=否
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* hdrdepartment_id 科室
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/ttuserbaseinfo/getTtuserbaseinfoDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
按需填写其它接口参数:
|
||||||
|
<textarea name="" id="api_ttuserbaseinfo_getTtuserbaseinfoDetail_textarea" cols="100" rows="3">/api/ttuserbaseinfo/getTtuserbaseinfoDetail</textarea>
|
||||||
|
<a href='JavaScript:;' onclick="DocObject.api_ttuserbaseinfo_getTtuserbaseinfoDetail()">测试</a>
|
||||||
|
</div>
|
||||||
|
<div class="api_ttuserbaseinfo_getTtuserbaseinfoDetail_response_result"></div>
|
||||||
|
|
||||||
|
</div><div id="api_tyfollowup_getTyfollowupDetail">
|
||||||
|
<div class="markdown_content">
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取随访记录(听译助手)
|
||||||
|
*
|
||||||
|
* api/Tyfollowup/getTyfollowupDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* report_dataid 报告ID 报告ID 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* report_dataid 报告ID
|
||||||
|
* name 姓名
|
||||||
|
* phone 电话
|
||||||
|
* content 随访内容
|
||||||
|
* create_time 随访时间
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/tyfollowup/getTyfollowupDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
按需填写其它接口参数:
|
||||||
|
<textarea name="" id="api_tyfollowup_getTyfollowupDetail_textarea" cols="100" rows="3">/api/tyfollowup/getTyfollowupDetail</textarea>
|
||||||
|
<a href='JavaScript:;' onclick="DocObject.api_tyfollowup_getTyfollowupDetail()">测试</a>
|
||||||
|
</div>
|
||||||
|
<div class="api_tyfollowup_getTyfollowupDetail_response_result"></div>
|
||||||
|
|
||||||
|
</div><div id="api_tyusermedicalrecord_getTyusermedicalrecordDetail">
|
||||||
|
<div class="markdown_content">
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取听译问诊-患者病历信息
|
||||||
|
*
|
||||||
|
* api/Tyusermedicalrecord/getTyusermedicalrecordDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* username 所属医生 所属医生 必须
|
||||||
|
* name 病人姓名 病人姓名 必须
|
||||||
|
* phone 联系方式 联系方式 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* username 所属医生
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* age 病人年龄
|
||||||
|
* main_complaint 主诉
|
||||||
|
* medical_history 病史
|
||||||
|
* past_history 既往史
|
||||||
|
* allergy_history 过敏史
|
||||||
|
* family_history 家族史
|
||||||
|
* personal_history 个人史
|
||||||
|
* menstrual_marital_history 月经婚育史
|
||||||
|
* diagnosis 诊断
|
||||||
|
* treatment 医嘱
|
||||||
|
* phone 联系方式
|
||||||
|
* status 问诊状态
|
||||||
|
* create_time 创建时间
|
||||||
|
* ticket 对话票据
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/tyusermedicalrecord/getTyusermedicalrecordDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
按需填写其它接口参数:
|
||||||
|
<textarea name="" id="api_tyusermedicalrecord_getTyusermedicalrecordDetail_textarea" cols="100" rows="3">/api/tyusermedicalrecord/getTyusermedicalrecordDetail</textarea>
|
||||||
|
<a href='JavaScript:;' onclick="DocObject.api_tyusermedicalrecord_getTyusermedicalrecordDetail()">测试</a>
|
||||||
|
</div>
|
||||||
|
<div class="api_tyusermedicalrecord_getTyusermedicalrecordDetail_response_result"></div>
|
||||||
|
|
||||||
</div><div id="api_userstt_getSayTicket">
|
</div><div id="api_userstt_getSayTicket">
|
||||||
<div class="markdown_content">
|
<div class="markdown_content">
|
||||||
***
|
***
|
||||||
@@ -728,6 +913,12 @@
|
|||||||
$('.api_hdrregister_getHdrregisterList_response_result').html(JSON.stringify(res, null, "\t"));
|
$('.api_hdrregister_getHdrregisterList_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
$('.api_hdrregister_getHdrregisterList_response_result').attr('style','color:green');
|
$('.api_hdrregister_getHdrregisterList_response_result').attr('style','color:green');
|
||||||
},'json');
|
},'json');
|
||||||
|
}, api_hdruserbaseinfo_getHdruserbaseinfoDetail(){
|
||||||
|
let url = $('#api_hdruserbaseinfo_getHdruserbaseinfoDetail_textarea').val();
|
||||||
|
$.post(url,{},function(res) {
|
||||||
|
$('.api_hdruserbaseinfo_getHdruserbaseinfoDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
|
$('.api_hdruserbaseinfo_getHdruserbaseinfoDetail_response_result').attr('style','color:green');
|
||||||
|
},'json');
|
||||||
}, api_reporttt_createReport(){
|
}, api_reporttt_createReport(){
|
||||||
let url = $('#api_reporttt_createReport_textarea').val();
|
let url = $('#api_reporttt_createReport_textarea').val();
|
||||||
$.post(url,{},function(res) {
|
$.post(url,{},function(res) {
|
||||||
@@ -782,6 +973,24 @@
|
|||||||
$('.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_ttuserbaseinfo_getTtuserbaseinfoDetail(){
|
||||||
|
let url = $('#api_ttuserbaseinfo_getTtuserbaseinfoDetail_textarea').val();
|
||||||
|
$.post(url,{},function(res) {
|
||||||
|
$('.api_ttuserbaseinfo_getTtuserbaseinfoDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
|
$('.api_ttuserbaseinfo_getTtuserbaseinfoDetail_response_result').attr('style','color:green');
|
||||||
|
},'json');
|
||||||
|
}, api_tyfollowup_getTyfollowupDetail(){
|
||||||
|
let url = $('#api_tyfollowup_getTyfollowupDetail_textarea').val();
|
||||||
|
$.post(url,{},function(res) {
|
||||||
|
$('.api_tyfollowup_getTyfollowupDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
|
$('.api_tyfollowup_getTyfollowupDetail_response_result').attr('style','color:green');
|
||||||
|
},'json');
|
||||||
|
}, api_tyusermedicalrecord_getTyusermedicalrecordDetail(){
|
||||||
|
let url = $('#api_tyusermedicalrecord_getTyusermedicalrecordDetail_textarea').val();
|
||||||
|
$.post(url,{},function(res) {
|
||||||
|
$('.api_tyusermedicalrecord_getTyusermedicalrecordDetail_response_result').html(JSON.stringify(res, null, "\t"));
|
||||||
|
$('.api_tyusermedicalrecord_getTyusermedicalrecordDetail_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) {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
***
|
***
|
||||||
```
|
```
|
||||||
/**
|
/**
|
||||||
* desc:获取问诊报告存档(疼痛科、听译、h5问诊统一存放)(一个基本信息对应一个报告)
|
* desc:病历列表
|
||||||
*
|
*
|
||||||
* api/Hdrmedicalreport/getHdrmedicalreportList
|
* api/Hdrmedicalreport/getHdrmedicalreportList
|
||||||
*
|
*
|
||||||
@@ -182,6 +182,49 @@
|
|||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:根据所属医生账号、病患姓名和病患电话查询病历
|
||||||
|
*
|
||||||
|
* api/Hdruserbaseinfo/getHdruserbaseinfoDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* doctor 所属医生 所属医生 必须
|
||||||
|
* name 病人姓名 病人姓名 必须
|
||||||
|
* phone 联系方式 联系方式 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* date 日期
|
||||||
|
* doctor 所属医生
|
||||||
|
* hdrdepartment_id 科室
|
||||||
|
* from 来源:num_per=数智人,ty=听译助手,h5=h5网页问诊
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* age 病人年龄
|
||||||
|
* edu 教育程度
|
||||||
|
* career_year 职业及年限
|
||||||
|
* power 体力要求
|
||||||
|
* satisfaction 经济满意度
|
||||||
|
* old_career_year 过往职业及年限
|
||||||
|
* old_career_power 过往职业体力要求
|
||||||
|
* support 社会支持度
|
||||||
|
* marriage 婚姻状况
|
||||||
|
* live 居住情况
|
||||||
|
* home 家庭关系
|
||||||
|
* address 地址
|
||||||
|
* phone 联系方式
|
||||||
|
* wechat_no 微信号
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* create_time 创建时间
|
||||||
|
* is_flow 是否接受随访:yes=是,no=否
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/hdruserbaseinfo/getHdruserbaseinfoDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
***
|
***
|
||||||
```
|
```
|
||||||
/**
|
/**
|
||||||
@@ -337,18 +380,23 @@
|
|||||||
***
|
***
|
||||||
```
|
```
|
||||||
/**
|
/**
|
||||||
* desc:获取数智人固定问答聊天历史
|
* desc:获取疼痛科聊天历史
|
||||||
*
|
*
|
||||||
* api/Ttchathistory/getTtchathistoryList
|
* api/Ttchathistory/getTtchathistoryList
|
||||||
*
|
*
|
||||||
* 参数:
|
* 参数:
|
||||||
|
* 带分页
|
||||||
|
* current_page 当前页码
|
||||||
|
* list_rows 每页显示条数 默认15
|
||||||
|
* userbaseinfo_id 基本信息ID 基本信息ID 必须
|
||||||
*
|
*
|
||||||
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
* id ID
|
* id ID
|
||||||
* username 聊天用户
|
* username 用户
|
||||||
* relation 医生患者关系
|
* type 聊天角色
|
||||||
* chat_msg 问诊内容
|
* chat_msg 问诊内容
|
||||||
|
* ticket 对话票据(用于隔离用户聊天历史记录)
|
||||||
|
* userbaseinfo_id 基本信息ID
|
||||||
* create_time 创建时间
|
* create_time 创建时间
|
||||||
|
|
||||||
* author:wh
|
* author:wh
|
||||||
@@ -356,6 +404,107 @@
|
|||||||
*/
|
*/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:查询数字人数据
|
||||||
|
*
|
||||||
|
* api/Ttuserbaseinfo/getTtuserbaseinfoDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* doctor 所属医生 所属医生 必须
|
||||||
|
* name 病人姓名 病人姓名 必须
|
||||||
|
* phone 联系方式 联系方式 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* doctor 所属医生
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* age 病人年龄
|
||||||
|
* edu 教育程度
|
||||||
|
* career_year 职业及年限
|
||||||
|
* power 体力要求
|
||||||
|
* satisfaction 经济满意度
|
||||||
|
* old_career_year 过往职业及年限
|
||||||
|
* old_career_power 过往职业体力要求
|
||||||
|
* support 社会支持度
|
||||||
|
* marriage 婚姻状况
|
||||||
|
* live 居住情况
|
||||||
|
* home 家庭关系
|
||||||
|
* address 地址
|
||||||
|
* phone 联系方式
|
||||||
|
* wechat_no 微信号
|
||||||
|
* create_time 创建时间
|
||||||
|
* is_flow 是否接受随访:yes=是,no=否
|
||||||
|
* ticket 对话票据(数据隔离)
|
||||||
|
* hdrdepartment_id 科室
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/ttuserbaseinfo/getTtuserbaseinfoDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取随访记录(听译助手)
|
||||||
|
*
|
||||||
|
* api/Tyfollowup/getTyfollowupDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* report_dataid 报告ID 报告ID 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* report_dataid 报告ID
|
||||||
|
* name 姓名
|
||||||
|
* phone 电话
|
||||||
|
* content 随访内容
|
||||||
|
* create_time 随访时间
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/tyfollowup/getTyfollowupDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
|
***
|
||||||
|
```
|
||||||
|
/**
|
||||||
|
* desc:获取听译问诊-患者病历信息
|
||||||
|
*
|
||||||
|
* api/Tyusermedicalrecord/getTyusermedicalrecordDetail
|
||||||
|
*
|
||||||
|
* 参数:
|
||||||
|
* username 所属医生 所属医生 必须
|
||||||
|
* name 病人姓名 病人姓名 必须
|
||||||
|
* phone 联系方式 联系方式 必须
|
||||||
|
*
|
||||||
|
* 所有字段说明<span style="color: gray">(可能有部分额外字段未在此体现)</span>:
|
||||||
|
* id ID
|
||||||
|
* username 所属医生
|
||||||
|
* name 病人姓名
|
||||||
|
* gender 病人性别
|
||||||
|
* age 病人年龄
|
||||||
|
* main_complaint 主诉
|
||||||
|
* medical_history 病史
|
||||||
|
* past_history 既往史
|
||||||
|
* allergy_history 过敏史
|
||||||
|
* family_history 家族史
|
||||||
|
* personal_history 个人史
|
||||||
|
* menstrual_marital_history 月经婚育史
|
||||||
|
* diagnosis 诊断
|
||||||
|
* treatment 医嘱
|
||||||
|
* phone 联系方式
|
||||||
|
* status 问诊状态
|
||||||
|
* create_time 创建时间
|
||||||
|
* ticket 对话票据
|
||||||
|
|
||||||
|
* author:wh
|
||||||
|
* api/tyusermedicalrecord/getTyusermedicalrecordDetail
|
||||||
|
*/
|
||||||
|
```
|
||||||
|
|
||||||
***
|
***
|
||||||
```
|
```
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user