主题
报告解读服务 FunctionCode | 暂无
结合患者当前病情描述同科室历史病历文书及检查/检验开立项目,汇总整理输入信息,调用大模型生成结构化的初步病情摘要;若存在预问诊内容,则一并纳入分析,综合生成更准确的诊疗初步判断。
典型应用场景
- 临床辅助决策场景
- AI问诊助手场景
接口1-报告OCR接口
- 请求方式
POST
- Headers
Content-Type: application/json
- Headers
Authorization: Bearer ${access_token}
正式环境 | 测试环境 |
---|---|
https://api.linkingopen.com/service/dt-ai/medical/abstract/generate/get | https://api.linkingopen.com/test/service/dt-ai/medical/abstract/generate/get |
请求参数
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
customerId | 商户ID | String | 是 |
outRecordNo | 复诊订单号 | String | 否 |
deptCode | 科室编码 | String | 是 |
beginDate | 就诊开始时间 | String | 是 |
consultationRecord | 本次咨询会话详情 | consultationRecord | 是 |
medicalInstrumentList | 检查或治疗记录列表 | medicalInstrumentList[] | 是 |
checkDetailList | 检查明细列表 | checkDetail[] | 否 |
preMeadiceRecord | 预问诊记录 | PreMedicalRecord | 否 |
consultationRecord
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
patientSex | 患者性别 男 或 女 | String | 是 |
patientAge | 年龄 | Integer | 是 |
demand | 就诊需求描述 | String | 是 |
chiefComplaint | 主诉 | String | 是 |
fileDescription | 上传的文件,多个文件以; 分开 | String | 否 |
medicalInstrument
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
hospitalName | 医院名称 | String | 是 |
deptName | 科室名称 | String | 是 |
medicalNum | 就诊号 | String | 是 |
visitTime | 就诊时间 | String | 是 |
cheifComplaint | 主诉 | String | 是 |
historyPresentIllness | 现病史 | String | 是 |
pastMedicalHistory | 既往史 | String | 否 |
physical | 体格检查 | String | 否 |
allergyHistory | 过敏史 | String | 否 |
inspection | 检查建议 | String | 否 |
dealWith | 处理意见 | String | 否 |
personalHistory | 个人史 | String | 否 |
vitalSigns | 生命体征 | String | 否 |
diagnosis | 诊断 | String | 是 |
itemList | 开立项目 | ItemList[] | 否 |
medicalInstrument.ItemList
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
itemLabel | 开立的项目名称 | String | 是 |
checkDetailList
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
reportTitle | 报告名称 | String | 是 |
reportDate | 报告开具时间 | String | 是 |
result | 结果 | String | 是 |
resultSummary | 结果小结 | String | 是 |
preMeadiceRecord
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
chiefComplaint | 主诉 | String | 是 |
historyPresentIllness | 现病史 | String | 是 |
pastDiseaseHistory | 既往史 | String | 是 |
physicalExamination | 体格检查 | String | 是 |
auxiliaryExamination | 辅助检查 | String | 是 |
processingMethod | 处理方法 | String | 是 |
personalHistory | 患者史 | String | 否 |
vitalSigns | 生命体征 | String | 否 |
allergyHistory | 过敏史 | String | 否 |
processingOpinion | 处理意见 | String | 否 |
purpose | 治疗目的 | String | 否 |
imageURL | 影像URL | String | 否 |
返回参数
名称 | 描述 | 类型 | 必填 |
---|---|---|---|
abstract | 患者摘要 | String | 是 |
接口示例
参数示例
json
{
"customerId": "CUST123456xxxxxxxxxxxxxxxxxxx",
"outRecordNo": "ORD987654",
"deptCode": "DEPT001",
"beginDate": "2025-07-02 10:30:00",
"consultationRecord": {
"patientSex": "男",
"patientAge": 45,
"demand": "反复咳嗽伴咽痛,希望检查并开药",
"chiefComplaint": "患者近一周咳嗽咽痛",
"fileDescription": "CT结果.pdf;血常规.jpg"
},
"medicalInstrumentList": [
{
"hospitalName": "复旦大学附属肿瘤医院",
"deptName": "核医学科",
"medicalNum": "YZ20250701001",
"visitTime": "2025-07-01 09:00:00",
"cheifComplaint": "腹胀腹痛,偶有恶心",
"historyPresentIllness": "持续性腹痛3天,伴轻微发热,体温最高38.0℃",
"pastMedicalHistory": "高血压10年",
"physical": "腹部压痛,无反跳痛",
"allergyHistory": "青霉素过敏",
"inspection": "建议腹部CT检查",
"dealWith": "暂予对症处理,待检查结果进一步诊断",
"personalHistory": "吸烟20年,偶饮酒",
"vitalSigns": "T:38.0℃,P:88次/分,R:18次/分,BP:135/85mmHg",
"diagnosis": "腹部不适待查",
"itemList": [
{
"itemLabel": "腹部CT平扫"
},
{
"itemLabel": "血常规检查"
}
]
}
],
"checkDetailList": [
{
"reportTitle": "腹部CT检查报告",
"reportDate": "2025-07-01 14:00:00",
"result": "肝脏轻度增大,未见明显占位",
"resultSummary": "建议定期复查"
}
],
"preMeadiceRecord":
{
"chiefComplaint": "患者主诉腹部不适三天",
"historyPresentIllness": "近三日饭后腹胀明显,有轻度恶心",
"pastDiseaseHistory": "既往体健,无重大疾病史",
"physicalExamination": "腹部轻压痛,无肌紧张",
"auxiliaryExamination": "拟行腹部B超",
"processingMethod": "先行对症处理,待检查结果决定下一步",
"personalHistory": "无吸烟饮酒史",
"vitalSigns": "体温37.8℃,脉搏90次/分",
"allergyHistory": "无过敏史",
"processingOpinion": "建议饮食清淡,休息充足",
"purpose": "明确诊断后进行治疗",
"imageURL": "https://example.com/ultrasound/20250701.jpg"
}
}
json
{
"txTime": "2025-07-02 15:20:10",
"code": 0,
"message": "操作成功",
"data": {
"abstract": "中年男性,45岁,主诉反复咳嗽伴咽痛就诊。既往有10年高血压史及青霉素过敏史,长期吸烟20年。近期曾因腹痛、低热(最高38℃)就诊,腹部CT示肝脏轻度增大。需关注呼吸道症状与吸烟史关联性,评估咽部情况及肺部听诊,排除感染因素。"
}
}
SDK示例
Java
public class SDKExample {
public static void main(String[] args) {
// Java示例:初始化SDK并调用一个方法
SDK sdk = new SDK();
sdk.initialize();
sdk.processImage("image.jpg");
}
}
C#
using System;
public class SDKExample {
public static void Main() {
// .NET 示例:初始化SDK并调用方法
SDK sdk = new SDK();
sdk.Initialize();
sdk.ProcessImage("image.jpg");
}
}
Js
async function runExample() {
// Node.js 示例:初始化SDK并调用异步方法
const sdk = new SDK();
await sdk.initialize();
await sdk.processImage('image.jpg');
}
常见业务状态码
错误码 | 描述 | 解决方案 |
---|---|---|
SYSTEM_ERROR | 系统繁忙 | 服务器异常 可能发生了网络或者系统异常,导致服务调用失败,商户可以用同样的请求发起重试 |
INVALID_PARAMETER | 参数有误 | 请根据接口返回的参数非法的具体错误信息,修改参数后进行重试 |
APP_NOT_ONLINE | 小程序未处于上架状态 | 小程序上架状态再操作 |