接口文档 / 检查检验接口
创建检查检验单
POST/api/v2/open-agency/examination在线调试 请求参数
| 名称 | 说明 | 类型 |
|---|
| Body 参数 |
|---|
patientId必填
| | string |
productSubType必填
| | integer |
▸examinationFormItems必填 | | array<object> |
doctorId可选
| | string |
doctorDepartmentId可选
| | string |
operatorId可选
| | string |
请求示例
json
{
"patientId": "string",
"productSubType": 0,
"examinationFormItems": [
{
"productId": "string",
"name": "string",
"unitCount": 0
}
],
"doctorId": "string",
"doctorDepartmentId": "string",
"operatorId": "00000000000000000000000000000000"
}
响应参数
| 名称 | 说明 | 类型 |
|---|
| Body 参数 |
|---|
▾data可选 | | object |
▸examinationSheets必填 | | array<object> |
▸error可选可为空 | | object |
响应示例
json
{
"data": {
"examinationSheets": [
{
"id": "string",
"orderNo": "string",
"productId": "string",
"products": [
{
"productId": "string",
"productName": "string",
"examinationSheetId": "string"
}
],
"productIds": [
"string"
],
"name": "string",
"type": 1,
"deviceType": 0,
"businessType": 0,
"sampleType": "string",
"patientOrderNo": "string",
"patientOrderType": "string",
"departmentId": "string",
"departmentName": "string",
"doctorId": "string",
"doctorName": "string",
"createdTime": "string",
"patientInfo": {
"id": "000000fc446f4dbd989857e305b00d6s",
"name": "张三",
"mobile": 18080000000,
"sex": "男",
"birthday": "1970-08-14",
"age": "60岁2月1天",
"idCard": 630101200010075800,
"idCardType": "身份证",
"visitReason": "string"
},
"status": 0,
"statusName": "待检"
}
]
},
"error": null
}
业务失败包装示意
json
{
"data": null,
"error": {
"code": 11003,
"message": "不支持的授权类型{grantType}"
}
}
查看 HTTP 状态与业务码排查