注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > 阿里健康-本地医疗-通用预约服务

alibaba.alihealth.lab.reservation.lab.report.sync (实验室同步报告)

实验室同步报告

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
lab_sync_report_top_request LabSyncReportTopRequest 必须 同步报告请求
  • check_lab_info
  • CheckLabInfo
  • 必须
  • 实验室信息
  • └ check_lab_name
  • String
  • 可选
  • xx北京实验室
  • 实验室名称
  • └ check_lab_code
  • String
  • 可选
  • LAB_001
  • 实验室编码
  • └ hospital_code
  • String
  • 可选
  • HOS_001
  • 医院编码
  • └ hospital_name
  • String
  • 可选
  • 北医三院
  • 医院名称
  • checker_info
  • CheckerInfo
  • 必须
  • 检测人信息
  • └ checker_id_type
  • String
  • 可选
  • ID_CARD
  • 证件类型
  • └ checker_id_card
  • String
  • 可选
  • 110100……
  • 证件号码
  • └ checker_birthday
  • String
  • 可选
  • 2000-01-01
  • 生日
  • └ checker_phone
  • String
  • 可选
  • 13031138888
  • 手机号
  • └ checker_name
  • String
  • 可选
  • 测试
  • 姓名
  • └ checker_gender
  • String
  • 可选
  • FEMALE
  • 性别:MALE("男性"),FEMALE("女性")
  • └ checker_marital_status
  • String
  • 可选
  • UNMARRIED
  • 婚姻状况:UNMARRIED("未婚"),MARRIED("已婚")
  • specimen_info
  • SpecimenInfo
  • 必须
  • 样本信息
  • └ receive_time
  • String
  • 可选
  • 2026-03-01 10:00:00
  • 样本接收时间
  • └ sampling_time
  • String
  • 可选
  • 2026-03-01 10:00:00
  • 采样时间
  • └ specimen_type
  • String
  • 可选
  • 1
  • 样本类型
  • └ barcode
  • String
  • 必须
  • AL001001001
  • 样本条码
  • └ tube_type
  • String
  • 可选
  • 紫管
  • 管类型
  • └ specimen_status
  • String
  • 可选
  • normal
  • 样本状态
  • report_info_list
  • ReportInfo []
  • 必须
  • List
  • 报告数据
  • └ summary
  • String
  • 可选
  • 总结
  • 总结
  • └ report_id
  • String
  • 必须
  • 357400
  • 报告id
  • └ report_date
  • String
  • 可选
  • 2026-03-01 12:00:00
  • 报告日期
  • └ explanation_and_suggestion
  • String
  • 可选
  • 解释与建议
  • 解释与建议
  • └ recorded_name
  • String
  • 可选
  • 录入人
  • 录入人
  • └ approved_name
  • String
  • 可选
  • 审核人
  • 审核人
  • └ approved_time
  • String
  • 可选
  • 2026-03-01 12:00:00
  • 审核时间
  • └ tested_name
  • String
  • 可选
  • 检验人
  • 检验人
  • └ recorded_time
  • String
  • 可选
  • 2026-03-01 12:00:00
  • 录入时间
  • └ tested_time
  • String
  • 可选
  • 2026-03-01 12:00:00
  • 检验时间
  • └ report_pdf
  • String
  • 可选
  • 报告pdf地址
  • 报告pdf地址
  • mp_list
  • MedicalProcedureInfo []
  • 必须
  • List
  • 医疗检查项列表
  • └ medical_procedure_name
  • String
  • 可选
  • 血液细胞分析
  • 医疗检查项名称
  • └ medical_procedure_code
  • String
  • 可选
  • CBC
  • 医疗检查项code
  • └ check_device
  • String
  • 可选
  • PCR仪
  • 检查设备
  • └ check_method
  • String
  • 可选
  • PCR
  • 检查方法
  • inspect_item_list
  • InspectItem []
  • 必须
  • List
  • 检查项列表
  • └ result
  • String
  • 可选
  • 阴性
  • 结果:阴性、阳性
  • └ reference
  • String
  • 可选
  • 4.0-10.0
  • 参考区间:数值区间、阴性
  • └ item_name
  • String
  • 可选
  • 白细胞计数
  • 检查项名称
  • └ unit
  • String
  • 可选
  • ×10⁹/L
  • 单位
  • └ abnormal_mark
  • String
  • 可选
  • N
  • 异常标识:Y、N
  • └ item_suggestion
  • String
  • 可选
  • 检查建议
  • 检查建议
  • └ result_tip
  • String
  • 可选
  • 结果提示
  • 结果提示
  • └ item_code
  • String
  • 可选
  • WBC
  • 检查项编码
  • └ item_value
  • String
  • 可选
  • 6.8
  • 检查项值
  • └ medical_procedure_type
  • String
  • 可选
  • 血常规
  • 医疗检查类型
  • └ check_success
  • Boolean
  • 必须
  • true
  • 检测结果是否成功 成功true 失败false
  • └ check_failure_reason
  • String
  • 可选
  • 样本漏液;样本量不足
  • 检测失败原因

响应参数

名称 类型 示例值 描述
result_status String SUCCESS SUCCESS:成功; FAIL:失败; UNKNOWN:未知; ACCEPT 待审核
result_code String SUCCESS resultCode
result_msg String SUCCESS resultMsg

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthLabReservationLabReportSyncRequest req = new AlibabaAlihealthLabReservationLabReportSyncRequest();
AlibabaAlihealthLabReservationLabReportSyncRequest.LabSyncReportTopRequest obj1 = new AlibabaAlihealthLabReservationLabReportSyncRequest.LabSyncReportTopRequest();
AlibabaAlihealthLabReservationLabReportSyncRequest.CheckLabInfo obj2 = new AlibabaAlihealthLabReservationLabReportSyncRequest.CheckLabInfo();
obj2.setCheckLabName("xx北京实验室");
obj2.setCheckLabCode("LAB_001");
obj2.setHospitalCode("HOS_001");
obj2.setHospitalName("北医三院");
obj1.setCheckLabInfo(obj2);
AlibabaAlihealthLabReservationLabReportSyncRequest.CheckerInfo obj3 = new AlibabaAlihealthLabReservationLabReportSyncRequest.CheckerInfo();
obj3.setCheckerIdType("ID_CARD");
obj3.setCheckerIdCard("110100……");
obj3.setCheckerBirthday("2000-01-01");
obj3.setCheckerPhone("13031138888");
obj3.setCheckerName("测试");
obj3.setCheckerGender("FEMALE");
obj3.setCheckerMaritalStatus("UNMARRIED");
obj1.setCheckerInfo(obj3);
AlibabaAlihealthLabReservationLabReportSyncRequest.SpecimenInfo obj4 = new AlibabaAlihealthLabReservationLabReportSyncRequest.SpecimenInfo();
obj4.setReceiveTime("2026-03-01 10:00:00");
obj4.setSamplingTime("2026-03-01 10:00:00");
obj4.setSpecimenType("1");
obj4.setBarcode("AL001001001");
obj4.setTubeType("紫管");
obj4.setSpecimenStatus("normal");
obj1.setSpecimenInfo(obj4);
List<AlibabaAlihealthLabReservationLabReportSyncRequest.ReportInfo> list6 = new ArrayList<AlibabaAlihealthLabReservationLabReportSyncRequest.ReportInfo>();
AlibabaAlihealthLabReservationLabReportSyncRequest.ReportInfo obj7 = new AlibabaAlihealthLabReservationLabReportSyncRequest.ReportInfo();
list6.add(obj7);
obj7.setSummary("总结");
obj7.setReportId("357400");
obj7.setReportDate("2026-03-01 12:00:00");
obj7.setExplanationAndSuggestion("解释与建议");
obj7.setRecordedName("录入人");
obj7.setApprovedName("审核人");
obj7.setApprovedTime("2026-03-01 12:00:00");
obj7.setTestedName("检验人");
obj7.setRecordedTime("2026-03-01 12:00:00");
obj7.setTestedTime("2026-03-01 12:00:00");
obj7.setReportPdf("报告pdf地址");
List<AlibabaAlihealthLabReservationLabReportSyncRequest.MedicalProcedureInfo> list10 = new ArrayList<AlibabaAlihealthLabReservationLabReportSyncRequest.MedicalProcedureInfo>();
AlibabaAlihealthLabReservationLabReportSyncRequest.MedicalProcedureInfo obj11 = new AlibabaAlihealthLabReservationLabReportSyncRequest.MedicalProcedureInfo();
list10.add(obj11);
obj11.setMedicalProcedureName("血液细胞分析");
obj11.setMedicalProcedureCode("CBC");
obj11.setCheckDevice("PCR仪");
obj11.setCheckMethod("PCR");
List<AlibabaAlihealthLabReservationLabReportSyncRequest.InspectItem> list14 = new ArrayList<AlibabaAlihealthLabReservationLabReportSyncRequest.InspectItem>();
AlibabaAlihealthLabReservationLabReportSyncRequest.InspectItem obj15 = new AlibabaAlihealthLabReservationLabReportSyncRequest.InspectItem();
list14.add(obj15);
obj15.setResult("阴性");
obj15.setReference("4.0-10.0");
obj15.setItemName("白细胞计数");
obj15.setUnit("×10⁹/L");
obj15.setAbnormalMark("N");
obj15.setItemSuggestion("检查建议");
obj15.setResultTip("结果提示");
obj15.setItemCode("WBC");
obj15.setItemValue("6.8");
list12.setInspectItemList(list14);
obj11.setMedicalProcedureType("血常规");
list8.setMpList(list10);
obj1.setReportInfoList(list6);
obj1.setCheckSuccess(true);
obj1.setCheckFailureReason("样本漏液;样本量不足");
req.setLabSyncReportTopRequest(obj1);
AlibabaAlihealthLabReservationLabReportSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_lab_reservation_lab_report_sync_response>
    <result_status>SUCCESS</result_status>
    <result_code>SUCCESS</result_code>
    <result_msg>SUCCESS</result_msg>
</alibaba_alihealth_lab_reservation_lab_report_sync_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部