阿里健康的问诊质控接口
名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
---|---|---|---|---|---|
param0 | IMRiskCheckCommand | 可选 | 入参数 | ||
|
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
data | IMRule [] | {} | 返回结果 |
|
|||
is_success | Boolean | true | 是否成功 |
the_err_code | String | "" | 错误码 |
the_err_msg | String | "" | 错误信息 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret); AlibabaAlihealthImriskQueryRequest req = new AlibabaAlihealthImriskQueryRequest(); AlibabaAlihealthImriskQueryRequest.IMRiskCheckCommand obj1 = new AlibabaAlihealthImriskQueryRequest.IMRiskCheckCommand(); obj1.setPatientId( "10002" ); obj1.setDoctorId( "102093" ); obj1.setSceneName( "test" ); obj1.setTenantCode( "test" ); obj1.setSessionId( "sessionId2" ); List<AlibabaAlihealthImriskQueryRequest.Conversation> list3 = new ArrayList<AlibabaAlihealthImriskQueryRequest.Conversation>(); AlibabaAlihealthImriskQueryRequest.Conversation obj4 = new AlibabaAlihealthImriskQueryRequest.Conversation(); list3.add(obj4); obj4.setRole( "PATIENT" ); obj4.setTime( "2021-10-10 10:00:00" ); obj4.setContentType( "TEXT" ); obj4.setContent( "你好呀" ); obj1.setConversations(list3); obj1.setBizTime( "2021-10-10 10:00:00" ); req.setParam0(obj1); AlibabaAlihealthImriskQueryResponse rsp = client.execute(req); System.out.println(rsp.getBody()); |
1 2 3 4 5 6 7 8 9 10 11 12 | < alibaba_alihealth_imrisk_query_response > < data > < i_m_rule > < type >ATTITUDE</ type > < res >1</ res > < label >辱骂骚扰</ label > </ i_m_rule > </ data > < is_success >true</ is_success > < the_err_code >""</ the_err_code > < the_err_msg >""</ the_err_msg > </ alibaba_alihealth_imrisk_query_response > |
1 2 3 4 5 6 | < error_response > < code >50</ code > < msg >Remote service error</ msg > < sub_code >isv.invalid-parameter</ sub_code > < sub_msg >非法参数</ sub_msg > </ error_response > |
错误码 | 错误描述 | 解决方案 |
---|