import request from '@/utils/request'

/**
 * 获取住院患者列表
 */
export function getPatientList(queryParams) {
  return request({
    url: '/nurse-station/advice-process/inpatient',
    method: 'get',
    params: queryParams
  })
}

/**
 * 获取当前登录人管理病区
 */
export function getWardList(queryParams) {
  return request({
    url: '/app-common/practitioner-ward',
    method: 'get',
    params: queryParams
  })
}

/**
 * 获取当前选中患者全部已执行医嘱
 */
export function getPrescriptionList(queryParams) {
  return request({
    url: '/nurse-station/medicine-summary/dispensing-form',
    method: 'get',
    params: queryParams
  })
}

/**
 * 执行医嘱
 */
export function adviceExecute(data) {
  return request({
    url: '/nurse-station/advice-process/advice-execute',
    method: 'post',
    data: data
  })
}

/**
 * 取消执行医嘱
 */
export function adviceCancel(data) {
  return request({
    url: '/nurse-station/advice-process/advice-cancel',
    method: 'post',
    data: data
  })
}

/**
 * 汇总领药申请
 */
export function medicineSummary(data) {
  return request({
    url: '/nurse-station/medicine-summary/medicine-summary',
    method: 'post',
    data: data
  })
}

/**
 * 查询汇总领药单
 */
export function getMedicineSummary(param) {
  return request({
    url: '/nurse-station/medicine-summary/summary-form',
    method: 'get',
    params: param
  })
}

/**
 * 获取汇总单详细信息
 */
export function getMedicineSummaryDetail(param) {
  return request({
    url: '/nurse-station/medicine-summary/summary-form-detail',
    method: 'get',
    params: param
  })
}