import request from "@/utils/request"; let url = '/emrControlRule' export function addRule(data) { return request({ url: url + '/addRule', method: 'post', data }) } export function getAvailableObjects() { return request({ url: url + '/getAvailableObjects', method: 'get', }) } export function hospitalWidePatients() { return request({ url: url + '/hospitalWidePatients', method: 'post', }) } export function accessToYourOwnPatientMedicalRecords() { return request({ url: url + '/accessToYourOwnPatientMedicalRecords', method: 'get', }) } export function getRuleList() { return request({ url: url + '/getRuleList', method: 'get', }) } export function switchQualityControl(id, offOn) { return request({ url: url + '/switchQualityControl', method: 'get', params: {id, offOn} }) } export function deleteRuleById(id) { return request({ url: url + '/deleteRuleById', method: 'get', params: {id} }) } export function modifyQualityControl(data) { return request({ url: url + '/modifyQualityControl', method: 'post', data }) } export function modifyTheAdmissionQualityControlTime(date) { return request({ url: url + '/modifyTheAdmissionQualityControlTime', method: 'get', params: {date} }) } export function getAdmissDate() { return request({ url: url + '/getAdmissDate', method: 'get', }) } export function createRestrictions(code, id, patNo) { return request({ url: url + '/createRestrictions', method: 'get', params: {code, id, patNo} }) } /// 下面是新的 export function requestToUnlockMedicalRecords(data) { return request({ url: url + '/requestToUnlockMedicalRecords', method: 'post', data }) } export function getApplicationData(data) { return request({ url: url + '/getApplicationData', method: 'post', data }) } export function reviewMedicalRecordsToUnlock(data) { return request({ url: url + '/reviewMedicalRecordsToUnlock', method: 'post', data }) } export function getMyUnlockByPatNo(patNo, times) { return request({ url: url + '/getMyUnlockByPatNo', method: 'get', params: {patNo, times} }) } export function specifyAdmissionQualityControl(start,end) { return request({ url: url + '/specifyAdmissionQualityControl', method: 'get', params: {start, end} }) }