接口文档 / 检查检验接口

创建检查检验单

POST/api/v2/open-agency/examination在线调试

请求参数

名称说明类型
Body 参数
patientId必填

患者ID

string
productSubType必填

商品子类型 1:检验 2:检查

范围:0 ~ 9223372036854776000

integer
doctorId可选

开单医生ID

string
doctorDepartmentId可选

开单医生科室ID

string
operatorId可选

操作人ID,默认为 '00000000000000000000000000000000'

示例:00000000000000000000000000000000

string

请求示例

json
{
  "patientId": "string",
  "productSubType": 0,
  "examinationFormItems": [
    {
      "productId": "string",
      "name": "string",
      "unitCount": 0
    }
  ],
  "doctorId": "string",
  "doctorDepartmentId": "string",
  "operatorId": "00000000000000000000000000000000"
}

响应参数

名称说明类型
Body 参数
data可选

数据

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 状态与业务码排查

ABC 开放平台 · 诊所管家

如有疑问,请扫码加入企业微信群咨询。

企业微信群二维码
没有匹配结果

诊所管家