爱康云医接口文档

爱康云医API文档


获取问卷模版和问卷答案接口

<p><strong>简要描述:</strong> </p> <ul> <li>获取问卷模版和问卷答案接口</li> </ul> <p><strong>请求URL:</strong> </p> <ul> <li><code>/hcrm/followUp/list/getQuestionnaireInfo</code></li> </ul> <p><strong>请求方式:</strong></p> <ul> <li>POST </li> </ul> <p><strong>参数示例</strong></p> <pre><code> { "requestObj": "zZlCvuFsmcFAPktMndgbFz1D4Qirq6eu" }</code></pre> <p><strong>参数:</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数名</th> <th style="text-align: left;">必选</th> <th style="text-align: left;">类型</th> <th>说明</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">requestObj</td> <td style="text-align: left;">是</td> <td style="text-align: left;">object</td> <td>请求主体对象,随访记录主键id</td> </tr> </tbody> </table> <p><strong>返回示例</strong></p> <pre><code> { "retcode": "0000", "errMsg": "操作成功", "body": { "questionnaireValues": [{ "id": "5etHzUC8XT9l9o8XpZAF2mOPluXinXIO", "listId": "zZlCvuFsmcFAPktMndgbFz1D4Qirq6eu", "indexKey": "2", "text": "您的使用感受是怎样的?", "childType": "1", "required": "2", "isDefault": null, "valueIndex": 1, "valueText": "一般", "createUser": "", "createUserId": "4343", "createTime": "2020-01-08 17:52:51" }, { "id": "nNYA20yqs9FjoHl8ecUxumB180QQoQoV", "listId": "zZlCvuFsmcFAPktMndgbFz1D4Qirq6eu", "indexKey": "0", "text": "您会不会使用", "childType": "1", "required": "1", "isDefault": null, "valueIndex": 1, "valueText": "不会", "createUser": "", "createUserId": "4343", "createTime": "2020-01-08 17:52:51" }, { "id": "pUKkXSZ9SZVaJBztHJH3sHi2fWb3Xeqk", "listId": "zZlCvuFsmcFAPktMndgbFz1D4Qirq6eu", "indexKey": "1", "text": "您在使用中有哪些疑问?", "childType": "3", "required": "2", "isDefault": null, "valueIndex": null, "valueText": "一般般", "createUser": "", "createUserId": "4343", "createTime": "2020-01-08 17:52:51" }], "questionnaireTemplate": "[{ "text": "您会不会使用", "childType": "1", "child": [{ "text": "会", "isDefault": "2", "childType": null, "child": null }, { "text": "不会", "isDefault": "2" }], "required": "1" }, { "text": "您在使用中有哪些疑问?", "childType": "3", "child": null, "required": "2" }, { "text": "您的使用感受是怎样的?", "childType": "1", "child": [{ "text": "好", "isDefault": "2", "childType": null, "child": null }, { "text": "一般", "isDefault": "2", "childType": null, "child": null }, { "text": "不好", "childType": "3", "child": null, "isDefault": "2" }], "required": "2" }]" } }</code></pre> <p><strong>返回参数说明</strong> </p> <table> <thead> <tr> <th style="text-align: left;">参数</th> <th style="text-align: left;">类型</th> <th style="text-align: left;">描述</th> </tr> </thead> <tbody> <tr> <td style="text-align: left;">retcode</td> <td style="text-align: left;">string</td> <td style="text-align: left;">0000代表成功</td> </tr> <tr> <td style="text-align: left;">errMsg</td> <td style="text-align: left;">string</td> <td style="text-align: left;">当retcode 不为0000的时候,错误信息描述在这里</td> </tr> <tr> <td style="text-align: left;">body</td> <td style="text-align: left;">object</td> <td style="text-align: left;">结果信息主体</td> </tr> <tr> <td style="text-align: left;">+questionnaireValues</td> <td style="text-align: left;">array</td> <td style="text-align: left;">问卷答案列表</td> </tr> <tr> <td style="text-align: left;">+questionnaireTemplate</td> <td style="text-align: left;">string</td> <td style="text-align: left;">问卷模版信息</td> </tr> </tbody> </table> <p><strong>问卷模版信息详解</strong></p> <pre><code> templateJson: [{ text: '123', childType: '0', // 1 单选 2 多选 3 文本 required: '1', // 1必填 2非必填 value:{ text:"选中", radio:"1", check:[true] },//值,结果中的类型值按照childType类型进行变换 child: [{ text: '123', isDefault: '1', // 1 默认 childType: '0', // 0 单选 1 多选 2 文本 child: [ { text: '123', isDefault: '1' // 1 默认 } ] }]// 子项</code></pre> <p><strong>问卷解析和使用参照hcrm工程questionnaire/index.html样例</strong></p>

页面列表

ITEM_HTML