You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
3.4 KiB
88 lines
3.4 KiB
/*
|
|
* @Author: wally
|
|
* @email: 18603454788@163.com
|
|
* @Date: 2021-01-29 11:16:27
|
|
* @LastEditors: wally
|
|
* @LastEditTime: 2021-02-19 18:01:03
|
|
*/
|
|
import axios from 'axios';
|
|
let { proxyUrl, msgUrl } = require('@/config/setting');
|
|
|
|
const tcm = `${proxyUrl}/tcm`;
|
|
const patient = `${tcm}/patient`; // 患者相关接口
|
|
const imp = `${tcm}/import`; // 试题相关接口
|
|
const inpatient = `${tcm}/inpatient`; // 对照组接口
|
|
const statistics = `${tcm}/statistics`; // 数据统计相关接口
|
|
const conferenceRecords = `${tcm}/conferenceRecords`; // 会议纪要相关接口
|
|
const biologicalSamples = `${tcm}/biologicalSamples`; // 生物样本相关接口
|
|
const hospatil = `${tcm}/hospatil`; // 医院相关接口
|
|
const file = `${tcm}/file`; // 文件相关接口
|
|
|
|
// 上传文件
|
|
export const upload = `${file}/upload`;
|
|
|
|
// 通过任务Id查询项目Id
|
|
export const getHId = params => axios.get(`${hospatil}/byProjectId?projectId=${params}`);
|
|
|
|
// 查询医院列表
|
|
export const getHList = params => axios.get(`${hospatil}/selHospatil`);
|
|
|
|
// 保存患者病例信息
|
|
export const saveCaseMes = params => axios.post(`${patient}/saveCaseMes`, params);
|
|
|
|
// 添加患者基本信息
|
|
export const savePatientMes = params => axios.post(`${patient}/savePatientMes`, params);
|
|
|
|
// 查询患者基本信息
|
|
export const selPatientMes = params => axios.post(`${patient}/selPatientMes`, params);
|
|
|
|
// 通过搜索条件查询患者病例的信息
|
|
export const selPatientMesList = params => axios.post(`${patient}/selPatientMesList`, params);
|
|
|
|
// 通过查询搜索条件
|
|
export const selSearchCriteriaList = params => axios.post(`${patient}/selSearchCriteriaList`, params);
|
|
|
|
// 试题相关接口:按code查看题目信息,code为空则查询全部
|
|
export const queryAll = params => axios.post(`${tcm}/question/query`, params);
|
|
|
|
// 查询所有得题目的类型和题目相关信息
|
|
export const queryQuestion = params => axios.get(`${tcm}/question/queryQuestion`);
|
|
|
|
// 查询所有对照组的信息
|
|
export const getQuery = params => axios.post(`${inpatient}/query`, params);
|
|
|
|
// 查询统计病例数据
|
|
export const complete = params => axios.post(`${statistics}/complete`, params);
|
|
|
|
// 查询病例分析
|
|
export const countAnalysis = params => axios.post(`${statistics}/countAnalysis`, params);
|
|
|
|
// 查询各医院病例完成情况
|
|
export const HospitalComplete = params => axios.post(`${statistics}/hospital/complete`, params);
|
|
|
|
// 查询每日病例统计
|
|
export const countCase = params => axios.post(`${statistics}/countCase`, params);
|
|
|
|
// 统计生物样本数量
|
|
export const selAllYBS = params => axios.get(`${biologicalSamples}/selAllYBS`);
|
|
|
|
// 添加会议记录
|
|
export const saveConRec = params => axios.post(`${conferenceRecords}/save`, params);
|
|
|
|
// 查看会议记录
|
|
export const getConRec = params => axios.post(`${conferenceRecords}/get`, params);
|
|
|
|
// 分享会议记录
|
|
export const shareConRec = params => axios.post(`${conferenceRecords}/share`, params);
|
|
|
|
// 添加生物样本
|
|
export const addBiologicalSamples = params => axios.post(`${biologicalSamples}/addBiologicalSamples`, params);
|
|
|
|
// 搜索生物样本
|
|
export const selBiologicalSamples = params => axios.post(`${biologicalSamples}/selBiologicalSamples`, params);
|
|
|
|
// 进行中的患者进度
|
|
export const patientProgress = params => axios.post(`${statistics}/selPatientProgress`, params);
|
|
|
|
// 临近任务统计
|
|
export const adjacentTasks = params => axios.post(`${statistics}/adjacentTasks`, params);
|
|
|