文档中心 > API类目 > 阿里健康-本地医疗-青少年健康

alibaba.alihealth.adolescent.health.record.add (新增眼健康档案)

新增眼健康档案

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
eye_health_record_request EyeHealthRecordRequest 可选 request
  • └ check_type
  • String
  • 必须
  • SCHOOLE_CHECK
  • 检查类型
  • └ ding_talk_token
  • String
  • 可选
  • agahtoken
  • 钉钉token
  • └ wear_glasses
  • Boolean
  • 必须
  • true
  • 是否带眼镜
  • └ astigmatism_angle_right
  • String
  • 可选
  • 1
  • 散光角度右
  • └ naked_eyesight_right
  • String
  • 可选
  • 1
  • 矫正视力右
  • └ ehr_id
  • Number
  • 可选
  • 1231
  • 档案id
  • └ column_mirror_left
  • String
  • 可选
  • 1
  • 柱镜左
  • └ app_channel
  • String
  • 必须
  • ALIPAY
  • └ astigmatism_angle_left
  • String
  • 可选
  • 1
  • 散光角度左
  • └ column_mirror_right
  • String
  • 可选
  • 1
  • 柱镜右
  • └ taobao_user_id
  • Number
  • 可选
  • 134165346
  • 淘宝userId
  • └ eyes_s_e_left
  • String
  • 可选
  • 1
  • 眼睛球镜左
  • └ eye_axis_left
  • String
  • 可选
  • 0.0
  • 眼轴右
  • └ eyes_s_e_right
  • String
  • 可选
  • 1
  • 眼睛球镜右
  • └ pupil_distance
  • String
  • 可选
  • 4.8
  • 瞳距
  • └ record_date
  • String
  • 可选
  • 2021-02-11
  • 报告日期
  • └ eye_axis_right
  • String
  • 可选
  • 0.1
  • 眼轴右
  • └ correction_vision_left
  • String
  • 可选
  • 4.8
  • 矫正视力左
  • └ naked_eyesight_left
  • String
  • 可选
  • 4.9
  • 裸眼视力左
  • └ member_id
  • String
  • 可选
  • 3425
  • 成员id
  • └ correction_vision_right
  • String
  • 可选
  • 123
  • 矫正视力右

响应参数

名称 类型 示例值 描述
result CommonResult 返回值
  • └ data
  • Number
  • 123134
  • 档案id
  • └ msg_info
  • String
  • MESSAGE
  • 返回信息
  • └ msg_code
  • String
  • SUCCESS
  • 返回code

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAlihealthAdolescentHealthRecordAddRequest req = new AlibabaAlihealthAdolescentHealthRecordAddRequest();
AlibabaAlihealthAdolescentHealthRecordAddRequest.EyeHealthRecordRequest obj1 = new AlibabaAlihealthAdolescentHealthRecordAddRequest.EyeHealthRecordRequest();
obj1.setCheckType("SCHOOLE_CHECK");
obj1.setDingTalkToken("agahtoken");
obj1.setWearGlasses(true);
obj1.setAstigmatismAngleRight("1");
obj1.setNakedEyesightRight("1");
obj1.setEhrId(1231L);
obj1.setColumnMirrorLeft("1");
obj1.setAppChannel("ALIPAY");
obj1.setAstigmatismAngleLeft("1");
obj1.setColumnMirrorRight("1");
obj1.setTaobaoUserId(134165346L);
obj1.setEyesSELeft("1");
obj1.setEyeAxisLeft("0.0");
obj1.setEyesSERight("1");
obj1.setPupilDistance("4.8");
obj1.setRecordDate("2021-02-11");
obj1.setEyeAxisRight("0.1");
obj1.setCorrectionVisionLeft("4.8");
obj1.setNakedEyesightLeft("4.9");
obj1.setMemberId("3425");
obj1.setCorrectionVisionRight("123");
req.setEyeHealthRecordRequest(obj1);
AlibabaAlihealthAdolescentHealthRecordAddResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_alihealth_adolescent_health_record_add_response>
    <result>
        <data>123134</data>
        <msg_info>MESSAGE</msg_info>
        <msg_code>SUCCESS</msg_code>
    </result>
</alibaba_alihealth_adolescent_health_record_add_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

返回
顶部