• 250
  • 246
  • 28

医院挂号预约

聚合数据 支持HTTPS 企业专用

此接口为测试环境,开发后需审核完成后找客服开通正式环境

  • 首次申请送200
  • 10000

¥0 (约元/次)首次申请送200次

  • API文档
  • 错误码参照
  • 示例代码
  • 联系我们
立即调用
接口地址:http://v.juhe.cn/yiyuan/appointmentLogs.php
返回格式:json
请求方式:get post
请求示例:http://v.juhe.cn/yiyuan/appointmentLogs.php?startDate=2016-08-21&endDate=2016-10-30&idCardNo=320382198603693691&phoneNumber=15995656523&key=你申请的key
接口备注:根据用户信息获取用户的预约挂号记录

请求参数说明:

名称 必填 类型 说明
  key string 在个人中心->我的数据,接口名称上方查看
  idCardNo String 身份证号
  phoneNumber String 手机号
  patientId String 病人id
  hospitalId String 医院ID
  startDate String 开始日期(就诊日期)
  endDate String 结束日期(就诊日期)
  virtualFlag String 是否虚拟身份
  birthday String 生日
  gender int 性别

返回参数说明:

名称 类型 说明
  total int 总条数
  rows jsonArray 结果详细
  appointmentOrderNo String 预约业务单号
  hospitalId String 医院id
  idCardNo String 身份证
  phoneNumber String 手机号
  patientName String 病人姓名
  birthday String 病人出生日期
  patientId String 病人id
  cardNo String 就诊卡号
  cardPwd String 就诊卡密码
  userIdPlatform String 其他平台用户id
  deptCode String 科室编码
  deptName String 科室名称
  doctorCode String 医生编码
  doctorName String 医生姓名
  visitDate String 就诊日期,格式如:yyyy-MM-dd
  clinicDuration String 号源信息,格式如:号源id+/+午别+号源时间
  hid String 号源id
  clinicType String 号别类别
  businessType Int 业务类型
  status String 业务请求类型
  businessStatus Int 业务状态
  payType String 支付方式
  payStatus String 支付状态
  handleMessage String 业务描述
  verifyCode String 预约验证码
  firstVisitIndicator String 出诊复诊标识
  onlineFlag Int 网络医院订单标识
  clinicNo String 门诊号
  createCardFlag String 远程建卡标识
  signStatus Int 预约签到状态
  amount String 挂号费
  diagFee String 诊疗费
  pharmacyFee String 药事费
  referralFlag Int 转诊来源
  targetOrderNo String 目标方业务号
  appointSource String 预约来源
  sourceOrderNo String 外部来源业务号
  hisOrderNo String 医院订单号
  paymentOrderNo String 缴费订单号
  threeTradeNo String 三方订单号
  serialNo String 发票号
  createTime String 创建时间
  updateTime String 更新时间
  visitStatus int 就诊状态

JSON返回示例:

{
    "reason": "success",
    "result": {
        "total": 5,
        "rows": [
            {
                "appointmentOrderNo": "200005360",
                "hospitalId": 290153,
                "idCardNo": "320382198603693691",
                "phoneNumber": "15995656523",
                "patientName": "马云",
                "birthday": "1986-05-08",
                "patientId": null,
                "cardNo": null,
                "deptCode": "产科",
                "deptName": "产科",
                "doctorCode": "1110",
                "doctorName": "王副主任",
                "markDesc": "王副主任副主任号",
                "visitDate": "2016-10-03",
                "clinicDuration": "2016092911511542070603/下午 2016-10-03",
                "hid": "2016092911511542070603",
                "clinicType": "副主任",
                "businessType": 0,
                "status": 0,
                "businessStatus": -1,
                "payType": null,
                "payStatus": 0,
                "handleMessage": null,
                "verifyCode": null,
                "firstVisitIndicator": null,
                "onlineFlag": 0,
                "clinicNo": null,
                "createCardFlag": 0,
                "signStatus": -1,
                "diagFee": "0.00",
                "pharmacyFee": "0.00",
                "referralFlag": 0,
                "targetOrderNo": null,
                "hisOrderNo": null,
                "paymentOrderNo": null,
                "threeTradeNo": null,
                "serialNo": null,
                "createTime": "2016-09-29",
                "updateTime": "2016-09-29",
                "visitStatus": -1,
                "amount": "0.01"
            },
            {
                "appointmentOrderNo": "200005361",
                "hospitalId": 290153,
                "idCardNo": "320382198603693691",
                "phoneNumber": "15995656523",
                "patientName": "马云",
                "birthday": "1986-05-08",
                "patientId": null,
                "cardNo": null,
                "deptCode": "产科",
                "deptName": "产科",
                "doctorCode": "1110",
                "doctorName": "王副主任",
                "markDesc": "王副主任副主任号",
                "visitDate": "2016-10-03",
                "clinicDuration": "2016092911511542070603/下午 2016-10-03",
                "hid": "2016092911511542070603",
                "clinicType": "副主任",
                "businessType": 0,
                "status": 0,
                "businessStatus": -1,
                "payType": null,
                "payStatus": 0,
                "handleMessage": null,
                "verifyCode": null,
                "firstVisitIndicator": null,
                "onlineFlag": 0,
                "clinicNo": null,
                "createCardFlag": 0,
                "signStatus": -1,
                "diagFee": "0.00",
                "pharmacyFee": "0.00",
                "referralFlag": 0,
                "targetOrderNo": null,
                "hisOrderNo": null,
                "paymentOrderNo": null,
                "threeTradeNo": null,
                "serialNo": null,
                "createTime": "2016-09-29",
                "updateTime": "2016-09-29",
                "visitStatus": -1,
                "amount": "0.01"
            },
            {
                "appointmentOrderNo": "200005362",
                "hospitalId": 290153,
                "idCardNo": "320382198603693691",
                "phoneNumber": "15995656523",
                "patientName": "马云",
                "birthday": "1986-05-08",
                "patientId": null,
                "cardNo": null,
                "deptCode": "产科",
                "deptName": "产科",
                "doctorCode": "1110",
                "doctorName": "王副主任",
                "markDesc": "王副主任副主任号",
                "visitDate": "2016-10-03",
                "clinicDuration": "2016092911511542070603/下午 2016-10-03",
                "hid": "2016092911511542070603",
                "clinicType": "副主任",
                "businessType": 0,
                "status": 0,
                "businessStatus": -1,
                "payType": null,
                "payStatus": 0,
                "handleMessage": null,
                "verifyCode": null,
                "firstVisitIndicator": null,
                "onlineFlag": 0,
                "clinicNo": null,
                "createCardFlag": 0,
                "signStatus": -1,
                "diagFee": "0.00",
                "pharmacyFee": "0.00",
                "referralFlag": 0,
                "targetOrderNo": null,
                "hisOrderNo": null,
                "paymentOrderNo": null,
                "threeTradeNo": null,
                "serialNo": null,
                "createTime": "2016-09-29",
                "updateTime": "2016-09-29",
                "visitStatus": -1,
                "amount": "0.01"
            },
            {
                "appointmentOrderNo": "200005367",
                "hospitalId": 290153,
                "idCardNo": "320382198603693691",
                "phoneNumber": "15995656523",
                "patientName": "马云",
                "birthday": "1986-05-08",
                "patientId": "123331",
                "cardNo": null,
                "deptCode": "产科",
                "deptName": "产科",
                "doctorCode": "1110",
                "doctorName": "王副主任",
                "markDesc": "王副主任副主任号",
                "visitDate": "2016-10-03",
                "clinicDuration": "2016092911511542070603/下午 2016-10-03",
                "hid": "2016092911511542070603",
                "clinicType": "副主任",
                "businessType": 0,
                "status": 0,
                "businessStatus": -1,
                "payType": null,
                "payStatus": 0,
                "handleMessage": null,
                "verifyCode": null,
                "firstVisitIndicator": null,
                "onlineFlag": 0,
                "clinicNo": null,
                "createCardFlag": 0,
                "signStatus": -1,
                "diagFee": "0.00",
                "pharmacyFee": "0.00",
                "referralFlag": 0,
                "targetOrderNo": null,
                "hisOrderNo": null,
                "paymentOrderNo": null,
                "threeTradeNo": null,
                "serialNo": null,
                "createTime": "2016-09-29",
                "updateTime": "2016-09-29",
                "visitStatus": -1,
                "amount": "0.01"
            },
            {
                "appointmentOrderNo": "200005368",
                "hospitalId": 290153,
                "idCardNo": "320382198603693691",
                "phoneNumber": "15995656523",
                "patientName": "马云",
                "birthday": "1986-05-08",
                "patientId": "123331",
                "cardNo": "123332",
                "deptCode": "产科",
                "deptName": "产科",
                "doctorCode": "1110",
                "doctorName": "王副主任",
                "markDesc": "王副主任副主任号",
                "visitDate": "2016-10-03",
                "clinicDuration": "2016092911511542070603/下午 2016-10-03",
                "hid": "2016092911511542070603",
                "clinicType": "副主任",
                "businessType": 0,
                "status": 0,
                "businessStatus": 1,
                "payType": null,
                "payStatus": 0,
                "handleMessage": "预约成功",
                "verifyCode": null,
                "firstVisitIndicator": null,
                "onlineFlag": 0,
                "clinicNo": null,
                "createCardFlag": 0,
                "signStatus": -1,
                "diagFee": "0.00",
                "pharmacyFee": "0.00",
                "referralFlag": 0,
                "targetOrderNo": null,
                "hisOrderNo": "123456",
                "paymentOrderNo": null,
                "threeTradeNo": null,
                "serialNo": null,
                "createTime": "2016-09-29",
                "updateTime": "2016-09-29",
                "visitStatus": 0,
                "amount": "0.01"
            }
        ]
    },
    "error_code": 0
}

服务级错误码参照(error_code):

  错误码 说明
  225000 网络繁忙,请稍后重试
  225001 数据源相关错误信息,具体看接口返回
  225002 参数错误

系统级错误码参照:

  错误码 说明 旧版本(resultcode)
  10001 错误的请求KEY 101
  10002 该KEY无请求权限 102
  10003 KEY过期 103
  10004 错误的OPENID 104
  10005 应用未审核超时,请提交认证 105
  10007 未知的请求源 107
  10008 被禁止的IP 108
  10009 被禁止的KEY 109
  10011 当前IP请求超过限制 111
  10012 请求超过次数限制 112
  10013 测试KEY超过请求限制 113
  10014 系统内部异常(调用充值类业务时,请务必联系客服或通过订单查询接口检测订单,避免造成损失) 114
  10020 接口维护 120
  10021 接口停用 121

错误码格式说明(示例:200201):

  2 002 01
  服务级错误(1为系统级错误) 服务模块代码(即数据ID) 具体错误代码

完整教学代码示例:

  语言 标题 提供者 时间

常见问题:

  内容 详细
  常见问题: http://www.juhe.cn/qa/index/1542192529

联系我们

  内容 详细
  接口测试: API测试工具
  技术支持: info@juhe.cn
  联系电话: 400-8827-715
  在线客服QQ: 800076065

猜你喜欢

现在注册,百款接口免费测试

免费注册