1、时间段问卷记录查询
https://api.mytijian.com/open-api/V2/ws/survey/queryAccountSurveyRecordList?accessToken=ACCESS_TOKEN
请求协议:HTTPS
请求方式:POST
需要签名: 否
URL参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| accessToken |
是 |
string |
当前有效的accessToken |
POST参数示例
{ "startTime":"2020-01-01", "endTime":"2020-03-01", "currentPage":1, "pageSize":20}
请求参数说明:
| 参数名 |
是否必须 |
类型 |
说明 |
| startTime |
是 |
string |
开始时间 格式yyyy-MM-dd |
| endTime |
是 |
string |
结束时间 格式yyyy-MM-dd 查询时长间隔不要超过30天 |
| currentPage |
是 |
int |
当前页 |
| pageSize |
是 |
int |
每页显示的条数 |
正确返回示例:
{ "data": { "records": [ { "evaluateReport": { "accountRiskItems": [ { "riskName": "营养状况", "accountId": 629142, "createTime": 1579017600000, "coefficient": 0.6682239999999998, "updateTime": 1579017600000, "id": 68217, "evaluateReportId": 11585, "riskId": 16 }, { "riskName": "呼吸系统", "accountId": 629142, "createTime": 1579017600000, "coefficient": 0.30000000000000004, "updateTime": 1579017600000, "id": 68215, "evaluateReportId": 11585, "riskId": 3 }, { "riskName": "恶性肿瘤", "accountId": 629142, "createTime": 1579017600000, "coefficient": 0.19999999999999996, "updateTime": 1579017600000, "id": 68216, "evaluateReportId": 11585, "riskId": 11 } ], "advices": [ "谷物摄入过少,建议适当增加", "肉类摄入过少,建议适当增加", "豆类食品摄入过少,建议增加", "建议工作间隙适当活动", "适当增加锻炼时的运动量", "建议每天按时吃早餐" ], "hmEvaluateReportRiskItems": [ { "hmRiskName": "高血压", "riskFactorList": "高钠低钾膳食,长期过量饮酒" } ] }, "accountSurveyAnswerSnapshots": [ { "sequence": 1, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2001, "answerContent": "", "advice": "", "id": 10003, "content": "否", "tips": "" } ], "id": 2001, "type": 1, "content": "最近半年,有生育的计划吗?" }, { "sequence": 2, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2004, "answerContent": "", "advice": "", "id": 10022, "type": 1, "content": "无", "tips": "" } ], "id": 2004, "type": 2, "content": "您的直系亲属中(父亲、母亲、兄弟、姐妹)目前或曾经是否有以下明确诊断的疾病?(多选题)" }, { "sequence": 3, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2023, "answerContent": "", "advice": "", "id": 10048, "type": 1, "content": "无以上疾病", "tips": "" } ], "id": 2023, "type": 2, "content": "您目前或曾经是否有以下明确诊断的疾病?(多选题)" }, { "sequence": 5, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2055, "answerContent": "", "advice": "", "id": 10062, "type": 1, "content": "无", "tips": "" } ], "id": 2055, "type": 2, "content": "您是否长期服用下列药物?(连续服用6个月以上,平均每日服用一次以上)(多选题)" }, { "sequence": 6, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2063, "answerContent": "", "advice": "", "id": 10079, "type": 1, "content": "无以上不适症状", "tips": "" } ], "id": 2063, "type": 2, "content": "最近3个月,您是否有以下躯体症状,如果有请进行选择?(多选题)" }, { "sequence": 11, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2084, "answerContent": "", "advice": "谷物摄入过少,建议适当增加", "id": 10192, "content": "不吃", "tips": "" } ], "id": 2084, "type": 1, "content": "一般情况下,您平时每餐吃的谷类(大米、面食、杂粮)的量是多少?(单选题)" }, { "sequence": 12, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2085, "answerContent": "", "advice": "肉类摄入过少,建议适当增加", "id": 10187, "content": "不吃", "tips": "" } ], "id": 2085, "type": 1, "content": "一般情况下,您平均每天吃的肉类(猪,牛,羊,禽)的量是多少?(单选题)" }, { "sequence": 13, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2086, "answerContent": "", "advice": "", "id": 10182, "content": ">5两", "tips": "" } ], "id": 2086, "type": 1, "content": "一般情况下,您平均每天吃的新鲜蔬菜和水果类的量是多少?(单选题)" }, { "sequence": 14, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2087, "answerContent": "", "advice": "", "id": 10178, "content": "<1天或不吃", "tips": "" } ], "id": 2087, "type": 1, "content": "一般情况下,您平均每周都有几天吃牛奶及奶制品?(单选题)" }, { "sequence": 15, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2088, "answerContent": "", "advice": "", "id": 10174, "content": "<1天或不吃", "tips": "" } ], "id": 2088, "type": 1, "content": "一般情况下,您平均每周都有几天吃鱼类或其它水产品?(单选题)" }, { "sequence": 16, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2089, "answerContent": "", "advice": "", "id": 10170, "content": "<1天或不吃", "tips": "" } ], "id": 2089, "type": 1, "content": "一般情况下,您平均每周都有几天吃蛋类及其制品?(单选题)" }, { "sequence": 17, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2090, "answerContent": "", "advice": "豆类食品摄入过少,建议增加", "id": 10166, "content": "<1天或不吃", "tips": "" } ], "id": 2090, "type": 1, "content": "一般情况下,您平均每周都有几天吃豆类及豆制品?(单选题)" }, { "sequence": 18, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2091, "answerContent": "", "advice": "", "id": 10162, "content": "<1天或不吃", "tips": "" } ], "id": 2091, "type": 1, "content": "一般情况下,您平均每周都有几天吃甜食(甜点,糖果等)?(单选题)" }, { "sequence": 19, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2092, "answerContent": "", "advice": "", "id": 10158, "content": "<1天或不吃", "tips": "" } ], "id": 2092, "type": 1, "content": "一般情况下,您平均每周都有几天吃油炸食品?(单选题)" }, { "sequence": 20, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2093, "answerContent": "", "advice": "", "id": 10154, "content": "<1天或不吃", "tips": "" } ], "id": 2093, "type": 1, "content": "一般情况下,您平均每周都有几天吃腌、熏类食物?(单选题)" }, { "sequence": 21, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2094, "answerContent": "", "advice": "", "id": 10147, "content": "略淡", "tips": "" } ], "id": 2094, "type": 1, "content": "您的口味与周围的人相比如何?(单选题)" }, { "sequence": 22, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2095, "answerContent": "", "advice": "", "id": 10145, "content": "已戒烟(不吸烟1个月以上)", "tips": "" } ], "id": 2095, "type": 1, "content": "您吸烟吗?(单选题)" }, { "sequence": 23, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2096, "answerContent": "", "advice": "", "id": 10099, "content": "否", "tips": "" } ], "id": 2096, "type": 1, "content": "您存在被动吸烟(二手烟)的情况吗?(单选题)" }, { "sequence": 25, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2101, "answerContent": "", "advice": "", "id": 10135, "content": "不喝", "tips": "" } ], "id": 2101, "type": 1, "content": "您喝酒吗?(单选题)" }, { "sequence": 26, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2102, "answerContent": "", "advice": "建议工作间隙适当活动", "id": 10132, "content": "静坐为主(坐着办公几个小时)", "tips": "" } ], "id": 2102, "type": 1, "content": "您从事什么样性质的工作?(单选题)" }, { "sequence": 27, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2103, "answerContent": "", "advice": "适当增加锻炼时的运动量", "id": 10107, "content": "<1次", "tips": "" } ], "id": 2103, "type": 1, "content": "近年来,您平均每周锻炼多少次?" }, { "sequence": 30, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2109, "answerContent": "", "advice": "", "id": 10122, "content": "非常好", "tips": "" } ], "id": 2109, "type": 1, "content": "过去一个月,您的总体睡眠质量如何?(单选题)" }, { "sequence": 31, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2110, "answerContent": "", "advice": "", "id": 10118, "content": "否", "tips": "" } ], "id": 2110, "type": 1, "content": "过去一个月,您是否要服药才能入睡?(包括医生开的处方和自购药物)(单选题)" }, { "sequence": 32, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2111, "answerContent": "", "advice": "", "id": 10117, "content": "均无", "tips": "" } ], "id": 2111, "type": 1, "content": "您目前是否从事以下职业1年或以上?(单选题)" }, { "sequence": 33, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2112, "answerContent": "", "advice": "建议每天按时吃早餐", "id": 10266, "content": "<1天或不吃", "tips": "" } ], "id": 2112, "type": 1, "content": "一般情况下,您平均每周都有几天吃早餐(单选题)" }, { "sequence": 34, "surveyId": 10, "userAnswers": [ { "snapshots": [ ], "questionId": 2113, "answerContent": "", "advice": "", "id": 10270, "content": "<1天或不吃", "tips": "" } ], "id": 2113, "type": 1, "content": "一般情况下,您平均每周都有几天吃夜宵?(单选题)" } ], "accountSnapshotVO": { "accountSurveyId": 4114740, "surveyId": 10, "gender": 0, "idCard": "230102199003075131", "mobile": "15455555555", "name": "C端用户", "weight": 66, "marriageStatus": 0, "updateTime": 1579082807061, "title": "健康自诊评估", "age": 30, "height": 170, "orderNum": "20231213181100024207008", "examCode":"TYIOR89371" } } ], "page": { "offset": 0, "pageSize": 5, "rowCount": 38, "currentPage": 1, "countMethod": "Count" } }, "msg": "success", "success": "T"}
返回参数说明:
| 参数名 |
类型 |
说明 |
| success |
String |
T成功,F失败 |
| errCode |
String |
错误码,只有失败的时候才有 |
| msg |
String |
描述消息 |
| data |
PageView |
分页查询对象 |
PageView对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| page |
是 |
Page |
分页参数对象 |
| records |
是 |
List(AccountSurveySnapshotVO) |
问卷记录集合 |
page对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| offset |
是 |
int |
偏移量 |
| pageSize |
是 |
int |
每页显示的条数 |
| currentPage |
是 |
int |
当前页码 |
| rowCount |
是 |
int |
总条数 |
| countMethod |
是 |
string |
计数方法 |
AccountSurveySnapshotVO对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| accountSnapshotVO |
是 |
AccountSnapshot |
答题用户信息 |
| evaluateReport |
否 |
EvaluateReport |
评估报告 |
| accountSurveyAnswerSnapshots |
是 |
List(AccountSurveyAnswerSnapshot) |
用户答题记录集合 |
AccountSnapshot对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| accountSurveyId |
是 |
int |
用户问卷记录id |
| surveyId |
是 |
int |
问卷id |
| gender |
否 |
int |
性别:0:男;1:女;2:未知 |
| idCard |
否 |
int |
身份证 |
| mobile |
否 |
string |
手机号 |
| name |
否 |
string |
姓名 |
| weight |
否 |
int |
体重,单位kg |
| marriageStatus |
否 |
int |
婚姻状态:0:未婚,1:已婚 |
| updateTime |
是 |
long |
更新时间 |
| title |
是 |
string |
问卷标题 |
| age |
否 |
int |
年龄 |
| height |
否 |
int |
身高 ,单位cm |
| examCode |
否 |
string |
体检编号 |
EvaluateReport对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| advices |
是 |
List(string) |
建议集合 |
| accountRiskItems |
是 |
List(AccountRiskItem) |
风险项集合 |
| hmEvaluateReportRiskItems |
是 |
List(HmEvaluateReportRiskItem) |
风险疾病列表 |
HmEvaluateReportRiskItem对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| hmRiskName |
是 |
string |
风险疾病名称 |
| riskFactorList |
是 |
String |
风险因素列表以 , 分隔 |
AccountRiskItem对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| riskName |
是 |
string |
风险名称 |
| accountId |
是 |
int |
用户id |
| createTime |
是 |
long |
创建时间 |
| coefficient |
是 |
double |
系数:高(>=0.6)中(0.3~0.6) 低(<=0.3) |
| updateTime |
是 |
long |
更新时间 |
| id |
是 |
int |
记录id |
| evaluateReportId |
是 |
int |
评估报告id |
| riskId |
是 |
int |
风险项id |
AccountSurveyAnswerSnapshot对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| sequence |
是 |
int |
顺序 |
| surveyId |
是 |
int |
问卷id |
| id |
是 |
int |
问题id |
| type |
是 |
int |
问题类型:1单选,2多选 ,3文本,4评分题 |
| content |
是 |
string |
问题内容 |
| userAnswers |
是 |
List(UserAnswer) |
用户答案集合 |
UserAnswer对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| questionId |
是 |
int |
问题id |
| answerContent |
是 |
string |
文本答案内容或者单选可以填空文本 |
| advice |
是 |
string |
答案建议 |
| id |
是 |
int |
答案id |
| content |
是 |
string |
答案内容 |
| tips |
是 |
string |
答案提示 |
| snapshots |
是 |
List(AccountSurveyAnswerSnapshot) |
用户答题记录集合 |
2、订单问卷记录查询
https://api.mytijian.com/open-api/V2/ws/survey/queryAccountSurveyRecordByOrderNum?accessToken=ACCESS_TOKEN
请求协议:HTTPS
请求方式:POST
需要签名: 否
URL参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| accessToken |
是 |
string |
当前有效的accessToken |
POST参数示例
{ "orderNum":"20200702115522311000608"}
请求参数说明:
| 参数名 |
是否必须 |
类型 |
说明 |
| orderNum |
是 |
string |
订单号 |
正确返回示例:
{ "data": [ { "evaluateReport": { "accountRiskItems": [ { "riskName": "泌尿系统", "createTime": 1593619200000, "coefficient": 0.8, "updateTime": 1593619200000, "id": 71186, "evaluateReportId": 12354, "riskId": 6 }, { "riskName": "胃肠系统", "createTime": 1593619200000, "coefficient": 0.7132799999999999, "updateTime": 1593619200000, "id": 71183, "evaluateReportId": 12354, "riskId": 4 }, { "riskName": "呼吸系统", "createTime": 1593619200000, "coefficient": 0.65, "updateTime": 1593619200000, "id": 71185, "evaluateReportId": 12354, "riskId": 3 }, { "riskName": "恶性肿瘤", "createTime": 1593619200000, "coefficient": 0.6080000000000001, "updateTime": 1593619200000, "id": 71184, "evaluateReportId": 12354, "riskId": 11 }, { "riskName": "精神卫生系统", "createTime": 1593619200000, "coefficient": 0.52, "updateTime": 1593619200000, "id": 71188, "evaluateReportId": 12354, "riskId": 15 }, { "riskName": "肝胆胰系统", "createTime": 1593619200000, "coefficient": 0.4, "updateTime": 1593619200000, "id": 71190, "evaluateReportId": 12354, "riskId": 5 }, { "riskName": "肾脏疾病", "createTime": 1593619200000, "coefficient": 0.4, "updateTime": 1593619200000, "id": 71187, "evaluateReportId": 12354, "riskId": 7 }, { "riskName": "心血管系统", "createTime": 1593619200000, "coefficient": 0.35199999999999987, "updateTime": 1593619200000, "id": 71189, "evaluateReportId": 12354, "riskId": 1 }, { "riskName": "脑血管系统", "createTime": 1593619200000, "coefficient": 0.19999999999999996, "updateTime": 1593619200000, "id": 71191, "evaluateReportId": 12354, "riskId": 2 } ], "advices": [ "建议饮食清淡", "建议工作间隙适当活动", "建议每天按时吃早餐", "建议不要吃夜霄" ], "hmEvaluateReportRiskItems": [ { "hmRiskName": "高血压", "riskFactorList": "高钠低钾膳食,长期过量饮酒" } ] }, "accountSurveyAnswerSnapshots": [ { "sequence": 1, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2001, "advice": "", "id": 10003, "content": "否", "tips": "" } ], "id": 2001, "type": 1, "content": "最近半年,有生育的计划吗?" }, { "sequence": 2, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2004, "advice": "", "id": 10007, "content": "胃癌", "tips": "" } ], "id": 2004, "type": 2, "content": "您的直系亲属中(父亲、母亲、兄弟、姐妹)目前或曾经是否有以下明确诊断的疾病?(多选题)" }, { "sequence": 3, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2023, "advice": "", "id": 10036, "content": "慢阻肺(慢性支气管炎、肺气肿)", "tips": "" } ], "id": 2023, "type": 2, "content": "您目前或曾经是否有以下明确诊断的疾病?(多选题)" }, { "sequence": 5, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2055, "advice": "", "id": 10058, "content": "抗血小板类药物如阿司匹林等", "tips": "" }, { "snapshots": [], "questionId": 2055, "advice": "", "id": 10060, "content": "精神类药物", "tips": "" } ], "id": 2055, "type": 2, "content": "您是否长期服用下列药物?(连续服用6个月以上,平均每日服用一次以上)(多选题)" }, { "sequence": 6, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2063, "advice": "", "id": 10071, "content": "小便异常(尿频、尿急、尿痛、排尿困难、尿血)", "tips": "" } ], "id": 2063, "type": 2, "content": "最近3个月,您是否有以下躯体症状,如果有请进行选择?(多选题)" }, { "sequence": 11, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2084, "advice": "", "id": 10190, "content": "1-2小碗", "tips": "" } ], "id": 2084, "type": 1, "content": "一般情况下,您平时每餐吃的谷类(大米、面食、杂粮)的量是多少?(单选题)" }, { "sequence": 12, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2085, "advice": "", "id": 10185, "content": "2-4两", "tips": "" } ], "id": 2085, "type": 1, "content": "一般情况下,您平均每天吃的肉类(猪,牛,羊,禽)的量是多少?(单选题)" }, { "sequence": 13, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2086, "advice": "", "id": 10181, "content": "2-4两", "tips": "" } ], "id": 2086, "type": 1, "content": "一般情况下,您平均每天吃的新鲜蔬菜和水果类的量是多少?(单选题)" }, { "sequence": 14, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2087, "advice": "", "id": 10177, "content": "1-2天", "tips": "" } ], "id": 2087, "type": 1, "content": "一般情况下,您平均每周都有几天吃牛奶及奶制品?(单选题)" }, { "sequence": 15, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2088, "advice": "", "id": 10173, "content": "1-2天", "tips": "" } ], "id": 2088, "type": 1, "content": "一般情况下,您平均每周都有几天吃鱼类或其它水产品?(单选题)" }, { "sequence": 16, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2089, "advice": "", "id": 10169, "content": "1-2天", "tips": "" } ], "id": 2089, "type": 1, "content": "一般情况下,您平均每周都有几天吃蛋类及其制品?(单选题)" }, { "sequence": 17, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2090, "advice": "", "id": 10165, "content": "1-2天", "tips": "" } ], "id": 2090, "type": 1, "content": "一般情况下,您平均每周都有几天吃豆类及豆制品?(单选题)" }, { "sequence": 18, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2091, "advice": "", "id": 10161, "content": "1-2天", "tips": "" } ], "id": 2091, "type": 1, "content": "一般情况下,您平均每周都有几天吃甜食(甜点,糖果等)?(单选题)" }, { "sequence": 19, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2092, "advice": "", "id": 10157, "content": "1-2天", "tips": "" } ], "id": 2092, "type": 1, "content": "一般情况下,您平均每周都有几天吃油炸食品?(单选题)" }, { "sequence": 20, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2093, "advice": "", "id": 10152, "content": "3-4天", "tips": "" } ], "id": 2093, "type": 1, "content": "一般情况下,您平均每周都有几天吃腌、熏类食物?(单选题)" }, { "sequence": 21, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2094, "advice": "建议饮食清淡", "id": 10149, "content": "略咸", "tips": "" } ], "id": 2094, "type": 1, "content": "您的口味与周围的人相比如何?(单选题)" }, { "sequence": 22, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2095, "advice": "", "id": 10143, "content": "不吸", "tips": "" } ], "id": 2095, "type": 1, "content": "您吸烟吗?(单选题)" }, { "sequence": 23, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2096, "advice": "", "id": 10099, "content": "否", "tips": "" } ], "id": 2096, "type": 1, "content": "您存在被动吸烟(二手烟)的情况吗?(单选题)" }, { "sequence": 25, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2101, "advice": "", "id": 10135, "content": "不喝", "tips": "" } ], "id": 2101, "type": 1, "content": "您喝酒吗?(单选题)" }, { "sequence": 26, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2102, "advice": "建议工作间隙适当活动", "id": 10132, "content": "静坐为主(坐着办公几个小时)", "tips": "" } ], "id": 2102, "type": 1, "content": "您从事什么样性质的工作?(单选题)" }, { "sequence": 27, "surveyId": 10, "userAnswers": [ { "snapshots": [ { "sequence": 28, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2104, "advice": "", "id": 10130, "content": "是", "tips": "" } ], "id": 2104, "parentAnswerId": 10105, "type": 1, "content": "您锻炼时是否出汗?(单选题)" }, { "sequence": 29, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2108, "advice": "", "id": 10127, "content": "30-60分钟", "tips": "" } ], "id": 2108, "parentAnswerId": 10105, "type": 1, "content": "您平均每次持续锻炼的时间是多少分钟?(单选题)" } ], "questionId": 2103, "advice": "", "id": 10105, "content": "3次或以上", "tips": "" } ], "id": 2103, "type": 1, "content": "近年来,您平均每周锻炼多少次?" }, { "sequence": 30, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2109, "advice": "", "id": 10124, "content": "不好", "tips": "" } ], "id": 2109, "type": 1, "content": "过去一个月,您的总体睡眠质量如何?(单选题)" }, { "sequence": 31, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2110, "advice": "", "id": 10120, "content": "平均每周1-2次", "tips": "" } ], "id": 2110, "type": 1, "content": "过去一个月,您是否要服药才能入睡?(包括医生开的处方和自购药物)(单选题)" }, { "sequence": 32, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2111, "advice": "", "id": 10113, "content": "煤矿开采", "tips": "" } ], "id": 2111, "type": 1, "content": "您目前是否从事以下职业1年或以上?(单选题)" }, { "sequence": 33, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2112, "advice": "建议每天按时吃早餐", "id": 10265, "content": "1-2天", "tips": "" } ], "id": 2112, "type": 1, "content": "一般情况下,您平均每周都有几天吃早餐(单选题)" }, { "sequence": 34, "surveyId": 10, "userAnswers": [ { "snapshots": [], "questionId": 2113, "advice": "建议不要吃夜霄", "id": 10269, "content": "1-2天", "tips": "" } ], "id": 2113, "type": 1, "content": "一般情况下,您平均每周都有几天吃夜宵?(单选题)" } ], "accountSnapshotVO": { "accountSurveyId": 4117212, "surveyId": 10, "gender": 1, "printStatus": 0, "idCard": "451423199501014868", "mobile": "19200000001", "name": "anan", "marriageStatus": 1, "updateTime": 1593661970000, "title": "健康自诊评估", "age": 25 } }, { "evaluateReport": { "accountRiskItems": [], "advices": [] }, "accountSurveyAnswerSnapshots": [ { "sequence": 1, "surveyId": 40, "userAnswers": [ { "snapshots": [], "questionId": 3264, "advice": "", "id": 21153, "content": "否", "tips": "" } ], "id": 3264, "type": 1, "content": "近半个月内,是否接触过野生动物" }, { "sequence": 2, "surveyId": 40, "userAnswers": [ { "snapshots": [], "questionId": 3265, "advice": "", "id": 21155, "content": "否", "tips": "" } ], "id": 3265, "type": 1, "content": "近半个月内,是否有武汉居住史或旅行史" }, { "sequence": 3, "surveyId": 40, "userAnswers": [ { "snapshots": [], "questionId": 3266, "advice": "", "id": 21157, "content": "否", "tips": "" } ], "id": 3266, "type": 1, "content": "近半个月内,是否有武汉人接触史" }, { "sequence": 4, "surveyId": 40, "userAnswers": [ { "snapshots": [], "questionId": 3267, "advice": "", "id": 21159, "content": "否", "tips": "" } ], "id": 3267, "type": 1, "content": "近半个月内,是否有亲友及周围人员发热,或因肺炎而隔离治疗" }, { "sequence": 5, "surveyId": 40, "userAnswers": [ { "snapshots": [], "questionId": 3268, "advice": "", "id": 21161, "content": "否", "tips": "" } ], "id": 3268, "type": 1, "content": "近半个月内,是否有新型冠状病毒感染的肺炎确诊病例接触史" }, { "sequence": 6, "surveyId": 40, "userAnswers": [ { "snapshots": [], "questionId": 3269, "advice": "", "id": 21162, "type": 1, "content": "无", "tips": "" } ], "id": 3269, "type": 2, "content": "最近半个月是否出现以下症状:" } ], "accountSnapshotVO": { "accountSurveyId": 4117214, "surveyId": 40, "gender": 1, "printStatus": 0, "idCard": "451423199501014868", "mobile": "19200000001", "name": "anan", "marriageStatus": 1, "updateTime": 1593662082000, "title": "疫情问卷", "age": 25, "managerId":1223, "managerName":"客户经理名称" } } ], "msg": "success", "success": "T"}
返回参数说明:
| 参数名 |
类型 |
说明 |
| success |
String |
T成功,F失败 |
| errCode |
String |
错误码,只有失败的时候才有 |
| msg |
String |
描述消息 |
| data |
List(AccountSurveySnapshotVO) |
问卷答题记录集合 |
AccountSurveySnapshotVO对象说明 (同接口 时间段查询问卷说明)
3、获取体检中心问卷信息
请求URL
https://api.mytijian.com/open-api/V2/ws/survey/querySurveyDetailList?accessToken=ACCESS_TOKEN
请求协议:HTTPS
请求方式:POST
需要签名: 否
URL参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| accessToken |
是 |
string |
当前有效的accessToken |
POST参数示例
{ "currentPage":1,//当前页 "pageSize":20 //每页展示的问卷数不能大于50}
正确返回示例:
{ "data": { "records": [ { "surveyDetailDto": { "surveyType": 2, "isDeleted": 0, "subTitle": "demo2", "id": 43, "title": "西瓜测试2", "descripe": "嘻嘻嘻嘻嘻", "resultType": 0 }, "questionDetailDtos": [ { "sequence": 1, "mustAnswer": true, "surveyId": 43, "answers": [ { "questionId": 3286, "advice": "", "id": 21217, "childQuestions": [ { "sequence": 3, "mustAnswer": true, "surveyId": 43, "answers": [ { "questionId": 1000053, "advice": "", "id": 21972, "content": "油", "tips": "" }, { "questionId": 1000053, "advice": "", "id": 21973, "content": "盐", "tips": "" }, { "questionId": 1000053, "advice": "", "id": 21974, "content": "糖", "tips": "" } ], "id": 1000053, "parentAnswerId": 21217, "type": 1, "content": "饮食习惯" } ], "content": "是", "tips": "" }, { "questionId": 3286, "advice": "", "id": 21218, "type": 2, "content": "否", "tips": "" } ], "id": 3286, "type": 1, "content": "是否有糖尿病" }, { "sequence": 2, "mustAnswer": true, "surveyId": 43, "answers": [ { "questionId": 1000046, "advice": "", "id": 21970, "content": "56", "tips": "" }, { "questionId": 1000046, "advice": "", "id": 21971, "type": 2, "content": "34", "tips": "" } ], "id": 1000046, "type": 5, "content": "今年多少岁" }, { "sequence": 4, "mustAnswer": true, "surveyId": 43, "answers": [ { "questionId": 1000054, "advice": "", "id": 21975, "content": "糖尿病", "tips": "" }, { "questionId": 1000054, "advice": "", "id": 21976, "content": "高血压", "tips": "" }, { "questionId": 1000054, "advice": "", "id": 21977, "type": 2, "content": "脑卒中", "tips": "" }, { "questionId": 1000054, "advice": "", "id": 21978, "type": 2, "content": "高血脂", "tips": "" } ], "id": 1000054, "type": 1, "content": "可存在的疾病" }, { "sequence": 7, "mustAnswer": true, "surveyId": 43, "answers": [ { "questionId": 1000059, "advice": "", "id": 21982, "childQuestions": [ { "sequence": 8, "mustAnswer": true, "surveyId": 43, "id": 1000060, "parentAnswerId": 21982, "type": 3, "content": "糖尿病类型" } ], "content": "糖尿病", "tips": "" }, { "questionId": 1000059, "advice": "", "id": 21983, "content": "高血压", "tips": "" }, { "questionId": 1000059, "advice": "", "id": 21984, "content": "低血糖", "tips": "" } ], "id": 1000059, "type": 2, "content": "过往病史" } ] } ], "page": { "offset": 0, "pageSize": 5, "rowCount": 43, "currentPage": 8, "countMethod": "Count" } }, "msg": "success", "success": "T"}
返回参数说明:
| 参数名 |
类型 |
说明 |
| success |
String |
T成功,F失败 |
| msg |
String |
描述消息 |
| errCode |
String |
错误码,只有失败的时候才有 |
| data |
List(SyncMealParam) |
单位集合 |
PageView对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| page |
是 |
Page |
分页参数对象 |
| records |
是 |
List(Map) |
问卷集合 |
page对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| offset |
是 |
int |
偏移量 |
| pageSize |
是 |
int |
每页显示的条数 |
| currentPage |
是 |
int |
当前页码 |
| rowCount |
是 |
int |
总条数 |
| countMethod |
是 |
string |
计数方法 |
surveyDetailDto对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| id |
是 |
int |
编号 |
| isDeleted |
是 |
int |
0有效,1无效 |
| title |
否 |
string |
标题 |
| subTitle |
否 |
string |
副标题 |
| descripe |
否 |
string |
描述 |
| pic |
否 |
string |
图片 |
| resultType |
否 |
int |
0 没分 1 有分 2 中医问卷调查 |
| surveyName |
是 |
string |
问卷名 |
| surveyType |
是 |
int |
问卷类型 |
| preface |
否 |
string |
问卷前言 |
| conclusion |
否 |
string |
问卷结尾 |
questionDetailDto对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| id |
是 |
int |
编号 |
| surveyId |
是 |
int |
问卷ID |
| sequence |
是 |
int |
题目顺序 |
| content |
是 |
string |
题目 |
| parentAnswerId |
否 |
int |
父亲答案,答案可以有1到多个子问题 |
| type |
是 |
int |
题目类型 1.单选 2 多选 3.文本 4.评分 |
| answers |
否 |
List |
答案 |
| mustAnswer |
是 |
boolean |
是否必填(0:非必填,1:必填) |
Answer对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| id |
是 |
int |
编号 |
| content |
否 |
string |
内容 |
| parentId |
否 |
int |
父答案编号 |
| childquesId |
否 |
int |
子答案编号 |
| questionId |
是 |
int |
所属问题 |
| score |
否 |
int |
每个答案的分数 |
| tips |
否 |
string |
问题提示 |
| advice |
否 |
string |
建议 |
| type |
是 |
int |
问题类型,1表示唯一 |
4、获取作答问卷的用户记录列表
https://api.mytijian.com/open-api/V2/ws/survey/listAccountSurveyRecord?accessToken=ACCESS_TOKEN
请求协议:HTTPS
请求方式:POST
需要签名: 否
URL参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| accessToken |
是 |
string |
当前有效的accessToken |
POST参数示例
{ "name": "胡文刚", "idCard": "330726198510163913", "mobile": "13588152017", "startTime": "2022-04-24", "endTime": "2022-04-24", "currentPage": 1, "pageSize": 10}
请求参数说明:
| 参数名 |
是否必须 |
类型 |
说明 |
| name |
否 |
string |
评估人名称 |
| idCard |
否 |
string |
评估人身份证 |
| mobile |
否 |
string |
评估人手机号 |
| startTime |
是 |
string |
开始时间 格式yyyy-MM-dd |
| endTime |
否 |
string |
结束时间 格式yyyy-MM-dd |
| currentPage |
是 |
int |
当前页 |
| pageSize |
是 |
int |
每页显示的条数 |
正确返回示例:
{ "data":{ "records":[ { "accountSurveyId":6372186, "surveyId":10, "gender":0, "accountSurveyLink":"https://crm.mytijian.com/public/questionnaire.html?accountSurveyEncryptId=SuBRfpjxH1J4W1L3gE3reg%3D%3D", "printStatus":0, "idCard":"330726198510163913", "mobile":"13588152017", "name":"胡文刚", "marriageStatus":1, "updateTime":1650606078000, "title":"健康自诊评估", "age":36, "orderNum": "20221207130635146499490" } ], "page":{ "offset":0, "pageSize":10, "rowCount":1, "currentPage":1, "countMethod":"Count" } }, "msg":"success", "success":"T"}
返回参数说明:
| 参数名 |
类型 |
说明 |
| success |
String |
T成功,F失败 |
| msg |
String |
描述消息 |
| errCode |
String |
错误码,只有失败的时候才有 |
| data |
PageView |
分页查询对象 |
PageView对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| page |
是 |
Page |
分页参数对象 |
| records |
是 |
List< AccountSurveyRecordDTO > |
用户答题记录集合 |
page对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| offset |
是 |
int |
偏移量 |
| pageSize |
是 |
int |
每页显示的条数 |
| currentPage |
是 |
int |
当前页码 |
| rowCount |
是 |
int |
总条数 |
| countMethod |
是 |
string |
计数方法 |
AccountSurveyRecordDTO 对象说明
| 参数名 |
是否必须 |
类型 |
说明 |
| accountSurveyId |
int |
用户答题记录ID |
|
| surveyId |
int |
问卷id |
|
| gender |
int |
评估人的性别 :0 男,1 女 |
|
| accountSurveyLink |
String |
答题详情链接 |
|
| printStatus |
int |
打印状态(0:未打印,1:已打印) |
|
| idCard |
String |
评估人身份证号 |
|
| mobile |
String |
评估人手机号 |
|
| name |
String |
评估人名称 |
|
| marriageStatus |
int |
评估人的婚姻状态: 0 未婚 ,1 已婚 |
|
| updateTime |
int |
答题时间 |
|
| title |
String |
标题 |
|
| age |
int |
年龄 |
|
| orderNum |
String |
订单号 |
5、查询用户问卷记录答题信息详情
https://api.mytijian.com/open-api/V2/ws/survey/listAccountSurveySnapshotDetail?accessToken=ACCESS_TOKEN
请求协议:HTTPS
请求方式:POST
需要签名: 否
URL参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| accessToken |
是 |
string |
当前有效的accessToken |
POST参数示例
{ "accountSurveyIds":[4132304,4132299]}
请求参数说明:
| 参数名 |
是否必须 |
类型 |
说明 |
| accountSurveyIds |
否 |
List |
用户问卷记录id列表 |
正确返回示例:
{ "data": [ { "accountSurveyAnswerSnapshots": [ { "sequence": 1, "surveyId": 312, "userAnswers": [ { "snapshots": [], "questionId": 1005920, "advice": "", "id": 46362, "content": "A", "tips": "", "chosen": true } ], "id": 1005920, "type": 1, "content": "单选1" }, { "sequence": 2, "surveyId": 312, "userAnswers": [ { "snapshots": [], "questionId": 1005921, "advice": "", "id": 46364, "content": "A", "tips": "", "chosen": true } ], "id": 1005921, "type": 2, "content": "多选2" }, { "sequence": 3, "surveyId": 312, "userAnswers": [ { "snapshots": [], "questionId": 1005922, "advice": "", "id": 46367, "content": "B", "tips": "", "chosen": true } ], "id": 1005922, "type": 1, "content": "单选3" } ], "accountSnapshotVO": { "accountSurveyId": 4132304, "addAccountType": "idCard", "surveyType": 2, "finishTime": 1677555390000, "surveyId": 312, "gender": 0, "printStatus": 0, "idCard": "320323199809123053", "mobile": "13917141743", "orderNum": "20230227222239125999090", "marriageStatus": 0, "updateTime": 1677555390000, "title": "调试问卷016copy", "accountId": 700246, "name": "孟紫阳", "age": 24 } } ], "msg": "success", "success": "T"}
返回参数说明:
| 参数名 |
类型 |
说明 |
| success |
String |
T成功,F失败 |
| errCode |
String |
错误码,只有失败的时候才有 |
| msg |
String |
描述消息 |
| data |
List(AccountSurveySnapshotVO) |
问卷答题记录集合 |
AccountSurveySnapshotVO对象说明 (同接口 时间段查询问卷说明)
6、体检编号查询答题记录
https://api.mytijian.com/open-api/V2/ws/survey/listAccountSurveyByExamCode?accessToken=ACCESS_TOKEN
请求协议:HTTPS
请求方式:POST
需要签名: 否
URL参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| accessToken |
是 |
string |
当前有效的accessToken |
POST参数示例
{ "examCode":"r2332343" "currentPage":1, "pageSize":20}
请求参数说明:
| 参数名 |
是否必须 |
类型 |
说明 |
| examCode |
是 |
String |
体检编号 |
| currentPage |
是 |
int |
当前页 |
| pageSize |
是 |
int |
每页显示的条数 |
正确返回示例:
{ "data": { "page": { "countMethod": "Count", "currentPage": 1, "offset": 0, "pageSize": 50, "rowCount": 3 }, "records": [ { "accountSurveyId": 4143414, "age": 25, "gender": 0, "idCard": "320323189809128952", "marriageStatus": 0, "name": "15", "printStatus": 0, "surveyId": 1491, "title": "知情同意疫情问卷", "updateTime": 1727057882000 } ] }, "msg": "success", "success": "T"}
返回参数说明:
| 参数名 |
类型 |
说明 |
| success |
String |
T成功,F失败 |
| errCode |
String |
错误码,只有失败的时候才有 |
| msg |
String |
描述消息 |
| records |
List(AccountSurveyRecordDTO) |
问卷答题记录集合 |
| 参数名 |
是否必须 |
类型 |
| accountSurveyId |
int |
用户答题记录ID |
| surveyId |
int |
问卷id |
| gender |
int |
评估人的性别 :0 男,1 女 |
| accountSurveyLink |
String |
答题详情链接 |
| printStatus |
int |
打印状态(0:未打印,1:已打印) |
| idCard |
String |
评估人身份证号 |
| mobile |
String |
评估人手机号 |
| name |
String |
评估人名称 |
| marriageStatus |
int |
评估人的婚姻状态: 0 未婚 ,1 已婚 |
| updateTime |
int |
答题时间 |
| title |
String |
标题 |
| age |
int |
年龄 |
| orderNum |
String |
订单号 |
| examCode |
String |
体检编号 |
文档更新时间: 2025-08-27 16:27