import request from '/@/utils/request';
import type { IPatientSummarySave, IPatientSummaryDetailParams, IListMedSummaryFinalTextParams, IListMedSummaryFinalTextResponse } from './types';
import { AxiosPromise } from 'axios';

/**
 * 保存患者阶段小结
 * @param data 
 * @returns 
 */
export function patientSummarySaveApi (data: IPatientSummarySave) {
    return request({
        url: '/patient/period/summary/save',
        method: 'post',
        data
    })
}


/**
 * 查询患者阶段小结
 * @param params 
 * @returns 
 */
export function getPatientSummaryDetailApi(params: IPatientSummaryDetailParams) {
    return request({
        url: '/patient/period/summary/get',
        method: 'post',
        params
    })
}


/**
 * 获取所有患者的小结处理意见
 * @param params 
 * @returns 
 */
export function getListMedSummaryFinalTextApi(params: IListMedSummaryFinalTextParams) :AxiosPromise<IListMedSummaryFinalTextResponse> {
    return request({
        url: '/patient/info/listMedSummaryFinalText',
        method: 'post',
        params
    })
}