证件号查询报告列表
请求URL:
https://m-api.lejian.com/open-api/V2/examreport/listExamReportByIdCard?accessToken=ACCESS_TOKEN&nonce=NONCE&sign=SIGN
请求协议:HTTPS
请求方式:POST
需要签名: 是
URL参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| accessToken |
是 |
string |
当前有效的accessToken |
关于nonce和sign请查看 数据签名。
POST参数示例
{ "idCard":"eVQPdsWZclZezd7LNEB1p2HdKX3rJLLVxF7ceyiMDMw="}
| 参数名 |
是否必须 |
类型 |
说明 |
| idCard |
是 |
string |
证件号 |
身份证加密方式,采用AES 128 对称加密
public static String encryptDataByAes(String data, String secret) { try { KeyGenerator kg = KeyGenerator.getInstance("AES"); SecureRandom random = SecureRandom.getInstance("SHA1PRNG"); random.setSeed(secret.getBytes(StandardCharsets.UTF_8)); kg.init(128, random); SecretKey secretKey = kg.generateKey(); byte[] enCodeFormat = secretKey.getEncoded(); SecretKeySpec key = new SecretKeySpec(enCodeFormat, "AES"); Cipher decodeCipher = Cipher.getInstance("AES"); decodeCipher.init(Cipher.ENCRYPT_MODE, key); byte[] encryptedByteArray = decodeCipher.doFinal(data.getBytes(StandardCharsets.UTF_8)); byte[] base64Byte = Base64.getEncoder().encode(encryptedByteArray); return new String(base64Byte); } catch (Exception e) { logger.error("encryptDataByAes error,data:{},secret:{},bit:{}", data, secret, bit, e); } return null; }
返回示例:
正确时返回:
{ "data": { "examReports": [ { "doctor": "郭海燕 ", "reportDate": "2021-11-30", "accountName": "刘慧奇", "examineDate": "2021-11-30", "mobile":"182222111", "orderNum": "", "reportOpenId":"AESFFF" ## 唯一值 } ] }, "msg": "success", "success": "T"}
返回参数说明:
| 参数名 |
类型 |
说明 |
| success |
String |
T成功,F失败 |
| errCode |
String |
错误码,只有失败的时候才有 |
| data |
array |
报告列表 |
| msg |
String |
描述消息 |
| 参数名 |
类型 |
说明 |
| doctor |
String |
医生 |
| reportDate |
String |
报告日期 |
| accountName |
array |
体检人姓名 |
| examineDate |
String |
体检日期 |
| mobile |
String |
体检人手机号 |
| age |
int |
体检人年龄 |
| orderNum |
String |
描述消息 |
| reportOpenId |
String |
开发平台体检报告编码 |
| gender |
int |
0 男,1女 |
备注:
根据reportOpenId 获取pdf 链接
请求URL:
https://m-api.lejian.com/open-api/V2/examreport/getExamReportByReportOpenId?accessToken=ACCESS_TOKEN
请求协议:HTTPS
请求方式:POST
需要签名: 是
URL参数:
| 参数名 |
是否必须 |
类型 |
说明 |
| accessToken |
是 |
string |
当前有效的accessToken |
POST参数示例
{ "reportOpenId":"1222="}
| 参数名 |
是否必须 |
类型 |
说明 |
| reportOpenId |
是 |
string |
报告唯一编码 |
返回示例:
正确时返回:
{ "data": { "reportUrl":"https://wwww.baidu.com" //链接有效期10 分钟,链接返回的是pdf文件流 }, "msg": "success", "success": "T"}
返回参数说明:
| 参数名 |
类型 |
说明 |
| success |
String |
T成功,F失败 |
| errCode |
String |
错误码,只有失败的时候才有 |
| data |
object |
报告地址 |
| msg |
String |
描述消息 |
备注:
文档更新时间: 2026-08-10 12:06