全病历质控接口列表:
前端调用接口时 请不要传递 debugis 参数
- 质量分析
/**
* analysis
* POST /api/case-quality/analysis
* 质量分析
* @group case-quality
* @bodyParam start_time string 开始时间 日期字符串格式
* @bodyParam end_time string 结束时间 日期字符串格式
*
* @response {
* "code":200,
* "msg":"结果",
* "data":{
* "case_total":"病案数量",
* "defect_case_total":"缺陷病案数",
* },
* "time":123787842
* }
*/
测试代码:
fetch("http://qualityweb.jiankangche.cn:8081/api/case-quality/analysis", {
"headers": {
"accept": "application/json, text/plain, */*",
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8",
"cache-control": "no-cache",
"content-type": "application/json;charset=UTF-8",
"pragma": "no-cache",
"token": "a66abb5684c45962d887564f08346e8d"
},
"referrer": "http://qualityweb.jiankangche.cn:8081/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "{\"start_time\":\"20220308\",\"end_time\":\"20230308\",\"debugis\":2}",
"method": "POST",
"mode": "cors",
"credentials": "include"
});
- 科室排名 前10条
/**
* ranking_department
* POST /api/case-quality/ranking_department
* 科室排名 前10条
* @group case-quality
* @bodyParam start_time string 开始时间 日期字符串格式
* @bodyParam end_time string 结束时间 日期字符串格式
*
* @response {
* "code":200,
* "msg":"结果",
* "data": {
* "list":[{
* "name":"科室名称",
* "total_medical":"病案数",
* "total_error_medical":"缺陷病案数",
* }]
* },
* "time":123787842
* }
*/
目前返回了 50多条数据, 你先取前10条, 多余的我会舍弃
测试代码:
fetch("http://qualityweb.jiankangche.cn:8081/api/case-quality/ranking_department", {
"headers": {
"accept": "application/json, text/plain, */*",
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8",
"cache-control": "no-cache",
"content-type": "application/json;charset=UTF-8",
"pragma": "no-cache",
"token": "a66abb5684c45962d887564f08346e8d"
},
"referrer": "http://qualityweb.jiankangche.cn:8081/",
"referrerPolicy": "strict-origin-when-cross-origin",
"body": "{\"start_time\":\"20220308\",\"end_time\":\"20230308\",\"debugis\":2}",
"method": "POST",
"mode": "cors",
"credentials": "include"
});